@ludo.ninja/api 2.8.54 → 2.8.55

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.
@@ -480,6 +480,7 @@ export type IQuery = {
480
480
  fetchInvestorInquiryPage: IInvestorInquiryPage;
481
481
  fetchFormOpportunityPage: IFormOpportunityPage;
482
482
  fetchPartnershipInquiryPage: IPartnershipInquiryPage;
483
+ fetchUserFeedbackPage: IUserFeedbackPage;
483
484
  fetchAdminInvitesPage: IInvitesPage;
484
485
  fetchAdminOpportunitiesPage: IOpportunitiesPage;
485
486
  fetchAdminCategories: Array<IAdminCategory>;
@@ -516,6 +517,11 @@ export type IQueryFetchPartnershipInquiryPageArgs = {
516
517
  sort: IPartnershipInquirySortInput;
517
518
  page: IAdminPageInput;
518
519
  };
520
+ export type IQueryFetchUserFeedbackPageArgs = {
521
+ filter: IUserFeedbackFilterInput;
522
+ sort: IUserFeedbackSortInput;
523
+ page: IAdminPageInput;
524
+ };
519
525
  export type IQueryFetchAdminInvitesPageArgs = {
520
526
  filter: IInvitesFilterInput;
521
527
  sort: IInvitesSortInput;
@@ -581,6 +587,34 @@ export declare enum ISortDirection {
581
587
  Asc = "asc",
582
588
  Desc = "desc"
583
589
  }
590
+ export type IUserFeedback = {
591
+ id: Scalars['String'];
592
+ userId?: Maybe<Scalars['String']>;
593
+ email?: Maybe<Scalars['String']>;
594
+ satisfactionScore?: Maybe<Scalars['Int']>;
595
+ missedFeature?: Maybe<Scalars['String']>;
596
+ howEasyToUseScore?: Maybe<Scalars['String']>;
597
+ performanceScore?: Maybe<Scalars['Int']>;
598
+ whatToImprove?: Maybe<Scalars['String']>;
599
+ comments?: Maybe<Scalars['String']>;
600
+ };
601
+ export type IUserFeedbackFilterInput = {
602
+ idTerm?: Maybe<Scalars['String']>;
603
+ userIdTerm?: Maybe<Scalars['String']>;
604
+ emailTerm?: Maybe<Scalars['String']>;
605
+ missedFeatureTerm?: Maybe<Scalars['String']>;
606
+ howEasyToUseScoreTerm?: Maybe<Scalars['String']>;
607
+ };
608
+ export type IUserFeedbackPage = {
609
+ userFeedbacks: Array<IUserFeedback>;
610
+ nextPage?: Maybe<IAdminPage>;
611
+ };
612
+ export type IUserFeedbackSortInput = {
613
+ sortByUserId?: Maybe<ISort>;
614
+ sortByEmail?: Maybe<ISort>;
615
+ sortBySatisfactionScore?: Maybe<ISort>;
616
+ sortByPerformanceScore?: Maybe<ISort>;
617
+ };
584
618
  export type IUsersFilterInput = {
585
619
  userIdTerm?: Maybe<Scalars['String']>;
586
620
  usernameTerm?: Maybe<Scalars['String']>;
@@ -726,6 +760,10 @@ export type IResolversTypes = {
726
760
  Sort: ISort;
727
761
  SortDirection: ISortDirection;
728
762
  Upload: ResolverTypeWrapper<Scalars['Upload']>;
763
+ UserFeedback: ResolverTypeWrapper<IUserFeedback>;
764
+ UserFeedbackFilterInput: IUserFeedbackFilterInput;
765
+ UserFeedbackPage: ResolverTypeWrapper<IUserFeedbackPage>;
766
+ UserFeedbackSortInput: IUserFeedbackSortInput;
729
767
  UsersFilterInput: IUsersFilterInput;
730
768
  UsersPage: ResolverTypeWrapper<IUsersPage>;
731
769
  UsersSortInput: IUsersSortInput;
@@ -795,6 +833,10 @@ export type IResolversParentTypes = {
795
833
  ReferredUsersInfo: IReferredUsersInfo;
796
834
  Sort: ISort;
797
835
  Upload: Scalars['Upload'];
836
+ UserFeedback: IUserFeedback;
837
+ UserFeedbackFilterInput: IUserFeedbackFilterInput;
838
+ UserFeedbackPage: IUserFeedbackPage;
839
+ UserFeedbackSortInput: IUserFeedbackSortInput;
798
840
  UsersFilterInput: IUsersFilterInput;
799
841
  UsersPage: IUsersPage;
800
842
  UsersSortInput: IUsersSortInput;
@@ -1050,6 +1092,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1050
1092
  fetchInvestorInquiryPage?: Resolver<IResolversTypes['InvestorInquiryPage'], ParentType, ContextType, RequireFields<IQueryFetchInvestorInquiryPageArgs, 'filter' | 'sort' | 'page'>>;
1051
1093
  fetchFormOpportunityPage?: Resolver<IResolversTypes['FormOpportunityPage'], ParentType, ContextType, RequireFields<IQueryFetchFormOpportunityPageArgs, 'filter' | 'sort' | 'page'>>;
1052
1094
  fetchPartnershipInquiryPage?: Resolver<IResolversTypes['PartnershipInquiryPage'], ParentType, ContextType, RequireFields<IQueryFetchPartnershipInquiryPageArgs, 'filter' | 'sort' | 'page'>>;
1095
+ fetchUserFeedbackPage?: Resolver<IResolversTypes['UserFeedbackPage'], ParentType, ContextType, RequireFields<IQueryFetchUserFeedbackPageArgs, 'filter' | 'sort' | 'page'>>;
1053
1096
  fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
1054
1097
  fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
1055
1098
  fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
@@ -1075,6 +1118,23 @@ export type IReferredUsersInfoResolvers<ContextType = any, ParentType extends IR
1075
1118
  export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
1076
1119
  name: 'Upload';
1077
1120
  }
1121
+ export type IUserFeedbackResolvers<ContextType = any, ParentType extends IResolversParentTypes['UserFeedback'] = IResolversParentTypes['UserFeedback']> = {
1122
+ id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1123
+ userId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1124
+ email?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1125
+ satisfactionScore?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1126
+ missedFeature?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1127
+ howEasyToUseScore?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1128
+ performanceScore?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1129
+ whatToImprove?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1130
+ comments?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1131
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1132
+ };
1133
+ export type IUserFeedbackPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['UserFeedbackPage'] = IResolversParentTypes['UserFeedbackPage']> = {
1134
+ userFeedbacks?: Resolver<Array<IResolversTypes['UserFeedback']>, ParentType, ContextType>;
1135
+ nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
1136
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1137
+ };
1078
1138
  export type IUsersPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['UsersPage'] = IResolversParentTypes['UsersPage']> = {
1079
1139
  users?: Resolver<Array<IResolversTypes['AdminUser']>, ParentType, ContextType>;
1080
1140
  nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
@@ -1122,6 +1182,8 @@ export type IResolvers<ContextType = any> = {
1122
1182
  ReferralsPage?: IReferralsPageResolvers<ContextType>;
1123
1183
  ReferredUsersInfo?: IReferredUsersInfoResolvers<ContextType>;
1124
1184
  Upload?: GraphQLScalarType;
1185
+ UserFeedback?: IUserFeedbackResolvers<ContextType>;
1186
+ UserFeedbackPage?: IUserFeedbackPageResolvers<ContextType>;
1125
1187
  UsersPage?: IUsersPageResolvers<ContextType>;
1126
1188
  Wallet?: IWalletResolvers<ContextType>;
1127
1189
  XpPage?: IXpPageResolvers<ContextType>;
@@ -1230,6 +1292,17 @@ export type IFetchPartnershipInquiryPageQuery = {
1230
1292
  nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
1231
1293
  };
1232
1294
  };
1295
+ export type IFetchUserFeedbackPageQueryVariables = Exact<{
1296
+ filter: IUserFeedbackFilterInput;
1297
+ sort: IUserFeedbackSortInput;
1298
+ page: IAdminPageInput;
1299
+ }>;
1300
+ export type IFetchUserFeedbackPageQuery = {
1301
+ fetchUserFeedbackPage: {
1302
+ userFeedbacks: Array<Pick<IUserFeedback, 'userId' | 'id' | 'email' | 'satisfactionScore' | 'missedFeature' | 'howEasyToUseScore' | 'performanceScore' | 'whatToImprove' | 'comments'>>;
1303
+ nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
1304
+ };
1305
+ };
1233
1306
  export type IFetchAdminBrandsQueryVariables = Exact<{
1234
1307
  [key: string]: never;
1235
1308
  }>;
@@ -1734,6 +1807,38 @@ export declare function useFetchPartnershipInquiryPageLazyQuery(baseOptions?: Ap
1734
1807
  export type FetchPartnershipInquiryPageQueryHookResult = ReturnType<typeof useFetchPartnershipInquiryPageQuery>;
1735
1808
  export type FetchPartnershipInquiryPageLazyQueryHookResult = ReturnType<typeof useFetchPartnershipInquiryPageLazyQuery>;
1736
1809
  export type FetchPartnershipInquiryPageQueryResult = Apollo.QueryResult<IFetchPartnershipInquiryPageQuery, IFetchPartnershipInquiryPageQueryVariables>;
1810
+ export declare const FetchUserFeedbackPageDocument: Apollo.DocumentNode;
1811
+ /**
1812
+ * __useFetchUserFeedbackPageQuery__
1813
+ *
1814
+ * To run a query within a React component, call `useFetchUserFeedbackPageQuery` and pass it any options that fit your needs.
1815
+ * When your component renders, `useFetchUserFeedbackPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
1816
+ * you can use to render your UI.
1817
+ *
1818
+ * @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;
1819
+ *
1820
+ * @example
1821
+ * const { data, loading, error } = useFetchUserFeedbackPageQuery({
1822
+ * variables: {
1823
+ * filter: // value for 'filter'
1824
+ * sort: // value for 'sort'
1825
+ * page: // value for 'page'
1826
+ * },
1827
+ * });
1828
+ */
1829
+ export declare function useFetchUserFeedbackPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchUserFeedbackPageQuery, IFetchUserFeedbackPageQueryVariables>): Apollo.QueryResult<IFetchUserFeedbackPageQuery, Exact<{
1830
+ filter: IUserFeedbackFilterInput;
1831
+ sort: IUserFeedbackSortInput;
1832
+ page: IAdminPageInput;
1833
+ }>>;
1834
+ export declare function useFetchUserFeedbackPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUserFeedbackPageQuery, IFetchUserFeedbackPageQueryVariables>): Apollo.LazyQueryResultTuple<IFetchUserFeedbackPageQuery, Exact<{
1835
+ filter: IUserFeedbackFilterInput;
1836
+ sort: IUserFeedbackSortInput;
1837
+ page: IAdminPageInput;
1838
+ }>>;
1839
+ export type FetchUserFeedbackPageQueryHookResult = ReturnType<typeof useFetchUserFeedbackPageQuery>;
1840
+ export type FetchUserFeedbackPageLazyQueryHookResult = ReturnType<typeof useFetchUserFeedbackPageLazyQuery>;
1841
+ export type FetchUserFeedbackPageQueryResult = Apollo.QueryResult<IFetchUserFeedbackPageQuery, IFetchUserFeedbackPageQueryVariables>;
1737
1842
  export declare const FetchAdminBrandsDocument: Apollo.DocumentNode;
1738
1843
  /**
1739
1844
  * __useFetchAdminBrandsQuery__
@@ -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.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.useFetchPartnershipInquiryPageLazyQuery = exports.useFetchPartnershipInquiryPageQuery = exports.FetchPartnershipInquiryPageDocument = exports.useFetchInvestorInquiryPageLazyQuery = exports.useFetchInvestorInquiryPageQuery = exports.FetchInvestorInquiryPageDocument = exports.useFetchFormOpportunityPageLazyQuery = exports.useFetchFormOpportunityPageQuery = exports.FetchFormOpportunityPageDocument = exports.useFetchContentReportPageLazyQuery = exports.useFetchContentReportPageQuery = exports.FetchContentReportPageDocument = exports.useFetchContactSupportPageLazyQuery = exports.useFetchContactSupportPageQuery = exports.FetchContactSupportPageDocument = exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = exports.useUpdateCategoryArchivedStatusMutation = exports.UpdateCategoryArchivedStatusDocument = exports.useUpdateBrandArchivedStatusMutation = exports.UpdateBrandArchivedStatusDocument = 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.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 = void 0;
26
+ 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.useFetchPartnershipInquiryPageLazyQuery = exports.useFetchPartnershipInquiryPageQuery = exports.FetchPartnershipInquiryPageDocument = exports.useFetchInvestorInquiryPageLazyQuery = exports.useFetchInvestorInquiryPageQuery = exports.FetchInvestorInquiryPageDocument = exports.useFetchFormOpportunityPageLazyQuery = exports.useFetchFormOpportunityPageQuery = exports.FetchFormOpportunityPageDocument = exports.useFetchContentReportPageLazyQuery = exports.useFetchContentReportPageQuery = exports.FetchContentReportPageDocument = exports.useFetchContactSupportPageLazyQuery = exports.useFetchContactSupportPageQuery = exports.FetchContactSupportPageDocument = exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = exports.useUpdateCategoryArchivedStatusMutation = exports.UpdateCategoryArchivedStatusDocument = exports.useUpdateBrandArchivedStatusMutation = exports.UpdateBrandArchivedStatusDocument = 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.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 = 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 */
@@ -524,6 +524,56 @@ function useFetchPartnershipInquiryPageLazyQuery(baseOptions) {
524
524
  return Apollo.useLazyQuery(exports.FetchPartnershipInquiryPageDocument, baseOptions);
525
525
  }
526
526
  exports.useFetchPartnershipInquiryPageLazyQuery = useFetchPartnershipInquiryPageLazyQuery;
527
+ exports.FetchUserFeedbackPageDocument = (0, client_1.gql) `
528
+ query FetchUserFeedbackPage($filter: UserFeedbackFilterInput!, $sort: UserFeedbackSortInput!, $page: AdminPageInput!) {
529
+ fetchUserFeedbackPage(filter: $filter, sort: $sort, page: $page) {
530
+ userFeedbacks {
531
+ userId
532
+ id
533
+ email
534
+ satisfactionScore
535
+ missedFeature
536
+ howEasyToUseScore
537
+ performanceScore
538
+ whatToImprove
539
+ comments
540
+ }
541
+ nextPage {
542
+ elements
543
+ lastNum
544
+ num
545
+ size
546
+ token
547
+ }
548
+ }
549
+ }
550
+ `;
551
+ /**
552
+ * __useFetchUserFeedbackPageQuery__
553
+ *
554
+ * To run a query within a React component, call `useFetchUserFeedbackPageQuery` and pass it any options that fit your needs.
555
+ * When your component renders, `useFetchUserFeedbackPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
556
+ * you can use to render your UI.
557
+ *
558
+ * @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;
559
+ *
560
+ * @example
561
+ * const { data, loading, error } = useFetchUserFeedbackPageQuery({
562
+ * variables: {
563
+ * filter: // value for 'filter'
564
+ * sort: // value for 'sort'
565
+ * page: // value for 'page'
566
+ * },
567
+ * });
568
+ */
569
+ function useFetchUserFeedbackPageQuery(baseOptions) {
570
+ return Apollo.useQuery(exports.FetchUserFeedbackPageDocument, baseOptions);
571
+ }
572
+ exports.useFetchUserFeedbackPageQuery = useFetchUserFeedbackPageQuery;
573
+ function useFetchUserFeedbackPageLazyQuery(baseOptions) {
574
+ return Apollo.useLazyQuery(exports.FetchUserFeedbackPageDocument, baseOptions);
575
+ }
576
+ exports.useFetchUserFeedbackPageLazyQuery = useFetchUserFeedbackPageLazyQuery;
527
577
  exports.FetchAdminBrandsDocument = (0, client_1.gql) `
528
578
  query FetchAdminBrands {
529
579
  fetchAdminBrands {
package/build/index.d.ts CHANGED
@@ -1224,6 +1224,24 @@ declare const schema: {
1224
1224
  sort: adminSchema.IPartnershipInquirySortInput;
1225
1225
  page: adminSchema.IAdminPageInput;
1226
1226
  }>>;
1227
+ useFetchUserFeedbackPageQuery(baseOptions: import("@apollo/client").QueryHookOptions<adminSchema.IFetchUserFeedbackPageQuery, adminSchema.Exact<{
1228
+ filter: adminSchema.IUserFeedbackFilterInput;
1229
+ sort: adminSchema.IUserFeedbackSortInput;
1230
+ page: adminSchema.IAdminPageInput;
1231
+ }>>): import("@apollo/client").QueryResult<adminSchema.IFetchUserFeedbackPageQuery, adminSchema.Exact<{
1232
+ filter: adminSchema.IUserFeedbackFilterInput;
1233
+ sort: adminSchema.IUserFeedbackSortInput;
1234
+ page: adminSchema.IAdminPageInput;
1235
+ }>>;
1236
+ useFetchUserFeedbackPageLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<adminSchema.IFetchUserFeedbackPageQuery, adminSchema.Exact<{
1237
+ filter: adminSchema.IUserFeedbackFilterInput;
1238
+ sort: adminSchema.IUserFeedbackSortInput;
1239
+ page: adminSchema.IAdminPageInput;
1240
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<adminSchema.IFetchUserFeedbackPageQuery, adminSchema.Exact<{
1241
+ filter: adminSchema.IUserFeedbackFilterInput;
1242
+ sort: adminSchema.IUserFeedbackSortInput;
1243
+ page: adminSchema.IAdminPageInput;
1244
+ }>>;
1227
1245
  useFetchAdminBrandsQuery(baseOptions?: import("@apollo/client").QueryHookOptions<adminSchema.IFetchAdminBrandsQuery, adminSchema.Exact<{
1228
1246
  [key: string]: never;
1229
1247
  }>> | undefined): import("@apollo/client").QueryResult<adminSchema.IFetchAdminBrandsQuery, adminSchema.Exact<{
@@ -1395,6 +1413,7 @@ declare const schema: {
1395
1413
  FetchFormOpportunityPageDocument: import("graphql").DocumentNode;
1396
1414
  FetchInvestorInquiryPageDocument: import("graphql").DocumentNode;
1397
1415
  FetchPartnershipInquiryPageDocument: import("graphql").DocumentNode;
1416
+ FetchUserFeedbackPageDocument: import("graphql").DocumentNode;
1398
1417
  FetchAdminBrandsDocument: import("graphql").DocumentNode;
1399
1418
  FetchAdminBrandsPageDocument: import("graphql").DocumentNode;
1400
1419
  FetchAdminCategoriesDocument: import("graphql").DocumentNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.8.54",
3
+ "version": "2.8.55",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -22,7 +22,8 @@
22
22
  "devDependencies": {
23
23
  "@types/apollo-upload-client": "^17.0.2",
24
24
  "@types/lodash.isequal": "^4.5.8",
25
- "@types/next": "9.0.0"
25
+ "@types/next": "9.0.0",
26
+ "typescript": "^5.1.3"
26
27
  },
27
28
  "types": "./build/index.d.ts",
28
29
  "description": ""
@@ -553,6 +553,7 @@ export type IQuery = {
553
553
  fetchInvestorInquiryPage: IInvestorInquiryPage;
554
554
  fetchFormOpportunityPage: IFormOpportunityPage;
555
555
  fetchPartnershipInquiryPage: IPartnershipInquiryPage;
556
+ fetchUserFeedbackPage: IUserFeedbackPage;
556
557
  fetchAdminInvitesPage: IInvitesPage;
557
558
  fetchAdminOpportunitiesPage: IOpportunitiesPage;
558
559
  fetchAdminCategories: Array<IAdminCategory>;
@@ -601,6 +602,13 @@ export type IQueryFetchPartnershipInquiryPageArgs = {
601
602
  };
602
603
 
603
604
 
605
+ export type IQueryFetchUserFeedbackPageArgs = {
606
+ filter: IUserFeedbackFilterInput;
607
+ sort: IUserFeedbackSortInput;
608
+ page: IAdminPageInput;
609
+ };
610
+
611
+
604
612
  export type IQueryFetchAdminInvitesPageArgs = {
605
613
  filter: IInvitesFilterInput;
606
614
  sort: IInvitesSortInput;
@@ -686,6 +694,38 @@ export enum ISortDirection {
686
694
  }
687
695
 
688
696
 
697
+ export type IUserFeedback = {
698
+ id: Scalars['String'];
699
+ userId?: Maybe<Scalars['String']>;
700
+ email?: Maybe<Scalars['String']>;
701
+ satisfactionScore?: Maybe<Scalars['Int']>;
702
+ missedFeature?: Maybe<Scalars['String']>;
703
+ howEasyToUseScore?: Maybe<Scalars['String']>;
704
+ performanceScore?: Maybe<Scalars['Int']>;
705
+ whatToImprove?: Maybe<Scalars['String']>;
706
+ comments?: Maybe<Scalars['String']>;
707
+ };
708
+
709
+ export type IUserFeedbackFilterInput = {
710
+ idTerm?: Maybe<Scalars['String']>;
711
+ userIdTerm?: Maybe<Scalars['String']>;
712
+ emailTerm?: Maybe<Scalars['String']>;
713
+ missedFeatureTerm?: Maybe<Scalars['String']>;
714
+ howEasyToUseScoreTerm?: Maybe<Scalars['String']>;
715
+ };
716
+
717
+ export type IUserFeedbackPage = {
718
+ userFeedbacks: Array<IUserFeedback>;
719
+ nextPage?: Maybe<IAdminPage>;
720
+ };
721
+
722
+ export type IUserFeedbackSortInput = {
723
+ sortByUserId?: Maybe<ISort>;
724
+ sortByEmail?: Maybe<ISort>;
725
+ sortBySatisfactionScore?: Maybe<ISort>;
726
+ sortByPerformanceScore?: Maybe<ISort>;
727
+ };
728
+
689
729
  export type IUsersFilterInput = {
690
730
  userIdTerm?: Maybe<Scalars['String']>;
691
731
  usernameTerm?: Maybe<Scalars['String']>;
@@ -879,6 +919,10 @@ export type IResolversTypes = {
879
919
  Sort: ISort;
880
920
  SortDirection: ISortDirection;
881
921
  Upload: ResolverTypeWrapper<Scalars['Upload']>;
922
+ UserFeedback: ResolverTypeWrapper<IUserFeedback>;
923
+ UserFeedbackFilterInput: IUserFeedbackFilterInput;
924
+ UserFeedbackPage: ResolverTypeWrapper<IUserFeedbackPage>;
925
+ UserFeedbackSortInput: IUserFeedbackSortInput;
882
926
  UsersFilterInput: IUsersFilterInput;
883
927
  UsersPage: ResolverTypeWrapper<IUsersPage>;
884
928
  UsersSortInput: IUsersSortInput;
@@ -949,6 +993,10 @@ export type IResolversParentTypes = {
949
993
  ReferredUsersInfo: IReferredUsersInfo;
950
994
  Sort: ISort;
951
995
  Upload: Scalars['Upload'];
996
+ UserFeedback: IUserFeedback;
997
+ UserFeedbackFilterInput: IUserFeedbackFilterInput;
998
+ UserFeedbackPage: IUserFeedbackPage;
999
+ UserFeedbackSortInput: IUserFeedbackSortInput;
952
1000
  UsersFilterInput: IUsersFilterInput;
953
1001
  UsersPage: IUsersPage;
954
1002
  UsersSortInput: IUsersSortInput;
@@ -1236,6 +1284,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1236
1284
  fetchInvestorInquiryPage?: Resolver<IResolversTypes['InvestorInquiryPage'], ParentType, ContextType, RequireFields<IQueryFetchInvestorInquiryPageArgs, 'filter' | 'sort' | 'page'>>;
1237
1285
  fetchFormOpportunityPage?: Resolver<IResolversTypes['FormOpportunityPage'], ParentType, ContextType, RequireFields<IQueryFetchFormOpportunityPageArgs, 'filter' | 'sort' | 'page'>>;
1238
1286
  fetchPartnershipInquiryPage?: Resolver<IResolversTypes['PartnershipInquiryPage'], ParentType, ContextType, RequireFields<IQueryFetchPartnershipInquiryPageArgs, 'filter' | 'sort' | 'page'>>;
1287
+ fetchUserFeedbackPage?: Resolver<IResolversTypes['UserFeedbackPage'], ParentType, ContextType, RequireFields<IQueryFetchUserFeedbackPageArgs, 'filter' | 'sort' | 'page'>>;
1239
1288
  fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
1240
1289
  fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
1241
1290
  fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
@@ -1265,6 +1314,25 @@ export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversT
1265
1314
  name: 'Upload';
1266
1315
  }
1267
1316
 
1317
+ export type IUserFeedbackResolvers<ContextType = any, ParentType extends IResolversParentTypes['UserFeedback'] = IResolversParentTypes['UserFeedback']> = {
1318
+ id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1319
+ userId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1320
+ email?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1321
+ satisfactionScore?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1322
+ missedFeature?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1323
+ howEasyToUseScore?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1324
+ performanceScore?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1325
+ whatToImprove?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1326
+ comments?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1327
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1328
+ };
1329
+
1330
+ export type IUserFeedbackPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['UserFeedbackPage'] = IResolversParentTypes['UserFeedbackPage']> = {
1331
+ userFeedbacks?: Resolver<Array<IResolversTypes['UserFeedback']>, ParentType, ContextType>;
1332
+ nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
1333
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1334
+ };
1335
+
1268
1336
  export type IUsersPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['UsersPage'] = IResolversParentTypes['UsersPage']> = {
1269
1337
  users?: Resolver<Array<IResolversTypes['AdminUser']>, ParentType, ContextType>;
1270
1338
  nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
@@ -1315,6 +1383,8 @@ export type IResolvers<ContextType = any> = {
1315
1383
  ReferralsPage?: IReferralsPageResolvers<ContextType>;
1316
1384
  ReferredUsersInfo?: IReferredUsersInfoResolvers<ContextType>;
1317
1385
  Upload?: GraphQLScalarType;
1386
+ UserFeedback?: IUserFeedbackResolvers<ContextType>;
1387
+ UserFeedbackPage?: IUserFeedbackPageResolvers<ContextType>;
1318
1388
  UsersPage?: IUsersPageResolvers<ContextType>;
1319
1389
  Wallet?: IWalletResolvers<ContextType>;
1320
1390
  XpPage?: IXpPageResolvers<ContextType>;
@@ -1442,6 +1512,15 @@ export type IFetchPartnershipInquiryPageQueryVariables = Exact<{
1442
1512
 
1443
1513
  export type IFetchPartnershipInquiryPageQuery = { fetchPartnershipInquiryPage: { partnershipInquiries: Array<Pick<IAdminPartnershipInquiry, 'userId' | 'id' | 'email' | 'name' | 'projectName' | 'website' | 'aboutProject' | 'partnershipType' | 'ludoReferrerInfo'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
1444
1514
 
1515
+ export type IFetchUserFeedbackPageQueryVariables = Exact<{
1516
+ filter: IUserFeedbackFilterInput;
1517
+ sort: IUserFeedbackSortInput;
1518
+ page: IAdminPageInput;
1519
+ }>;
1520
+
1521
+
1522
+ export type IFetchUserFeedbackPageQuery = { fetchUserFeedbackPage: { userFeedbacks: Array<Pick<IUserFeedback, 'userId' | 'id' | 'email' | 'satisfactionScore' | 'missedFeature' | 'howEasyToUseScore' | 'performanceScore' | 'whatToImprove' | 'comments'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
1523
+
1445
1524
  export type IFetchAdminBrandsQueryVariables = Exact<{ [key: string]: never; }>;
1446
1525
 
1447
1526
 
@@ -2070,6 +2149,58 @@ export function useFetchPartnershipInquiryPageLazyQuery(baseOptions?: Apollo.Laz
2070
2149
  export type FetchPartnershipInquiryPageQueryHookResult = ReturnType<typeof useFetchPartnershipInquiryPageQuery>;
2071
2150
  export type FetchPartnershipInquiryPageLazyQueryHookResult = ReturnType<typeof useFetchPartnershipInquiryPageLazyQuery>;
2072
2151
  export type FetchPartnershipInquiryPageQueryResult = Apollo.QueryResult<IFetchPartnershipInquiryPageQuery, IFetchPartnershipInquiryPageQueryVariables>;
2152
+ export const FetchUserFeedbackPageDocument = gql`
2153
+ query FetchUserFeedbackPage($filter: UserFeedbackFilterInput!, $sort: UserFeedbackSortInput!, $page: AdminPageInput!) {
2154
+ fetchUserFeedbackPage(filter: $filter, sort: $sort, page: $page) {
2155
+ userFeedbacks {
2156
+ userId
2157
+ id
2158
+ email
2159
+ satisfactionScore
2160
+ missedFeature
2161
+ howEasyToUseScore
2162
+ performanceScore
2163
+ whatToImprove
2164
+ comments
2165
+ }
2166
+ nextPage {
2167
+ elements
2168
+ lastNum
2169
+ num
2170
+ size
2171
+ token
2172
+ }
2173
+ }
2174
+ }
2175
+ `;
2176
+
2177
+ /**
2178
+ * __useFetchUserFeedbackPageQuery__
2179
+ *
2180
+ * To run a query within a React component, call `useFetchUserFeedbackPageQuery` and pass it any options that fit your needs.
2181
+ * When your component renders, `useFetchUserFeedbackPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
2182
+ * you can use to render your UI.
2183
+ *
2184
+ * @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;
2185
+ *
2186
+ * @example
2187
+ * const { data, loading, error } = useFetchUserFeedbackPageQuery({
2188
+ * variables: {
2189
+ * filter: // value for 'filter'
2190
+ * sort: // value for 'sort'
2191
+ * page: // value for 'page'
2192
+ * },
2193
+ * });
2194
+ */
2195
+ export function useFetchUserFeedbackPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchUserFeedbackPageQuery, IFetchUserFeedbackPageQueryVariables>) {
2196
+ return Apollo.useQuery<IFetchUserFeedbackPageQuery, IFetchUserFeedbackPageQueryVariables>(FetchUserFeedbackPageDocument, baseOptions);
2197
+ }
2198
+ export function useFetchUserFeedbackPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUserFeedbackPageQuery, IFetchUserFeedbackPageQueryVariables>) {
2199
+ return Apollo.useLazyQuery<IFetchUserFeedbackPageQuery, IFetchUserFeedbackPageQueryVariables>(FetchUserFeedbackPageDocument, baseOptions);
2200
+ }
2201
+ export type FetchUserFeedbackPageQueryHookResult = ReturnType<typeof useFetchUserFeedbackPageQuery>;
2202
+ export type FetchUserFeedbackPageLazyQueryHookResult = ReturnType<typeof useFetchUserFeedbackPageLazyQuery>;
2203
+ export type FetchUserFeedbackPageQueryResult = Apollo.QueryResult<IFetchUserFeedbackPageQuery, IFetchUserFeedbackPageQueryVariables>;
2073
2204
  export const FetchAdminBrandsDocument = gql`
2074
2205
  query FetchAdminBrands {
2075
2206
  fetchAdminBrands {