@tak-ps/cloudtak 13.32.0 → 13.33.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.
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { ChatStatus } from '../../../database.ts';
|
|
1
2
|
export type ChatMessage = {
|
|
2
3
|
id: string | number;
|
|
3
4
|
sender_uid: string;
|
|
4
5
|
sender?: string;
|
|
5
6
|
message: string;
|
|
6
7
|
created: string;
|
|
8
|
+
status?: ChatStatus;
|
|
7
9
|
};
|
|
8
10
|
type __VLS_Props = {
|
|
9
11
|
chats: ChatMessage[];
|
|
@@ -32,6 +32,22 @@ export interface DBChatroom {
|
|
|
32
32
|
unread?: number;
|
|
33
33
|
last_read: string | null;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Delivery status of a chat message sent by the current user
|
|
37
|
+
* - sending: submitted locally but not yet confirmed by the CloudTAK Server
|
|
38
|
+
* - sent: received by the CloudTAK/TAK Server
|
|
39
|
+
* - pending/failed/delivered/read: reported by the recipient's client via
|
|
40
|
+
* b-t-f-p/s/d/r Chat Receipt CoTs
|
|
41
|
+
*/
|
|
42
|
+
export declare enum ChatStatus {
|
|
43
|
+
Sending = "sending",
|
|
44
|
+
Sent = "sent",
|
|
45
|
+
Pending = "pending",
|
|
46
|
+
Failed = "failed",
|
|
47
|
+
Delivered = "delivered",
|
|
48
|
+
Read = "read"
|
|
49
|
+
}
|
|
50
|
+
export declare const ChatStatusRank: Record<ChatStatus, number>;
|
|
35
51
|
export interface DBChatroomChat {
|
|
36
52
|
id: string;
|
|
37
53
|
chatroom: string;
|
|
@@ -40,6 +56,7 @@ export interface DBChatroomChat {
|
|
|
40
56
|
message: string;
|
|
41
57
|
created: string;
|
|
42
58
|
unread?: boolean;
|
|
59
|
+
status?: ChatStatus;
|
|
43
60
|
}
|
|
44
61
|
export interface DBIconset {
|
|
45
62
|
uid: string;
|
|
@@ -133,6 +150,7 @@ export interface DBSubscriptionChat {
|
|
|
133
150
|
message: string;
|
|
134
151
|
created: string;
|
|
135
152
|
unread: boolean;
|
|
153
|
+
status?: ChatStatus;
|
|
136
154
|
}
|
|
137
155
|
export interface DBSubscription {
|
|
138
156
|
guid: string;
|
|
@@ -110,6 +110,7 @@ export type APIProfileChat = {
|
|
|
110
110
|
updated: string;
|
|
111
111
|
message_id: string;
|
|
112
112
|
message: string;
|
|
113
|
+
status?: string | null;
|
|
113
114
|
};
|
|
114
115
|
export type MissionTemplate = paths["/api/template/mission/{:mission}"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
115
116
|
export type MissionTemplateList = paths["/api/template/mission"]["get"]["responses"]["200"]["content"]["application/json"];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tak-ps/cloudtak",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "13.
|
|
4
|
+
"version": "13.33.1",
|
|
5
5
|
"types": "dist/types/plugin.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/types"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"hls.js": "^1.6.5",
|
|
84
84
|
"imask": "^6.0.0",
|
|
85
85
|
"jsonata": "^2.0.4",
|
|
86
|
-
"maplibre-gl": "v6.0.0-
|
|
86
|
+
"maplibre-gl": "v6.0.0-20",
|
|
87
87
|
"milsymbol": "^3.0.2",
|
|
88
88
|
"openapi-fetch": "^0.17.0",
|
|
89
89
|
"phone": "^3.1.59",
|