tabletcommand-backend-models 5.22.0 → 5.23.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 -6
- package/build/models/agency.js.map +1 -1
- package/build/models/schema/agency-cron-config.js +77 -11
- package/build/models/schema/agency-cron-config.js.map +1 -1
- package/build.sh +4 -2
- package/cspell.json +20 -3
- package/definitions/models/agency.d.ts +221 -32
- package/definitions/models/agency.d.ts.map +1 -1
- package/definitions/models/schema/agency-cron-config.d.ts +110 -16
- package/definitions/models/schema/agency-cron-config.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/models/agency.ts +7 -6
- package/src/models/schema/agency-cron-config.ts +83 -11
package/build/models/agency.js
CHANGED
|
@@ -25,12 +25,13 @@ function AgencySchema(mongoose) {
|
|
|
25
25
|
id: false,
|
|
26
26
|
});
|
|
27
27
|
const LicensingDefault = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
tcPro: 0,
|
|
29
|
+
tcManager: 0,
|
|
30
|
+
tcStatus: 0,
|
|
31
|
+
tcMobile: 0,
|
|
32
|
+
tcWeb: 0,
|
|
33
|
+
fireMapperPro: 0,
|
|
34
|
+
locationToCAD: 0
|
|
34
35
|
};
|
|
35
36
|
const modelSchema = (0, helpers_1.createSchema)(Schema, {
|
|
36
37
|
_id: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agency.js","sourceRoot":"","sources":["../../src/models/agency.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,wCAQoB;AACpB,oEAAiE;AAEjE,SAAgB,YAAY,CAAC,QAAwB;IACnD,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC;IACnC,MAAM,gBAAgB,GAAG,IAAA,4BAAsB,EAAC,QAAQ,CAAC,CAAC;IAE1D,MAAM,gBAAgB,GAAG,IAAA,sBAA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AAO,EAAE,gBAAgB;SAC1B;QACD,UAAU,EAAE;YACV,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,IAAI;SACd;KACF,EAAE;QACD,UAAU,EAAE,gBAAgB;KAC7B,CAAC,CAAC;IACH,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAEpC,OAAO,WAAW,CAAC;AACrB,CAAC;AA3GD,oCA2GC;AAEM,KAAK,UAAU,YAAY,CAAC,QAAwB;IACzD,MAAM,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC3C,OAAO,IAAA,qBAAW,EAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;AACtD,CAAC;AAHD,oCAGC;AAID,kBAAe,YAAwE,CAAC"}
|
|
@@ -16,31 +16,43 @@ function AgencyCronSchema(mongoose) {
|
|
|
16
16
|
_id: false,
|
|
17
17
|
id: false,
|
|
18
18
|
});
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
type:
|
|
22
|
-
default:
|
|
23
|
-
},
|
|
24
|
-
sourcePath: {
|
|
25
|
-
type: EncryptedData,
|
|
26
|
-
default: null,
|
|
19
|
+
const CronConfigSource = (0, helpers_1.createSchema)(Schema, {
|
|
20
|
+
protocol: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "",
|
|
27
23
|
},
|
|
28
|
-
|
|
24
|
+
username: {
|
|
29
25
|
type: String,
|
|
30
26
|
default: "",
|
|
31
27
|
},
|
|
32
|
-
|
|
28
|
+
hostname: {
|
|
33
29
|
type: String,
|
|
34
30
|
default: "",
|
|
35
31
|
},
|
|
36
|
-
|
|
32
|
+
filePath: {
|
|
37
33
|
type: String,
|
|
38
34
|
default: "",
|
|
39
35
|
},
|
|
36
|
+
}, {
|
|
37
|
+
_id: false,
|
|
38
|
+
id: false,
|
|
39
|
+
});
|
|
40
|
+
const CronConfigSourceDefault = {
|
|
41
|
+
protocol: "",
|
|
42
|
+
username: "",
|
|
43
|
+
hostname: "",
|
|
44
|
+
filePath: "",
|
|
45
|
+
};
|
|
46
|
+
const CronConfigAuth = (0, helpers_1.createSchema)(Schema, {
|
|
47
|
+
password: {
|
|
48
|
+
type: EncryptedData,
|
|
49
|
+
default: null,
|
|
50
|
+
},
|
|
40
51
|
sshPrivateKey: {
|
|
41
52
|
type: EncryptedData,
|
|
42
53
|
default: null,
|
|
43
54
|
},
|
|
55
|
+
// Possibly unused
|
|
44
56
|
sshPublicKey: {
|
|
45
57
|
type: EncryptedData,
|
|
46
58
|
default: null,
|
|
@@ -49,6 +61,43 @@ function AgencyCronSchema(mongoose) {
|
|
|
49
61
|
type: Boolean,
|
|
50
62
|
default: false,
|
|
51
63
|
},
|
|
64
|
+
}, {
|
|
65
|
+
_id: false,
|
|
66
|
+
id: false,
|
|
67
|
+
});
|
|
68
|
+
const CronConfigAuthDefault = {
|
|
69
|
+
password: null,
|
|
70
|
+
sshPrivateKey: null,
|
|
71
|
+
sshPublicKey: null,
|
|
72
|
+
useSSHKey: false,
|
|
73
|
+
};
|
|
74
|
+
const AgencyCronConfig = (0, helpers_1.createSchema)(Schema, {
|
|
75
|
+
enabled: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: false,
|
|
78
|
+
},
|
|
79
|
+
// sftp://user@host:port/path/to/file.xml
|
|
80
|
+
source: {
|
|
81
|
+
type: CronConfigSource,
|
|
82
|
+
default: CronConfigSourceDefault,
|
|
83
|
+
},
|
|
84
|
+
// password OR SSH private key (with flag useSSHKey = true)
|
|
85
|
+
auth: {
|
|
86
|
+
type: CronConfigAuth,
|
|
87
|
+
default: CronConfigAuthDefault,
|
|
88
|
+
},
|
|
89
|
+
processPath: {
|
|
90
|
+
type: String,
|
|
91
|
+
default: "",
|
|
92
|
+
},
|
|
93
|
+
completedPath: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: "",
|
|
96
|
+
},
|
|
97
|
+
importType: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: "",
|
|
100
|
+
},
|
|
52
101
|
timezone: {
|
|
53
102
|
type: String,
|
|
54
103
|
default: ""
|
|
@@ -61,6 +110,23 @@ function AgencyCronSchema(mongoose) {
|
|
|
61
110
|
type: Boolean,
|
|
62
111
|
default: false,
|
|
63
112
|
},
|
|
113
|
+
// Deprecated - migrated to source + auth
|
|
114
|
+
sourcePath: {
|
|
115
|
+
type: EncryptedData,
|
|
116
|
+
default: null,
|
|
117
|
+
},
|
|
118
|
+
sshPrivateKey: {
|
|
119
|
+
type: EncryptedData,
|
|
120
|
+
default: null,
|
|
121
|
+
},
|
|
122
|
+
sshPublicKey: {
|
|
123
|
+
type: EncryptedData,
|
|
124
|
+
default: null,
|
|
125
|
+
},
|
|
126
|
+
useSSHKey: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: false,
|
|
129
|
+
},
|
|
64
130
|
}, {
|
|
65
131
|
_id: false,
|
|
66
132
|
id: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agency-cron-config.js","sourceRoot":"","sources":["../../../src/models/schema/agency-cron-config.ts"],"names":[],"mappings":";;AAAA,2CAGuB;AAEvB,SAAwB,gBAAgB,CAAC,QAAwB;IAC/D,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC;IAE5B,MAAM,aAAa,GAAG,IAAA,sBAAY,EAAC,MAAM,EAAE;QACzC,EAAE,EAAE;YACF,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE;SACZ;QACD,aAAa,EAAE;YACb,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE;SACZ;KACF,EAAE;QACD,GAAG,EAAE,KAAK;QACV,EAAE,EAAE,KAAK;KACV,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,IAAA,sBAAY,EAAC,MAAM,EAAE;QAC5C,
|
|
1
|
+
{"version":3,"file":"agency-cron-config.js","sourceRoot":"","sources":["../../../src/models/schema/agency-cron-config.ts"],"names":[],"mappings":";;AAAA,2CAGuB;AAEvB,SAAwB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K;SACf;KACF,EAAE;QACD,GAAG,EAAE,KAAK;QACV,EAAE,EAAE,KAAK;KACV,CAAC,CAAC;IAEH,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA5ID,mCA4IC"}
|
package/build.sh
CHANGED
package/cspell.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// cSpell Settings
|
|
2
2
|
{
|
|
3
3
|
// Version of the setting file. Always 0.1
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2",
|
|
5
5
|
// language - current active spelling language
|
|
6
6
|
"language": "en-US",
|
|
7
7
|
// words - list of words to be always considered correct
|
|
@@ -25,8 +25,13 @@
|
|
|
25
25
|
"quotemark",
|
|
26
26
|
"signup",
|
|
27
27
|
"tabletcommand",
|
|
28
|
+
"tabletcmd",
|
|
28
29
|
"Ursache",
|
|
29
|
-
"virtuals"
|
|
30
|
+
"virtuals",
|
|
31
|
+
"firemapper",
|
|
32
|
+
"2dsphere",
|
|
33
|
+
"arcgis",
|
|
34
|
+
"pubnub"
|
|
30
35
|
],
|
|
31
36
|
// flagWords - list of words to be always considered incorrect
|
|
32
37
|
// This is useful for offensive words and common spelling errors.
|
|
@@ -38,5 +43,17 @@
|
|
|
38
43
|
"languageSettings": [{
|
|
39
44
|
"languageId": "*",
|
|
40
45
|
"dictionaries": []
|
|
41
|
-
}]
|
|
46
|
+
}],
|
|
47
|
+
"files": [
|
|
48
|
+
// "README.md",
|
|
49
|
+
".buildkite/**",
|
|
50
|
+
"src/**"
|
|
51
|
+
// "test/**"
|
|
52
|
+
],
|
|
53
|
+
"ignorePaths": [
|
|
54
|
+
"node_modules",
|
|
55
|
+
"build",
|
|
56
|
+
"src/test",
|
|
57
|
+
"/project-words.txt",
|
|
58
|
+
]
|
|
42
59
|
}
|
|
@@ -83,6 +83,7 @@ export declare function AgencySchema(mongoose: MongooseModule): import("mongoose
|
|
|
83
83
|
type: ObjectConstructor;
|
|
84
84
|
default: {
|
|
85
85
|
tcPro: number;
|
|
86
|
+
tcManager: number;
|
|
86
87
|
tcStatus: number;
|
|
87
88
|
tcMobile: number;
|
|
88
89
|
tcWeb: number;
|
|
@@ -97,21 +98,99 @@ export declare function AgencySchema(mongoose: MongooseModule): import("mongoose
|
|
|
97
98
|
type: BooleanConstructor;
|
|
98
99
|
default: boolean;
|
|
99
100
|
};
|
|
100
|
-
|
|
101
|
+
source: {
|
|
101
102
|
type: import("mongoose").Schema<any> & {
|
|
102
103
|
_interface: import("../helpers").MongooseInterface<{
|
|
103
|
-
|
|
104
|
+
protocol: {
|
|
104
105
|
type: StringConstructor;
|
|
105
106
|
default: string;
|
|
106
107
|
};
|
|
107
|
-
|
|
108
|
+
username: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
default: string;
|
|
111
|
+
};
|
|
112
|
+
hostname: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
filePath: {
|
|
108
117
|
type: StringConstructor;
|
|
109
118
|
default: string;
|
|
110
119
|
};
|
|
111
120
|
}>;
|
|
112
121
|
_methods: unknown;
|
|
113
122
|
};
|
|
114
|
-
default:
|
|
123
|
+
default: {
|
|
124
|
+
protocol: string;
|
|
125
|
+
username: string;
|
|
126
|
+
hostname: string;
|
|
127
|
+
filePath: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
auth: {
|
|
131
|
+
type: import("mongoose").Schema<any> & {
|
|
132
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
133
|
+
password: {
|
|
134
|
+
type: import("mongoose").Schema<any> & {
|
|
135
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
136
|
+
iv: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
encryptedData: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
}>;
|
|
145
|
+
_methods: unknown;
|
|
146
|
+
};
|
|
147
|
+
default: null;
|
|
148
|
+
};
|
|
149
|
+
sshPrivateKey: {
|
|
150
|
+
type: import("mongoose").Schema<any> & {
|
|
151
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
152
|
+
iv: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
encryptedData: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
}>;
|
|
161
|
+
_methods: unknown;
|
|
162
|
+
};
|
|
163
|
+
default: null;
|
|
164
|
+
};
|
|
165
|
+
sshPublicKey: {
|
|
166
|
+
type: import("mongoose").Schema<any> & {
|
|
167
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
168
|
+
iv: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
encryptedData: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
}>;
|
|
177
|
+
_methods: unknown;
|
|
178
|
+
};
|
|
179
|
+
default: null;
|
|
180
|
+
};
|
|
181
|
+
useSSHKey: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
185
|
+
}>;
|
|
186
|
+
_methods: unknown;
|
|
187
|
+
};
|
|
188
|
+
default: {
|
|
189
|
+
password: null;
|
|
190
|
+
sshPrivateKey: null;
|
|
191
|
+
sshPublicKey: null;
|
|
192
|
+
useSSHKey: boolean;
|
|
193
|
+
};
|
|
115
194
|
};
|
|
116
195
|
processPath: {
|
|
117
196
|
type: StringConstructor;
|
|
@@ -125,6 +204,34 @@ export declare function AgencySchema(mongoose: MongooseModule): import("mongoose
|
|
|
125
204
|
type: StringConstructor;
|
|
126
205
|
default: string;
|
|
127
206
|
};
|
|
207
|
+
timezone: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
default: string;
|
|
210
|
+
};
|
|
211
|
+
customApiPath: {
|
|
212
|
+
type: StringConstructor;
|
|
213
|
+
default: string;
|
|
214
|
+
};
|
|
215
|
+
alterChunkSize: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
219
|
+
sourcePath: {
|
|
220
|
+
type: import("mongoose").Schema<any> & {
|
|
221
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
222
|
+
iv: {
|
|
223
|
+
type: StringConstructor;
|
|
224
|
+
default: string;
|
|
225
|
+
};
|
|
226
|
+
encryptedData: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
default: string;
|
|
229
|
+
};
|
|
230
|
+
}>;
|
|
231
|
+
_methods: unknown;
|
|
232
|
+
};
|
|
233
|
+
default: null;
|
|
234
|
+
};
|
|
128
235
|
sshPrivateKey: {
|
|
129
236
|
type: import("mongoose").Schema<any> & {
|
|
130
237
|
_interface: import("../helpers").MongooseInterface<{
|
|
@@ -161,18 +268,6 @@ export declare function AgencySchema(mongoose: MongooseModule): import("mongoose
|
|
|
161
268
|
type: BooleanConstructor;
|
|
162
269
|
default: boolean;
|
|
163
270
|
};
|
|
164
|
-
timezone: {
|
|
165
|
-
type: StringConstructor;
|
|
166
|
-
default: string;
|
|
167
|
-
};
|
|
168
|
-
customApiPath: {
|
|
169
|
-
type: StringConstructor;
|
|
170
|
-
default: string;
|
|
171
|
-
};
|
|
172
|
-
alterChunkSize: {
|
|
173
|
-
type: BooleanConstructor;
|
|
174
|
-
default: boolean;
|
|
175
|
-
};
|
|
176
271
|
}>;
|
|
177
272
|
_methods: unknown;
|
|
178
273
|
};
|
|
@@ -219,21 +314,99 @@ export declare function AgencyModule(mongoose: MongooseModule): Promise<import("
|
|
|
219
314
|
type: BooleanConstructor;
|
|
220
315
|
default: boolean;
|
|
221
316
|
};
|
|
222
|
-
|
|
317
|
+
source: {
|
|
223
318
|
type: import("mongoose").Schema<any> & {
|
|
224
319
|
_interface: import("../helpers").MongooseInterface<{
|
|
225
|
-
|
|
320
|
+
protocol: {
|
|
226
321
|
type: StringConstructor;
|
|
227
322
|
default: string;
|
|
228
323
|
};
|
|
229
|
-
|
|
324
|
+
username: {
|
|
325
|
+
type: StringConstructor;
|
|
326
|
+
default: string;
|
|
327
|
+
};
|
|
328
|
+
hostname: {
|
|
329
|
+
type: StringConstructor;
|
|
330
|
+
default: string;
|
|
331
|
+
};
|
|
332
|
+
filePath: {
|
|
230
333
|
type: StringConstructor;
|
|
231
334
|
default: string;
|
|
232
335
|
};
|
|
233
336
|
}>;
|
|
234
337
|
_methods: unknown;
|
|
235
338
|
};
|
|
236
|
-
default:
|
|
339
|
+
default: {
|
|
340
|
+
protocol: string;
|
|
341
|
+
username: string;
|
|
342
|
+
hostname: string;
|
|
343
|
+
filePath: string;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
auth: {
|
|
347
|
+
type: import("mongoose").Schema<any> & {
|
|
348
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
349
|
+
password: {
|
|
350
|
+
type: import("mongoose").Schema<any> & {
|
|
351
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
352
|
+
iv: {
|
|
353
|
+
type: StringConstructor;
|
|
354
|
+
default: string;
|
|
355
|
+
};
|
|
356
|
+
encryptedData: {
|
|
357
|
+
type: StringConstructor;
|
|
358
|
+
default: string;
|
|
359
|
+
};
|
|
360
|
+
}>;
|
|
361
|
+
_methods: unknown;
|
|
362
|
+
};
|
|
363
|
+
default: null;
|
|
364
|
+
};
|
|
365
|
+
sshPrivateKey: {
|
|
366
|
+
type: import("mongoose").Schema<any> & {
|
|
367
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
368
|
+
iv: {
|
|
369
|
+
type: StringConstructor;
|
|
370
|
+
default: string;
|
|
371
|
+
};
|
|
372
|
+
encryptedData: {
|
|
373
|
+
type: StringConstructor;
|
|
374
|
+
default: string;
|
|
375
|
+
};
|
|
376
|
+
}>;
|
|
377
|
+
_methods: unknown;
|
|
378
|
+
};
|
|
379
|
+
default: null;
|
|
380
|
+
};
|
|
381
|
+
sshPublicKey: {
|
|
382
|
+
type: import("mongoose").Schema<any> & {
|
|
383
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
384
|
+
iv: {
|
|
385
|
+
type: StringConstructor;
|
|
386
|
+
default: string;
|
|
387
|
+
};
|
|
388
|
+
encryptedData: {
|
|
389
|
+
type: StringConstructor;
|
|
390
|
+
default: string;
|
|
391
|
+
};
|
|
392
|
+
}>;
|
|
393
|
+
_methods: unknown;
|
|
394
|
+
};
|
|
395
|
+
default: null;
|
|
396
|
+
};
|
|
397
|
+
useSSHKey: {
|
|
398
|
+
type: BooleanConstructor;
|
|
399
|
+
default: boolean;
|
|
400
|
+
};
|
|
401
|
+
}>;
|
|
402
|
+
_methods: unknown;
|
|
403
|
+
};
|
|
404
|
+
default: {
|
|
405
|
+
password: null;
|
|
406
|
+
sshPrivateKey: null;
|
|
407
|
+
sshPublicKey: null;
|
|
408
|
+
useSSHKey: boolean;
|
|
409
|
+
};
|
|
237
410
|
};
|
|
238
411
|
processPath: {
|
|
239
412
|
type: StringConstructor;
|
|
@@ -247,6 +420,34 @@ export declare function AgencyModule(mongoose: MongooseModule): Promise<import("
|
|
|
247
420
|
type: StringConstructor;
|
|
248
421
|
default: string;
|
|
249
422
|
};
|
|
423
|
+
timezone: {
|
|
424
|
+
type: StringConstructor;
|
|
425
|
+
default: string;
|
|
426
|
+
};
|
|
427
|
+
customApiPath: {
|
|
428
|
+
type: StringConstructor;
|
|
429
|
+
default: string;
|
|
430
|
+
};
|
|
431
|
+
alterChunkSize: {
|
|
432
|
+
type: BooleanConstructor;
|
|
433
|
+
default: boolean;
|
|
434
|
+
};
|
|
435
|
+
sourcePath: {
|
|
436
|
+
type: import("mongoose").Schema<any> & {
|
|
437
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
438
|
+
iv: {
|
|
439
|
+
type: StringConstructor;
|
|
440
|
+
default: string;
|
|
441
|
+
};
|
|
442
|
+
encryptedData: {
|
|
443
|
+
type: StringConstructor;
|
|
444
|
+
default: string;
|
|
445
|
+
};
|
|
446
|
+
}>;
|
|
447
|
+
_methods: unknown;
|
|
448
|
+
};
|
|
449
|
+
default: null;
|
|
450
|
+
};
|
|
250
451
|
sshPrivateKey: {
|
|
251
452
|
type: import("mongoose").Schema<any> & {
|
|
252
453
|
_interface: import("../helpers").MongooseInterface<{
|
|
@@ -283,18 +484,6 @@ export declare function AgencyModule(mongoose: MongooseModule): Promise<import("
|
|
|
283
484
|
type: BooleanConstructor;
|
|
284
485
|
default: boolean;
|
|
285
486
|
};
|
|
286
|
-
timezone: {
|
|
287
|
-
type: StringConstructor;
|
|
288
|
-
default: string;
|
|
289
|
-
};
|
|
290
|
-
customApiPath: {
|
|
291
|
-
type: StringConstructor;
|
|
292
|
-
default: string;
|
|
293
|
-
};
|
|
294
|
-
alterChunkSize: {
|
|
295
|
-
type: BooleanConstructor;
|
|
296
|
-
default: boolean;
|
|
297
|
-
};
|
|
298
487
|
}>;
|
|
299
488
|
}, {}> & {
|
|
300
489
|
__methods?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agency.d.ts","sourceRoot":"","sources":["../../src/models/agency.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAGL,cAAc,EACd,uBAAuB,EACvB,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAGpB,wBAAgB,YAAY,CAAC,QAAQ,EAAE,cAAc
|
|
1
|
+
{"version":3,"file":"agency.d.ts","sourceRoot":"","sources":["../../src/models/agency.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAGL,cAAc,EACd,uBAAuB,EACvB,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAGpB,wBAAgB,YAAY,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2GpD;AAED,wBAAsB,YAAY,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAG1D;AAED,MAAM,WAAW,MAAO,SAAQ,8BAA8B,CAAC,OAAO,YAAY,CAAC;CAAI;AACvF,MAAM,WAAW,WAAY,SAAQ,+BAA+B,CAAC,MAAM,CAAC;CAAI;;AAChF,wBAAwF"}
|
|
@@ -6,21 +6,99 @@ export default function AgencyCronSchema(mongoose: MongooseModule): import("mong
|
|
|
6
6
|
type: BooleanConstructor;
|
|
7
7
|
default: boolean;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
source: {
|
|
10
10
|
type: import("mongoose").Schema<any> & {
|
|
11
11
|
_interface: import("../../helpers").MongooseInterface<{
|
|
12
|
-
|
|
12
|
+
protocol: {
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
username: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
hostname: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
filePath: {
|
|
17
25
|
type: StringConstructor;
|
|
18
26
|
default: string;
|
|
19
27
|
};
|
|
20
28
|
}>;
|
|
21
29
|
_methods: unknown;
|
|
22
30
|
};
|
|
23
|
-
default:
|
|
31
|
+
default: {
|
|
32
|
+
protocol: string;
|
|
33
|
+
username: string;
|
|
34
|
+
hostname: string;
|
|
35
|
+
filePath: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
auth: {
|
|
39
|
+
type: import("mongoose").Schema<any> & {
|
|
40
|
+
_interface: import("../../helpers").MongooseInterface<{
|
|
41
|
+
password: {
|
|
42
|
+
type: import("mongoose").Schema<any> & {
|
|
43
|
+
_interface: import("../../helpers").MongooseInterface<{
|
|
44
|
+
iv: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
encryptedData: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
}>;
|
|
53
|
+
_methods: unknown;
|
|
54
|
+
};
|
|
55
|
+
default: null;
|
|
56
|
+
};
|
|
57
|
+
sshPrivateKey: {
|
|
58
|
+
type: import("mongoose").Schema<any> & {
|
|
59
|
+
_interface: import("../../helpers").MongooseInterface<{
|
|
60
|
+
iv: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
encryptedData: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
}>;
|
|
69
|
+
_methods: unknown;
|
|
70
|
+
};
|
|
71
|
+
default: null;
|
|
72
|
+
};
|
|
73
|
+
sshPublicKey: {
|
|
74
|
+
type: import("mongoose").Schema<any> & {
|
|
75
|
+
_interface: import("../../helpers").MongooseInterface<{
|
|
76
|
+
iv: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
encryptedData: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
}>;
|
|
85
|
+
_methods: unknown;
|
|
86
|
+
};
|
|
87
|
+
default: null;
|
|
88
|
+
};
|
|
89
|
+
useSSHKey: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
_methods: unknown;
|
|
95
|
+
};
|
|
96
|
+
default: {
|
|
97
|
+
password: null;
|
|
98
|
+
sshPrivateKey: null;
|
|
99
|
+
sshPublicKey: null;
|
|
100
|
+
useSSHKey: boolean;
|
|
101
|
+
};
|
|
24
102
|
};
|
|
25
103
|
processPath: {
|
|
26
104
|
type: StringConstructor;
|
|
@@ -34,6 +112,34 @@ export default function AgencyCronSchema(mongoose: MongooseModule): import("mong
|
|
|
34
112
|
type: StringConstructor;
|
|
35
113
|
default: string;
|
|
36
114
|
};
|
|
115
|
+
timezone: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
customApiPath: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
alterChunkSize: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
sourcePath: {
|
|
128
|
+
type: import("mongoose").Schema<any> & {
|
|
129
|
+
_interface: import("../../helpers").MongooseInterface<{
|
|
130
|
+
iv: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
encryptedData: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
}>;
|
|
139
|
+
_methods: unknown;
|
|
140
|
+
};
|
|
141
|
+
default: null;
|
|
142
|
+
};
|
|
37
143
|
sshPrivateKey: {
|
|
38
144
|
type: import("mongoose").Schema<any> & {
|
|
39
145
|
_interface: import("../../helpers").MongooseInterface<{
|
|
@@ -70,18 +176,6 @@ export default function AgencyCronSchema(mongoose: MongooseModule): import("mong
|
|
|
70
176
|
type: BooleanConstructor;
|
|
71
177
|
default: boolean;
|
|
72
178
|
};
|
|
73
|
-
timezone: {
|
|
74
|
-
type: StringConstructor;
|
|
75
|
-
default: string;
|
|
76
|
-
};
|
|
77
|
-
customApiPath: {
|
|
78
|
-
type: StringConstructor;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
|
-
alterChunkSize: {
|
|
82
|
-
type: BooleanConstructor;
|
|
83
|
-
default: boolean;
|
|
84
|
-
};
|
|
85
179
|
}>;
|
|
86
180
|
_methods: unknown;
|
|
87
181
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agency-cron-config.d.ts","sourceRoot":"","sources":["../../../src/models/schema/agency-cron-config.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,cAAc,EACf,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,QAAQ,EAAE,cAAc
|
|
1
|
+
{"version":3,"file":"agency-cron-config.d.ts","sourceRoot":"","sources":["../../../src/models/schema/agency-cron-config.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,cAAc,EACf,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4IhE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabletcommand-backend-models",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.23.0",
|
|
4
4
|
"description": "Tablet Command Backend Models",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "gulp",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"uuid": "~9.0.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/bluebird": "^3.5.
|
|
28
|
+
"@types/bluebird": "^3.5.37",
|
|
29
29
|
"@types/chai": "^4.3.3",
|
|
30
30
|
"@types/lodash": "^4.14.185",
|
|
31
31
|
"@types/mocha": "^9.1.1",
|
|
@@ -35,8 +35,9 @@
|
|
|
35
35
|
"@typescript-eslint/eslint-plugin": "~5.38.0",
|
|
36
36
|
"@typescript-eslint/parser": "~5.38.0",
|
|
37
37
|
"chai": "^4.3.6",
|
|
38
|
+
"cspell": "^6.10.1",
|
|
38
39
|
"del": "^6.1.1",
|
|
39
|
-
"eslint": "^8.
|
|
40
|
+
"eslint": "^8.24.0",
|
|
40
41
|
"gulp": "^4.0.2",
|
|
41
42
|
"gulp-mocha": "^8.0.0",
|
|
42
43
|
"gulp-shell": "^0.8.0",
|
package/src/models/agency.ts
CHANGED
|
@@ -33,12 +33,13 @@ export function AgencySchema(mongoose: MongooseModule) {
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
const LicensingDefault = {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
tcPro: 0,
|
|
37
|
+
tcManager: 0,
|
|
38
|
+
tcStatus: 0,
|
|
39
|
+
tcMobile: 0,
|
|
40
|
+
tcWeb: 0,
|
|
41
|
+
fireMapperPro: 0,
|
|
42
|
+
locationToCAD: 0
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
const modelSchema = createSchema(Schema, {
|
|
@@ -20,31 +20,45 @@ export default function AgencyCronSchema(mongoose: MongooseModule) {
|
|
|
20
20
|
id: false,
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
type:
|
|
26
|
-
default:
|
|
27
|
-
},
|
|
28
|
-
sourcePath: {
|
|
29
|
-
type: EncryptedData,
|
|
30
|
-
default: null,
|
|
23
|
+
const CronConfigSource = createSchema(Schema, {
|
|
24
|
+
protocol: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "",
|
|
31
27
|
},
|
|
32
|
-
|
|
28
|
+
username: {
|
|
33
29
|
type: String,
|
|
34
30
|
default: "",
|
|
35
31
|
},
|
|
36
|
-
|
|
32
|
+
hostname: {
|
|
37
33
|
type: String,
|
|
38
34
|
default: "",
|
|
39
35
|
},
|
|
40
|
-
|
|
36
|
+
filePath: {
|
|
41
37
|
type: String,
|
|
42
38
|
default: "",
|
|
43
39
|
},
|
|
40
|
+
}, {
|
|
41
|
+
_id: false,
|
|
42
|
+
id: false,
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const CronConfigSourceDefault = {
|
|
46
|
+
protocol: "",
|
|
47
|
+
username: "",
|
|
48
|
+
hostname: "",
|
|
49
|
+
filePath: "",
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const CronConfigAuth = createSchema(Schema, {
|
|
53
|
+
password: {
|
|
54
|
+
type: EncryptedData,
|
|
55
|
+
default: null,
|
|
56
|
+
},
|
|
44
57
|
sshPrivateKey: {
|
|
45
58
|
type: EncryptedData,
|
|
46
59
|
default: null,
|
|
47
60
|
},
|
|
61
|
+
// Possibly unused
|
|
48
62
|
sshPublicKey: {
|
|
49
63
|
type: EncryptedData,
|
|
50
64
|
default: null,
|
|
@@ -53,6 +67,46 @@ export default function AgencyCronSchema(mongoose: MongooseModule) {
|
|
|
53
67
|
type: Boolean,
|
|
54
68
|
default: false,
|
|
55
69
|
},
|
|
70
|
+
}, {
|
|
71
|
+
_id: false,
|
|
72
|
+
id: false,
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
const CronConfigAuthDefault = {
|
|
76
|
+
password: null,
|
|
77
|
+
sshPrivateKey: null,
|
|
78
|
+
sshPublicKey: null,
|
|
79
|
+
useSSHKey: false,
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const AgencyCronConfig = createSchema(Schema, {
|
|
83
|
+
enabled: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: false,
|
|
86
|
+
},
|
|
87
|
+
// sftp://user@host:port/path/to/file.xml
|
|
88
|
+
source: {
|
|
89
|
+
type: CronConfigSource,
|
|
90
|
+
default: CronConfigSourceDefault,
|
|
91
|
+
},
|
|
92
|
+
// password OR SSH private key (with flag useSSHKey = true)
|
|
93
|
+
auth: {
|
|
94
|
+
type: CronConfigAuth,
|
|
95
|
+
default: CronConfigAuthDefault,
|
|
96
|
+
},
|
|
97
|
+
processPath: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: "",
|
|
100
|
+
},
|
|
101
|
+
completedPath: {
|
|
102
|
+
type: String,
|
|
103
|
+
default: "",
|
|
104
|
+
},
|
|
105
|
+
importType: {
|
|
106
|
+
type: String,
|
|
107
|
+
default: "",
|
|
108
|
+
},
|
|
109
|
+
|
|
56
110
|
timezone: {
|
|
57
111
|
type: String,
|
|
58
112
|
default: ""
|
|
@@ -65,6 +119,24 @@ export default function AgencyCronSchema(mongoose: MongooseModule) {
|
|
|
65
119
|
type: Boolean,
|
|
66
120
|
default: false,
|
|
67
121
|
},
|
|
122
|
+
|
|
123
|
+
// Deprecated - migrated to source + auth
|
|
124
|
+
sourcePath: {
|
|
125
|
+
type: EncryptedData,
|
|
126
|
+
default: null,
|
|
127
|
+
},
|
|
128
|
+
sshPrivateKey: {
|
|
129
|
+
type: EncryptedData,
|
|
130
|
+
default: null,
|
|
131
|
+
},
|
|
132
|
+
sshPublicKey: {
|
|
133
|
+
type: EncryptedData,
|
|
134
|
+
default: null,
|
|
135
|
+
},
|
|
136
|
+
useSSHKey: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: false,
|
|
139
|
+
},
|
|
68
140
|
}, {
|
|
69
141
|
_id: false,
|
|
70
142
|
id: false,
|