tabletcommand-backend-models 5.17.41 → 5.18.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/build/models/agency.js +7 -2
- package/build/models/agency.js.map +1 -1
- package/build/models/arcgis-group.js +0 -5
- package/build/models/arcgis-group.js.map +1 -1
- package/build/models/battalion.js +7 -2
- package/build/models/battalion.js.map +1 -1
- package/build/models/checklist.js +7 -2
- package/build/models/checklist.js.map +1 -1
- package/build/models/personnel-import.js +7 -2
- package/build/models/personnel-import.js.map +1 -1
- package/build/models/template.js +7 -2
- package/build/models/template.js.map +1 -1
- package/build/models/user.js +7 -2
- package/build/models/user.js.map +1 -1
- package/definitions/models/agency.d.ts +94 -1
- package/definitions/models/agency.d.ts.map +1 -1
- package/definitions/models/arcgis-group.d.ts +0 -1
- package/definitions/models/arcgis-group.d.ts.map +1 -1
- package/definitions/models/battalion.d.ts +119 -0
- package/definitions/models/battalion.d.ts.map +1 -1
- package/definitions/models/checklist.d.ts +115 -1
- package/definitions/models/checklist.d.ts.map +1 -1
- package/definitions/models/personnel-import.d.ts +82 -1
- package/definitions/models/personnel-import.d.ts.map +1 -1
- package/definitions/models/template.d.ts +89 -1
- package/definitions/models/template.d.ts.map +1 -1
- package/definitions/models/user.d.ts +281 -0
- package/definitions/models/user.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/models/agency.ts +6 -1
- package/src/models/arcgis-group.ts +0 -5
- package/src/models/battalion.ts +5 -1
- package/src/models/checklist.ts +6 -1
- package/src/models/personnel-import.ts +6 -1
- package/src/models/template.ts +6 -1
- package/src/models/user.ts +6 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist.d.ts","sourceRoot":"","sources":["../../src/models/checklist.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EACL,cAAc,
|
|
1
|
+
{"version":3,"file":"checklist.d.ts","sourceRoot":"","sources":["../../src/models/checklist.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EACL,cAAc,EAGd,WAAW,EAIX,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAIpB,wBAAgB,eAAe,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6EvD;AAED,wBAAsB,eAAe,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAG7D;AAED,MAAM,WAAW,SAAU,SAAQ,8BAA8B,CAAC,OAAO,eAAe,CAAC;CAAI;AAC7F,MAAM,WAAW,cAAe,SAAQ,+BAA+B,CAAC,SAAS,CAAC;CAAI;;AACtF,wBAAiG"}
|
|
@@ -1,5 +1,86 @@
|
|
|
1
1
|
/// <reference types="mongoose" />
|
|
2
|
-
import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
|
|
2
|
+
import { currentDate, MongooseModule, retrieveCurrentUnixTime, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
|
|
3
|
+
export declare function PersonnelImportSchema(mongoose: MongooseModule): import("mongoose").Schema<any> & {
|
|
4
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
5
|
+
_id: {
|
|
6
|
+
type: import("mongoose").Types.ObjectIdConstructor;
|
|
7
|
+
auto: boolean;
|
|
8
|
+
};
|
|
9
|
+
PersonnelID: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: boolean;
|
|
12
|
+
};
|
|
13
|
+
PersonnelName: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: boolean;
|
|
16
|
+
};
|
|
17
|
+
PersonnelRank: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
PersonnelWorkCode: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
PersonnelNote: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
departmentId: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
radioNames: {
|
|
33
|
+
type: StringConstructor[];
|
|
34
|
+
default: never[];
|
|
35
|
+
};
|
|
36
|
+
shiftStartTime: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
shiftEndTime: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
shiftStart: {
|
|
45
|
+
type: DateConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
shiftEnd: {
|
|
49
|
+
type: DateConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
modified_unix_date: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
default: typeof retrieveCurrentUnixTime;
|
|
55
|
+
};
|
|
56
|
+
modified: {
|
|
57
|
+
type: DateConstructor;
|
|
58
|
+
default: typeof currentDate;
|
|
59
|
+
};
|
|
60
|
+
active: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
agencyName: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
agencyCode: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
agencyId: {
|
|
73
|
+
type: typeof import("mongoose").Schema.Types.ObjectId;
|
|
74
|
+
ref: string;
|
|
75
|
+
default: null;
|
|
76
|
+
};
|
|
77
|
+
importNotes: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
}>;
|
|
82
|
+
_methods: unknown;
|
|
83
|
+
};
|
|
3
84
|
export declare function PersonnelImportModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
|
|
4
85
|
_id: import("bson").ObjectID;
|
|
5
86
|
PersonnelID: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"personnel-import.d.ts","sourceRoot":"","sources":["../../src/models/personnel-import.ts"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"personnel-import.d.ts","sourceRoot":"","sources":["../../src/models/personnel-import.ts"],"names":[],"mappings":";AAAA,OAAO,EAGL,WAAW,EACX,cAAc,EACd,uBAAuB,EACvB,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyF7D;AAED,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;GAGnE;AAED,MAAM,WAAW,eAAgB,SAAQ,8BAA8B,CAAC,OAAO,qBAAqB,CAAC;CAAI;AACzG,MAAM,WAAW,oBAAqB,SAAQ,+BAA+B,CAAC,eAAe,CAAC;CAAI;;AAClG,wBAAmH"}
|
|
@@ -1,6 +1,94 @@
|
|
|
1
1
|
/// <reference types="mongoose" />
|
|
2
2
|
import * as uuid from "uuid";
|
|
3
|
-
import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType } from "../helpers";
|
|
3
|
+
import { currentDate, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType, retrieveCurrentUnixTime } from "../helpers";
|
|
4
|
+
export declare function TemplateSchema(mongoose: MongooseModule): import("mongoose").Schema<any> & {
|
|
5
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
6
|
+
_id: {
|
|
7
|
+
type: import("mongoose").Types.ObjectIdConstructor;
|
|
8
|
+
auto: boolean;
|
|
9
|
+
};
|
|
10
|
+
position: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
userId: StringConstructor;
|
|
15
|
+
uuid: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: (<T extends ArrayLike<number>>(options: uuid.V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V4Options | undefined) => string);
|
|
18
|
+
};
|
|
19
|
+
isMandatory: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
modified_unix_date: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: typeof retrieveCurrentUnixTime;
|
|
26
|
+
};
|
|
27
|
+
modified: {
|
|
28
|
+
type: DateConstructor;
|
|
29
|
+
default: typeof currentDate;
|
|
30
|
+
};
|
|
31
|
+
departmentId: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
required: boolean;
|
|
34
|
+
index: true;
|
|
35
|
+
};
|
|
36
|
+
active: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
name: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: boolean;
|
|
43
|
+
};
|
|
44
|
+
checklist: {
|
|
45
|
+
type: (import("mongoose").Schema<any> & {
|
|
46
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
47
|
+
name: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
position: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
id: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
}>;
|
|
60
|
+
_methods: unknown;
|
|
61
|
+
})[];
|
|
62
|
+
default: never[];
|
|
63
|
+
};
|
|
64
|
+
group: {
|
|
65
|
+
type: (import("mongoose").Schema<any> & {
|
|
66
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
67
|
+
name: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
position: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: number;
|
|
74
|
+
};
|
|
75
|
+
uuid: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: (<T extends ArrayLike<number>>(options: uuid.V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V4Options | undefined) => string);
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
80
|
+
_methods: unknown;
|
|
81
|
+
})[];
|
|
82
|
+
default: never[];
|
|
83
|
+
};
|
|
84
|
+
agencyId: {
|
|
85
|
+
type: typeof import("mongoose").Schema.Types.ObjectId;
|
|
86
|
+
ref: string;
|
|
87
|
+
default: null;
|
|
88
|
+
};
|
|
89
|
+
}>;
|
|
90
|
+
_methods: unknown;
|
|
91
|
+
};
|
|
4
92
|
export declare function TemplateModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
|
|
5
93
|
_id: import("bson").ObjectID;
|
|
6
94
|
position: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/models/template.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/models/template.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAGL,WAAW,EAEX,8BAA8B,EAE9B,+BAA+B,EAE/B,cAAc,EACd,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,cAAc,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2HtD;AAED,wBAAsB,cAAc,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAG5D;AAED,MAAM,WAAW,QAAS,SAAQ,8BAA8B,CAAC,OAAO,cAAc,CAAC;CAAI;AAC3F,MAAM,WAAW,aAAc,SAAQ,+BAA+B,CAAC,QAAQ,CAAC;CAAI;;AACpF,wBAA8F"}
|
|
@@ -1,5 +1,286 @@
|
|
|
1
1
|
/// <reference types="mongoose" />
|
|
2
|
+
import * as uuid from "uuid";
|
|
2
3
|
import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType, currentDate } from "../helpers";
|
|
4
|
+
export declare function UserSchema(mongoose: MongooseModule): import("mongoose").Schema<any> & {
|
|
5
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
6
|
+
nick: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
index: true;
|
|
10
|
+
};
|
|
11
|
+
email: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
index: true;
|
|
15
|
+
};
|
|
16
|
+
name: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
uuid: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: (<T extends ArrayLike<number>>(options: uuid.V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V4Options | undefined) => string);
|
|
23
|
+
};
|
|
24
|
+
departmentId: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
required: boolean;
|
|
28
|
+
index: true;
|
|
29
|
+
};
|
|
30
|
+
modified_date: {
|
|
31
|
+
type: DateConstructor;
|
|
32
|
+
default: typeof currentDate;
|
|
33
|
+
};
|
|
34
|
+
when: {
|
|
35
|
+
type: DateConstructor;
|
|
36
|
+
};
|
|
37
|
+
agencyId: {
|
|
38
|
+
type: typeof import("mongoose").Schema.Types.ObjectId;
|
|
39
|
+
ref: string;
|
|
40
|
+
default: null;
|
|
41
|
+
};
|
|
42
|
+
managedAgencies: {
|
|
43
|
+
type: typeof import("mongoose").Schema.Types.ObjectId[];
|
|
44
|
+
ref: string;
|
|
45
|
+
default: never[];
|
|
46
|
+
};
|
|
47
|
+
active: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
admin: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
superuser: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
isPro: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
mobileAccess: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
webAccess: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
outsider: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
shareLocationEnabled: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
beaconEnabled: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
userContributionEnabled: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
syncLoggingExpireDate: {
|
|
88
|
+
type: DateConstructor;
|
|
89
|
+
default: null;
|
|
90
|
+
};
|
|
91
|
+
beacons: {
|
|
92
|
+
type: StringConstructor[];
|
|
93
|
+
default: never[];
|
|
94
|
+
};
|
|
95
|
+
salt: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
select: boolean;
|
|
99
|
+
};
|
|
100
|
+
pass: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
default: string;
|
|
103
|
+
select: boolean;
|
|
104
|
+
};
|
|
105
|
+
mapHidden: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
mapId: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
vehicle: {
|
|
114
|
+
type: import("mongoose").Schema<any> & {
|
|
115
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
116
|
+
radioName: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
vehicleId: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
}>;
|
|
125
|
+
_methods: unknown;
|
|
126
|
+
};
|
|
127
|
+
default: null;
|
|
128
|
+
};
|
|
129
|
+
sessionCountiPhone: {
|
|
130
|
+
type: NumberConstructor;
|
|
131
|
+
default: number;
|
|
132
|
+
};
|
|
133
|
+
sessionCountiPad: {
|
|
134
|
+
type: NumberConstructor;
|
|
135
|
+
default: number;
|
|
136
|
+
};
|
|
137
|
+
rtsAuthKey: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
pubNubV2: {
|
|
142
|
+
type: import("mongoose").Schema<any> & {
|
|
143
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
144
|
+
token: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
expireAt: {
|
|
149
|
+
type: DateConstructor;
|
|
150
|
+
default: typeof currentDate;
|
|
151
|
+
};
|
|
152
|
+
runAt: {
|
|
153
|
+
type: DateConstructor;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
}>;
|
|
157
|
+
_methods: unknown;
|
|
158
|
+
};
|
|
159
|
+
default: null;
|
|
160
|
+
};
|
|
161
|
+
pubNubV3: {
|
|
162
|
+
type: import("mongoose").Schema<any> & {
|
|
163
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
164
|
+
token: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
168
|
+
expireAt: {
|
|
169
|
+
type: DateConstructor;
|
|
170
|
+
default: typeof currentDate;
|
|
171
|
+
};
|
|
172
|
+
runAt: {
|
|
173
|
+
type: DateConstructor;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
}>;
|
|
177
|
+
_methods: unknown;
|
|
178
|
+
};
|
|
179
|
+
default: null;
|
|
180
|
+
};
|
|
181
|
+
token: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
default: string;
|
|
184
|
+
};
|
|
185
|
+
tokenExpireAt: {
|
|
186
|
+
type: DateConstructor;
|
|
187
|
+
default: typeof currentDate;
|
|
188
|
+
};
|
|
189
|
+
shareLocationPhone: {
|
|
190
|
+
type: BooleanConstructor;
|
|
191
|
+
default: boolean;
|
|
192
|
+
};
|
|
193
|
+
shareLocationTablet: {
|
|
194
|
+
type: BooleanConstructor;
|
|
195
|
+
default: boolean;
|
|
196
|
+
};
|
|
197
|
+
offlineMapsEnabled: {
|
|
198
|
+
type: BooleanConstructor;
|
|
199
|
+
default: boolean;
|
|
200
|
+
};
|
|
201
|
+
fireMapperProEnabled: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
arcGISAuth: {
|
|
206
|
+
type: import("mongoose").Schema<any> & {
|
|
207
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
208
|
+
username: {
|
|
209
|
+
type: StringConstructor;
|
|
210
|
+
default: string;
|
|
211
|
+
};
|
|
212
|
+
encrypted: {
|
|
213
|
+
type: import("mongoose").Schema<any> & {
|
|
214
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
215
|
+
iv: {
|
|
216
|
+
type: StringConstructor;
|
|
217
|
+
default: string;
|
|
218
|
+
};
|
|
219
|
+
encryptedData: {
|
|
220
|
+
type: StringConstructor;
|
|
221
|
+
default: string;
|
|
222
|
+
};
|
|
223
|
+
}>;
|
|
224
|
+
_methods: unknown;
|
|
225
|
+
};
|
|
226
|
+
default: null;
|
|
227
|
+
};
|
|
228
|
+
}>;
|
|
229
|
+
_methods: unknown;
|
|
230
|
+
};
|
|
231
|
+
default: null;
|
|
232
|
+
};
|
|
233
|
+
arcGISAuthError: {
|
|
234
|
+
type: import("mongoose").Schema<any> & {
|
|
235
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
236
|
+
code: {
|
|
237
|
+
type: NumberConstructor;
|
|
238
|
+
default: number;
|
|
239
|
+
};
|
|
240
|
+
error: {
|
|
241
|
+
type: StringConstructor;
|
|
242
|
+
default: string;
|
|
243
|
+
};
|
|
244
|
+
error_description: {
|
|
245
|
+
type: StringConstructor;
|
|
246
|
+
default: string;
|
|
247
|
+
};
|
|
248
|
+
message: {
|
|
249
|
+
type: StringConstructor;
|
|
250
|
+
default: string;
|
|
251
|
+
};
|
|
252
|
+
}>;
|
|
253
|
+
_methods: unknown;
|
|
254
|
+
};
|
|
255
|
+
default: null;
|
|
256
|
+
};
|
|
257
|
+
offDutyEnabled: {
|
|
258
|
+
type: BooleanConstructor;
|
|
259
|
+
default: boolean;
|
|
260
|
+
};
|
|
261
|
+
webMapSettings: {
|
|
262
|
+
defaultZoomLevel: {
|
|
263
|
+
type: NumberConstructor;
|
|
264
|
+
};
|
|
265
|
+
defaultCenter: {
|
|
266
|
+
type: NumberConstructor[];
|
|
267
|
+
default: never[];
|
|
268
|
+
};
|
|
269
|
+
defaultMap: {
|
|
270
|
+
type: StringConstructor;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
locationToCAD: {
|
|
274
|
+
type: BooleanConstructor;
|
|
275
|
+
default: boolean;
|
|
276
|
+
};
|
|
277
|
+
logOffEnabled: {
|
|
278
|
+
type: BooleanConstructor;
|
|
279
|
+
default: boolean;
|
|
280
|
+
};
|
|
281
|
+
}>;
|
|
282
|
+
_methods: unknown;
|
|
283
|
+
};
|
|
3
284
|
export declare function UserModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
|
|
4
285
|
nick: string;
|
|
5
286
|
email: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAKL,cAAc,EAEd,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACtB,WAAW,EACZ,MAAM,YAAY,CAAC;AAKpB,wBAAgB,UAAU,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiPlD;AAED,wBAAsB,UAAU,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGxD;AAED,MAAM,WAAW,IAAK,SAAQ,8BAA8B,CAAC,OAAO,UAAU,CAAC;CAAI;AACnF,MAAM,WAAW,SAAU,SAAQ,+BAA+B,CAAC,IAAI,CAAC;CAAI;;AAC5E,wBAAkF"}
|
package/package.json
CHANGED
package/src/models/agency.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ReplaceModelReturnType,
|
|
10
10
|
} from "../helpers";
|
|
11
11
|
|
|
12
|
-
export
|
|
12
|
+
export function AgencySchema(mongoose: MongooseModule) {
|
|
13
13
|
const { Schema, Types } = mongoose;
|
|
14
14
|
|
|
15
15
|
const CrossStaffedUnit = createSchema(Schema, {
|
|
@@ -109,6 +109,11 @@ export async function AgencyModule(mongoose: MongooseModule) {
|
|
|
109
109
|
});
|
|
110
110
|
modelSchema.set("autoIndex", false);
|
|
111
111
|
|
|
112
|
+
return modelSchema;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export async function AgencyModule(mongoose: MongooseModule) {
|
|
116
|
+
const modelSchema = AgencySchema(mongoose);
|
|
112
117
|
return createModel(mongoose, "Agency", modelSchema);
|
|
113
118
|
}
|
|
114
119
|
|
|
@@ -160,11 +160,6 @@ export async function ArcGISGroupModule(mongoose: MongooseModule) {
|
|
|
160
160
|
type: Date,
|
|
161
161
|
default: currentDate,
|
|
162
162
|
},
|
|
163
|
-
// Possible values: cron, user
|
|
164
|
-
createdBy: {
|
|
165
|
-
type: String,
|
|
166
|
-
default: "",
|
|
167
|
-
},
|
|
168
163
|
|
|
169
164
|
// last time when cron updated groups
|
|
170
165
|
// if date is in the past, we should refresh this
|
package/src/models/battalion.ts
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
retrieveCurrentUnixTime
|
|
16
16
|
} from "../helpers";
|
|
17
17
|
|
|
18
|
-
export
|
|
18
|
+
export function BattalionSchema(mongoose: MongooseModule) {
|
|
19
19
|
const { Schema, Types } = mongoose;
|
|
20
20
|
const toJSONOpts = {
|
|
21
21
|
virtuals: true,
|
|
@@ -175,7 +175,11 @@ export async function BattalionModule(mongoose: MongooseModule) {
|
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
|
+
return modelSchema;
|
|
179
|
+
}
|
|
178
180
|
|
|
181
|
+
export async function BattalionModule(mongoose: MongooseModule) {
|
|
182
|
+
const modelSchema = BattalionSchema(mongoose);
|
|
179
183
|
return createModel(mongoose, "Battalion", modelSchema);
|
|
180
184
|
}
|
|
181
185
|
|
package/src/models/checklist.ts
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
|
|
17
17
|
import { ChecklistItemSchema } from "./checklist-item";
|
|
18
18
|
|
|
19
|
-
export
|
|
19
|
+
export function ChecklistSchema(mongoose: MongooseModule) {
|
|
20
20
|
const { Schema, Types } = mongoose;
|
|
21
21
|
|
|
22
22
|
const ChecklistItem = ChecklistItemSchema(mongoose);
|
|
@@ -92,6 +92,11 @@ export async function ChecklistModule(mongoose: MongooseModule) {
|
|
|
92
92
|
return this._id.toString();
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
+
return modelSchema;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export async function ChecklistModule(mongoose: MongooseModule) {
|
|
99
|
+
const modelSchema = ChecklistSchema(mongoose);
|
|
95
100
|
return createModel(mongoose, "Checklist", modelSchema);
|
|
96
101
|
}
|
|
97
102
|
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ReplaceModelReturnType,
|
|
10
10
|
} from "../helpers";
|
|
11
11
|
|
|
12
|
-
export
|
|
12
|
+
export function PersonnelImportSchema(mongoose: MongooseModule) {
|
|
13
13
|
const { Schema, Types } = mongoose;
|
|
14
14
|
|
|
15
15
|
const modelSchema = createSchema(Schema, {
|
|
@@ -97,6 +97,11 @@ export async function PersonnelImportModule(mongoose: MongooseModule) {
|
|
|
97
97
|
});
|
|
98
98
|
modelSchema.set("autoIndex", false);
|
|
99
99
|
|
|
100
|
+
return modelSchema;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export async function PersonnelImportModule(mongoose: MongooseModule) {
|
|
104
|
+
const modelSchema = PersonnelImportSchema(mongoose);
|
|
100
105
|
return createModel(mongoose, "PersonnelImport", modelSchema);
|
|
101
106
|
}
|
|
102
107
|
|
package/src/models/template.ts
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
retrieveCurrentUnixTime
|
|
15
15
|
} from "../helpers";
|
|
16
16
|
|
|
17
|
-
export
|
|
17
|
+
export function TemplateSchema(mongoose: MongooseModule) {
|
|
18
18
|
const { Schema, Types } = mongoose;
|
|
19
19
|
|
|
20
20
|
const ChecklistOption = createSchema(Schema, {
|
|
@@ -136,6 +136,11 @@ export async function TemplateModule(mongoose: MongooseModule) {
|
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
// modelSchema.plugin(mongooseLeanVirtuals);
|
|
139
|
+
return modelSchema;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export async function TemplateModule(mongoose: MongooseModule) {
|
|
143
|
+
const modelSchema = TemplateSchema(mongoose);
|
|
139
144
|
return createModel(mongoose, "Template", modelSchema);
|
|
140
145
|
}
|
|
141
146
|
|
package/src/models/user.ts
CHANGED
|
@@ -15,7 +15,7 @@ import EsriAuthSchema from "./schema/esri-auth";
|
|
|
15
15
|
import EsriErrorSchema from "./schema/esri-error";
|
|
16
16
|
import PubNubTokenSchema from "./schema/pubnub-token";
|
|
17
17
|
|
|
18
|
-
export
|
|
18
|
+
export function UserSchema(mongoose: MongooseModule) {
|
|
19
19
|
const { Schema } = mongoose;
|
|
20
20
|
const EsriAuth = EsriAuthSchema(mongoose);
|
|
21
21
|
const EsriError = EsriErrorSchema(mongoose);
|
|
@@ -255,6 +255,11 @@ export async function UserModule(mongoose: MongooseModule) {
|
|
|
255
255
|
return this._id.toHexString();
|
|
256
256
|
});
|
|
257
257
|
|
|
258
|
+
return modelSchema;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export async function UserModule(mongoose: MongooseModule) {
|
|
262
|
+
const modelSchema = UserSchema(mongoose);
|
|
258
263
|
return createModel(mongoose, "User", modelSchema);
|
|
259
264
|
}
|
|
260
265
|
|