@ludo.ninja/api 2.8.96 → 2.8.97

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 (37) 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 +34 -34
  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 +2 -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 +101 -65
  19. package/build/graphql_tools/__generated__/identityHost/schema.js +75 -33
  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 +4 -4
  23. package/build/graphql_tools/__generated__/notificationsHost/schema.js +3 -3
  24. package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +7 -36
  25. package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +11 -37
  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 +52 -48
  29. package/build/graphql_tools/__generated__/searchHost/schema.js +33 -33
  30. package/build/graphql_tools/__generated__/tapHost/schema.d.ts +6 -6
  31. package/build/graphql_tools/__generated__/tapHost/schema.js +12 -12
  32. package/build/index.d.ts +1237 -587
  33. package/package.json +1 -1
  34. package/src/graphql_tools/__generated__/identityHost/schema.ts +75 -11
  35. package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +0 -37
  36. package/src/graphql_tools/__generated__/searchHost/schema.ts +4 -0
  37. 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;
@@ -1852,7 +1852,7 @@ export type ITriggerOpportunityNotificationMutationFn = Apollo.MutationFunction<
1852
1852
  * });
1853
1853
  */
1854
1854
  export declare function useTriggerOpportunityNotificationMutation(baseOptions?: Apollo.MutationHookOptions<ITriggerOpportunityNotificationMutation, ITriggerOpportunityNotificationMutationVariables>): Apollo.MutationTuple<ITriggerOpportunityNotificationMutation, Exact<{
1855
- opportunityId: Scalars["ID"];
1855
+ opportunityId: string;
1856
1856
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1857
1857
  export type TriggerOpportunityNotificationMutationHookResult = ReturnType<typeof useTriggerOpportunityNotificationMutation>;
1858
1858
  export type TriggerOpportunityNotificationMutationResult = Apollo.MutationResult<ITriggerOpportunityNotificationMutation>;
@@ -1878,8 +1878,8 @@ export type IUpdateInviteCodeUsagesLimitMutationFn = Apollo.MutationFunction<IUp
1878
1878
  * });
1879
1879
  */
1880
1880
  export declare function useUpdateInviteCodeUsagesLimitMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>): Apollo.MutationTuple<IUpdateInviteCodeUsagesLimitMutation, Exact<{
1881
- code: Scalars["String"];
1882
- usagesLimit: Scalars["Int"];
1881
+ code: string;
1882
+ usagesLimit: number;
1883
1883
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1884
1884
  export type UpdateInviteCodeUsagesLimitMutationHookResult = ReturnType<typeof useUpdateInviteCodeUsagesLimitMutation>;
1885
1885
  export type UpdateInviteCodeUsagesLimitMutationResult = Apollo.MutationResult<IUpdateInviteCodeUsagesLimitMutation>;
@@ -1905,8 +1905,8 @@ export type IUpdateOpportunityPushStatusMutationFn = Apollo.MutationFunction<IUp
1905
1905
  * });
1906
1906
  */
1907
1907
  export declare function useUpdateOpportunityPushStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateOpportunityPushStatusMutation, IUpdateOpportunityPushStatusMutationVariables>): Apollo.MutationTuple<IUpdateOpportunityPushStatusMutation, Exact<{
1908
- opportunityId: Scalars["ID"];
1909
- isActive: Scalars["Boolean"];
1908
+ opportunityId: string;
1909
+ isActive: boolean;
1910
1910
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1911
1911
  export type UpdateOpportunityPushStatusMutationHookResult = ReturnType<typeof useUpdateOpportunityPushStatusMutation>;
1912
1912
  export type UpdateOpportunityPushStatusMutationResult = Apollo.MutationResult<IUpdateOpportunityPushStatusMutation>;
@@ -1932,7 +1932,7 @@ export type IUpdateReferralTypeMutationFn = Apollo.MutationFunction<IUpdateRefer
1932
1932
  * });
1933
1933
  */
