@ludo.ninja/api 2.8.85 → 2.8.86

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.
Files changed (38) hide show
  1. package/build/config/index.js +3 -2
  2. package/build/cookies/index.d.ts +1 -1
  3. package/build/graphql_tools/__generated__/adminHost/schema.d.ts +33 -33
  4. package/build/graphql_tools/__generated__/adminHost/schema.js +68 -66
  5. package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +2 -2
  6. package/build/graphql_tools/__generated__/assetsHost/schema.js +3 -3
  7. package/build/graphql_tools/__generated__/authHost/schema.d.ts +2 -2
  8. package/build/graphql_tools/__generated__/authHost/schema.js +3 -3
  9. package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +4 -2
  10. package/build/graphql_tools/__generated__/collectionsHost/schema.js +3 -3
  11. package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +9 -9
  12. package/build/graphql_tools/__generated__/experiencesHost/schema.js +10 -10
  13. package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +28 -28
  14. package/build/graphql_tools/__generated__/extensionHost/schema.js +18 -18
  15. package/build/graphql_tools/__generated__/formsHost/schema.js +8 -8
  16. package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +46 -46
  17. package/build/graphql_tools/__generated__/galleriesHost/schema.js +21 -21
  18. package/build/graphql_tools/__generated__/identityHost/schema.d.ts +52 -62
  19. package/build/graphql_tools/__generated__/identityHost/schema.js +32 -31
  20. package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +5 -5
  21. package/build/graphql_tools/__generated__/mediasHost/schema.js +5 -5
  22. package/build/graphql_tools/__generated__/notificationsHost/schema.d.ts +14 -5
  23. package/build/graphql_tools/__generated__/notificationsHost/schema.js +2 -2
  24. package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +7 -7
  25. package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +11 -11
  26. package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +2 -2
  27. package/build/graphql_tools/__generated__/preferencesHost/schema.js +23 -23
  28. package/build/graphql_tools/__generated__/searchHost/schema.d.ts +48 -48
  29. package/build/graphql_tools/__generated__/searchHost/schema.js +33 -33
  30. package/build/graphql_tools/__generated__/tapHost/schema.d.ts +13 -9
  31. package/build/graphql_tools/__generated__/tapHost/schema.js +14 -12
  32. package/build/index.d.ts +1217 -570
  33. package/package.json +1 -1
  34. package/src/graphql_tools/__generated__/collectionsHost/schema.ts +2 -0
  35. package/src/graphql_tools/__generated__/identityHost/schema.ts +0 -12
  36. package/src/graphql_tools/__generated__/notificationsHost/schema.ts +13 -2
  37. package/src/graphql_tools/__generated__/tapHost/schema.ts +10 -1
  38. package/tsconfig.tsbuildinfo +1 -1
@@ -3,8 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.initializeApollo = initializeApollo;
7
- exports.createErrorAuthInterceptor = createErrorAuthInterceptor;
6
+ exports.createErrorAuthInterceptor = exports.initializeApollo = void 0;
8
7
  const client_1 = require("@apollo/client");
9
8
  const error_1 = require("@apollo/client/link/error");
10
9
  const context_1 = require("@apollo/client/link/context");
@@ -149,6 +148,7 @@ function initializeApollo(initialState = null, domain) {
149
148
  apolloClient = _apolloClient;
150
149
  return _apolloClient;
151
150
  }
