tabletcommand-backend-models 7.4.93 → 7.4.94
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/kindtype-catalog.js +0 -15
- package/build/models/kindtype-catalog.js.map +1 -1
- package/definitions/models/kindtype-catalog.d.ts.map +1 -1
- package/definitions/types/kindtype-catalog.d.ts +0 -3
- package/definitions/types/kindtype-catalog.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/models/kindtype-catalog.ts +0 -16
- package/src/types/kindtype-catalog.ts +0 -3
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = KindTypeCatalogModule;
|
|
4
|
-
const uuid = require("uuid");
|
|
5
4
|
const helpers_1 = require("../helpers");
|
|
6
5
|
const color_1 = require("./schema/color");
|
|
7
6
|
async function KindTypeCatalogModule(mongoose) {
|
|
8
7
|
const { Schema } = mongoose;
|
|
9
8
|
const Color = (0, color_1.default)(mongoose);
|
|
10
9
|
const modelSchema = new Schema({
|
|
11
|
-
uuid: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: uuid.v4,
|
|
14
|
-
},
|
|
15
10
|
kind: {
|
|
16
11
|
type: String,
|
|
17
12
|
required: true,
|
|
@@ -34,10 +29,6 @@ async function KindTypeCatalogModule(mongoose) {
|
|
|
34
29
|
type: Boolean,
|
|
35
30
|
default: true,
|
|
36
31
|
},
|
|
37
|
-
modifiedDate: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: 0,
|
|
40
|
-
},
|
|
41
32
|
modified: {
|
|
42
33
|
type: Date,
|
|
43
34
|
default: helpers_1.currentDate,
|
|
@@ -52,12 +43,6 @@ async function KindTypeCatalogModule(mongoose) {
|
|
|
52
43
|
name: "kind_1_type_1_unique",
|
|
53
44
|
unique: true,
|
|
54
45
|
});
|
|
55
|
-
modelSchema.index({
|
|
56
|
-
uuid: 1,
|
|
57
|
-
}, {
|
|
58
|
-
name: "uuid_1_unique",
|
|
59
|
-
unique: true,
|
|
60
|
-
});
|
|
61
46
|
return mongoose.model("KindTypeCatalog", modelSchema, "massive_kindtype_catalog", { overwriteModels: true });
|
|
62
47
|
}
|
|
63
48
|
//# sourceMappingURL=kindtype-catalog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kindtype-catalog.js","sourceRoot":"","sources":["../../src/models/kindtype-catalog.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"kindtype-catalog.js","sourceRoot":"","sources":["../../src/models/kindtype-catalog.ts"],"names":[],"mappings":";;AAUA,wCA4CC;AAtDD,wCAGoB;AACpB,0CAAyC;AAM1B,KAAK,UAAU,qBAAqB,CAAC,QAAwB;IAC1E,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC;IAC5B,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,QAAQ,CAAC,CAAC;IAEpC,MAAM,WAAW,GAAG,IAAI,MAAM,CAAkB;QAC9C,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,CAAC;SACb;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE;SACZ;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,IAAI;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,IAAI;SACd;QACD,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,IAAI;SACd;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,qBAAW;SACrB;KACF,EAAE;QACD,SAAS,EAAE,KAAK;KACjB,CAAC,CAAC;IAEH,WAAW,CAAC,KAAK,CAAC;QAChB,IAAI,EAAE,CAAC;QACP,IAAI,EAAE,CAAC;KACR,EAAE;QACD,IAAI,EAAE,sBAAsB;QAC5B,MAAM,EAAE,IAAI;KACb,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC,KAAK,CAAkB,iBAAiB,EAAE,WAAW,EAAE,0BAA0B,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC;AAChI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kindtype-catalog.d.ts","sourceRoot":"","sources":["../../src/models/kindtype-catalog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kindtype-catalog.d.ts","sourceRoot":"","sources":["../../src/models/kindtype-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;CAAI;AAEhE,wBAA8B,qBAAqB,CAAC,QAAQ,EAAE,cAAc;;;;SA4C3E;AAED,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,eAAe,CAAC;CAAI"}
|
|
@@ -2,14 +2,11 @@ import { Types } from "mongoose";
|
|
|
2
2
|
import { ColorSchemaType } from "./color";
|
|
3
3
|
export interface KindTypeCatalogType extends Record<string, unknown> {
|
|
4
4
|
_id: Types.ObjectId;
|
|
5
|
-
id?: string;
|
|
6
|
-
uuid: string;
|
|
7
5
|
kind: string;
|
|
8
6
|
type: string;
|
|
9
7
|
locationType: string;
|
|
10
8
|
colorization?: ColorSchemaType;
|
|
11
9
|
active: boolean;
|
|
12
|
-
modifiedDate: number;
|
|
13
10
|
modified: Date;
|
|
14
11
|
}
|
|
15
12
|
//# sourceMappingURL=kindtype-catalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kindtype-catalog.d.ts","sourceRoot":"","sources":["../../src/types/kindtype-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAClE,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC;IACpB,
|
|
1
|
+
{"version":3,"file":"kindtype-catalog.d.ts","sourceRoot":"","sources":["../../src/types/kindtype-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAClE,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC;CAChB"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as uuid from "uuid";
|
|
2
1
|
import {
|
|
3
2
|
currentDate,
|
|
4
3
|
MongooseModule,
|
|
@@ -14,10 +13,6 @@ export default async function KindTypeCatalogModule(mongoose: MongooseModule) {
|
|
|
14
13
|
const Color = ColorModule(mongoose);
|
|
15
14
|
|
|
16
15
|
const modelSchema = new Schema<KindTypeCatalog>({
|
|
17
|
-
uuid: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: uuid.v4,
|
|
20
|
-
},
|
|
21
16
|
kind: {
|
|
22
17
|
type: String,
|
|
23
18
|
required: true,
|
|
@@ -40,10 +35,6 @@ export default async function KindTypeCatalogModule(mongoose: MongooseModule) {
|
|
|
40
35
|
type: Boolean,
|
|
41
36
|
default: true,
|
|
42
37
|
},
|
|
43
|
-
modifiedDate: {
|
|
44
|
-
type: Number,
|
|
45
|
-
default: 0,
|
|
46
|
-
},
|
|
47
38
|
modified: {
|
|
48
39
|
type: Date,
|
|
49
40
|
default: currentDate,
|
|
@@ -60,13 +51,6 @@ export default async function KindTypeCatalogModule(mongoose: MongooseModule) {
|
|
|
60
51
|
unique: true,
|
|
61
52
|
});
|
|
62
53
|
|
|
63
|
-
modelSchema.index({
|
|
64
|
-
uuid: 1,
|
|
65
|
-
}, {
|
|
66
|
-
name: "uuid_1_unique",
|
|
67
|
-
unique: true,
|
|
68
|
-
});
|
|
69
|
-
|
|
70
54
|
return mongoose.model<KindTypeCatalog>("KindTypeCatalog", modelSchema, "massive_kindtype_catalog", { overwriteModels: true });
|
|
71
55
|
}
|
|
72
56
|
|
|
@@ -3,13 +3,10 @@ import { ColorSchemaType } from "./color";
|
|
|
3
3
|
|
|
4
4
|
export interface KindTypeCatalogType extends Record<string, unknown> {
|
|
5
5
|
_id: Types.ObjectId,
|
|
6
|
-
id?: string,
|
|
7
|
-
uuid: string,
|
|
8
6
|
kind: string,
|
|
9
7
|
type: string,
|
|
10
8
|
locationType: string,
|
|
11
9
|
colorization?: ColorSchemaType,
|
|
12
10
|
active: boolean,
|
|
13
|
-
modifiedDate: number,
|
|
14
11
|
modified: Date,
|
|
15
12
|
}
|