@tak-ps/cloudtak 13.70.0 → 13.71.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/components/CloudTAK/Property/PropertyCoreEventForms.vue.d.ts +9 -0
- package/dist/types/src/components/CloudTAK/util/CreateCoreEvent.vue.d.ts +105 -4
- package/dist/types/src/components/CloudTAK/util/FormWizard.vue.d.ts +18 -0
- package/dist/types/src/types.d.ts +6 -0
- package/dist/types/src/utils/column-forms.d.ts +7 -0
- package/package.json +2 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Core Event to list completed Forms for */
|
|
3
|
+
event: string;
|
|
4
|
+
/** Bump to re-fetch after a Response is submitted elsewhere in the view */
|
|
5
|
+
refresh?: number;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -1,11 +1,112 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
coordinates?: number[];
|
|
3
3
|
location?: string;
|
|
4
|
+
channel?: number;
|
|
5
|
+
navigate?: boolean;
|
|
4
6
|
};
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
close: (
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
+
close: () => any;
|
|
9
|
+
create: (event: {
|
|
10
|
+
id: string;
|
|
11
|
+
mission_guid: null | string;
|
|
12
|
+
created: string;
|
|
13
|
+
updated: string;
|
|
14
|
+
active: boolean;
|
|
15
|
+
ended: null | string;
|
|
16
|
+
username: null | string;
|
|
17
|
+
connection: null | number;
|
|
18
|
+
priority: "none" | "low" | "medium" | "high" | "critical";
|
|
19
|
+
type: string;
|
|
20
|
+
name: string;
|
|
21
|
+
external_id: string;
|
|
22
|
+
editable: boolean;
|
|
23
|
+
location: string;
|
|
24
|
+
remarks: string;
|
|
25
|
+
metadata: {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
links: {
|
|
29
|
+
name: string;
|
|
30
|
+
url: string;
|
|
31
|
+
}[];
|
|
32
|
+
style: {
|
|
33
|
+
icon?: string;
|
|
34
|
+
"marker-color"?: string;
|
|
35
|
+
"marker-opacity"?: number;
|
|
36
|
+
};
|
|
37
|
+
geometry: {
|
|
38
|
+
type: "Point";
|
|
39
|
+
coordinates: [number, number];
|
|
40
|
+
};
|
|
41
|
+
channels: number[];
|
|
42
|
+
boards: {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
channel: number;
|
|
46
|
+
column: null | string;
|
|
47
|
+
columns: {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
color: string;
|
|
51
|
+
type: "nominated" | "custom";
|
|
52
|
+
position: number;
|
|
53
|
+
}[];
|
|
54
|
+
}[];
|
|
55
|
+
}) => any;
|
|
7
56
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
onClose?: ((
|
|
9
|
-
|
|
57
|
+
onClose?: (() => any) | undefined;
|
|
58
|
+
onCreate?: ((event: {
|
|
59
|
+
id: string;
|
|
60
|
+
mission_guid: null | string;
|
|
61
|
+
created: string;
|
|
62
|
+
updated: string;
|
|
63
|
+
active: boolean;
|
|
64
|
+
ended: null | string;
|
|
65
|
+
username: null | string;
|
|
66
|
+
connection: null | number;
|
|
67
|
+
priority: "none" | "low" | "medium" | "high" | "critical";
|
|
68
|
+
type: string;
|
|
69
|
+
name: string;
|
|
70
|
+
external_id: string;
|
|
71
|
+
editable: boolean;
|
|
72
|
+
location: string;
|
|
73
|
+
remarks: string;
|
|
74
|
+
metadata: {
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
};
|
|
77
|
+
links: {
|
|
78
|
+
name: string;
|
|
79
|
+
url: string;
|
|
80
|
+
}[];
|
|
81
|
+
style: {
|
|
82
|
+
icon?: string;
|
|
83
|
+
"marker-color"?: string;
|
|
84
|
+
"marker-opacity"?: number;
|
|
85
|
+
};
|
|
86
|
+
geometry: {
|
|
87
|
+
type: "Point";
|
|
88
|
+
coordinates: [number, number];
|
|
89
|
+
};
|
|
90
|
+
channels: number[];
|
|
91
|
+
boards: {
|
|
92
|
+
id: string;
|
|
93
|
+
name: string;
|
|
94
|
+
channel: number;
|
|
95
|
+
column: null | string;
|
|
96
|
+
columns: {
|
|
97
|
+
id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
color: string;
|
|
100
|
+
type: "nominated" | "custom";
|
|
101
|
+
position: number;
|
|
102
|
+
}[];
|
|
103
|
+
}[];
|
|
104
|
+
}) => any) | undefined;
|
|
105
|
+
}>, {
|
|
106
|
+
coordinates: number[];
|
|
107
|
+
location: string;
|
|
108
|
+
navigate: boolean;
|
|
109
|
+
channel: number;
|
|
110
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
111
|
declare const _default: typeof __VLS_export;
|
|
11
112
|
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CoreForm } from '../../../types.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Core Event each Response is linked to */
|
|
4
|
+
eventId: string;
|
|
5
|
+
/** Shown so the user knows what they are submitting against */
|
|
6
|
+
eventName?: string;
|
|
7
|
+
/** Forms to submit, one wizard step each */
|
|
8
|
+
forms: Array<CoreForm>;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
close: () => any;
|
|
12
|
+
complete: () => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onClose?: (() => any) | undefined;
|
|
15
|
+
onComplete?: (() => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -44,6 +44,12 @@ export type CoreEventBoardColumnList = paths["/api/board/column"]["get"]["respon
|
|
|
44
44
|
export type CoreEventBoardColumn = CoreEventBoardColumnList["items"][0];
|
|
45
45
|
export type CoreEventBoardEventList = paths["/api/board/event"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
46
46
|
export type CoreEventBoardEvent = CoreEventBoardEventList["items"][0];
|
|
47
|
+
export type CoreForm = paths["/api/core/form/{:form}"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
48
|
+
export type CoreFormList = paths["/api/core/form"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
49
|
+
export type CoreFormColumnList = paths["/api/board/column/{:column}/form"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
50
|
+
export type CoreFormColumn = CoreFormColumnList["items"][0];
|
|
51
|
+
export type CoreEventFormResponseList = paths["/api/core/event/{:event}/response"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
52
|
+
export type CoreEventFormResponse = CoreEventFormResponseList["items"][0];
|
|
47
53
|
export type Contact = paths["/api/marti/api/contacts/all"]["get"]["responses"]["200"]["content"]["application/json"][0];
|
|
48
54
|
export type ContactList = paths["/api/marti/api/contacts/all"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
49
55
|
export type Content = paths["/api/marti/package"]["put"]["responses"]["200"]["content"]["application/json"];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CoreForm } from '../types.ts';
|
|
2
|
+
/**
|
|
3
|
+
* The required Forms of a Board Column the given Event has no linked Response
|
|
4
|
+
* for - the server refuses to place the Event in the Column until this is
|
|
5
|
+
* empty, so callers surface the FormWizard over this list first
|
|
6
|
+
*/
|
|
7
|
+
export declare function missingRequiredForms(column: string, event: string): Promise<Array<CoreForm>>;
|
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.71.0",
|
|
5
5
|
"types": "dist/types/plugin.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/types"
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"type": "git",
|
|
30
30
|
"url": "git+https://github.com/dfpc-coe/CloudTAK.git"
|
|
31
31
|
},
|
|
32
|
+
"license": "AGPL-3.0-only",
|
|
32
33
|
"dependencies": {
|
|
33
34
|
"@capacitor-community/keep-awake": "^8.0.1",
|
|
34
35
|
"@capacitor-firebase/messaging": "^8.2.0",
|