@dynamatix/gb-schemas 2.10.0 → 2.11.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/shared/lookup-group.model.d.ts +21 -1
- package/dist/shared/lookup-group.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.js +2 -2
- package/dist/shared/lookup.model.d.ts +21 -1
- package/dist/shared/lookup.model.d.ts.map +1 -1
- package/dist/shared/lookup.model.js +1 -1
- package/package.json +1 -1
|
@@ -28,25 +28,45 @@
|
|
|
28
28
|
/// <reference types="mongoose/types/inferrawdoctype.js" />
|
|
29
29
|
import mongoose from "mongoose";
|
|
30
30
|
declare const LookupGroupModel: mongoose.Model<{
|
|
31
|
+
createdAt: NativeDate;
|
|
32
|
+
updatedAt: NativeDate;
|
|
33
|
+
} & {
|
|
31
34
|
name: string;
|
|
32
35
|
lookups: mongoose.Types.ObjectId[];
|
|
33
36
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
37
|
+
createdAt: NativeDate;
|
|
38
|
+
updatedAt: NativeDate;
|
|
39
|
+
} & {
|
|
34
40
|
name: string;
|
|
35
41
|
lookups: mongoose.Types.ObjectId[];
|
|
36
42
|
}, {}> & {
|
|
43
|
+
createdAt: NativeDate;
|
|
44
|
+
updatedAt: NativeDate;
|
|
45
|
+
} & {
|
|
37
46
|
name: string;
|
|
38
47
|
lookups: mongoose.Types.ObjectId[];
|
|
39
48
|
} & {
|
|
40
49
|
_id: mongoose.Types.ObjectId;
|
|
41
50
|
} & {
|
|
42
51
|
__v: number;
|
|
43
|
-
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {},
|
|
52
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
53
|
+
timestamps: true;
|
|
54
|
+
}, {
|
|
55
|
+
createdAt: NativeDate;
|
|
56
|
+
updatedAt: NativeDate;
|
|
57
|
+
} & {
|
|
44
58
|
name: string;
|
|
45
59
|
lookups: mongoose.Types.ObjectId[];
|
|
46
60
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
61
|
+
createdAt: NativeDate;
|
|
62
|
+
updatedAt: NativeDate;
|
|
63
|
+
} & {
|
|
47
64
|
name: string;
|
|
48
65
|
lookups: mongoose.Types.ObjectId[];
|
|
49
66
|
}>, {}> & mongoose.FlatRecord<{
|
|
67
|
+
createdAt: NativeDate;
|
|
68
|
+
updatedAt: NativeDate;
|
|
69
|
+
} & {
|
|
50
70
|
name: string;
|
|
51
71
|
lookups: mongoose.Types.ObjectId[];
|
|
52
72
|
}> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookup-group.model.d.ts","sourceRoot":"","sources":["../../shared/lookup-group.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAwBhC,QAAA,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"lookup-group.model.d.ts","sourceRoot":"","sources":["../../shared/lookup-group.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAwBhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAC1E,eAAe,gBAAgB,CAAC"}
|
|
@@ -11,8 +11,8 @@ const lookupGroupSchema = new mongoose.Schema({
|
|
|
11
11
|
type: mongoose.Schema.Types.ObjectId,
|
|
12
12
|
ref: "Lookup", // References the Lookup collection
|
|
13
13
|
},
|
|
14
|
-
]
|
|
15
|
-
});
|
|
14
|
+
],
|
|
15
|
+
}, { timestamps: true });
|
|
16
16
|
// Apply workflow plugin to the schema
|
|
17
17
|
applyWorkflowPlugin(lookupGroupSchema, 'lookupgroup');
|
|
18
18
|
// Database indexes for performance optimization
|
|
@@ -28,18 +28,27 @@
|
|
|
28
28
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
29
|
import mongoose from "mongoose";
|
|
30
30
|
declare const LookupModel: mongoose.Model<{
|
|
31
|
+
createdAt: NativeDate;
|
|
32
|
+
updatedAt: NativeDate;
|
|
33
|
+
} & {
|
|
31
34
|
isActive: boolean;
|
|
32
35
|
text: string;
|
|
33
36
|
name: string;
|
|
34
37
|
value?: string | null | undefined;
|
|
35
38
|
lookupGroupId?: mongoose.Types.ObjectId | null | undefined;
|
|
36
39
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
40
|
+
createdAt: NativeDate;
|
|
41
|
+
updatedAt: NativeDate;
|
|
42
|
+
} & {
|
|
37
43
|
isActive: boolean;
|
|
38
44
|
text: string;
|
|
39
45
|
name: string;
|
|
40
46
|
value?: string | null | undefined;
|
|
41
47
|
lookupGroupId?: mongoose.Types.ObjectId | null | undefined;
|
|
42
48
|
}, {}> & {
|
|
49
|
+
createdAt: NativeDate;
|
|
50
|
+
updatedAt: NativeDate;
|
|
51
|
+
} & {
|
|
43
52
|
isActive: boolean;
|
|
44
53
|
text: string;
|
|
45
54
|
name: string;
|
|
@@ -49,19 +58,30 @@ declare const LookupModel: mongoose.Model<{
|
|
|
49
58
|
_id: mongoose.Types.ObjectId;
|
|
50
59
|
} & {
|
|
51
60
|
__v: number;
|
|
52
|
-
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {},
|
|
61
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
62
|
+
timestamps: true;
|
|
63
|
+
}, {
|
|
64
|
+
createdAt: NativeDate;
|
|
65
|
+
updatedAt: NativeDate;
|
|
66
|
+
} & {
|
|
53
67
|
isActive: boolean;
|
|
54
68
|
text: string;
|
|
55
69
|
name: string;
|
|
56
70
|
value?: string | null | undefined;
|
|
57
71
|
lookupGroupId?: mongoose.Types.ObjectId | null | undefined;
|
|
58
72
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
73
|
+
createdAt: NativeDate;
|
|
74
|
+
updatedAt: NativeDate;
|
|
75
|
+
} & {
|
|
59
76
|
isActive: boolean;
|
|
60
77
|
text: string;
|
|
61
78
|
name: string;
|
|
62
79
|
value?: string | null | undefined;
|
|
63
80
|
lookupGroupId?: mongoose.Types.ObjectId | null | undefined;
|
|
64
81
|
}>, {}> & mongoose.FlatRecord<{
|
|
82
|
+
createdAt: NativeDate;
|
|
83
|
+
updatedAt: NativeDate;
|
|
84
|
+
} & {
|
|
65
85
|
isActive: boolean;
|
|
66
86
|
text: string;
|
|
67
87
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookup.model.d.ts","sourceRoot":"","sources":["../../shared/lookup.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqChC,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"lookup.model.d.ts","sourceRoot":"","sources":["../../shared/lookup.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqChC,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyC,CAAC;AAC3D,eAAe,WAAW,CAAC"}
|
|
@@ -20,7 +20,7 @@ const lookupSchema = new mongoose.Schema({
|
|
|
20
20
|
default: true,
|
|
21
21
|
description: "Whether the lookup is active"
|
|
22
22
|
}
|
|
23
|
-
});
|
|
23
|
+
}, { timestamps: true });
|
|
24
24
|
lookupSchema.index({ lookupGroupId: 1 });
|
|
25
25
|
lookupSchema.index({ value: 1 });
|
|
26
26
|
// Case-insensitive index for name queries
|