|
1 | | -import OneSignalApiBase from '../../../src/shared/api/OneSignalApiBase'; |
2 | | -import OneSignalApiSW from '../../../src/shared/api/OneSignalApiSW'; |
| 1 | +import { |
| 2 | + NotificationType, |
| 3 | + type NotificationTypeValue, |
| 4 | +} from 'src/core/types/subscription'; |
| 5 | +import FuturePushSubscriptionRecord from 'src/page/userModel/FuturePushSubscriptionRecord'; |
| 6 | +import OneSignalApiBase from 'src/shared/api/OneSignalApiBase'; |
| 7 | +import OneSignalApiSW from 'src/shared/api/OneSignalApiSW'; |
| 8 | +import { type AppConfig, getServerAppConfig } from 'src/shared/config'; |
| 9 | +import { Utils } from 'src/shared/context/Utils'; |
| 10 | +import ServiceWorkerHelper from 'src/shared/helpers/ServiceWorkerHelper'; |
3 | 11 | import { |
4 | 12 | WorkerMessenger, |
5 | 13 | WorkerMessengerCommand, |
6 | 14 | type WorkerMessengerMessage, |
7 | | -} from '../../../src/shared/libraries/WorkerMessenger'; |
8 | | -import { RawPushSubscription } from '../../../src/shared/models/RawPushSubscription'; |
9 | | -import FuturePushSubscriptionRecord from '../../page/userModel/FuturePushSubscriptionRecord'; |
10 | | -import { Utils } from '../../shared/context/Utils'; |
11 | | -import ServiceWorkerHelper from '../../shared/helpers/ServiceWorkerHelper'; |
12 | | -import ContextSW from '../../shared/models/ContextSW'; |
| 15 | +} from 'src/shared/libraries/WorkerMessenger'; |
| 16 | +import ContextSW from 'src/shared/models/ContextSW'; |
| 17 | +import type { DeliveryPlatformKindValue } from 'src/shared/models/DeliveryPlatformKind'; |
13 | 18 | import { |
14 | 19 | type NotificationClickEventInternal, |
15 | 20 | type NotificationForegroundWillDisplayEventSerializable, |
16 | | -} from '../../shared/models/NotificationEvent'; |
| 21 | +} from 'src/shared/models/NotificationEvent'; |
17 | 22 | import { |
18 | 23 | type IMutableOSNotification, |
19 | 24 | type IOSNotification, |
20 | | -} from '../../shared/models/OSNotification'; |
| 25 | +} from 'src/shared/models/OSNotification'; |
| 26 | +import { RawPushSubscription } from 'src/shared/models/RawPushSubscription'; |
21 | 27 | import { |
22 | 28 | type PageVisibilityRequest, |
23 | 29 | type PageVisibilityResponse, |
24 | 30 | SessionStatus, |
25 | 31 | type UpsertOrDeactivateSessionPayload, |
26 | | -} from '../../shared/models/Session'; |
27 | | -import { SubscriptionStrategyKind } from '../../shared/models/SubscriptionStrategyKind'; |
28 | | -import Database from '../../shared/services/Database'; |
29 | | -import { awaitableTimeout } from '../../shared/utils/AwaitableTimeout'; |
| 32 | +} from 'src/shared/models/Session'; |
| 33 | +import { SubscriptionStrategyKind } from 'src/shared/models/SubscriptionStrategyKind'; |
| 34 | +import Database from 'src/shared/services/Database'; |
| 35 | +import { Browser, getBrowserName } from 'src/shared/useragent'; |
| 36 | +import { awaitableTimeout } from 'src/shared/utils/AwaitableTimeout'; |
| 37 | +import { VERSION } from 'src/shared/utils/EnvVariables'; |
30 | 38 | import { cancelableTimeout } from '../helpers/CancelableTimeout'; |
| 39 | +import { ModelCacheDirectAccess } from '../helpers/ModelCacheDirectAccess'; |
31 | 40 | import Log from '../libraries/Log'; |
32 | 41 | import { |
33 | 42 | type OSMinifiedNotificationPayload, |
34 | 43 | OSMinifiedNotificationPayloadHelper, |
35 | 44 | } from '../models/OSMinifiedNotificationPayload'; |
36 | | -import { |
37 | | - type OSServiceWorkerFields, |
38 | | - type SubscriptionChangeEvent, |
39 | | -} from './types'; |
40 | | - |
41 | | -import { |
42 | | - NotificationType, |
43 | | - type NotificationTypeValue, |
44 | | -} from 'src/core/types/subscription'; |
45 | | -import { type AppConfig, getServerAppConfig } from 'src/shared/config'; |
46 | | -import type { DeliveryPlatformKindValue } from 'src/shared/models/DeliveryPlatformKind'; |
47 | | -import { Browser, getBrowserName } from 'src/shared/useragent'; |
48 | | -import { VERSION } from 'src/shared/utils/EnvVariables'; |
49 | | -import { ModelCacheDirectAccess } from '../helpers/ModelCacheDirectAccess'; |
50 | 45 | import { OSNotificationButtonsConverter } from '../models/OSNotificationButtonsConverter'; |
51 | 46 | import { OSWebhookNotificationEventSender } from '../webhooks/notifications/OSWebhookNotificationEventSender'; |
| 47 | +import type { OSServiceWorkerFields, SubscriptionChangeEvent } from './types'; |
52 | 48 |
|
53 | 49 | declare const self: ServiceWorkerGlobalScope & OSServiceWorkerFields; |
54 | 50 |
|
|
0 commit comments