@ludo.ninja/api 2.8.86 → 2.8.87

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 (35) hide show
  1. package/build/config/index.js +2 -3
  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 +66 -68
  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 +52 -52
  19. package/build/graphql_tools/__generated__/identityHost/schema.js +31 -32
  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 +33 -4
  23. package/build/graphql_tools/__generated__/notificationsHost/schema.js +29 -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 +6 -6
  31. package/build/graphql_tools/__generated__/tapHost/schema.js +12 -12
  32. package/build/index.d.ts +574 -1217
  33. package/package.json +1 -1
  34. package/src/graphql_tools/__generated__/notificationsHost/schema.ts +39 -1
  35. package/tsconfig.tsbuildinfo +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.8.86",
3
+ "version": "2.8.87",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -208,18 +208,56 @@ export type IDirectiveResolvers<ContextType = any> = {
208
208
  oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
209
209
  };
210
210
 
211
+ export type IReadNotificationMutationVariables = Exact<{
212
+ notificationId: Scalars['ID'];
213
+ }>;
214
+
215
+
216
+ export type IReadNotificationMutation = Pick<IMutation, 'readNotification'>;
217
+
211
218
  export type IOnNotificationSubscriptionVariables = Exact<{
212
219
  authToken: Scalars['String'];
213
220
  notificationTypes: Array<INotificationType>;
214
221
  }>;
215
222
 
216
223
 
217
- export type IOnNotificationSubscription = { onNotification: Pick<INotification, 'notificationType' | 'eventType' | 'createdAt' | 'name' | 'description' | 'media' | 'link'> };
224
+ export type IOnNotificationSubscription = { onNotification: Pick<INotification, 'notificationId' | 'notificationType' | 'eventType' | 'createdAt' | 'name' | 'description' | 'media' | 'link'> };
218
225
 
219
226
 
227
+ export const ReadNotificationDocument = gql`
228
+ mutation ReadNotification($notificationId: ID!) {
229
+ readNotification(notificationId: $notificationId)
230
+ }
231
+ `;
232
+ export type IReadNotificationMutationFn = Apollo.MutationFunction<IReadNotificationMutation, IReadNotificationMutationVariables>;
233
+
234
+ /**
235
+ * __useReadNotificationMutation__
236
+ *
237
+ * To run a mutation, you first call `useReadNotificationMutation` within a React component and pass it any options that fit your needs.
238
+ * When your component renders, `useReadNotificationMutation` returns a tuple that includes:
239
+ * - A mutate function that you can call at any time to execute the mutation
240
+ * - An object with fields that represent the current status of the mutation's execution
241
+ *
242
+ * @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;
243
+ *
244
+ * @example
245
+ * const [readNotificationMutation, { data, loading, error }] = useReadNotificationMutation({
246
+ * variables: {
247
+ * notificationId: // value for 'notificationId'
248
+ * },
249
+ * });
250
+ */
251
+ export function useReadNotificationMutation(baseOptions?: Apollo.MutationHookOptions<IReadNotificationMutation, IReadNotificationMutationVariables>) {
252
+ return Apollo.useMutation<IReadNotificationMutation, IReadNotificationMutationVariables>(ReadNotificationDocument, baseOptions);
253
+ }
254
+ export type ReadNotificationMutationHookResult = ReturnType<typeof useReadNotificationMutation>;
255
+ export type ReadNotificationMutationResult = Apollo.MutationResult<IReadNotificationMutation>;
256
+ export type ReadNotificationMutationOptions = Apollo.BaseMutationOptions<IReadNotificationMutation, IReadNotificationMutationVariables>;
220
257
  export const OnNotificationDocument = gql`
221
258
  subscription OnNotification($authToken: String!, $notificationTypes: [NotificationType!]!) {
222
259
  onNotification(authToken: $authToken, notificationTypes: $notificationTypes) {
260
+ notificationId
223
261
  notificationType
224
262
  eventType
225
263
  createdAt