1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.AlreadyMerged = exports.Severity = exports.PropType = exports.DecoratorKeys = void 0;
|
4 | /**
|
5 | * Collection of Reflect Types for easy maintenance
|
6 | */
|
7 | var DecoratorKeys;
|
8 | (function (DecoratorKeys) {
|
9 | /** Get the Typescript assigned Type at runtime */
|
10 | DecoratorKeys["Type"] = "design:type";
|
11 | /**
|
12 | * "@prop" Cache
|
13 | * -> Use only for a class
|
14 | */
|
15 | DecoratorKeys["PropCache"] = "typegoose:properties";
|
16 | /**
|
17 | * Storage location for Model Options
|
18 | * -> Use only for a class
|
19 | */
|
20 | DecoratorKeys["ModelOptions"] = "typegoose:options";
|
21 | /**
|
22 | * Storage location for Indexes
|
23 | * -> Use only for a class
|
24 | */
|
25 | DecoratorKeys["Index"] = "typegoose:indexes";
|
26 | /**
|
27 | * Storage location for Plugins
|
28 | * -> Use only for a class
|
29 | */
|
30 | DecoratorKeys["Plugins"] = "typegoose:plugins";
|
31 | /**
|
32 | * Storage location for Pre-Hooks
|
33 | * -> Use only for a class
|
34 | */
|
35 | DecoratorKeys["HooksPre"] = "typegoose:hooksPre";
|
36 | /**
|
37 | * Storage location for Post-Hooks
|
38 | * -> Use only for a class
|
39 | */
|
40 | DecoratorKeys["HooksPost"] = "typegoose:hooksPost";
|
41 | /**
|
42 | * Storage location for Virtual Populates
|
43 | * -> Use only for a class
|
44 | */
|
45 | DecoratorKeys["VirtualPopulate"] = "typegoose:virtualPopulate";
|
46 | /**
|
47 | * Storage location for Query Methods
|
48 | * -> Use only for a class
|
49 | */
|
50 | DecoratorKeys["QueryMethod"] = "typegoose:queryMethod";
|
51 | /**
|
52 | * Storage location for Nested Discriminators
|
53 | * -> Use only for a class
|
54 | */
|
55 | DecoratorKeys["NestedDiscriminators"] = "typegoose:nestedDiscriminators";
|
56 | /**
|
57 | * Storage location for Cached Schemas
|
58 | * -> Use only for a class
|
59 | */
|
60 | DecoratorKeys["CachedSchema"] = "typegoose:cachedSchema";
|
61 | })(DecoratorKeys = exports.DecoratorKeys || (exports.DecoratorKeys = {}));
|
62 | /** This Enum is meant for baseProp to decide for different props (like if it is an arrayProp or prop or mapProp) */
|
63 | var PropType;
|
64 | (function (PropType) {
|
65 | PropType[PropType["ARRAY"] = 0] = "ARRAY";
|
66 | PropType[PropType["MAP"] = 1] = "MAP";
|
67 | PropType[PropType["NONE"] = 2] = "NONE";
|
68 | })(PropType = exports.PropType || (exports.PropType = {}));
|
69 | /** Severity levels for soft-warnings */
|
70 | var Severity;
|
71 | (function (Severity) {
|
72 | Severity[Severity["ALLOW"] = 0] = "ALLOW";
|
73 | Severity[Severity["WARN"] = 1] = "WARN";
|
74 | Severity[Severity["ERROR"] = 2] = "ERROR";
|
75 | })(Severity = exports.Severity || (exports.Severity = {}));
|
76 | /**
|
77 | * Symbol to track if options have already been merged
|
78 | * This is to reduce the "merge*" calls, which dont need to be run often if already done
|
79 | */
|
80 | exports.AlreadyMerged = Symbol('MOAlreadyMergedOptions');
|
81 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludGVybmFsL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7R0FFRztBQUNILElBQVksYUFxRFg7QUFyREQsV0FBWSxhQUFhO0lBQ3ZCLGtEQUFrRDtJQUNsRCxxQ0FBb0IsQ0FBQTtJQUNwQjs7O09BR0c7SUFDSCxtREFBa0MsQ0FBQTtJQUNsQzs7O09BR0c7SUFDSCxtREFBa0MsQ0FBQTtJQUNsQzs7O09BR0c7SUFDSCw0Q0FBMkIsQ0FBQTtJQUMzQjs7O09BR0c7SUFDSCw4Q0FBNkIsQ0FBQTtJQUM3Qjs7O09BR0c7SUFDSCxnREFBK0IsQ0FBQTtJQUMvQjs7O09BR0c7SUFDSCx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