1934
1934
  export declare function useUpdateReferralTypeMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateReferralTypeMutation, IUpdateReferralTypeMutationVariables>): Apollo.MutationTuple<IUpdateReferralTypeMutation, Exact<{
1935
- id: Scalars["ID"];
1935
+ id: string;
1936
1936
  input: IReferralTypeInput;
1937
1937
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1938
1938
  export type UpdateReferralTypeMutationHookResult = ReturnType<typeof useUpdateReferralTypeMutation>;
@@ -1959,8 +1959,8 @@ export type IUpdateReferralTypeArchivedStatusMutationFn = Apollo.MutationFunctio
1959
1959
  * });
1960
1960
  */
1961
1961
  export declare function useUpdateReferralTypeArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateReferralTypeArchivedStatusMutation, IUpdateReferralTypeArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateReferralTypeArchivedStatusMutation, Exact<{
1962
- id: Scalars["ID"];
1963
- isArchived: Scalars["Boolean"];
1962
+ id: string;
1963
+ isArchived: boolean;
1964
1964
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1965
1965
  export type UpdateReferralTypeArchivedStatusMutationHookResult = ReturnType<typeof useUpdateReferralTypeArchivedStatusMutation>;
1966
1966
  export type UpdateReferralTypeArchivedStatusMutationResult = Apollo.MutationResult<IUpdateReferralTypeArchivedStatusMutation>;
@@ -1986,7 +1986,7 @@ export type IUpdateTierMutationFn = Apollo.MutationFunction<IUpdateTierMutation,
1986
1986
  * });
1987
1987
  */
1988
1988
  export declare function useUpdateTierMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateTierMutation, IUpdateTierMutationVariables>): Apollo.MutationTuple<IUpdateTierMutation, Exact<{
1989
- id: Scalars["ID"];
1989
+ id: string;
1990
1990
  input: ITierInput;
1991
1991
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1992
1992
  export type UpdateTierMutationHookResult = ReturnType<typeof useUpdateTierMutation>;
@@ -2013,8 +2013,8 @@ export type IUpdateTierArchivedStatusMutationFn = Apollo.MutationFunction<IUpdat
2013
2013
  * });
2014
2014
  */
2015
2015
  export declare function useUpdateTierArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateTierArchivedStatusMutation, IUpdateTierArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateTierArchivedStatusMutation, Exact<{
2016
- id: Scalars["ID"];
2017
- isArchived: Scalars["Boolean"];
2016
+ id: string;
2017
+ isArchived: boolean;
2018
2018
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2019
2019
  export type UpdateTierArchivedStatusMutationHookResult = ReturnType<typeof useUpdateTierArchivedStatusMutation>;
2020
2020
  export type UpdateTierArchivedStatusMutationResult = Apollo.MutationResult<IUpdateTierArchivedStatusMutation>;
@@ -2040,8 +2040,8 @@ export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsM
2040
2040
  * });
2041
2041
  */
2042
2042
  export declare function useChangeXpPointsMutation(baseOptions?: Apollo.MutationHookOptions<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>): Apollo.MutationTuple<IChangeXpPointsMutation, Exact<{
2043
- userId: Scalars["ID"];
2044
- pointsDiff: Scalars["Int"];
2043
+ userId: string;
2044
+ pointsDiff: number;
2045
2045
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2046
2046
  export type ChangeXpPointsMutationHookResult = ReturnType<typeof useChangeXpPointsMutation>;
2047
2047
  export type ChangeXpPointsMutationResult = Apollo.MutationResult<IChangeXpPointsMutation>;
@@ -2067,8 +2067,8 @@ export type ICreateCategoryMutationFn = Apollo.MutationFunction<ICreateCategoryM
2067
2067
  * });
2068
2068
  */
