@ludo.ninja/api 2.8.30 → 2.8.32

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.
@@ -838,6 +838,11 @@ export type IRemoveInviteCodeMutationVariables = Exact<{
838
838
  inviteCode: Scalars['String'];
839
839
  }>;
840
840
  export type IRemoveInviteCodeMutation = Pick<IMutation, 'removeInviteCode'>;
841
+ export type IUpdateBrandArchivedStatusMutationVariables = Exact<{
842
+ id: Scalars['ID'];
843
+ isArchived: Scalars['Boolean'];
844
+ }>;
845
+ export type IUpdateBrandArchivedStatusMutation = Pick<IMutation, 'updateBrandArchivedStatus'>;
841
846
  export type IUpdateProfileStatusMutationVariables = Exact<{
842
847
  userId: Scalars['ID'];
843
848
  isActive: Scalars['Boolean'];
@@ -1106,6 +1111,33 @@ export declare function useRemoveInviteCodeMutation(baseOptions?: Apollo.Mutatio
1106
1111
  export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
1107
1112
  export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
1108
1113
  export type RemoveInviteCodeMutationOptions = Apollo.BaseMutationOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
1114
+ export declare const UpdateBrandArchivedStatusDocument: Apollo.DocumentNode;
1115
+ export type IUpdateBrandArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>;
1116
+ /**
1117
+ * __useUpdateBrandArchivedStatusMutation__
1118
+ *
1119
+ * To run a mutation, you first call `useUpdateBrandArchivedStatusMutation` within a React component and pass it any options that fit your needs.
1120
+ * When your component renders, `useUpdateBrandArchivedStatusMutation` returns a tuple that includes:
1121
+ * - A mutate function that you can call at any time to execute the mutation
1122
+ * - An object with fields that represent the current status of the mutation's execution
1123
+ *
1124
+ * @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;
1125
+ *
1126
+ * @example
1127
+ * const [updateBrandArchivedStatusMutation, { data, loading, error }] = useUpdateBrandArchivedStatusMutation({
1128
+ * variables: {
1129
+ * id: // value for 'id'
1130
+ * isArchived: // value for 'isArchived'
1131
+ * },
1132
+ * });
1133
+ */
1134
+ export declare function useUpdateBrandArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateBrandArchivedStatusMutation, Exact<{
1135
+ id: string;
1136
+ isArchived: boolean;
1137
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1138
+ export type UpdateBrandArchivedStatusMutationHookResult = ReturnType<typeof useUpdateBrandArchivedStatusMutation>;
1139
+ export type UpdateBrandArchivedStatusMutationResult = Apollo.MutationResult<IUpdateBrandArchivedStatusMutation>;
1140
+ export type UpdateBrandArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>;
1109
1141
  export declare const UpdateProfileStatusDocument: Apollo.DocumentNode;
1110
1142
  export type IUpdateProfileStatusMutationFn = Apollo.MutationFunction<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
1111
1143
  /**
@@ -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.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.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = 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;
26
+ 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.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = 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
27
  const client_1 = require("@apollo/client");
28
28
  const Apollo = __importStar(require("@apollo/client"));
29
29
  /** front-end asked for lower case values */
@@ -193,6 +193,33 @@ function useRemoveInviteCodeMutation(baseOptions) {
193
193
  return Apollo.useMutation(exports.RemoveInviteCodeDocument, baseOptions);
194
194
  }
195
195
  exports.useRemoveInviteCodeMutation = useRemoveInviteCodeMutation;
196
+ exports.UpdateBrandArchivedStatusDocument = (0, client_1.gql) `
197
+ mutation UpdateBrandArchivedStatus($id: ID!, $isArchived: Boolean!) {
198
+ updateBrandArchivedStatus(id: $id, isArchived: $isArchived)
199
+ }
200
+ `;
201
+ /**
202
+ * __useUpdateBrandArchivedStatusMutation__
203
+ *
204
+ * To run a mutation, you first call `useUpdateBrandArchivedStatusMutation` within a React component and pass it any options that fit your needs.
205
+ * When your component renders, `useUpdateBrandArchivedStatusMutation` returns a tuple that includes:
206
+ * - A mutate function that you can call at any time to execute the mutation
207
+ * - An object with fields that represent the current status of the mutation's execution
208
+ *
209
+ * @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;
210
+ *
211
+ * @example
212
+ * const [updateBrandArchivedStatusMutation, { data, loading, error }] = useUpdateBrandArchivedStatusMutation({
213
+ * variables: {
214
+ * id: // value for 'id'
215
+ * isArchived: // value for 'isArchived'
216
+ * },
217
+ * });
218
+ */
219
+ function useUpdateBrandArchivedStatusMutation(baseOptions) {
220
+ return Apollo.useMutation(exports.UpdateBrandArchivedStatusDocument, baseOptions);
221
+ }
222
+ exports.useUpdateBrandArchivedStatusMutation = useUpdateBrandArchivedStatusMutation;
196
223
  exports.UpdateProfileStatusDocument = (0, client_1.gql) `
197
224
  mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
198
225
  updateProfileStatus(userId: $userId, isActive: $isActive)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.8.30",
3
+ "version": "2.8.32",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -1011,6 +1011,14 @@ export type IRemoveInviteCodeMutationVariables = Exact<{
1011
1011
 
1012
1012
  export type IRemoveInviteCodeMutation = Pick<IMutation, 'removeInviteCode'>;
1013
1013
 
1014
+ export type IUpdateBrandArchivedStatusMutationVariables = Exact<{
1015
+ id: Scalars['ID'];
1016
+ isArchived: Scalars['Boolean'];
1017
+ }>;
1018
+
1019
+
1020
+ export type IUpdateBrandArchivedStatusMutation = Pick<IMutation, 'updateBrandArchivedStatus'>;
1021
+
1014
1022
  export type IUpdateProfileStatusMutationVariables = Exact<{
1015
1023
  userId: Scalars['ID'];
1016
1024
  isActive: Scalars['Boolean'];
@@ -1295,6 +1303,37 @@ export function useRemoveInviteCodeMutation(baseOptions?: Apollo.MutationHookOpt
1295
1303
  export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
1296
1304
  export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
1297
1305
  export type RemoveInviteCodeMutationOptions = Apollo.BaseMutationOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
1306
+ export const UpdateBrandArchivedStatusDocument = gql`
1307
+ mutation UpdateBrandArchivedStatus($id: ID!, $isArchived: Boolean!) {
1308
+ updateBrandArchivedStatus(id: $id, isArchived: $isArchived)
1309
+ }
1310
+ `;
1311
+ export type IUpdateBrandArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>;
1312
+
1313
+ /**
1314
+ * __useUpdateBrandArchivedStatusMutation__
1315
+ *
1316
+ * To run a mutation, you first call `useUpdateBrandArchivedStatusMutation` within a React component and pass it any options that fit your needs.
1317
+ * When your component renders, `useUpdateBrandArchivedStatusMutation` returns a tuple that includes:
1318
+ * - A mutate function that you can call at any time to execute the mutation
1319
+ * - An object with fields that represent the current status of the mutation's execution
1320
+ *
1321
+ * @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;
1322
+ *
1323
+ * @example
1324
+ * const [updateBrandArchivedStatusMutation, { data, loading, error }] = useUpdateBrandArchivedStatusMutation({
1325
+ * variables: {
1326
+ * id: // value for 'id'
1327
+ * isArchived: // value for 'isArchived'
1328
+ * },
1329
+ * });
1330
+ */
1331
+ export function useUpdateBrandArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>) {
1332
+ return Apollo.useMutation<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>(UpdateBrandArchivedStatusDocument, baseOptions);
1333
+ }
1334
+ export type UpdateBrandArchivedStatusMutationHookResult = ReturnType<typeof useUpdateBrandArchivedStatusMutation>;
1335
+ export type UpdateBrandArchivedStatusMutationResult = Apollo.MutationResult<IUpdateBrandArchivedStatusMutation>;
1336
+ export type UpdateBrandArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>;
1298
1337
  export const UpdateProfileStatusDocument = gql`
1299
1338
  mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
1300
1339
  updateProfileStatus(userId: $userId, isActive: $isActive)