@ludo.ninja/api 2.8.70 → 2.8.71
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.
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +28 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +67 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.js +64 -1
- package/build/index.d.ts +24 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +33 -0
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +80 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -366,6 +366,7 @@ export type IMutation = {
|
|
|
366
366
|
createAdminOpportunity: Scalars['Boolean'];
|
|
367
367
|
updateOpportunity: Scalars['Boolean'];
|
|
368
368
|
triggerOpportunityNotification: Scalars['Boolean'];
|
|
369
|
+
updateTier: Scalars['Boolean'];
|
|
369
370
|
updateProfileStatus: Scalars['Boolean'];
|
|
370
371
|
removeSuggestedOpportunity: Scalars['Boolean'];
|
|
371
372
|
addSuggestedOpportunity: Scalars['Boolean'];
|
|
@@ -423,6 +424,10 @@ export type IMutationUpdateOpportunityArgs = {
|
|
|
423
424
|
export type IMutationTriggerOpportunityNotificationArgs = {
|
|
424
425
|
opportunityId: Scalars['ID'];
|
|
425
426
|
};
|
|
427
|
+
export type IMutationUpdateTierArgs = {
|
|
428
|
+
id: Scalars['ID'];
|
|
429
|
+
input: ITierInput;
|
|
430
|
+
};
|
|
426
431
|
export type IMutationUpdateProfileStatusArgs = {
|
|
427
432
|
userId: Scalars['ID'];
|
|
428
433
|
isActive: Scalars['Boolean'];
|
|
@@ -511,6 +516,7 @@ export type IQuery = {
|
|
|
511
516
|
fetchAdminBrandsPage: IBrandsPage;
|
|
512
517
|
fetchBlockchains: Array<Scalars['String']>;
|
|
513
518
|
fetchAdminReferralsPage: IReferralsPage;
|
|
519
|
+
fetchTiers: Array<ITier>;
|
|
514
520
|
fetchAdminUsersPage: IUsersPage;
|
|
515
521
|
fetchAdminXpPage: IXpPage;
|
|
516
522
|
};
|
|
@@ -636,6 +642,15 @@ export declare enum ISortDirection {
|
|
|
636
642
|
Asc = "asc",
|
|
637
643
|
Desc = "desc"
|
|
638
644
|
}
|
|
645
|
+
export type ITier = {
|
|
646
|
+
id: Scalars['String'];
|
|
647
|
+
name: Scalars['String'];
|
|
648
|
+
description?: Maybe<Scalars['String']>;
|
|
649
|
+
};
|
|
650
|
+
export type ITierInput = {
|
|
651
|
+
name: Scalars['String'];
|
|
652
|
+
description?: Maybe<Scalars['String']>;
|
|
653
|
+
};
|
|
639
654
|
export type IUserFeedback = {
|
|
640
655
|
id: Scalars['String'];
|
|
641
656
|
userId?: Maybe<Scalars['String']>;
|
|
@@ -813,6 +828,8 @@ export type IResolversTypes = {
|
|
|
813
828
|
RegistrationInviteSortInput: IRegistrationInviteSortInput;
|
|
814
829
|
Sort: ISort;
|
|
815
830
|
SortDirection: ISortDirection;
|
|
831
|
+
Tier: ResolverTypeWrapper<ITier>;
|
|
832
|
+
TierInput: ITierInput;
|
|
816
833
|
Upload: ResolverTypeWrapper<Scalars['Upload']>;
|
|
817
834
|
UserFeedback: ResolverTypeWrapper<IUserFeedback>;
|
|
818
835
|
UserFeedbackFilterInput: IUserFeedbackFilterInput;
|
|
@@ -891,6 +908,8 @@ export type IResolversParentTypes = {
|
|
|
891
908
|
RegistrationInvitePage: IRegistrationInvitePage;
|
|
892
909
|
RegistrationInviteSortInput: IRegistrationInviteSortInput;
|
|
893
910
|
Sort: ISort;
|
|
911
|
+
Tier: ITier;
|
|
912
|
+
TierInput: ITierInput;
|
|
894
913
|
Upload: Scalars['Upload'];
|
|
895
914
|
UserFeedback: IUserFeedback;
|
|
896
915
|
UserFeedbackFilterInput: IUserFeedbackFilterInput;
|
|
@@ -1143,6 +1162,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1143
1162
|
createAdminOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateAdminOpportunityArgs, 'input'>>;
|
|
1144
1163
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
1145
1164
|
triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
|
|
1165
|
+
updateTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateTierArgs, 'id' | 'input'>>;
|
|
1146
1166
|
updateProfileStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateProfileStatusArgs, 'userId' | 'isActive'>>;
|
|
1147
1167
|
removeSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
1148
1168
|
addSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
@@ -1176,6 +1196,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1176
1196
|
fetchAdminBrandsPage?: Resolver<IResolversTypes['BrandsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminBrandsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1177
1197
|
fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1178
1198
|
fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1199
|
+
fetchTiers?: Resolver<Array<IResolversTypes['Tier']>, ParentType, ContextType>;
|
|
1179
1200
|
fetchAdminUsersPage?: Resolver<IResolversTypes['UsersPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminUsersPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1180
1201
|
fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1181
1202
|
};
|
|
@@ -1202,6 +1223,12 @@ export type IRegistrationInvitePageResolvers<ContextType = any, ParentType exten
|
|
|
1202
1223
|
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1203
1224
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1204
1225
|
};
|
|
1226
|
+
export type ITierResolvers<ContextType = any, ParentType extends IResolversParentTypes['Tier'] = IResolversParentTypes['Tier']> = {
|
|
1227
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1228
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1229
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1230
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1231
|
+
};
|
|
1205
1232
|
export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
|
|
1206
1233
|
name: 'Upload';
|
|
1207
1234
|
}
|
|
@@ -1271,6 +1298,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1271
1298
|
ReferredUsersInfo?: IReferredUsersInfoResolvers<ContextType>;
|
|
1272
1299
|
RegistrationInvite?: IRegistrationInviteResolvers<ContextType>;
|
|
1273
1300
|
RegistrationInvitePage?: IRegistrationInvitePageResolvers<ContextType>;
|
|
1301
|
+
Tier?: ITierResolvers<ContextType>;
|
|
1274
1302
|
Upload?: GraphQLScalarType;
|
|
1275
1303
|
UserFeedback?: IUserFeedbackResolvers<ContextType>;
|
|
1276
1304
|
UserFeedbackPage?: IUserFeedbackPageResolvers<ContextType>;
|
|
@@ -247,6 +247,12 @@ export type IFetchMyTasksQueryVariables = Exact<{
|
|
|
247
247
|
export type IFetchMyTasksQuery = {
|
|
248
248
|
fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>>;
|
|
249
249
|
};
|
|
250
|
+
export type IOnCommonOpportunityNotificationSubscriptionVariables = Exact<{
|
|
251
|
+
[key: string]: never;
|
|
252
|
+
}>;
|
|
253
|
+
export type IOnCommonOpportunityNotificationSubscription = {
|
|
254
|
+
onCommonOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'>;
|
|
255
|
+
};
|
|
250
256
|
export type IOnInviteCodeUsedSubscriptionVariables = Exact<{
|
|
251
257
|
authToken: Scalars['String'];
|
|
252
258
|
}>;
|
|
@@ -265,6 +271,12 @@ export type IOnMyExperienceUpdatedSubscriptionVariables = Exact<{
|
|
|
265
271
|
export type IOnMyExperienceUpdatedSubscription = {
|
|
266
272
|
onMyExperienceUpdated: Pick<IUserXp, 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'>;
|
|
267
273
|
};
|
|
274
|
+
export type IOnUserOpportunityNotificationSubscriptionVariables = Exact<{
|
|
275
|
+
authToken: Scalars['String'];
|
|
276
|
+
}>;
|
|
277
|
+
export type IOnUserOpportunityNotificationSubscription = {
|
|
278
|
+
onUserOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'>;
|
|
279
|
+
};
|
|
268
280
|
export declare const FetchMyExperienceV2Document: Apollo.DocumentNode;
|
|
269
281
|
/**
|
|
270
282
|
* __useFetchMyExperienceV2Query__
|
|
@@ -315,6 +327,33 @@ export declare function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
315
327
|
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
316
328
|
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
317
329
|
export type FetchMyTasksQueryResult = Apollo.QueryResult<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>;
|
|
330
|
+
export declare const OnCommonOpportunityNotificationDocument: Apollo.DocumentNode;
|
|
331
|
+
/**
|
|
332
|
+
* __useOnCommonOpportunityNotificationSubscription__
|
|
333
|
+
*
|
|
334
|
+
* To run a query within a React component, call `useOnCommonOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
335
|
+
* When your component renders, `useOnCommonOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
336
|
+
* you can use to render your UI.
|
|
337
|
+
*
|
|
338
|
+
* @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;
|
|
339
|
+
*
|
|
340
|
+
* @example
|
|
341
|
+
* const { data, loading, error } = useOnCommonOpportunityNotificationSubscription({
|
|
342
|
+
* variables: {
|
|
343
|
+
* },
|
|
344
|
+
* });
|
|
345
|
+
*/
|
|
346
|
+
export declare function useOnCommonOpportunityNotificationSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnCommonOpportunityNotificationSubscription, IOnCommonOpportunityNotificationSubscriptionVariables>): {
|
|
347
|
+
restart(): void;
|
|
348
|
+
loading: boolean;
|
|
349
|
+
data?: IOnCommonOpportunityNotificationSubscription | undefined;
|
|
350
|
+
error?: Apollo.ApolloError | undefined;
|
|
351
|
+
variables?: Exact<{
|
|
352
|
+
[key: string]: never;
|
|
353
|
+
}> | undefined;
|
|
354
|
+
};
|
|
355
|
+
export type OnCommonOpportunityNotificationSubscriptionHookResult = ReturnType<typeof useOnCommonOpportunityNotificationSubscription>;
|
|
356
|
+
export type OnCommonOpportunityNotificationSubscriptionResult = Apollo.SubscriptionResult<IOnCommonOpportunityNotificationSubscription>;
|
|
318
357
|
export declare const OnInviteCodeUsedDocument: Apollo.DocumentNode;
|
|
319
358
|
/**
|
|
320
359
|
* __useOnInviteCodeUsedSubscription__
|
|
@@ -399,3 +438,31 @@ export declare function useOnMyExperienceUpdatedSubscription(baseOptions: Apollo
|
|
|
399
438
|
};
|
|
400
439
|
export type OnMyExperienceUpdatedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceUpdatedSubscription>;
|
|
401
440
|
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|
|
441
|
+
export declare const OnUserOpportunityNotificationDocument: Apollo.DocumentNode;
|
|
442
|
+
/**
|
|
443
|
+
* __useOnUserOpportunityNotificationSubscription__
|
|
444
|
+
*
|
|
445
|
+
* To run a query within a React component, call `useOnUserOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
446
|
+
* When your component renders, `useOnUserOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
447
|
+
* you can use to render your UI.
|
|
448
|
+
*
|
|
449
|
+
* @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;
|
|
450
|
+
*
|
|
451
|
+
* @example
|
|
452
|
+
* const { data, loading, error } = useOnUserOpportunityNotificationSubscription({
|
|
453
|
+
* variables: {
|
|
454
|
+
* authToken: // value for 'authToken'
|
|
455
|
+
* },
|
|
456
|
+
* });
|
|
457
|
+
*/
|
|
458
|
+
export declare function useOnUserOpportunityNotificationSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnUserOpportunityNotificationSubscription, IOnUserOpportunityNotificationSubscriptionVariables>): {
|
|
459
|
+
restart(): void;
|
|
460
|
+
loading: boolean;
|
|
461
|
+
data?: IOnUserOpportunityNotificationSubscription | undefined;
|
|
462
|
+
error?: Apollo.ApolloError | undefined;
|
|
463
|
+
variables?: Exact<{
|
|
464
|
+
authToken: string;
|
|
465
|
+
}> | undefined;
|
|
466
|
+
};
|
|
467
|
+
export type OnUserOpportunityNotificationSubscriptionHookResult = ReturnType<typeof useOnUserOpportunityNotificationSubscription>;
|
|
468
|
+
export type OnUserOpportunityNotificationSubscriptionResult = Apollo.SubscriptionResult<IOnUserOpportunityNotificationSubscription>;
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.useOnMyExperienceUpdatedSubscription = exports.OnMyExperienceUpdatedDocument = exports.useOnMyExperienceIncrementedSubscription = exports.OnMyExperienceIncrementedDocument = exports.useOnInviteCodeUsedSubscription = exports.OnInviteCodeUsedDocument = exports.useFetchMyTasksLazyQuery = exports.useFetchMyTasksQuery = exports.FetchMyTasksDocument = exports.useFetchMyExperienceV2LazyQuery = exports.useFetchMyExperienceV2Query = exports.FetchMyExperienceV2Document = void 0;
|
|
26
|
+
exports.useOnUserOpportunityNotificationSubscription = exports.OnUserOpportunityNotificationDocument = exports.useOnMyExperienceUpdatedSubscription = exports.OnMyExperienceUpdatedDocument = exports.useOnMyExperienceIncrementedSubscription = exports.OnMyExperienceIncrementedDocument = exports.useOnInviteCodeUsedSubscription = exports.OnInviteCodeUsedDocument = exports.useOnCommonOpportunityNotificationSubscription = exports.OnCommonOpportunityNotificationDocument = exports.useFetchMyTasksLazyQuery = exports.useFetchMyTasksQuery = exports.FetchMyTasksDocument = exports.useFetchMyExperienceV2LazyQuery = exports.useFetchMyExperienceV2Query = exports.FetchMyExperienceV2Document = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
exports.FetchMyExperienceV2Document = (0, client_1.gql) `
|
|
@@ -98,6 +98,37 @@ function useFetchMyTasksLazyQuery(baseOptions) {
|
|
|
98
98
|
return Apollo.useLazyQuery(exports.FetchMyTasksDocument, baseOptions);
|
|
99
99
|
}
|
|
100
100
|
exports.useFetchMyTasksLazyQuery = useFetchMyTasksLazyQuery;
|
|
101
|
+
exports.OnCommonOpportunityNotificationDocument = (0, client_1.gql) `
|
|
102
|
+
subscription OnCommonOpportunityNotification {
|
|
103
|
+
onCommonOpportunityNotification {
|
|
104
|
+
opportunityId
|
|
105
|
+
name
|
|
106
|
+
description
|
|
107
|
+
notificationType
|
|
108
|
+
media
|
|
109
|
+
projectUrl
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
`;
|
|
113
|
+
/**
|
|
114
|
+
* __useOnCommonOpportunityNotificationSubscription__
|
|
115
|
+
*
|
|
116
|
+
* To run a query within a React component, call `useOnCommonOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
117
|
+
* When your component renders, `useOnCommonOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
118
|
+
* you can use to render your UI.
|
|
119
|
+
*
|
|
120
|
+
* @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;
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* const { data, loading, error } = useOnCommonOpportunityNotificationSubscription({
|
|
124
|
+
* variables: {
|
|
125
|
+
* },
|
|
126
|
+
* });
|
|
127
|
+
*/
|
|
128
|
+
function useOnCommonOpportunityNotificationSubscription(baseOptions) {
|
|
129
|
+
return Apollo.useSubscription(exports.OnCommonOpportunityNotificationDocument, baseOptions);
|
|
130
|
+
}
|
|
131
|
+
exports.useOnCommonOpportunityNotificationSubscription = useOnCommonOpportunityNotificationSubscription;
|
|
101
132
|
exports.OnInviteCodeUsedDocument = (0, client_1.gql) `
|
|
102
133
|
subscription onInviteCodeUsed($authToken: String!) {
|
|
103
134
|
onInviteCodeUsed(authToken: $authToken) {
|
|
@@ -189,3 +220,35 @@ function useOnMyExperienceUpdatedSubscription(baseOptions) {
|
|
|
189
220
|
return Apollo.useSubscription(exports.OnMyExperienceUpdatedDocument, baseOptions);
|
|
190
221
|
}
|
|
191
222
|
exports.useOnMyExperienceUpdatedSubscription = useOnMyExperienceUpdatedSubscription;
|
|
223
|
+
exports.OnUserOpportunityNotificationDocument = (0, client_1.gql) `
|
|
224
|
+
subscription OnUserOpportunityNotification($authToken: String!) {
|
|
225
|
+
onUserOpportunityNotification(authToken: $authToken) {
|
|
226
|
+
opportunityId
|
|
227
|
+
name
|
|
228
|
+
description
|
|
229
|
+
notificationType
|
|
230
|
+
media
|
|
231
|
+
projectUrl
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
`;
|
|
235
|
+
/**
|
|
236
|
+
* __useOnUserOpportunityNotificationSubscription__
|
|
237
|
+
*
|
|
238
|
+
* To run a query within a React component, call `useOnUserOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
239
|
+
* When your component renders, `useOnUserOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
240
|
+
* you can use to render your UI.
|
|
241
|
+
*
|
|
242
|
+
* @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;
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* const { data, loading, error } = useOnUserOpportunityNotificationSubscription({
|
|
246
|
+
* variables: {
|
|
247
|
+
* authToken: // value for 'authToken'
|
|
248
|
+
* },
|
|
249
|
+
* });
|
|
250
|
+
*/
|
|
251
|
+
function useOnUserOpportunityNotificationSubscription(baseOptions) {
|
|
252
|
+
return Apollo.useSubscription(exports.OnUserOpportunityNotificationDocument, baseOptions);
|
|
253
|
+
}
|
|
254
|
+
exports.useOnUserOpportunityNotificationSubscription = useOnUserOpportunityNotificationSubscription;
|
package/build/index.d.ts
CHANGED
|
@@ -1030,6 +1030,17 @@ declare const schema: {
|
|
|
1030
1030
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.IFetchMyTasksQuery, experiencesSchema.Exact<{
|
|
1031
1031
|
[key: string]: never;
|
|
1032
1032
|
}>>;
|
|
1033
|
+
useOnCommonOpportunityNotificationSubscription(baseOptions?: import("@apollo/client").SubscriptionHookOptions<experiencesSchema.IOnCommonOpportunityNotificationSubscription, experiencesSchema.Exact<{
|
|
1034
|
+
[key: string]: never;
|
|
1035
|
+
}>> | undefined): {
|
|
1036
|
+
restart(): void;
|
|
1037
|
+
loading: boolean;
|
|
1038
|
+
data?: experiencesSchema.IOnCommonOpportunityNotificationSubscription | undefined;
|
|
1039
|
+
error?: import("@apollo/client").ApolloError | undefined;
|
|
1040
|
+
variables?: experiencesSchema.Exact<{
|
|
1041
|
+
[key: string]: never;
|
|
1042
|
+
}> | undefined;
|
|
1043
|
+
};
|
|
1033
1044
|
useOnInviteCodeUsedSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<experiencesSchema.IOnInviteCodeUsedSubscription, experiencesSchema.Exact<{
|
|
1034
1045
|
authToken: string;
|
|
1035
1046
|
}>>): {
|
|
@@ -1063,11 +1074,24 @@ declare const schema: {
|
|
|
1063
1074
|
authToken: string;
|
|
1064
1075
|
}> | undefined;
|
|
1065
1076
|
};
|
|
1077
|
+
useOnUserOpportunityNotificationSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<experiencesSchema.IOnUserOpportunityNotificationSubscription, experiencesSchema.Exact<{
|
|
1078
|
+
authToken: string;
|
|
1079
|
+
}>>): {
|
|
1080
|
+
restart(): void;
|
|
1081
|
+
loading: boolean;
|
|
1082
|
+
data?: experiencesSchema.IOnUserOpportunityNotificationSubscription | undefined;
|
|
1083
|
+
error?: import("@apollo/client").ApolloError | undefined;
|
|
1084
|
+
variables?: experiencesSchema.Exact<{
|
|
1085
|
+
authToken: string;
|
|
1086
|
+
}> | undefined;
|
|
1087
|
+
};
|
|
1066
1088
|
FetchMyExperienceV2Document: import("graphql").DocumentNode;
|
|
1067
1089
|
FetchMyTasksDocument: import("graphql").DocumentNode;
|
|
1090
|
+
OnCommonOpportunityNotificationDocument: import("graphql").DocumentNode;
|
|
1068
1091
|
OnInviteCodeUsedDocument: import("graphql").DocumentNode;
|
|
1069
1092
|
OnMyExperienceIncrementedDocument: import("graphql").DocumentNode;
|
|
1070
1093
|
OnMyExperienceUpdatedDocument: import("graphql").DocumentNode;
|
|
1094
|
+
OnUserOpportunityNotificationDocument: import("graphql").DocumentNode;
|
|
1071
1095
|
useDislikeCollectionMutation(baseOptions?: import("@apollo/client").MutationHookOptions<collectionsSchema.IDislikeCollectionMutation, collectionsSchema.Exact<{
|
|
1072
1096
|
collectionId: string;
|
|
1073
1097
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<collectionsSchema.IDislikeCollectionMutation, collectionsSchema.Exact<{
|
package/package.json
CHANGED
|
@@ -403,6 +403,7 @@ export type IMutation = {
|
|
|
403
403
|
createAdminOpportunity: Scalars['Boolean'];
|
|
404
404
|
updateOpportunity: Scalars['Boolean'];
|
|
405
405
|
triggerOpportunityNotification: Scalars['Boolean'];
|
|
406
|
+
updateTier: Scalars['Boolean'];
|
|
406
407
|
updateProfileStatus: Scalars['Boolean'];
|
|
407
408
|
removeSuggestedOpportunity: Scalars['Boolean'];
|
|
408
409
|
addSuggestedOpportunity: Scalars['Boolean'];
|
|
@@ -488,6 +489,12 @@ export type IMutationTriggerOpportunityNotificationArgs = {
|
|
|
488
489
|
};
|
|
489
490
|
|
|
490
491
|
|
|
492
|
+
export type IMutationUpdateTierArgs = {
|
|
493
|
+
id: Scalars['ID'];
|
|
494
|
+
input: ITierInput;
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
|
|
491
498
|
export type IMutationUpdateProfileStatusArgs = {
|
|
492
499
|
userId: Scalars['ID'];
|
|
493
500
|
isActive: Scalars['Boolean'];
|
|
@@ -589,6 +596,7 @@ export type IQuery = {
|
|
|
589
596
|
fetchAdminBrandsPage: IBrandsPage;
|
|
590
597
|
fetchBlockchains: Array<Scalars['String']>;
|
|
591
598
|
fetchAdminReferralsPage: IReferralsPage;
|
|
599
|
+
fetchTiers: Array<ITier>;
|
|
592
600
|
fetchAdminUsersPage: IUsersPage;
|
|
593
601
|
fetchAdminXpPage: IXpPage;
|
|
594
602
|
};
|
|
@@ -755,6 +763,17 @@ export enum ISortDirection {
|
|
|
755
763
|
Desc = 'desc'
|
|
756
764
|
}
|
|
757
765
|
|
|
766
|
+
export type ITier = {
|
|
767
|
+
id: Scalars['String'];
|
|
768
|
+
name: Scalars['String'];
|
|
769
|
+
description?: Maybe<Scalars['String']>;
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
export type ITierInput = {
|
|
773
|
+
name: Scalars['String'];
|
|
774
|
+
description?: Maybe<Scalars['String']>;
|
|
775
|
+
};
|
|
776
|
+
|
|
758
777
|
|
|
759
778
|
export type IUserFeedback = {
|
|
760
779
|
id: Scalars['String'];
|
|
@@ -985,6 +1004,8 @@ export type IResolversTypes = {
|
|
|
985
1004
|
RegistrationInviteSortInput: IRegistrationInviteSortInput;
|
|
986
1005
|
Sort: ISort;
|
|
987
1006
|
SortDirection: ISortDirection;
|
|
1007
|
+
Tier: ResolverTypeWrapper<ITier>;
|
|
1008
|
+
TierInput: ITierInput;
|
|
988
1009
|
Upload: ResolverTypeWrapper<Scalars['Upload']>;
|
|
989
1010
|
UserFeedback: ResolverTypeWrapper<IUserFeedback>;
|
|
990
1011
|
UserFeedbackFilterInput: IUserFeedbackFilterInput;
|
|
@@ -1064,6 +1085,8 @@ export type IResolversParentTypes = {
|
|
|
1064
1085
|
RegistrationInvitePage: IRegistrationInvitePage;
|
|
1065
1086
|
RegistrationInviteSortInput: IRegistrationInviteSortInput;
|
|
1066
1087
|
Sort: ISort;
|
|
1088
|
+
Tier: ITier;
|
|
1089
|
+
TierInput: ITierInput;
|
|
1067
1090
|
Upload: Scalars['Upload'];
|
|
1068
1091
|
UserFeedback: IUserFeedback;
|
|
1069
1092
|
UserFeedbackFilterInput: IUserFeedbackFilterInput;
|
|
@@ -1346,6 +1369,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1346
1369
|
createAdminOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateAdminOpportunityArgs, 'input'>>;
|
|
1347
1370
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
1348
1371
|
triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
|
|
1372
|
+
updateTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateTierArgs, 'id' | 'input'>>;
|
|
1349
1373
|
updateProfileStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateProfileStatusArgs, 'userId' | 'isActive'>>;
|
|
1350
1374
|
removeSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
1351
1375
|
addSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
@@ -1382,6 +1406,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1382
1406
|
fetchAdminBrandsPage?: Resolver<IResolversTypes['BrandsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminBrandsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1383
1407
|
fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1384
1408
|
fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1409
|
+
fetchTiers?: Resolver<Array<IResolversTypes['Tier']>, ParentType, ContextType>;
|
|
1385
1410
|
fetchAdminUsersPage?: Resolver<IResolversTypes['UsersPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminUsersPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1386
1411
|
fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1387
1412
|
};
|
|
@@ -1413,6 +1438,13 @@ export type IRegistrationInvitePageResolvers<ContextType = any, ParentType exten
|
|
|
1413
1438
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1414
1439
|
};
|
|
1415
1440
|
|
|
1441
|
+
export type ITierResolvers<ContextType = any, ParentType extends IResolversParentTypes['Tier'] = IResolversParentTypes['Tier']> = {
|
|
1442
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1443
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1444
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1445
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1416
1448
|
export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
|
|
1417
1449
|
name: 'Upload';
|
|
1418
1450
|
}
|
|
@@ -1488,6 +1520,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1488
1520
|
ReferredUsersInfo?: IReferredUsersInfoResolvers<ContextType>;
|
|
1489
1521
|
RegistrationInvite?: IRegistrationInviteResolvers<ContextType>;
|
|
1490
1522
|
RegistrationInvitePage?: IRegistrationInvitePageResolvers<ContextType>;
|
|
1523
|
+
Tier?: ITierResolvers<ContextType>;
|
|
1491
1524
|
Upload?: GraphQLScalarType;
|
|
1492
1525
|
UserFeedback?: IUserFeedbackResolvers<ContextType>;
|
|
1493
1526
|
UserFeedbackPage?: IUserFeedbackPageResolvers<ContextType>;
|
|
@@ -312,6 +312,11 @@ export type IFetchMyTasksQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
312
312
|
|
|
313
313
|
export type IFetchMyTasksQuery = { fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>> };
|
|
314
314
|
|
|
315
|
+
export type IOnCommonOpportunityNotificationSubscriptionVariables = Exact<{ [key: string]: never; }>;
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
export type IOnCommonOpportunityNotificationSubscription = { onCommonOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'> };
|
|
319
|
+
|
|
315
320
|
export type IOnInviteCodeUsedSubscriptionVariables = Exact<{
|
|
316
321
|
authToken: Scalars['String'];
|
|
317
322
|
}>;
|
|
@@ -333,6 +338,13 @@ export type IOnMyExperienceUpdatedSubscriptionVariables = Exact<{
|
|
|
333
338
|
|
|
334
339
|
export type IOnMyExperienceUpdatedSubscription = { onMyExperienceUpdated: Pick<IUserXp, 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'> };
|
|
335
340
|
|
|
341
|
+
export type IOnUserOpportunityNotificationSubscriptionVariables = Exact<{
|
|
342
|
+
authToken: Scalars['String'];
|
|
343
|
+
}>;
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
export type IOnUserOpportunityNotificationSubscription = { onUserOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'> };
|
|
347
|
+
|
|
336
348
|
|
|
337
349
|
export const FetchMyExperienceV2Document = gql`
|
|
338
350
|
query FetchMyExperienceV2 {
|
|
@@ -410,6 +422,39 @@ export function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptio
|
|
|
410
422
|
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
411
423
|
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
412
424
|
export type FetchMyTasksQueryResult = Apollo.QueryResult<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>;
|
|
425
|
+
export const OnCommonOpportunityNotificationDocument = gql`
|
|
426
|
+
subscription OnCommonOpportunityNotification {
|
|
427
|
+
onCommonOpportunityNotification {
|
|
428
|
+
opportunityId
|
|
429
|
+
name
|
|
430
|
+
description
|
|
431
|
+
notificationType
|
|
432
|
+
media
|
|
433
|
+
projectUrl
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
`;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* __useOnCommonOpportunityNotificationSubscription__
|
|
440
|
+
*
|
|
441
|
+
* To run a query within a React component, call `useOnCommonOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
442
|
+
* When your component renders, `useOnCommonOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
443
|
+
* you can use to render your UI.
|
|
444
|
+
*
|
|
445
|
+
* @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;
|
|
446
|
+
*
|
|
447
|
+
* @example
|
|
448
|
+
* const { data, loading, error } = useOnCommonOpportunityNotificationSubscription({
|
|
449
|
+
* variables: {
|
|
450
|
+
* },
|
|
451
|
+
* });
|
|
452
|
+
*/
|
|
453
|
+
export function useOnCommonOpportunityNotificationSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnCommonOpportunityNotificationSubscription, IOnCommonOpportunityNotificationSubscriptionVariables>) {
|
|
454
|
+
return Apollo.useSubscription<IOnCommonOpportunityNotificationSubscription, IOnCommonOpportunityNotificationSubscriptionVariables>(OnCommonOpportunityNotificationDocument, baseOptions);
|
|
455
|
+
}
|
|
456
|
+
export type OnCommonOpportunityNotificationSubscriptionHookResult = ReturnType<typeof useOnCommonOpportunityNotificationSubscription>;
|
|
457
|
+
export type OnCommonOpportunityNotificationSubscriptionResult = Apollo.SubscriptionResult<IOnCommonOpportunityNotificationSubscription>;
|
|
413
458
|
export const OnInviteCodeUsedDocument = gql`
|
|
414
459
|
subscription onInviteCodeUsed($authToken: String!) {
|
|
415
460
|
onInviteCodeUsed(authToken: $authToken) {
|
|
@@ -506,4 +551,38 @@ export function useOnMyExperienceUpdatedSubscription(baseOptions: Apollo.Subscri
|
|
|
506
551
|
return Apollo.useSubscription<IOnMyExperienceUpdatedSubscription, IOnMyExperienceUpdatedSubscriptionVariables>(OnMyExperienceUpdatedDocument, baseOptions);
|
|
507
552
|
}
|
|
508
553
|
export type OnMyExperienceUpdatedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceUpdatedSubscription>;
|
|
509
|
-
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|
|
554
|
+
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|
|
555
|
+
export const OnUserOpportunityNotificationDocument = gql`
|
|
556
|
+
subscription OnUserOpportunityNotification($authToken: String!) {
|
|
557
|
+
onUserOpportunityNotification(authToken: $authToken) {
|
|
558
|
+
opportunityId
|
|
559
|
+
name
|
|
560
|
+
description
|
|
561
|
+
notificationType
|
|
562
|
+
media
|
|
563
|
+
projectUrl
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
`;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* __useOnUserOpportunityNotificationSubscription__
|
|
570
|
+
*
|
|
571
|
+
* To run a query within a React component, call `useOnUserOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
572
|
+
* When your component renders, `useOnUserOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
573
|
+
* you can use to render your UI.
|
|
574
|
+
*
|
|
575
|
+
* @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;
|
|
576
|
+
*
|
|
577
|
+
* @example
|
|
578
|
+
* const { data, loading, error } = useOnUserOpportunityNotificationSubscription({
|
|
579
|
+
* variables: {
|
|
580
|
+
* authToken: // value for 'authToken'
|
|
581
|
+
* },
|
|
582
|
+
* });
|
|
583
|
+
*/
|
|
584
|
+
export function useOnUserOpportunityNotificationSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnUserOpportunityNotificationSubscription, IOnUserOpportunityNotificationSubscriptionVariables>) {
|
|
585
|
+
return Apollo.useSubscription<IOnUserOpportunityNotificationSubscription, IOnUserOpportunityNotificationSubscriptionVariables>(OnUserOpportunityNotificationDocument, baseOptions);
|
|
586
|
+
}
|
|
587
|
+
export type OnUserOpportunityNotificationSubscriptionHookResult = ReturnType<typeof useOnUserOpportunityNotificationSubscription>;
|
|
588
|
+
export type OnUserOpportunityNotificationSubscriptionResult = Apollo.SubscriptionResult<IOnUserOpportunityNotificationSubscription>;
|