2069
2069
  export declare function useCreateCategoryMutation(baseOptions?: Apollo.MutationHookOptions<ICreateCategoryMutation, ICreateCategoryMutationVariables>): Apollo.MutationTuple<ICreateCategoryMutation, Exact<{
2070
- name: Scalars["String"];
2071
- matchingWords: Array<Scalars["String"]>;
2070
+ name: string;
2071
+ matchingWords: string[];
2072
2072
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2073
2073
  export type CreateCategoryMutationHookResult = ReturnType<typeof useCreateCategoryMutation>;
2074
2074
  export type CreateCategoryMutationResult = Apollo.MutationResult<ICreateCategoryMutation>;
@@ -2095,7 +2095,7 @@ export type ICreateBrandMutationFn = Apollo.MutationFunction<ICreateBrandMutatio
2095
2095
  */
2096
2096
  export declare function useCreateBrandMutation(baseOptions?: Apollo.MutationHookOptions<ICreateBrandMutation, ICreateBrandMutationVariables>): Apollo.MutationTuple<ICreateBrandMutation, Exact<{
2097
2097
  brand: IBrandInput;
2098
- file?: Maybe<Scalars["Upload"]>;
2098
+ file?: any;
2099
2099
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2100
2100
  export type CreateBrandMutationHookResult = ReturnType<typeof useCreateBrandMutation>;
2101
2101
  export type CreateBrandMutationResult = Apollo.MutationResult<ICreateBrandMutation>;
@@ -2121,7 +2121,7 @@ export type ICreateAdminOpportunityMutationFn = Apollo.MutationFunction<ICreateA
2121
2121
  * });
2122
2122
  */
2123
2123
  export declare function useCreateAdminOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>): Apollo.MutationTuple<ICreateAdminOpportunityMutation, Exact<{
2124
- file?: Maybe<Scalars["Upload"]>;
2124
+ file?: any;
2125
2125
  input: IAdminOpportunityInput;
2126
2126
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2127
2127
  export type CreateAdminOpportunityMutationHookResult = ReturnType<typeof useCreateAdminOpportunityMutation>;
@@ -2149,9 +2149,9 @@ export type IAddInviteCodesMutationFn = Apollo.MutationFunction<IAddInviteCodesM
2149
2149
  * });
2150
2150
  */
2151
2151
  export declare function useAddInviteCodesMutation(baseOptions?: Apollo.MutationHookOptions<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>): Apollo.MutationTuple<IAddInviteCodesMutation, Exact<{
2152
- userId: Scalars["String"];
2153
- codesNum: Scalars["Int"];
2154
- reftypeId?: Maybe<Scalars["String"]>;
2152
+ userId: string;
2153
+ codesNum: number;
2154
+ reftypeId?: Maybe<string> | undefined;
2155
2155
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2156
2156
  export type AddInviteCodesMutationHookResult = ReturnType<typeof useAddInviteCodesMutation>;
2157
2157
  export type AddInviteCodesMutationResult = Apollo.MutationResult<IAddInviteCodesMutation>;
@@ -2176,7 +2176,7 @@ export type IRemoveInviteCodeMutationFn = Apollo.MutationFunction<IRemoveInviteC
2176
2176
  * });
2177
2177
  */
2178
2178
  export declare function useRemoveInviteCodeMutation(baseOptions?: Apollo.MutationHookOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>): Apollo.MutationTuple<IRemoveInviteCodeMutation, Exact<{
2179
- inviteCode: Scalars["String"];
2179
+ inviteCode: string;
2180
2180
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2181
2181
  export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
2182
2182
  export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
@@ -2203,9 +2203,9 @@ export type IUpdateBrandMutationFn = Apollo.MutationFunction<IUpdateBrandMutatio
2203
2203
  * });
2204
2204
  */
2205
2205
  export declare function useUpdateBrandMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateBrandMutation, IUpdateBrandMutationVariables>): Apollo.MutationTuple<IUpdateBrandMutation, Exact<{
2206
- id: Scalars["ID"];
2206
+ id: string;
2207
2207
  input: IBrandInput;
2208
- file?: Maybe<Scalars["Upload"]>;
2208
+ file?: any;
2209
2209
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2210
2210
  export type UpdateBrandMutationHookResult = ReturnType<typeof useUpdateBrandMutation>;
2211
2211
  export type UpdateBrandMutationResult = Apollo.MutationResult<IUpdateBrandMutation>;
@@ -2231,8 +2231,8 @@ export type IUpdateBrandArchivedStatusMutationFn = Apollo.MutationFunction<IUpda
2231
2231
  * });
2232
2232
  */
2233
2233
  export declare function useUpdateBrandArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateBrandArchivedStatusMutation, Exact<{
2234
- id: Scalars["ID"];
2235
- isArchived: Scalars["Boolean"];
2234
+ id: string;
2235
+ isArchived: boolean;
2236
2236
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2237
2237
  export type UpdateBrandArchivedStatusMutationHookResult = ReturnType<typeof useUpdateBrandArchivedStatusMutation>;
2238
2238
  export type UpdateBrandArchivedStatusMutationResult = Apollo.MutationResult<IUpdateBrandArchivedStatusMutation>;
@@ -2258,7 +2258,7 @@ export type IUpdateCategoryMutationFn = Apollo.MutationFunction<IUpdateCategoryM
2258
2258
  * });
