@ludo.ninja/api 2.8.67 → 2.8.68

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.8.67",
3
+ "version": "2.8.68",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -1510,6 +1510,14 @@ export type IUpdateInviteCodeUsagesLimitMutationVariables = Exact<{
1510
1510
 
1511
1511
  export type IUpdateInviteCodeUsagesLimitMutation = Pick<IMutation, 'updateInviteCodeUsagesLimit'>;
1512
1512
 
1513
+ export type IUpdateOpportunityPushStatusMutationVariables = Exact<{
1514
+ opportunityId: Scalars['ID'];
1515
+ isActive: Scalars['Boolean'];
1516
+ }>;
1517
+
1518
+
1519
+ export type IUpdateOpportunityPushStatusMutation = Pick<IMutation, 'updateOpportunityPushStatus'>;
1520
+
1513
1521
  export type IChangeXpPointsMutationVariables = Exact<{
1514
1522
  userId: Scalars['ID'];
1515
1523
  pointsDiff: Scalars['Int'];
@@ -1799,6 +1807,37 @@ export function useUpdateInviteCodeUsagesLimitMutation(baseOptions?: Apollo.Muta
1799
1807
  export type UpdateInviteCodeUsagesLimitMutationHookResult = ReturnType<typeof useUpdateInviteCodeUsagesLimitMutation>;
1800
1808
  export type UpdateInviteCodeUsagesLimitMutationResult = Apollo.MutationResult<IUpdateInviteCodeUsagesLimitMutation>;
1801
1809
  export type UpdateInviteCodeUsagesLimitMutationOptions = Apollo.BaseMutationOptions<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>;
1810
+ export const UpdateOpportunityPushStatusDocument = gql`
1811
+ mutation UpdateOpportunityPushStatus($opportunityId: ID!, $isActive: Boolean!) {
1812
+ updateOpportunityPushStatus(opportunityId: $opportunityId, isActive: $isActive)
1813
+ }
1814
+ `;
1815
+ export type IUpdateOpportunityPushStatusMutationFn = Apollo.MutationFunction<IUpdateOpportunityPushStatusMutation, IUpdateOpportunityPushStatusMutationVariables>;
1816
+
1817
+ /**
1818
+ * __useUpdateOpportunityPushStatusMutation__
1819
+ *
1820
+ * To run a mutation, you first call `useUpdateOpportunityPushStatusMutation` within a React component and pass it any options that fit your needs.
1821
+ * When your component renders, `useUpdateOpportunityPushStatusMutation` returns a tuple that includes:
1822
+ * - A mutate function that you can call at any time to execute the mutation
1823
+ * - An object with fields that represent the current status of the mutation's execution
1824
+ *
1825
+ * @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;
1826
+ *
1827
+ * @example
1828
+ * const [updateOpportunityPushStatusMutation, { data, loading, error }] = useUpdateOpportunityPushStatusMutation({
1829
+ * variables: {
1830
+ * opportunityId: // value for 'opportunityId'
1831
+ * isActive: // value for 'isActive'
1832
+ * },
1833
+ * });
1834
+ */
1835
+ export function useUpdateOpportunityPushStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateOpportunityPushStatusMutation, IUpdateOpportunityPushStatusMutationVariables>) {
1836
+ return Apollo.useMutation<IUpdateOpportunityPushStatusMutation, IUpdateOpportunityPushStatusMutationVariables>(UpdateOpportunityPushStatusDocument, baseOptions);
1837
+ }
1838
+ export type UpdateOpportunityPushStatusMutationHookResult = ReturnType<typeof useUpdateOpportunityPushStatusMutation>;
1839
+ export type UpdateOpportunityPushStatusMutationResult = Apollo.MutationResult<IUpdateOpportunityPushStatusMutation>;
1840
+ export type UpdateOpportunityPushStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityPushStatusMutation, IUpdateOpportunityPushStatusMutationVariables>;
1802
1841
  export const ChangeXpPointsDocument = gql`
1803
1842
  mutation ChangeXpPoints($userId: ID!, $pointsDiff: Int!) {
1804
1843
  changeXpPoints(userId: $userId, pointsDiff: $pointsDiff)