@ludo.ninja/api 2.8.90 → 2.8.91

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.
@@ -432,6 +432,10 @@ export type ICreateOpportunityMutationVariables = Exact<{
432
432
  input: IOpportunityInput;
433
433
  }>;
434
434
  export type ICreateOpportunityMutation = Pick<IMutation, 'createOpportunity'>;
435
+ export type IHideOpportunityMutationVariables = Exact<{
436
+ opportunityId: Scalars['ID'];
437
+ }>;
438
+ export type IHideOpportunityMutation = Pick<IMutation, 'hideOpportunity'>;
435
439
  export type IOpenOpportunityMutationVariables = Exact<{
436
440
  opportunityId: Scalars['ID'];
437
441
  }>;
@@ -532,6 +536,31 @@ export declare function useCreateOpportunityMutation(baseOptions?: Apollo.Mutati
532
536
  export type CreateOpportunityMutationHookResult = ReturnType<typeof useCreateOpportunityMutation>;
533
537
  export type CreateOpportunityMutationResult = Apollo.MutationResult<ICreateOpportunityMutation>;
534
538
  export type CreateOpportunityMutationOptions = Apollo.BaseMutationOptions<ICreateOpportunityMutation, ICreateOpportunityMutationVariables>;
539
+ export declare const HideOpportunityDocument: Apollo.DocumentNode;
540
+ export type IHideOpportunityMutationFn = Apollo.MutationFunction<IHideOpportunityMutation, IHideOpportunityMutationVariables>;
541
+ /**
542
+ * __useHideOpportunityMutation__
543
+ *
544
+ * To run a mutation, you first call `useHideOpportunityMutation` within a React component and pass it any options that fit your needs.
545
+ * When your component renders, `useHideOpportunityMutation` returns a tuple that includes:
546
+ * - A mutate function that you can call at any time to execute the mutation
547
+ * - An object with fields that represent the current status of the mutation's execution
548
+ *
549
+ * @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;
550
+ *
551
+ * @example
552
+ * const [hideOpportunityMutation, { data, loading, error }] = useHideOpportunityMutation({
553
+ * variables: {
554
+ * opportunityId: // value for 'opportunityId'
555
+ * },
556
+ * });
557
+ */
558
+ export declare function useHideOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<IHideOpportunityMutation, IHideOpportunityMutationVariables>): Apollo.MutationTuple<IHideOpportunityMutation, Exact<{
559
+ opportunityId: string;
560
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
561
+ export type HideOpportunityMutationHookResult = ReturnType<typeof useHideOpportunityMutation>;
562
+ export type HideOpportunityMutationResult = Apollo.MutationResult<IHideOpportunityMutation>;
563
+ export type HideOpportunityMutationOptions = Apollo.BaseMutationOptions<IHideOpportunityMutation, IHideOpportunityMutationVariables>;
535
564
  export declare const OpenOpportunityDocument: Apollo.DocumentNode;
536
565
  export type IOpenOpportunityMutationFn = Apollo.MutationFunction<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>;
537
566
  /**
@@ -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.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
26
+ exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useHideOpportunityMutation = exports.HideOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
27
27
  const client_1 = require("@apollo/client");
28
28
  const Apollo = __importStar(require("@apollo/client"));
29
29
  exports.DislikeOpportunityDocument = (0, client_1.gql) `
@@ -104,6 +104,32 @@ function useCreateOpportunityMutation(baseOptions) {
104
104
  return Apollo.useMutation(exports.CreateOpportunityDocument, baseOptions);
105
105
  }
106
106
  exports.useCreateOpportunityMutation = useCreateOpportunityMutation;
107
+ exports.HideOpportunityDocument = (0, client_1.gql) `
108
+ mutation HideOpportunity($opportunityId: ID!) {
109
+ hideOpportunity(opportunityId: $opportunityId)
110
+ }
111
+ `;
112
+ /**
113
+ * __useHideOpportunityMutation__
114
+ *
115
+ * To run a mutation, you first call `useHideOpportunityMutation` within a React component and pass it any options that fit your needs.
116
+ * When your component renders, `useHideOpportunityMutation` returns a tuple that includes:
117
+ * - A mutate function that you can call at any time to execute the mutation
118
+ * - An object with fields that represent the current status of the mutation's execution
119
+ *
120
+ * @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;
121
+ *
122
+ * @example
123
+ * const [hideOpportunityMutation, { data, loading, error }] = useHideOpportunityMutation({
124
+ * variables: {
125
+ * opportunityId: // value for 'opportunityId'
126
+ * },
127
+ * });
128
+ */
129
+ function useHideOpportunityMutation(baseOptions) {
130
+ return Apollo.useMutation(exports.HideOpportunityDocument, baseOptions);
131
+ }
132
+ exports.useHideOpportunityMutation = useHideOpportunityMutation;
107
133
  exports.OpenOpportunityDocument = (0, client_1.gql) `
108
134
  mutation OpenOpportunity($opportunityId: ID!) {
109
135
  openOpportunity(opportunityId: $opportunityId)
package/build/index.d.ts CHANGED
@@ -516,6 +516,11 @@ declare const schema: {
516
516
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.ICreateOpportunityMutation, opportunitiesSchema.Exact<{
517
517
  input: opportunitiesSchema.IOpportunityInput;
518
518
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
519
+ useHideOpportunityMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.IHideOpportunityMutation, opportunitiesSchema.Exact<{
520
+ opportunityId: string;
521
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.IHideOpportunityMutation, opportunitiesSchema.Exact<{
522
+ opportunityId: string;
523
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
519
524
  useOpenOpportunityMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.IOpenOpportunityMutation, opportunitiesSchema.Exact<{
520
525
  opportunityId: string;
521
526
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.IOpenOpportunityMutation, opportunitiesSchema.Exact<{
@@ -554,6 +559,7 @@ declare const schema: {
554
559
  DislikeOpportunityDocument: import("graphql").DocumentNode;
555
560
  LikeOpportunityDocument: import("graphql").DocumentNode;
556
561
  CreateOpportunityDocument: import("graphql").DocumentNode;
562
+ HideOpportunityDocument: import("graphql").DocumentNode;
557
563
  OpenOpportunityDocument: import("graphql").DocumentNode;
558
564
  FetchOpportunitiesByIdsDocument: import("graphql").DocumentNode;
559
565
  FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.8.90",
3
+ "version": "2.8.91",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -535,6 +535,13 @@ export type ICreateOpportunityMutationVariables = Exact<{
535
535
 
536
536
  export type ICreateOpportunityMutation = Pick<IMutation, 'createOpportunity'>;
537
537
 
538
+ export type IHideOpportunityMutationVariables = Exact<{
539
+ opportunityId: Scalars['ID'];
540
+ }>;
541
+
542
+
543
+ export type IHideOpportunityMutation = Pick<IMutation, 'hideOpportunity'>;
544
+
538
545
  export type IOpenOpportunityMutationVariables = Exact<{
539
546
  opportunityId: Scalars['ID'];
540
547
  }>;
@@ -652,6 +659,36 @@ export function useCreateOpportunityMutation(baseOptions?: Apollo.MutationHookOp
652
659
  export type CreateOpportunityMutationHookResult = ReturnType<typeof useCreateOpportunityMutation>;
653
660
  export type CreateOpportunityMutationResult = Apollo.MutationResult<ICreateOpportunityMutation>;
654
661
  export type CreateOpportunityMutationOptions = Apollo.BaseMutationOptions<ICreateOpportunityMutation, ICreateOpportunityMutationVariables>;
662
+ export const HideOpportunityDocument = gql`
663
+ mutation HideOpportunity($opportunityId: ID!) {
664
+ hideOpportunity(opportunityId: $opportunityId)
665
+ }
666
+ `;
667
+ export type IHideOpportunityMutationFn = Apollo.MutationFunction<IHideOpportunityMutation, IHideOpportunityMutationVariables>;
668
+
669
+ /**
670
+ * __useHideOpportunityMutation__
671
+ *
672
+ * To run a mutation, you first call `useHideOpportunityMutation` within a React component and pass it any options that fit your needs.
673
+ * When your component renders, `useHideOpportunityMutation` returns a tuple that includes:
674
+ * - A mutate function that you can call at any time to execute the mutation
675
+ * - An object with fields that represent the current status of the mutation's execution
676
+ *
677
+ * @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;
678
+ *
679
+ * @example
680
+ * const [hideOpportunityMutation, { data, loading, error }] = useHideOpportunityMutation({
681
+ * variables: {
682
+ * opportunityId: // value for 'opportunityId'
683
+ * },
684
+ * });
685
+ */
686
+ export function useHideOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<IHideOpportunityMutation, IHideOpportunityMutationVariables>) {
687
+ return Apollo.useMutation<IHideOpportunityMutation, IHideOpportunityMutationVariables>(HideOpportunityDocument, baseOptions);
688
+ }
689
+ export type HideOpportunityMutationHookResult = ReturnType<typeof useHideOpportunityMutation>;
690
+ export type HideOpportunityMutationResult = Apollo.MutationResult<IHideOpportunityMutation>;
691
+ export type HideOpportunityMutationOptions = Apollo.BaseMutationOptions<IHideOpportunityMutation, IHideOpportunityMutationVariables>;
655
692
  export const OpenOpportunityDocument = gql`
656
693
  mutation OpenOpportunity($opportunityId: ID!) {
657
694
  openOpportunity(opportunityId: $opportunityId)