2259
2259
  */
2260
2260
  export declare function useUpdateCategoryMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateCategoryMutation, IUpdateCategoryMutationVariables>): Apollo.MutationTuple<IUpdateCategoryMutation, Exact<{
2261
- id: Scalars["ID"];
2261
+ id: string;
2262
2262
  input: ICategoryInput;
2263
2263
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2264
2264
  export type UpdateCategoryMutationHookResult = ReturnType<typeof useUpdateCategoryMutation>;
@@ -2285,8 +2285,8 @@ export type IUpdateCategoryArchivedStatusMutationFn = Apollo.MutationFunction<IU
2285
2285
  * });
2286
2286
  */
2287
2287
  export declare function useUpdateCategoryArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateCategoryArchivedStatusMutation, IUpdateCategoryArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateCategoryArchivedStatusMutation, Exact<{
2288
- id: Scalars["ID"];
2289
- isArchived: Scalars["Boolean"];
2288
+ id: string;
2289
+ isArchived: boolean;
2290
2290
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2291
2291
  export type UpdateCategoryArchivedStatusMutationHookResult = ReturnType<typeof useUpdateCategoryArchivedStatusMutation>;
2292
2292
  export type UpdateCategoryArchivedStatusMutationResult = Apollo.MutationResult<IUpdateCategoryArchivedStatusMutation>;
@@ -2313,9 +2313,9 @@ export type IUpdateOpportunityMutationFn = Apollo.MutationFunction<IUpdateOpport
2313
2313
  * });
2314
2314
  */
2315
2315
  export declare function useUpdateOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>): Apollo.MutationTuple<IUpdateOpportunityMutation, Exact<{
2316
- id: Scalars["ID"];
2316
+ id: string;
2317
2317
  input: IAdminOpportunityInput;
2318
- file?: Maybe<Scalars["Upload"]>;
2318
+ file?: any;
2319
2319
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2320
2320
  export type UpdateOpportunityMutationHookResult = ReturnType<typeof useUpdateOpportunityMutation>;
2321
2321
  export type UpdateOpportunityMutationResult = Apollo.MutationResult<IUpdateOpportunityMutation>;
@@ -2341,8 +2341,8 @@ export type IUpdateProfileStatusMutationFn = Apollo.MutationFunction<IUpdateProf
2341
2341
  * });
2342
2342
  */
2343
2343
  export declare function useUpdateProfileStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>): Apollo.MutationTuple<IUpdateProfileStatusMutation, Exact<{
2344
- userId: Scalars["ID"];
2345
- isActive: Scalars["Boolean"];
2344
+ userId: string;
2345
+ isActive: boolean;
2346
2346
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2347
2347
  export type UpdateProfileStatusMutationHookResult = ReturnType<typeof useUpdateProfileStatusMutation>;
2348
2348
  export type UpdateProfileStatusMutationResult = Apollo.MutationResult<IUpdateProfileStatusMutation>;
@@ -2365,10 +2365,10 @@ export declare const CheckInviteCodeDocument: Apollo.DocumentNode;
2365
2365
  * });
2366
2366
  */
2367
2367
  export declare function useCheckInviteCodeQuery(baseOptions: Apollo.QueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>): Apollo.QueryResult<ICheckInviteCodeQuery, Exact<{
2368
- code: Scalars["String"];
2368
+ code: string;
2369
2369
  }>>;
2370
2370
  export declare function useCheckInviteCodeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>): Apollo.LazyQueryResultTuple<ICheckInviteCodeQuery, Exact<{
2371
- code: Scalars["String"];
2371
+ code: string;
2372
2372
  }>>;
2373
2373
  export type CheckInviteCodeQueryHookResult = ReturnType<typeof useCheckInviteCodeQuery>;
2374
2374
  export type CheckInviteCodeLazyQueryHookResult = ReturnType<typeof useCheckInviteCodeLazyQuery>;