151
+ exports.initializeApollo = initializeApollo;
152
152
  function createErrorAuthInterceptor(client, onErrorAuth) {
153
153
  const errorLinkFirst = (0, error_1.onError)(({ graphQLErrors, networkError, operation, forward }) => {
154
154
  const { authToken } = (0, cookies_1.getCookies)();
@@ -169,4 +169,5 @@ function createErrorAuthInterceptor(client, onErrorAuth) {
169
169
  client.setLink(combinedLink);
170
170
  return client;
171
171
  }
172
+ exports.createErrorAuthInterceptor = createErrorAuthInterceptor;
172
173
  ;
@@ -2,7 +2,7 @@ import * as express from "express";
2
2
  import * as next from 'next';
3
3
  declare const assignCookies: (userId: string, wallets: Array<string>, authToken: string, refreshToken: string, newUser: string, inviteCode: string, role: string, domain?: string) => void;
4
4
  declare const refreshCookies: (authToken: string, refreshToken: string, domain?: string) => void;
5
- declare const getCookies: (ctx?: Pick<next.NextPageContext, "req"> | {
5
+ declare const getCookies: (ctx?: Pick<next.NextPageContext, 'req'> | {
6
6
  req: next.NextApiRequest;
7
7
  } | {
8
8
  req: express.Request;
@@ -1827,7 +1827,7 @@ export type ITriggerOpportunityNotificationMutationFn = Apollo.MutationFunction<
1827
1827
  * });
1828
1828
  */
1829
1829
  export declare function useTriggerOpportunityNotificationMutation(baseOptions?: Apollo.MutationHookOptions<ITriggerOpportunityNotificationMutation, ITriggerOpportunityNotificationMutationVariables>): Apollo.MutationTuple<ITriggerOpportunityNotificationMutation, Exact<{
1830
- opportunityId: Scalars["ID"];
1830
+ opportunityId: string;
1831
1831
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1832
1832
  export type TriggerOpportunityNotificationMutationHookResult = ReturnType<typeof useTriggerOpportunityNotificationMutation>;
1833
1833
  export type TriggerOpportunityNotificationMutationResult = Apollo.MutationResult<ITriggerOpportunityNotificationMutation>;
@@ -1853,8 +1853,8 @@ export type IUpdateInviteCodeUsagesLimitMutationFn = Apollo.MutationFunction<IUp
1853
1853
  * });
1854
1854
  */
1855
1855
  export declare function useUpdateInviteCodeUsagesLimitMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>): Apollo.MutationTuple<IUpdateInviteCodeUsagesLimitMutation, Exact<{
1856
- code: Scalars["String"];
1857
- usagesLimit: Scalars["Int"];
1856
+ code: string;
1857
+ usagesLimit: number;
1858
1858
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1859
1859
  export type UpdateInviteCodeUsagesLimitMutationHookResult = ReturnType<typeof useUpdateInviteCodeUsagesLimitMutation>;
1860
1860
  export type UpdateInviteCodeUsagesLimitMutationResult = Apollo.MutationResult<IUpdateInviteCodeUsagesLimitMutation>;
@@ -1880,8 +1880,8 @@ export type IUpdateOpportunityPushStatusMutationFn = Apollo.MutationFunction<IUp
1880
1880
  * });
1881
1881
  */
1882
1882
  export declare function useUpdateOpportunityPushStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateOpportunityPushStatusMutation, IUpdateOpportunityPushStatusMutationVariables>): Apollo.MutationTuple<IUpdateOpportunityPushStatusMutation, Exact<{
1883
- opportunityId: Scalars["ID"];
1884
- isActive: Scalars["Boolean"];
1883
+ opportunityId: string;
1884
+ isActive: boolean;
1885
1885
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1886
1886
  export type UpdateOpportunityPushStatusMutationHookResult = ReturnType<typeof useUpdateOpportunityPushStatusMutation>;
1887
1887
  export type UpdateOpportunityPushStatusMutationResult = Apollo.MutationResult<IUpdateOpportunityPushStatusMutation>;
@@ -1907,7 +1907,7 @@ export type IUpdateReferralTypeMutationFn = Apollo.MutationFunction<IUpdateRefer
1907
1907
  * });
1908
1908
  */
1909
1909
  export declare function useUpdateReferralTypeMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateReferralTypeMutation, IUpdateReferralTypeMutationVariables>): Apollo.MutationTuple<IUpdateReferralTypeMutation, Exact<{
1910
- id: Scalars["ID"];
1910
+ id: string;
1911
1911
  input: IReferralTypeInput;
1912
1912
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1913
1913
  export type UpdateReferralTypeMutationHookResult = ReturnType<typeof useUpdateReferralTypeMutation>;
@@ -1934,8 +1934,8 @@ export type IUpdateReferralTypeArchivedStatusMutationFn = Apollo.MutationFunctio
1934
1934
  * });
