@ludo.ninja/api 2.8.58 → 2.8.60
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/config/index.js +43 -83
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +53 -0
- package/build/graphql_tools/__generated__/adminHost/schema.js +36 -2
- package/build/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/config/index.ts +71 -125
- package/src/graphql_tools/__generated__/adminHost/schema.ts +68 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -262,6 +262,13 @@ export type ICategoryInput = {
|
|
|
262
262
|
matchingWords: Array<Scalars['String']>;
|
|
263
263
|
};
|
|
264
264
|
|
|
265
|
+
export type ICheckInviteCodeData = {
|
|
266
|
+
code: Scalars['String'];
|
|
267
|
+
isUsed: Scalars['Boolean'];
|
|
268
|
+
usedTimes: Scalars['Int'];
|
|
269
|
+
maxUsagesLimit: Scalars['Int'];
|
|
270
|
+
};
|
|
271
|
+
|
|
265
272
|
export type IContactSupportFilterInput = {
|
|
266
273
|
idTerm?: Maybe<Scalars['String']>;
|
|
267
274
|
userIdTerm?: Maybe<Scalars['String']>;
|
|
@@ -556,6 +563,7 @@ export type IQuery = {
|
|
|
556
563
|
fetchUserFeedbackPage: IUserFeedbackPage;
|
|
557
564
|
fetchRegistrationInvitePage: IRegistrationInvitePage;
|
|
558
565
|
fetchAdminInvitesPage: IInvitesPage;
|
|
566
|
+
checkInviteCode: ICheckInviteCodeData;
|
|
559
567
|
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
560
568
|
fetchAdminCategories: Array<IAdminCategory>;
|
|
561
569
|
fetchAdminCategoriesPage: ICategoriesPage;
|
|
@@ -624,6 +632,11 @@ export type IQueryFetchAdminInvitesPageArgs = {
|
|
|
624
632
|
};
|
|
625
633
|
|
|
626
634
|
|
|
635
|
+
export type IQueryCheckInviteCodeArgs = {
|
|
636
|
+
code: Scalars['String'];
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
|
|
627
640
|
export type IQueryFetchAdminOpportunitiesPageArgs = {
|
|
628
641
|
filter: IOpportunitiesFilterInput;
|
|
629
642
|
sort: IOpportunitiesSortInput;
|
|
@@ -919,6 +932,7 @@ export type IResolversTypes = {
|
|
|
919
932
|
CategoriesPage: ResolverTypeWrapper<ICategoriesPage>;
|
|
920
933
|
CategoriesSortInput: ICategoriesSortInput;
|
|
921
934
|
CategoryInput: ICategoryInput;
|
|
935
|
+
CheckInviteCodeData: ResolverTypeWrapper<ICheckInviteCodeData>;
|
|
922
936
|
ContactSupportFilterInput: IContactSupportFilterInput;
|
|
923
937
|
ContactSupportPage: ResolverTypeWrapper<IContactSupportPage>;
|
|
924
938
|
ContactSupportSortInput: IContactSupportSortInput;
|
|
@@ -998,6 +1012,7 @@ export type IResolversParentTypes = {
|
|
|
998
1012
|
CategoriesPage: ICategoriesPage;
|
|
999
1013
|
CategoriesSortInput: ICategoriesSortInput;
|
|
1000
1014
|
CategoryInput: ICategoryInput;
|
|
1015
|
+
CheckInviteCodeData: ICheckInviteCodeData;
|
|
1001
1016
|
ContactSupportFilterInput: IContactSupportFilterInput;
|
|
1002
1017
|
ContactSupportPage: IContactSupportPage;
|
|
1003
1018
|
ContactSupportSortInput: IContactSupportSortInput;
|
|
@@ -1251,6 +1266,14 @@ export type ICategoriesPageResolvers<ContextType = any, ParentType extends IReso
|
|
|
1251
1266
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1252
1267
|
};
|
|
1253
1268
|
|
|
1269
|
+
export type ICheckInviteCodeDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['CheckInviteCodeData'] = IResolversParentTypes['CheckInviteCodeData']> = {
|
|
1270
|
+
code?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1271
|
+
isUsed?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
1272
|
+
usedTimes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
1273
|
+
maxUsagesLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
1274
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1254
1277
|
export type IContactSupportPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['ContactSupportPage'] = IResolversParentTypes['ContactSupportPage']> = {
|
|
1255
1278
|
contactSupports?: Resolver<Array<IResolversTypes['AdminContactSupport']>, ParentType, ContextType>;
|
|
1256
1279
|
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
@@ -1326,6 +1349,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1326
1349
|
fetchUserFeedbackPage?: Resolver<IResolversTypes['UserFeedbackPage'], ParentType, ContextType, RequireFields<IQueryFetchUserFeedbackPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1327
1350
|
fetchRegistrationInvitePage?: Resolver<IResolversTypes['RegistrationInvitePage'], ParentType, ContextType, RequireFields<IQueryFetchRegistrationInvitePageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1328
1351
|
fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1352
|
+
checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
|
|
1329
1353
|
fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1330
1354
|
fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
|
|
1331
1355
|
fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1424,6 +1448,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1424
1448
|
AdminXp?: IAdminXpResolvers<ContextType>;
|
|
1425
1449
|
BrandsPage?: IBrandsPageResolvers<ContextType>;
|
|
1426
1450
|
CategoriesPage?: ICategoriesPageResolvers<ContextType>;
|
|
1451
|
+
CheckInviteCodeData?: ICheckInviteCodeDataResolvers<ContextType>;
|
|
1427
1452
|
ContactSupportPage?: IContactSupportPageResolvers<ContextType>;
|
|
1428
1453
|
ContentReportPage?: IContentReportPageResolvers<ContextType>;
|
|
1429
1454
|
FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
|
|
@@ -1523,6 +1548,13 @@ export type IUpdateProfileStatusMutationVariables = Exact<{
|
|
|
1523
1548
|
|
|
1524
1549
|
export type IUpdateProfileStatusMutation = Pick<IMutation, 'updateProfileStatus'>;
|
|
1525
1550
|
|
|
1551
|
+
export type ICheckInviteCodeQueryVariables = Exact<{
|
|
1552
|
+
code: Scalars['String'];
|
|
1553
|
+
}>;
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
export type ICheckInviteCodeQuery = { checkInviteCode: Pick<ICheckInviteCodeData, 'code' | 'isUsed' | 'usedTimes' | 'maxUsagesLimit'> };
|
|
1557
|
+
|
|
1526
1558
|
export type IFetchContactSupportPageQueryVariables = Exact<{
|
|
1527
1559
|
filter: IContactSupportFilterInput;
|
|
1528
1560
|
sort: IContactSupportSortInput;
|
|
@@ -1955,6 +1987,42 @@ export function useUpdateProfileStatusMutation(baseOptions?: Apollo.MutationHook
|
|
|
1955
1987
|
export type UpdateProfileStatusMutationHookResult = ReturnType<typeof useUpdateProfileStatusMutation>;
|
|
1956
1988
|
export type UpdateProfileStatusMutationResult = Apollo.MutationResult<IUpdateProfileStatusMutation>;
|
|
1957
1989
|
export type UpdateProfileStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
|
|
1990
|
+
export const CheckInviteCodeDocument = gql`
|
|
1991
|
+
query CheckInviteCode($code: String!) {
|
|
1992
|
+
checkInviteCode(code: $code) {
|
|
1993
|
+
code
|
|
1994
|
+
isUsed
|
|
1995
|
+
usedTimes
|
|
1996
|
+
maxUsagesLimit
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
`;
|
|
2000
|
+
|
|
2001
|
+
/**
|
|
2002
|
+
* __useCheckInviteCodeQuery__
|
|
2003
|
+
*
|
|
2004
|
+
* To run a query within a React component, call `useCheckInviteCodeQuery` and pass it any options that fit your needs.
|
|
2005
|
+
* When your component renders, `useCheckInviteCodeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2006
|
+
* you can use to render your UI.
|
|
2007
|
+
*
|
|
2008
|
+
* @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;
|
|
2009
|
+
*
|
|
2010
|
+
* @example
|
|
2011
|
+
* const { data, loading, error } = useCheckInviteCodeQuery({
|
|
2012
|
+
* variables: {
|
|
2013
|
+
* code: // value for 'code'
|
|
2014
|
+
* },
|
|
2015
|
+
* });
|
|
2016
|
+
*/
|
|
2017
|
+
export function useCheckInviteCodeQuery(baseOptions: Apollo.QueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>) {
|
|
2018
|
+
return Apollo.useQuery<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>(CheckInviteCodeDocument, baseOptions);
|
|
2019
|
+
}
|
|
2020
|
+
export function useCheckInviteCodeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>) {
|
|
2021
|
+
return Apollo.useLazyQuery<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>(CheckInviteCodeDocument, baseOptions);
|
|
2022
|
+
}
|
|
2023
|
+
export type CheckInviteCodeQueryHookResult = ReturnType<typeof useCheckInviteCodeQuery>;
|
|
2024
|
+
export type CheckInviteCodeLazyQueryHookResult = ReturnType<typeof useCheckInviteCodeLazyQuery>;
|
|
2025
|
+
export type CheckInviteCodeQueryResult = Apollo.QueryResult<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>;
|
|
1958
2026
|
export const FetchContactSupportPageDocument = gql`
|
|
1959
2027
|
query FetchContactSupportPage($filter: ContactSupportFilterInput!, $sort: ContactSupportSortInput!, $page: AdminPageInput!) {
|
|
1960
2028
|
fetchContactSupportPage(filter: $filter, sort: $sort, page: $page) {
|