@tak-ps/cloudtak 13.36.2 → 13.38.0
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.
- package/dist/types/src/base/events.d.ts +1 -0
- package/dist/types/src/components/CloudTAK/Property/PropertyStyle.vue.d.ts +8 -3
- package/dist/types/src/stores/app.d.ts +1 -0
- package/dist/types/src/stores/device/notification.d.ts +14 -0
- package/dist/types/src/stores/device.d.ts +6 -1
- package/dist/types/src/types.d.ts +3 -11
- package/dist/types/src/workers/atlas-connection.d.ts +6 -0
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ export declare enum WorkerMessageType {
|
|
|
15
15
|
Channels_List = "channels:list",
|
|
16
16
|
Connection_Open = "connection:open",
|
|
17
17
|
Connection_Close = "connection:close",
|
|
18
|
+
Connection_AuthFailure = "connection:authfailure",
|
|
18
19
|
Mission_Change_Feature = "mission:change:feature",
|
|
19
20
|
Mission_Invite = "mission:invite",
|
|
20
21
|
Channel_Change = "channel:change",
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
type StyleProperties = Record<string, unknown>;
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
|
|
3
|
+
geometry: string;
|
|
4
|
+
modelValue: StyleProperties;
|
|
4
5
|
};
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:modelValue": (value: StyleProperties) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: StyleProperties) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
11
|
declare const _default: typeof __VLS_export;
|
|
7
12
|
export default _default;
|
|
@@ -25,6 +25,7 @@ export declare const useAppStore: import("pinia").StoreDefinition<"cloudtak-app"
|
|
|
25
25
|
applyTheme(style?: string): void;
|
|
26
26
|
routeLogin(): Promise<void>;
|
|
27
27
|
refreshLogin(): Promise<void>;
|
|
28
|
+
sessionExpired(): Promise<void>;
|
|
28
29
|
logout(): Promise<void>;
|
|
29
30
|
bootstrap(): Promise<boolean>;
|
|
30
31
|
teardown(): void;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type { DevicePermissionContext } from './types.ts';
|
|
2
|
+
export type PushNotificationData = {
|
|
3
|
+
/** In-app deep link path (e.g. `/cot/<uid>`) supplied by the server */
|
|
4
|
+
url?: string;
|
|
5
|
+
/** `routine` or `critical` - mirrors the server-side PagingPriority */
|
|
6
|
+
priority?: string;
|
|
7
|
+
};
|
|
2
8
|
export declare class BrowserNotificationPermission {
|
|
3
9
|
private readonly context;
|
|
4
10
|
private static supportsNotifications;
|
|
5
11
|
private messagingToken;
|
|
6
12
|
private tokenListener;
|
|
13
|
+
private actionListener;
|
|
7
14
|
private readonly tokenSubscribers;
|
|
15
|
+
private readonly actionSubscribers;
|
|
8
16
|
constructor(context: DevicePermissionContext);
|
|
9
17
|
private setMessagingToken;
|
|
10
18
|
/**
|
|
@@ -12,6 +20,12 @@ export declare class BrowserNotificationPermission {
|
|
|
12
20
|
* Returns a function that removes the subscription.
|
|
13
21
|
*/
|
|
14
22
|
onToken(listener: (token: string | null) => void): () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Subscribe to push notification taps; the listener receives the data payload.
|
|
25
|
+
* Returns a function that removes the subscription.
|
|
26
|
+
*/
|
|
27
|
+
onNotificationAction(listener: (data: PushNotificationData) => void): () => void;
|
|
28
|
+
private emitNotificationAction;
|
|
15
29
|
refreshStatus(): Promise<void>;
|
|
16
30
|
request(): Promise<void>;
|
|
17
31
|
initializeSubscription(): Promise<void>;
|
|
@@ -2,6 +2,7 @@ import { CameraPermission } from './device/camera.ts';
|
|
|
2
2
|
import { FileSystemPermission } from './device/file-system.ts';
|
|
3
3
|
import { GeolocationPermission } from './device/geolocation.ts';
|
|
4
4
|
import { BrowserNotificationPermission } from './device/notification.ts';
|
|
5
|
+
import type { PushNotificationData } from './device/notification.ts';
|
|
5
6
|
import { OrientationPermission } from './device/orientation.ts';
|
|
6
7
|
import { StoragePermission } from './device/storage.ts';
|
|
7
8
|
import { WakeLockPermission } from './device/wake-lock.ts';
|
|
@@ -12,6 +13,7 @@ export { CameraPermission } from './device/camera.ts';
|
|
|
12
13
|
export { FileSystemPermission } from './device/file-system.ts';
|
|
13
14
|
export { GeolocationPermission } from './device/geolocation.ts';
|
|
14
15
|
export { BrowserNotificationPermission } from './device/notification.ts';
|
|
16
|
+
export type { PushNotificationData } from './device/notification.ts';
|
|
15
17
|
export { OrientationPermission } from './device/orientation.ts';
|
|
16
18
|
export { StoragePermission } from './device/storage.ts';
|
|
17
19
|
export { WakeLockPermission } from './device/wake-lock.ts';
|
|
@@ -44,6 +46,7 @@ export declare const useDeviceStore: import("pinia").StoreDefinition<"device", P
|
|
|
44
46
|
getMessagingToken: () => string | null;
|
|
45
47
|
refreshMessagingToken: () => Promise<string | null>;
|
|
46
48
|
onMessagingToken: (listener: (token: string | null) => void) => () => void;
|
|
49
|
+
onNotificationAction: (listener: (data: PushNotificationData) => void) => () => void;
|
|
47
50
|
refreshOrientationPermissionStatus: () => Promise<void>;
|
|
48
51
|
refreshStoragePermissionStatus: () => Promise<void>;
|
|
49
52
|
refreshCameraPermissionStatus: () => Promise<void>;
|
|
@@ -85,6 +88,7 @@ export declare const useDeviceStore: import("pinia").StoreDefinition<"device", P
|
|
|
85
88
|
getMessagingToken: () => string | null;
|
|
86
89
|
refreshMessagingToken: () => Promise<string | null>;
|
|
87
90
|
onMessagingToken: (listener: (token: string | null) => void) => () => void;
|
|
91
|
+
onNotificationAction: (listener: (data: PushNotificationData) => void) => () => void;
|
|
88
92
|
refreshOrientationPermissionStatus: () => Promise<void>;
|
|
89
93
|
refreshStoragePermissionStatus: () => Promise<void>;
|
|
90
94
|
refreshCameraPermissionStatus: () => Promise<void>;
|
|
@@ -126,6 +130,7 @@ export declare const useDeviceStore: import("pinia").StoreDefinition<"device", P
|
|
|
126
130
|
getMessagingToken: () => string | null;
|
|
127
131
|
refreshMessagingToken: () => Promise<string | null>;
|
|
128
132
|
onMessagingToken: (listener: (token: string | null) => void) => () => void;
|
|
133
|
+
onNotificationAction: (listener: (data: PushNotificationData) => void) => () => void;
|
|
129
134
|
refreshOrientationPermissionStatus: () => Promise<void>;
|
|
130
135
|
refreshStoragePermissionStatus: () => Promise<void>;
|
|
131
136
|
refreshCameraPermissionStatus: () => Promise<void>;
|
|
@@ -139,4 +144,4 @@ export declare const useDeviceStore: import("pinia").StoreDefinition<"device", P
|
|
|
139
144
|
requestWakeLockPermission: () => Promise<void>;
|
|
140
145
|
requestFileSystemPermission: () => Promise<void>;
|
|
141
146
|
releaseWakeLockSentinel: () => Promise<void>;
|
|
142
|
-
}, "setPermissionStatus" | "refreshPermissionStatuses" | "initializePermissionSubscriptions" | "hasOrientationSupport" | "hasOrientationPermissionRequest" | "refreshLocationPermissionStatus" | "refreshNotificationPermissionStatus" | "getMessagingToken" | "refreshMessagingToken" | "onMessagingToken" | "refreshOrientationPermissionStatus" | "refreshStoragePermissionStatus" | "refreshCameraPermissionStatus" | "refreshWakeLockPermissionStatus" | "refreshFileSystemPermissionStatus" | "requestLocationPermission" | "requestNotificationPermission" | "requestOrientationPermission" | "requestStoragePermission" | "requestCameraPermission" | "requestWakeLockPermission" | "requestFileSystemPermission" | "releaseWakeLockSentinel">>;
|
|
147
|
+
}, "setPermissionStatus" | "refreshPermissionStatuses" | "initializePermissionSubscriptions" | "hasOrientationSupport" | "hasOrientationPermissionRequest" | "refreshLocationPermissionStatus" | "refreshNotificationPermissionStatus" | "getMessagingToken" | "refreshMessagingToken" | "onMessagingToken" | "onNotificationAction" | "refreshOrientationPermissionStatus" | "refreshStoragePermissionStatus" | "refreshCameraPermissionStatus" | "refreshWakeLockPermissionStatus" | "refreshFileSystemPermissionStatus" | "requestLocationPermission" | "requestNotificationPermission" | "requestOrientationPermission" | "requestStoragePermission" | "requestCameraPermission" | "requestWakeLockPermission" | "requestFileSystemPermission" | "releaseWakeLockSentinel">>;
|
|
@@ -73,21 +73,13 @@ export type PaletteFeature = {
|
|
|
73
73
|
created: string;
|
|
74
74
|
updated: string;
|
|
75
75
|
name: string;
|
|
76
|
-
|
|
76
|
+
template: string;
|
|
77
77
|
type: string;
|
|
78
78
|
style: Record<string, unknown>;
|
|
79
79
|
};
|
|
80
|
-
export type
|
|
81
|
-
uuid: string;
|
|
82
|
-
created: string;
|
|
83
|
-
updated: string;
|
|
84
|
-
name: string;
|
|
85
|
-
template: string;
|
|
86
|
-
features: Array<PaletteFeature>;
|
|
87
|
-
};
|
|
88
|
-
export type PaletteList = {
|
|
80
|
+
export type PaletteFeatureList = {
|
|
89
81
|
total: number;
|
|
90
|
-
items: Array<
|
|
82
|
+
items: Array<PaletteFeature>;
|
|
91
83
|
};
|
|
92
84
|
export type Chat = {
|
|
93
85
|
chatroom: string;
|
|
@@ -4,12 +4,18 @@ export default class AtlasConnection {
|
|
|
4
4
|
isDestroyed: boolean;
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
hasConnected: boolean;
|
|
7
|
+
authFailure: boolean;
|
|
7
8
|
ws: WebSocket | undefined;
|
|
8
9
|
reconnectAttempts: number;
|
|
9
10
|
version: string;
|
|
11
|
+
private reconnectTimer;
|
|
10
12
|
constructor(atlas: Atlas);
|
|
11
13
|
reconnect(connection: string): void;
|
|
12
14
|
connect(connection: string): void;
|
|
15
|
+
private scheduleReconnect;
|
|
16
|
+
private isAuthRejected;
|
|
17
|
+
private handleAuthFailure;
|
|
18
|
+
private clearReconnectTimer;
|
|
13
19
|
destroy(): void;
|
|
14
20
|
sendCOT(data: object, type?: string): void;
|
|
15
21
|
}
|