1935
1935
  */
1936
1936
  export declare function useUpdateReferralTypeArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateReferralTypeArchivedStatusMutation, IUpdateReferralTypeArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateReferralTypeArchivedStatusMutation, Exact<{
1937
- id: Scalars["ID"];
1938
- isArchived: Scalars["Boolean"];
1937
+ id: string;
1938
+ isArchived: boolean;
1939
1939
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1940
1940
  export type UpdateReferralTypeArchivedStatusMutationHookResult = ReturnType<typeof useUpdateReferralTypeArchivedStatusMutation>;
1941
1941
  export type UpdateReferralTypeArchivedStatusMutationResult = Apollo.MutationResult<IUpdateReferralTypeArchivedStatusMutation>;
@@ -1961,7 +1961,7 @@ export type IUpdateTierMutationFn = Apollo.MutationFunction<IUpdateTierMutation,
1961
1961
  * });
1962
1962
  */
1963
1963
  export declare function useUpdateTierMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateTierMutation, IUpdateTierMutationVariables>): Apollo.MutationTuple<IUpdateTierMutation, Exact<{
1964
- id: Scalars["ID"];
1964
+ id: string;
1965
1965
  input: ITierInput;
1966
1966
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1967
1967
  export type UpdateTierMutationHookResult = ReturnType<typeof useUpdateTierMutation>;
@@ -1988,8 +1988,8 @@ export type IUpdateTierArchivedStatusMutationFn = Apollo.MutationFunction<IUpdat
1988
1988
  * });
1989
1989
  */
1990
1990
  export declare function useUpdateTierArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateTierArchivedStatusMutation, IUpdateTierArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateTierArchivedStatusMutation, Exact<{
1991
- id: Scalars["ID"];
1992
- isArchived: Scalars["Boolean"];
1991
+ id: string;
1992
+ isArchived: boolean;
1993
1993
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1994
1994
  export type UpdateTierArchivedStatusMutationHookResult = ReturnType<typeof useUpdateTierArchivedStatusMutation>;
1995
1995
  export type UpdateTierArchivedStatusMutationResult = Apollo.MutationResult<IUpdateTierArchivedStatusMutation>;
@@ -2015,8 +2015,8 @@ export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsM
2015
2015
  * });
2016
2016
  */
2017
2017
  export declare function useChangeXpPointsMutation(baseOptions?: Apollo.MutationHookOptions<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>): Apollo.MutationTuple<IChangeXpPointsMutation, Exact<{
2018
- userId: Scalars["ID"];
2019
- pointsDiff: Scalars["Int"];
2018
+ userId: string;
2019
+ pointsDiff: number;
2020
2020
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2021
2021
  export type ChangeXpPointsMutationHookResult = ReturnType<typeof useChangeXpPointsMutation>;
2022
2022
  export type ChangeXpPointsMutationResult = Apollo.MutationResult<IChangeXpPointsMutation>;
@@ -2042,8 +2042,8 @@ export type ICreateCategoryMutationFn = Apollo.MutationFunction<ICreateCategoryM
2042
2042
  * });
2043
2043
  */
2044
2044
  export declare function useCreateCategoryMutation(baseOptions?: Apollo.MutationHookOptions<ICreateCategoryMutation, ICreateCategoryMutationVariables>): Apollo.MutationTuple<ICreateCategoryMutation, Exact<{
2045
- name: Scalars["String"];
2046
- matchingWords: Array<Scalars["String"]>;
2045
+ name: string;
2046
+ matchingWords: string[];
2047
2047
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2048
2048
  export type CreateCategoryMutationHookResult = ReturnType<typeof useCreateCategoryMutation>;
2049
2049
  export type CreateCategoryMutationResult = Apollo.MutationResult<ICreateCategoryMutation>;
@@ -2070,7 +2070,7 @@ export type ICreateBrandMutationFn = Apollo.MutationFunction<ICreateBrandMutatio
2070
2070
  */
2071
2071
  export declare function useCreateBrandMutation(baseOptions?: Apollo.MutationHookOptions<ICreateBrandMutation, ICreateBrandMutationVariables>): Apollo.MutationTuple<ICreateBrandMutation, Exact<{
2072
2072
  brand: IBrandInput;
2073
- file?: Maybe<Scalars["Upload"]>;
2073
+ file?: any;
2074
2074
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2075
2075
  export type CreateBrandMutationHookResult = ReturnType<typeof useCreateBrandMutation>;
2076
2076
  export type CreateBrandMutationResult = Apollo.MutationResult<ICreateBrandMutation>;
@@ -2096,7 +2096,7 @@ export type ICreateAdminOpportunityMutationFn = Apollo.MutationFunction<ICreateA
2096
2096
  * });
