@ludo.ninja/api 2.8.79 → 2.8.81
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 +34 -2
- package/build/graphql_tools/__generated__/adminHost/schema.js +31 -2
- package/build/graphql_tools/__generated__/notificationsHost/schema.d.ts +26 -7
- package/build/graphql_tools/__generated__/notificationsHost/schema.js +17 -3
- package/build/index.d.ts +12 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +43 -2
- package/src/graphql_tools/__generated__/notificationsHost/schema.ts +29 -9
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1382,6 +1382,11 @@ export type IUpdateTierMutationVariables = Exact<{
|
|
|
1382
1382
|
input: ITierInput;
|
|
1383
1383
|
}>;
|
|
1384
1384
|
export type IUpdateTierMutation = Pick<IMutation, 'updateTier'>;
|
|
1385
|
+
export type IUpdateTierArchivedStatusMutationVariables = Exact<{
|
|
1386
|
+
id: Scalars['ID'];
|
|
1387
|
+
isArchived: Scalars['Boolean'];
|
|
1388
|
+
}>;
|
|
1389
|
+
export type IUpdateTierArchivedStatusMutation = Pick<IMutation, 'updateTierArchivedStatus'>;
|
|
1385
1390
|
export type IChangeXpPointsMutationVariables = Exact<{
|
|
1386
1391
|
userId: Scalars['ID'];
|
|
1387
1392
|
pointsDiff: Scalars['Int'];
|
|
@@ -1519,7 +1524,7 @@ export type IFetchTiersQueryVariables = Exact<{
|
|
|
1519
1524
|
[key: string]: never;
|
|
1520
1525
|
}>;
|
|
1521
1526
|
export type IFetchTiersQuery = {
|
|
1522
|
-
fetchTiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>>;
|
|
1527
|
+
fetchTiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee' | 'archived'>>;
|
|
1523
1528
|
};
|
|
1524
1529
|
export type IFetchTiersPageQueryVariables = Exact<{
|
|
1525
1530
|
filter: ITiersFilterInput;
|
|
@@ -1528,7 +1533,7 @@ export type IFetchTiersPageQueryVariables = Exact<{
|
|
|
1528
1533
|
}>;
|
|
1529
1534
|
export type IFetchTiersPageQuery = {
|
|
1530
1535
|
fetchTiersPage: {
|
|
1531
|
-
tiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>>;
|
|
1536
|
+
tiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee' | 'archived'>>;
|
|
1532
1537
|
nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
|
|
1533
1538
|
};
|
|
1534
1539
|
};
|
|
@@ -1777,6 +1782,33 @@ export declare function useUpdateTierMutation(baseOptions?: Apollo.MutationHookO
|
|
|
1777
1782
|
export type UpdateTierMutationHookResult = ReturnType<typeof useUpdateTierMutation>;
|
|
1778
1783
|
export type UpdateTierMutationResult = Apollo.MutationResult<IUpdateTierMutation>;
|
|
1779
1784
|
export type UpdateTierMutationOptions = Apollo.BaseMutationOptions<IUpdateTierMutation, IUpdateTierMutationVariables>;
|
|
1785
|
+
export declare const UpdateTierArchivedStatusDocument: Apollo.DocumentNode;
|
|
1786
|
+
export type IUpdateTierArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateTierArchivedStatusMutation, IUpdateTierArchivedStatusMutationVariables>;
|
|
1787
|
+
/**
|
|
1788
|
+
* __useUpdateTierArchivedStatusMutation__
|
|
1789
|
+
*
|
|
1790
|
+
* To run a mutation, you first call `useUpdateTierArchivedStatusMutation` within a React component and pass it any options that fit your needs.
|
|
1791
|
+
* When your component renders, `useUpdateTierArchivedStatusMutation` returns a tuple that includes:
|
|
1792
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1793
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1794
|
+
*
|
|
1795
|
+
* @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;
|
|
1796
|
+
*
|
|
1797
|
+
* @example
|
|
1798
|
+
* const [updateTierArchivedStatusMutation, { data, loading, error }] = useUpdateTierArchivedStatusMutation({
|
|
1799
|
+
* variables: {
|
|
1800
|
+
* id: // value for 'id'
|
|
1801
|
+
* isArchived: // value for 'isArchived'
|
|
1802
|
+
* },
|
|
1803
|
+
* });
|
|
1804
|
+
*/
|
|
1805
|
+
export declare function useUpdateTierArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateTierArchivedStatusMutation, IUpdateTierArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateTierArchivedStatusMutation, Exact<{
|
|
1806
|
+
id: string;
|
|
1807
|
+
isArchived: boolean;
|
|
1808
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1809
|
+
export type UpdateTierArchivedStatusMutationHookResult = ReturnType<typeof useUpdateTierArchivedStatusMutation>;
|
|
1810
|
+
export type UpdateTierArchivedStatusMutationResult = Apollo.MutationResult<IUpdateTierArchivedStatusMutation>;
|
|
1811
|
+
export type UpdateTierArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateTierArchivedStatusMutation, IUpdateTierArchivedStatusMutationVariables>;
|
|
1780
1812
|
export declare const ChangeXpPointsDocument: Apollo.DocumentNode;
|
|
1781
1813
|
export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
|
|
1782
1814
|
/**
|
|
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = exports.useFetchAdminReferralsPageQuery = exports.FetchAdminReferralsPageDocument = exports.useFetchAdminOpportunitiesPageLazyQuery = exports.useFetchAdminOpportunitiesPageQuery = exports.FetchAdminOpportunitiesPageDocument = exports.useFetchAdminInvitesPageLazyQuery = exports.useFetchAdminInvitesPageQuery = exports.FetchAdminInvitesPageDocument = exports.useFetchAdminCategoriesPageLazyQuery = exports.useFetchAdminCategoriesPageQuery = exports.FetchAdminCategoriesPageDocument = exports.useFetchAdminCategoriesLazyQuery = exports.useFetchAdminCategoriesQuery = exports.FetchAdminCategoriesDocument = exports.useFetchAdminBrandsPageLazyQuery = exports.useFetchAdminBrandsPageQuery = exports.FetchAdminBrandsPageDocument = exports.useFetchAdminBrandsLazyQuery = exports.useFetchAdminBrandsQuery = exports.FetchAdminBrandsDocument = exports.useFetchUserFeedbackPageLazyQuery = exports.useFetchUserFeedbackPageQuery = exports.FetchUserFeedbackPageDocument = exports.useFetchTiersPageLazyQuery = exports.useFetchTiersPageQuery = exports.FetchTiersPageDocument = exports.useFetchTiersLazyQuery = exports.useFetchTiersQuery = exports.FetchTiersDocument = exports.useFetchRegistrationInvitePageLazyQuery = exports.useFetchRegistrationInvitePageQuery = exports.FetchRegistrationInvitePageDocument = exports.useFetchPartnershipInquiryPageLazyQuery = exports.useFetchPartnershipInquiryPageQuery = exports.FetchPartnershipInquiryPageDocument = void 0;
|
|
26
|
+
exports.FetchInvestorInquiryPageDocument = exports.useFetchFormOpportunityPageLazyQuery = exports.useFetchFormOpportunityPageQuery = exports.FetchFormOpportunityPageDocument = exports.useFetchContentReportPageLazyQuery = exports.useFetchContentReportPageQuery = exports.FetchContentReportPageDocument = exports.useFetchContactSupportPageLazyQuery = exports.useFetchContactSupportPageQuery = exports.FetchContactSupportPageDocument = exports.useCheckInviteCodeLazyQuery = exports.useCheckInviteCodeQuery = exports.CheckInviteCodeDocument = exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = exports.useUpdateOpportunityMutation = exports.UpdateOpportunityDocument = exports.useUpdateCategoryArchivedStatusMutation = exports.UpdateCategoryArchivedStatusDocument = exports.useUpdateCategoryMutation = exports.UpdateCategoryDocument = exports.useUpdateBrandArchivedStatusMutation = exports.UpdateBrandArchivedStatusDocument = exports.useUpdateBrandMutation = exports.UpdateBrandDocument = exports.useRemoveInviteCodeMutation = exports.RemoveInviteCodeDocument = exports.useAddInviteCodesMutation = exports.AddInviteCodesDocument = exports.useCreateAdminOpportunityMutation = exports.CreateAdminOpportunityDocument = exports.useCreateBrandMutation = exports.CreateBrandDocument = exports.useCreateCategoryMutation = exports.CreateCategoryDocument = exports.useChangeXpPointsMutation = exports.ChangeXpPointsDocument = exports.useUpdateTierArchivedStatusMutation = exports.UpdateTierArchivedStatusDocument = exports.useUpdateTierMutation = exports.UpdateTierDocument = exports.useUpdateOpportunityPushStatusMutation = exports.UpdateOpportunityPushStatusDocument = exports.useUpdateInviteCodeUsagesLimitMutation = exports.UpdateInviteCodeUsagesLimitDocument = exports.useTriggerOpportunityNotificationMutation = exports.TriggerOpportunityNotificationDocument = exports.useCreateTierMutation = exports.CreateTierDocument = exports.ISortDirection = void 0;
|
|
27
|
+
exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = exports.useFetchAdminReferralsPageQuery = exports.FetchAdminReferralsPageDocument = exports.useFetchAdminOpportunitiesPageLazyQuery = exports.useFetchAdminOpportunitiesPageQuery = exports.FetchAdminOpportunitiesPageDocument = exports.useFetchAdminInvitesPageLazyQuery = exports.useFetchAdminInvitesPageQuery = exports.FetchAdminInvitesPageDocument = exports.useFetchAdminCategoriesPageLazyQuery = exports.useFetchAdminCategoriesPageQuery = exports.FetchAdminCategoriesPageDocument = exports.useFetchAdminCategoriesLazyQuery = exports.useFetchAdminCategoriesQuery = exports.FetchAdminCategoriesDocument = exports.useFetchAdminBrandsPageLazyQuery = exports.useFetchAdminBrandsPageQuery = exports.FetchAdminBrandsPageDocument = exports.useFetchAdminBrandsLazyQuery = exports.useFetchAdminBrandsQuery = exports.FetchAdminBrandsDocument = exports.useFetchUserFeedbackPageLazyQuery = exports.useFetchUserFeedbackPageQuery = exports.FetchUserFeedbackPageDocument = exports.useFetchTiersPageLazyQuery = exports.useFetchTiersPageQuery = exports.FetchTiersPageDocument = exports.useFetchTiersLazyQuery = exports.useFetchTiersQuery = exports.FetchTiersDocument = exports.useFetchRegistrationInvitePageLazyQuery = exports.useFetchRegistrationInvitePageQuery = exports.FetchRegistrationInvitePageDocument = exports.useFetchPartnershipInquiryPageLazyQuery = exports.useFetchPartnershipInquiryPageQuery = exports.FetchPartnershipInquiryPageDocument = exports.useFetchInvestorInquiryPageLazyQuery = exports.useFetchInvestorInquiryPageQuery = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
/** front-end asked for lower case values */
|
|
@@ -166,6 +166,33 @@ function useUpdateTierMutation(baseOptions) {
|
|
|
166
166
|
return Apollo.useMutation(exports.UpdateTierDocument, baseOptions);
|
|
167
167
|
}
|
|
168
168
|
exports.useUpdateTierMutation = useUpdateTierMutation;
|
|
169
|
+
exports.UpdateTierArchivedStatusDocument = (0, client_1.gql) `
|
|
170
|
+
mutation UpdateTierArchivedStatus($id: ID!, $isArchived: Boolean!) {
|
|
171
|
+
updateTierArchivedStatus(id: $id, isArchived: $isArchived)
|
|
172
|
+
}
|
|
173
|
+
`;
|
|
174
|
+
/**
|
|
175
|
+
* __useUpdateTierArchivedStatusMutation__
|
|
176
|
+
*
|
|
177
|
+
* To run a mutation, you first call `useUpdateTierArchivedStatusMutation` within a React component and pass it any options that fit your needs.
|
|
178
|
+
* When your component renders, `useUpdateTierArchivedStatusMutation` returns a tuple that includes:
|
|
179
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
180
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
181
|
+
*
|
|
182
|
+
* @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;
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* const [updateTierArchivedStatusMutation, { data, loading, error }] = useUpdateTierArchivedStatusMutation({
|
|
186
|
+
* variables: {
|
|
187
|
+
* id: // value for 'id'
|
|
188
|
+
* isArchived: // value for 'isArchived'
|
|
189
|
+
* },
|
|
190
|
+
* });
|
|
191
|
+
*/
|
|
192
|
+
function useUpdateTierArchivedStatusMutation(baseOptions) {
|
|
193
|
+
return Apollo.useMutation(exports.UpdateTierArchivedStatusDocument, baseOptions);
|
|
194
|
+
}
|
|
195
|
+
exports.useUpdateTierArchivedStatusMutation = useUpdateTierArchivedStatusMutation;
|
|
169
196
|
exports.ChangeXpPointsDocument = (0, client_1.gql) `
|
|
170
197
|
mutation ChangeXpPoints($userId: ID!, $pointsDiff: Int!) {
|
|
171
198
|
changeXpPoints(userId: $userId, pointsDiff: $pointsDiff)
|
|
@@ -826,6 +853,7 @@ exports.FetchTiersDocument = (0, client_1.gql) `
|
|
|
826
853
|
name
|
|
827
854
|
description
|
|
828
855
|
fee
|
|
856
|
+
archived
|
|
829
857
|
}
|
|
830
858
|
}
|
|
831
859
|
`;
|
|
@@ -860,6 +888,7 @@ exports.FetchTiersPageDocument = (0, client_1.gql) `
|
|
|
860
888
|
name
|
|
861
889
|
description
|
|
862
890
|
fee
|
|
891
|
+
archived
|
|
863
892
|
}
|
|
864
893
|
nextPage {
|
|
865
894
|
elements
|
|
@@ -25,17 +25,29 @@ export type Scalars = {
|
|
|
25
25
|
/** A 64-bit signed integer */
|
|
26
26
|
Long: any;
|
|
27
27
|
};
|
|
28
|
+
export declare enum IEventType {
|
|
29
|
+
CommonOpportunity = "COMMON_OPPORTUNITY",
|
|
30
|
+
UserInvitee = "USER_INVITEE",
|
|
31
|
+
UserOpportunity = "USER_OPPORTUNITY",
|
|
32
|
+
UserXpIncrement = "USER_XP_INCREMENT",
|
|
33
|
+
UserXps = "USER_XPS"
|
|
34
|
+
}
|
|
28
35
|
export type IMutation = {
|
|
29
36
|
setDummy: Scalars['String'];
|
|
30
37
|
};
|
|
31
38
|
export type INotification = {
|
|
32
|
-
notificationType
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
notificationType: INotificationType;
|
|
40
|
+
eventType: IEventType;
|
|
41
|
+
createdAt: Scalars['Long'];
|
|
42
|
+
name: Scalars['String'];
|
|
35
43
|
description?: Maybe<Scalars['String']>;
|
|
36
44
|
media?: Maybe<Scalars['String']>;
|
|
37
45
|
link?: Maybe<Scalars['String']>;
|
|
38
46
|
};
|
|
47
|
+
export declare enum INotificationType {
|
|
48
|
+
RedDot = "RED_DOT",
|
|
49
|
+
Push = "PUSH"
|
|
50
|
+
}
|
|
39
51
|
export type IQuery = {
|
|
40
52
|
getDummy: Scalars['String'];
|
|
41
53
|
};
|
|
@@ -45,6 +57,7 @@ export type ISubscription = {
|
|
|
45
57
|
};
|
|
46
58
|
export type ISubscriptionOnNotificationArgs = {
|
|
47
59
|
authToken: Scalars['String'];
|
|
60
|
+
notificationTypes: Array<INotificationType>;
|
|
48
61
|
};
|
|
49
62
|
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
50
63
|
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
@@ -74,10 +87,12 @@ export type NextResolverFn<T> = () => Promise<T>;
|
|
|
74
87
|
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
75
88
|
/** Mapping between all available schema types and the resolvers types */
|
|
76
89
|
export type IResolversTypes = {
|
|
90
|
+
EventType: IEventType;
|
|
77
91
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
78
92
|
Mutation: ResolverTypeWrapper<{}>;
|
|
79
93
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
80
94
|
Notification: ResolverTypeWrapper<INotification>;
|
|
95
|
+
NotificationType: INotificationType;
|
|
81
96
|
Query: ResolverTypeWrapper<{}>;
|
|
82
97
|
Subscription: ResolverTypeWrapper<{}>;
|
|
83
98
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
@@ -101,9 +116,10 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
101
116
|
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
102
117
|
};
|
|
103
118
|
export type INotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Notification'] = IResolversParentTypes['Notification']> = {
|
|
104
|
-
notificationType?: Resolver<
|
|
105
|
-
|
|
106
|
-
|
|
119
|
+
notificationType?: Resolver<IResolversTypes['NotificationType'], ParentType, ContextType>;
|
|
120
|
+
eventType?: Resolver<IResolversTypes['EventType'], ParentType, ContextType>;
|
|
121
|
+
createdAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
122
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
107
123
|
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
108
124
|
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
109
125
|
link?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -114,7 +130,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
114
130
|
};
|
|
115
131
|
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
116
132
|
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
117
|
-
onNotification?: SubscriptionResolver<IResolversTypes['Notification'], "onNotification", ParentType, ContextType, RequireFields<ISubscriptionOnNotificationArgs, 'authToken'>>;
|
|
133
|
+
onNotification?: SubscriptionResolver<IResolversTypes['Notification'], "onNotification", ParentType, ContextType, RequireFields<ISubscriptionOnNotificationArgs, 'authToken' | 'notificationTypes'>>;
|
|
118
134
|
};
|
|
119
135
|
export type IResolvers<ContextType = any> = {
|
|
120
136
|
Long?: GraphQLScalarType;
|
|
@@ -128,6 +144,7 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
128
144
|
};
|
|
129
145
|
export type IOnNotificationSubscriptionVariables = Exact<{
|
|
130
146
|
authToken: Scalars['String'];
|
|
147
|
+
notificationTypes: Array<INotificationType>;
|
|
131
148
|
}>;
|
|
132
149
|
export type IOnNotificationSubscription = {
|
|
133
150
|
onNotification: Pick<INotification, 'notificationType' | 'createdAt' | 'name' | 'description' | 'media' | 'link'>;
|
|
@@ -146,6 +163,7 @@ export declare const OnNotificationDocument: Apollo.DocumentNode;
|
|
|
146
163
|
* const { data, loading, error } = useOnNotificationSubscription({
|
|
147
164
|
* variables: {
|
|
148
165
|
* authToken: // value for 'authToken'
|
|
166
|
+
* notificationTypes: // value for 'notificationTypes'
|
|
149
167
|
* },
|
|
150
168
|
* });
|
|
151
169
|
*/
|
|
@@ -156,6 +174,7 @@ export declare function useOnNotificationSubscription(baseOptions: Apollo.Subscr
|
|
|
156
174
|
error?: Apollo.ApolloError | undefined;
|
|
157
175
|
variables?: Exact<{
|
|
158
176
|
authToken: string;
|
|
177
|
+
notificationTypes: INotificationType[];
|
|
159
178
|
}> | undefined;
|
|
160
179
|
};
|
|
161
180
|
export type OnNotificationSubscriptionHookResult = ReturnType<typeof useOnNotificationSubscription>;
|
|
@@ -23,12 +23,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.useOnNotificationSubscription = exports.OnNotificationDocument = void 0;
|
|
26
|
+
exports.useOnNotificationSubscription = exports.OnNotificationDocument = exports.INotificationType = exports.IEventType = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
|
+
var IEventType;
|
|
30
|
+
(function (IEventType) {
|
|
31
|
+
IEventType["CommonOpportunity"] = "COMMON_OPPORTUNITY";
|
|
32
|
+
IEventType["UserInvitee"] = "USER_INVITEE";
|
|
33
|
+
IEventType["UserOpportunity"] = "USER_OPPORTUNITY";
|
|
34
|
+
IEventType["UserXpIncrement"] = "USER_XP_INCREMENT";
|
|
35
|
+
IEventType["UserXps"] = "USER_XPS";
|
|
36
|
+
})(IEventType || (exports.IEventType = IEventType = {}));
|
|
37
|
+
var INotificationType;
|
|
38
|
+
(function (INotificationType) {
|
|
39
|
+
INotificationType["RedDot"] = "RED_DOT";
|
|
40
|
+
INotificationType["Push"] = "PUSH";
|
|
41
|
+
})(INotificationType || (exports.INotificationType = INotificationType = {}));
|
|
29
42
|
exports.OnNotificationDocument = (0, client_1.gql) `
|
|
30
|
-
subscription OnNotification($authToken: String!) {
|
|
31
|
-
onNotification(authToken: $authToken) {
|
|
43
|
+
subscription OnNotification($authToken: String!, $notificationTypes: [NotificationType!]!) {
|
|
44
|
+
onNotification(authToken: $authToken, notificationTypes: $notificationTypes) {
|
|
32
45
|
notificationType
|
|
33
46
|
createdAt
|
|
34
47
|
name
|
|
@@ -51,6 +64,7 @@ exports.OnNotificationDocument = (0, client_1.gql) `
|
|
|
51
64
|
* const { data, loading, error } = useOnNotificationSubscription({
|
|
52
65
|
* variables: {
|
|
53
66
|
* authToken: // value for 'authToken'
|
|
67
|
+
* notificationTypes: // value for 'notificationTypes'
|
|
54
68
|
* },
|
|
55
69
|
* });
|
|
56
70
|
*/
|
package/build/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import * as notificationsSchema from "./graphql_tools/__generated__/notification
|
|
|
19
19
|
declare const schema: {
|
|
20
20
|
useOnNotificationSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<notificationsSchema.IOnNotificationSubscription, notificationsSchema.Exact<{
|
|
21
21
|
authToken: string;
|
|
22
|
+
notificationTypes: notificationsSchema.INotificationType[];
|
|
22
23
|
}>>): {
|
|
23
24
|
restart(): void;
|
|
24
25
|
loading: boolean;
|
|
@@ -26,8 +27,11 @@ declare const schema: {
|
|
|
26
27
|
error?: import("@apollo/client").ApolloError | undefined;
|
|
27
28
|
variables?: notificationsSchema.Exact<{
|
|
28
29
|
authToken: string;
|
|
30
|
+
notificationTypes: notificationsSchema.INotificationType[];
|
|
29
31
|
}> | undefined;
|
|
30
32
|
};
|
|
33
|
+
IEventType: typeof notificationsSchema.IEventType;
|
|
34
|
+
INotificationType: typeof notificationsSchema.INotificationType;
|
|
31
35
|
OnNotificationDocument: import("graphql").DocumentNode;
|
|
32
36
|
useClaimFarmingRewardMutation(baseOptions?: import("@apollo/client").MutationHookOptions<tapsSchema.IClaimFarmingRewardMutation, tapsSchema.Exact<{
|
|
33
37
|
[key: string]: never;
|
|
@@ -1249,6 +1253,13 @@ declare const schema: {
|
|
|
1249
1253
|
id: string;
|
|
1250
1254
|
input: adminSchema.ITierInput;
|
|
1251
1255
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1256
|
+
useUpdateTierArchivedStatusMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateTierArchivedStatusMutation, adminSchema.Exact<{
|
|
1257
|
+
id: string;
|
|
1258
|
+
isArchived: boolean;
|
|
1259
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IUpdateTierArchivedStatusMutation, adminSchema.Exact<{
|
|
1260
|
+
id: string;
|
|
1261
|
+
isArchived: boolean;
|
|
1262
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1252
1263
|
useChangeXpPointsMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IChangeXpPointsMutation, adminSchema.Exact<{
|
|
1253
1264
|
userId: string;
|
|
1254
1265
|
pointsDiff: number;
|
|
@@ -1661,6 +1672,7 @@ declare const schema: {
|
|
|
1661
1672
|
UpdateInviteCodeUsagesLimitDocument: import("graphql").DocumentNode;
|
|
1662
1673
|
UpdateOpportunityPushStatusDocument: import("graphql").DocumentNode;
|
|
1663
1674
|
UpdateTierDocument: import("graphql").DocumentNode;
|
|
1675
|
+
UpdateTierArchivedStatusDocument: import("graphql").DocumentNode;
|
|
1664
1676
|
ChangeXpPointsDocument: import("graphql").DocumentNode;
|
|
1665
1677
|
CreateCategoryDocument: import("graphql").DocumentNode;
|
|
1666
1678
|
CreateBrandDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -1631,6 +1631,14 @@ export type IUpdateTierMutationVariables = Exact<{
|
|
|
1631
1631
|
|
|
1632
1632
|
export type IUpdateTierMutation = Pick<IMutation, 'updateTier'>;
|
|
1633
1633
|
|
|
1634
|
+
export type IUpdateTierArchivedStatusMutationVariables = Exact<{
|
|
1635
|
+
id: Scalars['ID'];
|
|
1636
|
+
isArchived: Scalars['Boolean'];
|
|
1637
|
+
}>;
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
export type IUpdateTierArchivedStatusMutation = Pick<IMutation, 'updateTierArchivedStatus'>;
|
|
1641
|
+
|
|
1634
1642
|
export type IChangeXpPointsMutationVariables = Exact<{
|
|
1635
1643
|
userId: Scalars['ID'];
|
|
1636
1644
|
pointsDiff: Scalars['Int'];
|
|
@@ -1792,7 +1800,7 @@ export type IFetchRegistrationInvitePageQuery = { fetchRegistrationInvitePage: {
|
|
|
1792
1800
|
export type IFetchTiersQueryVariables = Exact<{ [key: string]: never; }>;
|
|
1793
1801
|
|
|
1794
1802
|
|
|
1795
|
-
export type IFetchTiersQuery = { fetchTiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>> };
|
|
1803
|
+
export type IFetchTiersQuery = { fetchTiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee' | 'archived'>> };
|
|
1796
1804
|
|
|
1797
1805
|
export type IFetchTiersPageQueryVariables = Exact<{
|
|
1798
1806
|
filter: ITiersFilterInput;
|
|
@@ -1801,7 +1809,7 @@ export type IFetchTiersPageQueryVariables = Exact<{
|
|
|
1801
1809
|
}>;
|
|
1802
1810
|
|
|
1803
1811
|
|
|
1804
|
-
export type IFetchTiersPageQuery = { fetchTiersPage: { tiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
1812
|
+
export type IFetchTiersPageQuery = { fetchTiersPage: { tiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee' | 'archived'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
1805
1813
|
|
|
1806
1814
|
export type IFetchUserFeedbackPageQueryVariables = Exact<{
|
|
1807
1815
|
filter: IUserFeedbackFilterInput;
|
|
@@ -2056,6 +2064,37 @@ export function useUpdateTierMutation(baseOptions?: Apollo.MutationHookOptions<I
|
|
|
2056
2064
|
export type UpdateTierMutationHookResult = ReturnType<typeof useUpdateTierMutation>;
|
|
2057
2065
|
export type UpdateTierMutationResult = Apollo.MutationResult<IUpdateTierMutation>;
|
|
2058
2066
|
export type UpdateTierMutationOptions = Apollo.BaseMutationOptions<IUpdateTierMutation, IUpdateTierMutationVariables>;
|
|
2067
|
+
export const UpdateTierArchivedStatusDocument = gql`
|
|
2068
|
+
mutation UpdateTierArchivedStatus($id: ID!, $isArchived: Boolean!) {
|
|
2069
|
+
updateTierArchivedStatus(id: $id, isArchived: $isArchived)
|
|
2070
|
+
}
|
|
2071
|
+
`;
|
|
2072
|
+
export type IUpdateTierArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateTierArchivedStatusMutation, IUpdateTierArchivedStatusMutationVariables>;
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* __useUpdateTierArchivedStatusMutation__
|
|
2076
|
+
*
|
|
2077
|
+
* To run a mutation, you first call `useUpdateTierArchivedStatusMutation` within a React component and pass it any options that fit your needs.
|
|
2078
|
+
* When your component renders, `useUpdateTierArchivedStatusMutation` returns a tuple that includes:
|
|
2079
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
2080
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
2081
|
+
*
|
|
2082
|
+
* @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;
|
|
2083
|
+
*
|
|
2084
|
+
* @example
|
|
2085
|
+
* const [updateTierArchivedStatusMutation, { data, loading, error }] = useUpdateTierArchivedStatusMutation({
|
|
2086
|
+
* variables: {
|
|
2087
|
+
* id: // value for 'id'
|
|
2088
|
+
* isArchived: // value for 'isArchived'
|
|
2089
|
+
* },
|
|
2090
|
+
* });
|
|
2091
|
+
*/
|
|
2092
|
+
export function useUpdateTierArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateTierArchivedStatusMutation, IUpdateTierArchivedStatusMutationVariables>) {
|
|
2093
|
+
return Apollo.useMutation<IUpdateTierArchivedStatusMutation, IUpdateTierArchivedStatusMutationVariables>(UpdateTierArchivedStatusDocument, baseOptions);
|
|
2094
|
+
}
|
|
2095
|
+
export type UpdateTierArchivedStatusMutationHookResult = ReturnType<typeof useUpdateTierArchivedStatusMutation>;
|
|
2096
|
+
export type UpdateTierArchivedStatusMutationResult = Apollo.MutationResult<IUpdateTierArchivedStatusMutation>;
|
|
2097
|
+
export type UpdateTierArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateTierArchivedStatusMutation, IUpdateTierArchivedStatusMutationVariables>;
|
|
2059
2098
|
export const ChangeXpPointsDocument = gql`
|
|
2060
2099
|
mutation ChangeXpPoints($userId: ID!, $pointsDiff: Int!) {
|
|
2061
2100
|
changeXpPoints(userId: $userId, pointsDiff: $pointsDiff)
|
|
@@ -2778,6 +2817,7 @@ export const FetchTiersDocument = gql`
|
|
|
2778
2817
|
name
|
|
2779
2818
|
description
|
|
2780
2819
|
fee
|
|
2820
|
+
archived
|
|
2781
2821
|
}
|
|
2782
2822
|
}
|
|
2783
2823
|
`;
|
|
@@ -2814,6 +2854,7 @@ export const FetchTiersPageDocument = gql`
|
|
|
2814
2854
|
name
|
|
2815
2855
|
description
|
|
2816
2856
|
fee
|
|
2857
|
+
archived
|
|
2817
2858
|
}
|
|
2818
2859
|
nextPage {
|
|
2819
2860
|
elements
|
|
@@ -19,20 +19,34 @@ export type Scalars = {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
export enum IEventType {
|
|
23
|
+
CommonOpportunity = 'COMMON_OPPORTUNITY',
|
|
24
|
+
UserInvitee = 'USER_INVITEE',
|
|
25
|
+
UserOpportunity = 'USER_OPPORTUNITY',
|
|
26
|
+
UserXpIncrement = 'USER_XP_INCREMENT',
|
|
27
|
+
UserXps = 'USER_XPS'
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
|
|
23
31
|
export type IMutation = {
|
|
24
32
|
setDummy: Scalars['String'];
|
|
25
33
|
};
|
|
26
34
|
|
|
27
35
|
export type INotification = {
|
|
28
|
-
notificationType
|
|
29
|
-
|
|
30
|
-
|
|
36
|
+
notificationType: INotificationType;
|
|
37
|
+
eventType: IEventType;
|
|
38
|
+
createdAt: Scalars['Long'];
|
|
39
|
+
name: Scalars['String'];
|
|
31
40
|
description?: Maybe<Scalars['String']>;
|
|
32
41
|
media?: Maybe<Scalars['String']>;
|
|
33
42
|
link?: Maybe<Scalars['String']>;
|
|
34
43
|
};
|
|
35
44
|
|
|
45
|
+
export enum INotificationType {
|
|
46
|
+
RedDot = 'RED_DOT',
|
|
47
|
+
Push = 'PUSH'
|
|
48
|
+
}
|
|
49
|
+
|
|
36
50
|
export type IQuery = {
|
|
37
51
|
getDummy: Scalars['String'];
|
|
38
52
|
};
|
|
@@ -45,6 +59,7 @@ export type ISubscription = {
|
|
|
45
59
|
|
|
46
60
|
export type ISubscriptionOnNotificationArgs = {
|
|
47
61
|
authToken: Scalars['String'];
|
|
62
|
+
notificationTypes: Array<INotificationType>;
|
|
48
63
|
};
|
|
49
64
|
|
|
50
65
|
|
|
@@ -116,10 +131,12 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
|
|
|
116
131
|
|
|
117
132
|
/** Mapping between all available schema types and the resolvers types */
|
|
118
133
|
export type IResolversTypes = {
|
|
134
|
+
EventType: IEventType;
|
|
119
135
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
120
136
|
Mutation: ResolverTypeWrapper<{}>;
|
|
121
137
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
122
138
|
Notification: ResolverTypeWrapper<INotification>;
|
|
139
|
+
NotificationType: INotificationType;
|
|
123
140
|
Query: ResolverTypeWrapper<{}>;
|
|
124
141
|
Subscription: ResolverTypeWrapper<{}>;
|
|
125
142
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
@@ -149,9 +166,10 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
149
166
|
};
|
|
150
167
|
|
|
151
168
|
export type INotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Notification'] = IResolversParentTypes['Notification']> = {
|
|
152
|
-
notificationType?: Resolver<
|
|
153
|
-
|
|
154
|
-
|
|
169
|
+
notificationType?: Resolver<IResolversTypes['NotificationType'], ParentType, ContextType>;
|
|
170
|
+
eventType?: Resolver<IResolversTypes['EventType'], ParentType, ContextType>;
|
|
171
|
+
createdAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
172
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
155
173
|
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
156
174
|
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
157
175
|
link?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -164,7 +182,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
164
182
|
|
|
165
183
|
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
166
184
|
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
167
|
-
onNotification?: SubscriptionResolver<IResolversTypes['Notification'], "onNotification", ParentType, ContextType, RequireFields<ISubscriptionOnNotificationArgs, 'authToken'>>;
|
|
185
|
+
onNotification?: SubscriptionResolver<IResolversTypes['Notification'], "onNotification", ParentType, ContextType, RequireFields<ISubscriptionOnNotificationArgs, 'authToken' | 'notificationTypes'>>;
|
|
168
186
|
};
|
|
169
187
|
|
|
170
188
|
export type IResolvers<ContextType = any> = {
|
|
@@ -181,6 +199,7 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
181
199
|
|
|
182
200
|
export type IOnNotificationSubscriptionVariables = Exact<{
|
|
183
201
|
authToken: Scalars['String'];
|
|
202
|
+
notificationTypes: Array<INotificationType>;
|
|
184
203
|
}>;
|
|
185
204
|
|
|
186
205
|
|
|
@@ -188,8 +207,8 @@ export type IOnNotificationSubscription = { onNotification: Pick<INotification,
|
|
|
188
207
|
|
|
189
208
|
|
|
190
209
|
export const OnNotificationDocument = gql`
|
|
191
|
-
subscription OnNotification($authToken: String!) {
|
|
192
|
-
onNotification(authToken: $authToken) {
|
|
210
|
+
subscription OnNotification($authToken: String!, $notificationTypes: [NotificationType!]!) {
|
|
211
|
+
onNotification(authToken: $authToken, notificationTypes: $notificationTypes) {
|
|
193
212
|
notificationType
|
|
194
213
|
createdAt
|
|
195
214
|
name
|
|
@@ -213,6 +232,7 @@ export const OnNotificationDocument = gql`
|
|
|
213
232
|
* const { data, loading, error } = useOnNotificationSubscription({
|
|
214
233
|
* variables: {
|
|
215
234
|
* authToken: // value for 'authToken'
|
|
235
|
+
* notificationTypes: // value for 'notificationTypes'
|
|
216
236
|
* },
|
|
217
237
|
* });
|
|
218
238
|
*/
|