pristine-member-nest-api-database 1.0.47 → 1.0.49
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/DynamicTemplate.model.js +4 -0
- package/dist/models/PrivacyPolicies.model.js +56 -0
- package/index.ts +1 -0
- package/interface/IField.interface.ts +1 -0
- package/models/DynamicTemplate.model.ts +4 -1
- package/models/PrivacyPolicies.model.ts +67 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __exportStar(require("./models/User.model"), exports);
|
|
|
42
42
|
__exportStar(require("./models/UserRole.model"), exports);
|
|
43
43
|
__exportStar(require("./models/VehicleCategory.ir.model"), exports);
|
|
44
44
|
__exportStar(require("./models/TermsConditions.model"), exports);
|
|
45
|
+
__exportStar(require("./models/PrivacyPolicies.model"), exports);
|
|
45
46
|
__exportStar(require("./src/dbConnect"), exports);
|
|
46
47
|
//packege version 1.0.37 gs1 changes
|
|
47
48
|
//packege version 1.0.38 and 1.0.38 after application(application verification stable 1.0.40) verification without GS1 changes
|
|
@@ -0,0 +1,56 @@
|
|
|
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.mongoPrivacyPolicies = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
const ContactSchema = new mongoose_1.Schema({
|
|
29
|
+
name: { type: String, required: true },
|
|
30
|
+
designation: { type: String, required: true },
|
|
31
|
+
contactNumber: { type: String, required: true },
|
|
32
|
+
email: { type: String, required: true },
|
|
33
|
+
address: { type: String, required: true },
|
|
34
|
+
isActive: { type: Boolean, default: true },
|
|
35
|
+
});
|
|
36
|
+
const SubSectionSchema = new mongoose_1.Schema({
|
|
37
|
+
order: { type: Number, required: true },
|
|
38
|
+
heading: { type: String, required: true },
|
|
39
|
+
content: { type: String, required: true },
|
|
40
|
+
isActive: { type: Boolean, default: true },
|
|
41
|
+
});
|
|
42
|
+
const SectionSchema = new mongoose_1.Schema({
|
|
43
|
+
order: { type: Number, required: true },
|
|
44
|
+
heading: { type: String, required: true },
|
|
45
|
+
content: { type: String, required: true },
|
|
46
|
+
isActive: { type: Boolean, default: true },
|
|
47
|
+
subSections: [SubSectionSchema],
|
|
48
|
+
});
|
|
49
|
+
const PoliciesSchema = new mongoose_1.Schema({
|
|
50
|
+
title: { type: String, required: true },
|
|
51
|
+
isActive: { type: Boolean, default: true },
|
|
52
|
+
sections: [SectionSchema],
|
|
53
|
+
contacts: [ContactSchema],
|
|
54
|
+
});
|
|
55
|
+
const mongoPrivacyPolicies = mongoose_1.default.model("PrivacyPolicies", PoliciesSchema);
|
|
56
|
+
exports.mongoPrivacyPolicies = mongoPrivacyPolicies;
|
package/index.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from "./models/User.model";
|
|
|
26
26
|
export * from "./models/UserRole.model";
|
|
27
27
|
export * from "./models/VehicleCategory.ir.model";
|
|
28
28
|
export * from "./models/TermsConditions.model";
|
|
29
|
+
export * from "./models/PrivacyPolicies.model";
|
|
29
30
|
export * from "./src/dbConnect";
|
|
30
31
|
|
|
31
32
|
//packege version 1.0.37 gs1 changes
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import mongoose, { Document, Schema } from "mongoose";
|
|
2
|
+
|
|
3
|
+
interface ContactDocument extends Document {
|
|
4
|
+
name: string;
|
|
5
|
+
designation: string;
|
|
6
|
+
contactNumber: string;
|
|
7
|
+
email: string;
|
|
8
|
+
address: string;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface SubSectionDocument extends Document {
|
|
13
|
+
order: number;
|
|
14
|
+
heading: string;
|
|
15
|
+
content: string;
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface SectionDocument extends Document {
|
|
20
|
+
order: number;
|
|
21
|
+
heading: string;
|
|
22
|
+
content: string;
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
subSections: SubSectionDocument[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface PoliciesDocument extends Document {
|
|
28
|
+
title: string;
|
|
29
|
+
isActive: boolean;
|
|
30
|
+
sections: SectionDocument[];
|
|
31
|
+
contacts: ContactDocument[];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const ContactSchema = new Schema<ContactDocument>({
|
|
35
|
+
name: { type: String, required: true },
|
|
36
|
+
designation: { type: String, required: true },
|
|
37
|
+
contactNumber: { type: String, required: true },
|
|
38
|
+
email: { type: String, required: true },
|
|
39
|
+
address: { type: String, required: true },
|
|
40
|
+
isActive: { type: Boolean, default: true },
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const SubSectionSchema = new Schema<SubSectionDocument>({
|
|
44
|
+
order: { type: Number, required: true },
|
|
45
|
+
heading: { type: String, required: true },
|
|
46
|
+
content: { type: String, required: true },
|
|
47
|
+
isActive: { type: Boolean, default: true },
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
const SectionSchema = new Schema<SectionDocument>({
|
|
51
|
+
order: { type: Number, required: true },
|
|
52
|
+
heading: { type: String, required: true },
|
|
53
|
+
content: { type: String, required: true },
|
|
54
|
+
isActive: { type: Boolean, default: true },
|
|
55
|
+
subSections: [SubSectionSchema],
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const PoliciesSchema = new Schema<PoliciesDocument>({
|
|
59
|
+
title: { type: String, required: true },
|
|
60
|
+
isActive: { type: Boolean, default: true },
|
|
61
|
+
sections: [SectionSchema],
|
|
62
|
+
contacts: [ContactSchema],
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
const mongoPrivacyPolicies = mongoose.model("PrivacyPolicies", PoliciesSchema);
|
|
66
|
+
|
|
67
|
+
export { PoliciesDocument, mongoPrivacyPolicies };
|