2097
2097
  */
2098
2098
  export declare function useCreateAdminOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>): Apollo.MutationTuple<ICreateAdminOpportunityMutation, Exact<{
2099
- file?: Maybe<Scalars["Upload"]>;
2099
+ file?: any;
2100
2100
  input: IAdminOpportunityInput;
2101
2101
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2102
2102
  export type CreateAdminOpportunityMutationHookResult = ReturnType<typeof useCreateAdminOpportunityMutation>;
@@ -2123,8 +2123,8 @@ export type IAddInviteCodesMutationFn = Apollo.MutationFunction<IAddInviteCodesM
2123
2123
  * });
2124
2124
  */
2125
2125
  export declare function useAddInviteCodesMutation(baseOptions?: Apollo.MutationHookOptions<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>): Apollo.MutationTuple<IAddInviteCodesMutation, Exact<{
2126
- userId: Scalars["String"];
2127
- codesNum: Scalars["Int"];
2126
+ userId: string;
2127
+ codesNum: number;
2128
2128
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2129
2129
  export type AddInviteCodesMutationHookResult = ReturnType<typeof useAddInviteCodesMutation>;
2130
2130
  export type AddInviteCodesMutationResult = Apollo.MutationResult<IAddInviteCodesMutation>;
@@ -2149,7 +2149,7 @@ export type IRemoveInviteCodeMutationFn = Apollo.MutationFunction<IRemoveInviteC
2149
2149
  * });
2150
2150
  */
2151
2151
  export declare function useRemoveInviteCodeMutation(baseOptions?: Apollo.MutationHookOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>): Apollo.MutationTuple<IRemoveInviteCodeMutation, Exact<{
2152
- inviteCode: Scalars["String"];
2152
+ inviteCode: string;
2153
2153
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2154
2154
  export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
2155
2155
  export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
@@ -2176,9 +2176,9 @@ export type IUpdateBrandMutationFn = Apollo.MutationFunction<IUpdateBrandMutatio
2176
2176
  * });
2177
2177
  */
2178
2178
  export declare function useUpdateBrandMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateBrandMutation, IUpdateBrandMutationVariables>): Apollo.MutationTuple<IUpdateBrandMutation, Exact<{
2179
- id: Scalars["ID"];
2179
+ id: string;
2180
2180
  input: IBrandInput;
2181
- file?: Maybe<Scalars["Upload"]>;
2181
+ file?: any;
2182
2182
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2183
2183
  export type UpdateBrandMutationHookResult = ReturnType<typeof useUpdateBrandMutation>;
2184
2184
  export type UpdateBrandMutationResult = Apollo.MutationResult<IUpdateBrandMutation>;
@@ -2204,8 +2204,8 @@ export type IUpdateBrandArchivedStatusMutationFn = Apollo.MutationFunction<IUpda
2204
2204
  * });
2205
2205
  */
2206
2206
  export declare function useUpdateBrandArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateBrandArchivedStatusMutation, Exact<{
2207
- id: Scalars["ID"];
2208
- isArchived: Scalars["Boolean"];
2207
+ id: string;
2208
+ isArchived: boolean;
2209
2209
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2210
2210
  export type UpdateBrandArchivedStatusMutationHookResult = ReturnType<typeof useUpdateBrandArchivedStatusMutation>;
2211
2211
  export type UpdateBrandArchivedStatusMutationResult = Apollo.MutationResult<IUpdateBrandArchivedStatusMutation>;
@@ -2231,7 +2231,7 @@ export type IUpdateCategoryMutationFn = Apollo.MutationFunction<IUpdateCategoryM
2231
2231
  * });
