pristine-member-nest-api-database 1.0.49 → 1.0.51
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/index.js +1 -0
- package/dist/models/Containers.model.js +43 -0
- package/index.ts +1 -0
- package/models/Containers.model.ts +34 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43,6 +43,7 @@ __exportStar(require("./models/UserRole.model"), exports);
|
|
|
43
43
|
__exportStar(require("./models/VehicleCategory.ir.model"), exports);
|
|
44
44
|
__exportStar(require("./models/TermsConditions.model"), exports);
|
|
45
45
|
__exportStar(require("./models/PrivacyPolicies.model"), exports);
|
|
46
|
+
__exportStar(require("./models/Containers.model"), exports);
|
|
46
47
|
__exportStar(require("./src/dbConnect"), exports);
|
|
47
48
|
//packege version 1.0.37 gs1 changes
|
|
48
49
|
//packege version 1.0.38 and 1.0.38 after application(application verification stable 1.0.40) verification without GS1 changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Container = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
const ContainerSchema = new mongoose_1.Schema({
|
|
29
|
+
ContainerCode: { type: String },
|
|
30
|
+
ContainerName: { type: String },
|
|
31
|
+
ContainerDescription: { type: String },
|
|
32
|
+
isSystemDefined: { type: Boolean, default: false },
|
|
33
|
+
isActive: { type: Boolean, default: true },
|
|
34
|
+
audit: [
|
|
35
|
+
{
|
|
36
|
+
userId: { type: String },
|
|
37
|
+
auditedOn: { type: Date, default: null },
|
|
38
|
+
actionType: { type: String },
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
});
|
|
42
|
+
const Container = mongoose_1.default.model("Editor.Container", ContainerSchema);
|
|
43
|
+
exports.Container = Container;
|
package/index.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from "./models/UserRole.model";
|
|
|
27
27
|
export * from "./models/VehicleCategory.ir.model";
|
|
28
28
|
export * from "./models/TermsConditions.model";
|
|
29
29
|
export * from "./models/PrivacyPolicies.model";
|
|
30
|
+
export * from "./models/Containers.model";
|
|
30
31
|
export * from "./src/dbConnect";
|
|
31
32
|
|
|
32
33
|
//packege version 1.0.37 gs1 changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import mongoose, { Document, Schema } from "mongoose";
|
|
2
|
+
import { Audit } from "../interface/Audit.interface";
|
|
3
|
+
|
|
4
|
+
interface ContainerDocument extends Document {
|
|
5
|
+
ContainerCode: string;
|
|
6
|
+
ContainerName: string;
|
|
7
|
+
ContainerDescription: string;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
isSystemDefined: boolean;
|
|
10
|
+
audit: Audit[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const ContainerSchema = new Schema<ContainerDocument>({
|
|
14
|
+
ContainerCode: { type: String },
|
|
15
|
+
ContainerName: { type: String },
|
|
16
|
+
ContainerDescription: { type: String },
|
|
17
|
+
isSystemDefined: { type: Boolean, default: false },
|
|
18
|
+
isActive: { type: Boolean, default: true },
|
|
19
|
+
|
|
20
|
+
audit: [
|
|
21
|
+
{
|
|
22
|
+
userId: { type: String },
|
|
23
|
+
auditedOn: { type: Date, default: null },
|
|
24
|
+
actionType: { type: String },
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const Container = mongoose.model<ContainerDocument>(
|
|
30
|
+
"Editor.Container",
|
|
31
|
+
ContainerSchema,
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
export { ContainerDocument, Container };
|