react-native-notify-kit 10.8.0 → 10.8.1

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.
@@ -371,7 +371,17 @@ export declare enum EventType {
371
371
  *
372
372
  * Event type is sent when a notification wants to start a foreground service but a foreground service is already started.
373
373
  */
374
- FG_ALREADY_EXIST = 8
374
+ FG_ALREADY_EXIST = 8,
375
+ /**
376
+ * Event type for an Android Foreground Service timeout handled by the native timeout path.
377
+ *
378
+ * Delivery to JavaScript is best-effort; JavaScript execution is not guaranteed.
379
+ * This event does not confirm completed Android service teardown, guarantee cancellation of
380
+ * JavaScript work, or authorize a new Foreground Service start.
381
+ *
382
+ * @platform android
383
+ */
384
+ FG_TIMEOUT = 9
375
385
  }
376
386
  /**
377
387
  * An interface representing the different detail values which can be provided with a notification event.
@@ -390,6 +400,7 @@ export interface EventDetail {
390
400
  * - [`EventType.DELIVERED`](/react-native/reference/eventtype#delivered)
391
401
  * - [`EventType.TRIGGER_NOTIFICATION_CREATED`](/react-native/reference/eventtype#trigger_notification_created)
392
402
  * - [`EventType.FG_ALREADY_EXIST`](/react-native/reference/eventtype#fg_already_exist)
403
+ * - [`EventType.FG_TIMEOUT`](/react-native/reference/eventtype#fg_timeout)
393
404
  */
394
405
  notification?: Notification;
395
406
  /**
@@ -443,6 +454,19 @@ export interface EventDetail {
443
454
  * @platform android API Level >= 28
444
455
  */
445
456
  blocked?: boolean;
457
+ /**
458
+ * The start command identifier reported by Android's timeout callback for `EventType.FG_TIMEOUT`.
459
+ *
460
+ * @platform android
461
+ */
462
+ startId?: number;
463
+ /**
464
+ * The Foreground Service type reported by Android's timeout callback for `EventType.FG_TIMEOUT`.
465
+ * A value of `-1` is preserved when the callback overload does not provide an explicit type.
466
+ *
467
+ * @platform android
468
+ */
469
+ fgsType?: number;
446
470
  }
447
471
  /**
448
472
  * An enum representing the notification authorization status for this app on the device.
@@ -77,6 +77,16 @@ export var EventType;
77
77
  * Event type is sent when a notification wants to start a foreground service but a foreground service is already started.
78
78
  */
79
79
  EventType[EventType["FG_ALREADY_EXIST"] = 8] = "FG_ALREADY_EXIST";
80
+ /**
81
+ * Event type for an Android Foreground Service timeout handled by the native timeout path.
82
+ *
83
+ * Delivery to JavaScript is best-effort; JavaScript execution is not guaranteed.
84
+ * This event does not confirm completed Android service teardown, guarantee cancellation of
85
+ * JavaScript work, or authorize a new Foreground Service start.
86
+ *
87
+ * @platform android
88
+ */
89
+ EventType[EventType["FG_TIMEOUT"] = 9] = "FG_TIMEOUT";
80
90
  })(EventType || (EventType = {}));
