@resolveio/server-lib 4.4.13 → 4.4.14
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.
|
@@ -51,7 +51,9 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
|
|
|
51
51
|
});
|
|
52
52
|
DefaultSchema.index({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
53
53
|
DefaultSchema.index({ type: 1 });
|
|
54
|
-
DefaultSchema.index({
|
|
54
|
+
DefaultSchema.index({ type: 1, date: 1 });
|
|
55
|
+
DefaultSchema.index({ user: 1, date: 1 });
|
|
56
|
+
DefaultSchema.index({ user: 1, type: 1, date: 1 });
|
|
55
57
|
exports.Logs = index_1.ResolveIOServer.getMainDB().model('logs', DefaultSchema);
|
|
56
58
|
schema._id = {
|
|
57
59
|
type: mongoose_1.Schema.Types.Mixed
|
package/package.json
CHANGED
|
@@ -174,8 +174,10 @@ function buildTree(current_root, schemaTree, lookup) {
|
|
|
174
174
|
columnName: common_1.toTitleCase(key.replace(/\_/g, ' ')),
|
|
175
175
|
fieldName: key,
|
|
176
176
|
fieldType: schemaTree[key].rbType,
|
|
177
|
+
fieldTypeName: schemaTree[key].rbType === 'String' ? 'Text' : (schemaTree[key].rbType === 'Boolean' ? 'T/F' : schemaTree[key].rbType),
|
|
177
178
|
distinctFieldValues: [],
|
|
178
179
|
fieldPath: lookup ? lookup.lookup_as + '.$.' + key : key,
|
|
180
|
+
fieldPathName: lookup ? (common_1.toTitleCase(lookup.lookup_as.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> '))) + ' (List) -> ' + (common_1.toTitleCase(key.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> '))) : common_1.toTitleCase(key.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> ')),
|
|
179
181
|
lookup_collection: lookup ? lookup.lookup_collection : (schemaTree[key].lookup_collection ? schemaTree[key].lookup_collection : ''),
|
|
180
182
|
lookup_local_key: lookup ? lookup.lookup_local_key : (schemaTree[key].lookup_collection ? schemaTree[key].local_key : ''),
|
|
181
183
|
lookup_foreign_key: lookup ? lookup.lookup_foreign_key : (schemaTree[key].lookup_collection ? schemaTree[key].lookup_key : ''),
|
|
@@ -196,8 +198,10 @@ function buildTree(current_root, schemaTree, lookup) {
|
|
|
196
198
|
columnName: common_1.toTitleCase(key.replace(/\_/g, ' ')),
|
|
197
199
|
fieldName: key,
|
|
198
200
|
fieldType: schemaTree[key].lookup_collection ? 'Lookup' : schemaTree[key].rbType,
|
|
201
|
+
fieldTypeName: schemaTree[key].lookup_collection ? 'Lookup' : (schemaTree[key].rbType === 'Array' ? 'List' : 'Group'),
|
|
199
202
|
distinctFieldValues: [],
|
|
200
203
|
fieldPath: lookup ? lookup.lookup_as + '.$.' + key : key,
|
|
204
|
+
fieldPathName: lookup ? (common_1.toTitleCase(lookup.lookup_as.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> '))) + ' (List) -> ' + (common_1.toTitleCase(key.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> '))) : common_1.toTitleCase(key.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> ')),
|
|
201
205
|
lookup_collection: lookup ? lookup.lookup_collection : (schemaTree[key].lookup_collection ? schemaTree[key].lookup_collection : ''),
|
|
202
206
|
lookup_local_key: lookup ? lookup.lookup_local_key : (schemaTree[key].lookup_collection ? schemaTree[key].local_key : ''),
|
|
203
207
|
lookup_foreign_key: lookup ? lookup.lookup_foreign_key : (schemaTree[key].lookup_collection ? schemaTree[key].lookup_key : ''),
|
|
@@ -231,8 +235,10 @@ function buildTree(current_root, schemaTree, lookup) {
|
|
|
231
235
|
columnName: common_1.toTitleCase(key.replace(/\_/g, ' ')),
|
|
232
236
|
fieldName: layer,
|
|
233
237
|
fieldType: schemaTree[key].rbType,
|
|
238
|
+
fieldTypeName: schemaTree[key].rbType === 'String' ? 'Text' : (schemaTree[key].rbType === 'Boolean' ? 'T/F' : schemaTree[key].rbType),
|
|
234
239
|
distinctFieldValues: [],
|
|
235
240
|
fieldPath: lookup ? lookup.lookup_as + '.$.' + key : key,
|
|
241
|
+
fieldPathName: lookup ? (common_1.toTitleCase(lookup.lookup_as.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> '))) + ' (List) -> ' + (common_1.toTitleCase(key.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> '))) : common_1.toTitleCase(key.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> ')),
|
|
236
242
|
lookup_collection: lookup ? lookup.lookup_collection : (schemaTree[key].lookup_collection ? schemaTree[key].lookup_collection : ''),
|
|
237
243
|
lookup_local_key: lookup ? lookup.lookup_local_key : (schemaTree[key].lookup_collection ? schemaTree[key].local_key : ''),
|
|
238
244
|
lookup_foreign_key: lookup ? lookup.lookup_foreign_key : (schemaTree[key].lookup_collection ? schemaTree[key].lookup_key : ''),
|
|
@@ -253,8 +259,10 @@ function buildTree(current_root, schemaTree, lookup) {
|
|
|
253
259
|
columnName: common_1.toTitleCase(key.replace(/\_/g, ' ')),
|
|
254
260
|
fieldName: layer,
|
|
255
261
|
fieldType: schemaTree[key].lookup_collection ? 'Lookup' : schemaTree[key].rbType,
|
|
262
|
+
fieldTypeName: schemaTree[key].lookup_collection ? 'Lookup' : (schemaTree[key].rbType === 'Array' ? 'List' : 'Group'),
|
|
256
263
|
distinctFieldValues: [],
|
|
257
264
|
fieldPath: lookup ? lookup.lookup_as + '.$.' + key : key,
|
|
265
|
+
fieldPathName: lookup ? (common_1.toTitleCase(lookup.lookup_as.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> '))) + ' (List) -> ' + (common_1.toTitleCase(key.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> '))) : common_1.toTitleCase(key.replace(/\.\$\./g, ' (List) -> ').replace(/\./g, ' (Group) -> ')),
|
|
258
266
|
lookup_collection: lookup ? lookup.lookup_collection : (schemaTree[key].lookup_collection ? schemaTree[key].lookup_collection : ''),
|
|
259
267
|
lookup_local_key: lookup ? lookup.lookup_local_key : (schemaTree[key].lookup_collection ? schemaTree[key].local_key : ''),
|
|
260
268
|
lookup_foreign_key: lookup ? lookup.lookup_foreign_key : (schemaTree[key].lookup_collection ? schemaTree[key].lookup_key : ''),
|