2232
2232
  */
2233
2233
  export declare function useUpdateCategoryMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateCategoryMutation, IUpdateCategoryMutationVariables>): Apollo.MutationTuple<IUpdateCategoryMutation, Exact<{
2234
- id: Scalars["ID"];
2234
+ id: string;
2235
2235
  input: ICategoryInput;
2236
2236
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2237
2237
  export type UpdateCategoryMutationHookResult = ReturnType<typeof useUpdateCategoryMutation>;
@@ -2258,8 +2258,8 @@ export type IUpdateCategoryArchivedStatusMutationFn = Apollo.MutationFunction<IU
2258
2258
  * });
2259
2259
  */
2260
2260
  export declare function useUpdateCategoryArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateCategoryArchivedStatusMutation, IUpdateCategoryArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateCategoryArchivedStatusMutation, Exact<{
2261
- id: Scalars["ID"];
2262
- isArchived: Scalars["Boolean"];
2261
+ id: string;
2262
+ isArchived: boolean;
2263
2263
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2264
2264
  export type UpdateCategoryArchivedStatusMutationHookResult = ReturnType<typeof useUpdateCategoryArchivedStatusMutation>;
2265
2265
  export type UpdateCategoryArchivedStatusMutationResult = Apollo.MutationResult<IUpdateCategoryArchivedStatusMutation>;
@@ -2286,9 +2286,9 @@ export type IUpdateOpportunityMutationFn = Apollo.MutationFunction<IUpdateOpport
2286
2286
  * });
2287
2287
  */
2288
2288
  export declare function useUpdateOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>): Apollo.MutationTuple<IUpdateOpportunityMutation, Exact<{
2289
- id: Scalars["ID"];
2289
+ id: string;
2290
2290
  input: IAdminOpportunityInput;
2291
- file?: Maybe<Scalars["Upload"]>;
2291
+ file?: any;
2292
2292
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2293
2293
  export type UpdateOpportunityMutationHookResult = ReturnType<typeof useUpdateOpportunityMutation>;
2294
2294
  export type UpdateOpportunityMutationResult = Apollo.MutationResult<IUpdateOpportunityMutation>;
@@ -2314,8 +2314,8 @@ export type IUpdateProfileStatusMutationFn = Apollo.MutationFunction<IUpdateProf
2314
2314
  * });
2315
2315
  */
2316
2316
  export declare function useUpdateProfileStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>): Apollo.MutationTuple<IUpdateProfileStatusMutation, Exact<{
2317
- userId: Scalars["ID"];
2318
- isActive: Scalars["Boolean"];
2317
+ userId: string;
2318
+ isActive: boolean;
2319
2319
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2320
2320
  export type UpdateProfileStatusMutationHookResult = ReturnType<typeof useUpdateProfileStatusMutation>;
2321
2321
  export type UpdateProfileStatusMutationResult = Apollo.MutationResult<IUpdateProfileStatusMutation>;
@@ -2338,10 +2338,10 @@ export declare const CheckInviteCodeDocument: Apollo.DocumentNode;
2338
2338
  * });
2339
2339
  */
2340
2340
  export declare function useCheckInviteCodeQuery(baseOptions: Apollo.QueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>): Apollo.QueryResult<ICheckInviteCodeQuery, Exact<{
2341
- code: Scalars["String"];
2341
+ code: string;
2342
2342
  }>>;
2343
2343
  export declare function useCheckInviteCodeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>): Apollo.LazyQueryResultTuple<ICheckInviteCodeQuery, Exact<{
2344
- code: Scalars["String"];
2344
+ code: string;
2345
2345
  }>>;
2346
2346
  export type CheckInviteCodeQueryHookResult = ReturnType<typeof useCheckInviteCodeQuery>;
2347
2347
  export type CheckInviteCodeLazyQueryHookResult = ReturnType<typeof useCheckInviteCodeLazyQuery>;