81
91
  /**
82
92
  * An enum representing the notification authorization status for this app on the device.
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../src/types/Notification.ts"],"names":[],"mappings":"AAAA;;GAEG;AA6UH;;;;;GAKG;AACH,MAAM,CAAN,IAAY,SA8EX;AA9ED,WAAY,SAAS;IACnB;;;;;OAKG;IACH,gDAAY,CAAA;IAEZ;;;;;;;OAOG;IACH,mDAAa,CAAA;IAEb;;;;;;;;;OASG;IACH,2CAAS,CAAA;IAET;;OAEG;IACH,yDAAgB,CAAA;IAEhB;;;;;;OAMG;IACH,mDAAa,CAAA;IAEb;;;;;OAKG;IACH,uDAAe,CAAA;IAEf;;;;OAIG;IACH,+DAAmB,CAAA;IAEnB;;;;OAIG;IACH,2EAAyB,CAAA;IAEzB;;OAEG;IACH,yFAAgC,CAAA;IAEhC;;;;OAIG;IACH,iEAAoB,CAAA;AACtB,CAAC,EA9EW,SAAS,KAAT,SAAS,QA8EpB;AA+ED;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,mBA0BX;AA1BD,WAAY,mBAAmB;IAC7B;;;;;;;OAOG;IACH,kFAAmB,CAAA;IAEnB;;OAEG;IACH,iEAAU,CAAA;IAEV;;OAEG;IACH,yEAAc,CAAA;IAEd;;;OAGG;IACH,2EAAe,CAAA;AACjB,CAAC,EA1BW,mBAAmB,KAAnB,mBAAmB,QA0B9B"}
1
+ {"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../src/types/Notification.ts"],"names":[],"mappings":"AAAA;;GAEG;AA6UH;;;;;GAKG;AACH,MAAM,CAAN,IAAY,SAyFX;AAzFD,WAAY,SAAS;IACnB;;;;;OAKG;IACH,gDAAY,CAAA;IAEZ;;;;;;;OAOG;IACH,mDAAa,CAAA;IAEb;;;;;;;;;OASG;IACH,2CAAS,CAAA;IAET;;OAEG;IACH,yDAAgB,CAAA;IAEhB;;;;;;OAMG;IACH,mDAAa,CAAA;IAEb;;;;;OAKG;IACH,uDAAe,CAAA;IAEf;;;;OAIG;IACH,+DAAmB,CAAA;IAEnB;;;;OAIG;IACH,2EAAyB,CAAA;IAEzB;;OAEG;IACH,yFAAgC,CAAA;IAEhC;;;;OAIG;IACH,iEAAoB,CAAA;IAEpB;;;;;;;;OAQG;IACH,qDAAc,CAAA;AAChB,CAAC,EAzFW,SAAS,KAAT,SAAS,QAyFpB;AA+FD;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,mBA0BX;AA1BD,WAAY,mBAAmB;IAC7B;;;;;;;OAOG;IACH,kFAAmB,CAAA;IAEnB;;OAEG;IACH,iEAAU,CAAA;IAEV;;OAEG;IACH,yEAAc,CAAA;IAEd;;;OAGG;IACH,2EAAe,CAAA;AACjB,CAAC,EA1BW,mBAAmB,KAAnB,mBAAmB,QA0B9B"}
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "10.8.0";
1
+ export declare const version = "10.8.1";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '10.8.0';
2
+ export const version = '10.8.1';
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-notify-kit",
3
- "version": "10.8.0",
3
+ "version": "10.8.1",
4
4
  "author": "Marco Crupi",
5
5
  "description": "Maintained Notifee-compatible React Native notifications library for Android, iOS, FCM Mode, rich notifications, foreground services, and Expo CNG development builds.",
6
6
  "main": "dist/index.js",
@@ -417,6 +417,17 @@ export enum EventType {
417
417
  * Event type is sent when a notification wants to start a foreground service but a foreground service is already started.
418
418
  */
419
419
  FG_ALREADY_EXIST = 8,
420
+
421
+ /**
422
+ * Event type for an Android Foreground Service timeout handled by the native timeout path.
423
+ *
424
+ * Delivery to JavaScript is best-effort; JavaScript execution is not guaranteed.
425
+ * This event does not confirm completed Android service teardown, guarantee cancellation of
426
+ * JavaScript work, or authorize a new Foreground Service start.
427
+ *
428
+ * @platform android
429
+ */
430
+ FG_TIMEOUT = 9,
420
431
  }
421
432
 
422
433
  /**
@@ -436,6 +447,7 @@ export interface EventDetail {
436
447
  * - [`EventType.DELIVERED`](/react-native/reference/eventtype#delivered)
437
448
  * - [`EventType.TRIGGER_NOTIFICATION_CREATED`](/react-native/reference/eventtype#trigger_notification_created)
438
449
  * - [`EventType.FG_ALREADY_EXIST`](/react-native/reference/eventtype#fg_already_exist)
450
+ * - [`EventType.FG_TIMEOUT`](/react-native/reference/eventtype#fg_timeout)
439
451
  */
440
452
  notification?: Notification;
441
453
 
@@ -494,6 +506,21 @@ export interface EventDetail {
494
506
  * @platform android API Level >= 28
495
507
  */
496
508
  blocked?: boolean;
509
+
510
+ /**
511
+ * The start command identifier reported by Android's timeout callback for `EventType.FG_TIMEOUT`.
512
+ *
513
+ * @platform android
514
+ */
515
+ startId?: number;
516
+
517
+ /**
518
+ * The Foreground Service type reported by Android's timeout callback for `EventType.FG_TIMEOUT`.
519
+ * A value of `-1` is preserved when the callback overload does not provide an explicit type.
520
+ *
521
+ * @platform android
522
+ */
523
+ fgsType?: number;
497
524
  }
498
525
 
499
526
  /**
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '10.8.0';
2
+ export const version = '10.8.1';