pristine-member-nest-api-database 1.0.76 → 1.0.78

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.
@@ -1,2 +1,98 @@
1
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
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
+ const mongoose_1 = __importStar(require("mongoose"));
27
+ const ApplicationSchemSchema = new mongoose_1.Schema({
28
+ branchId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Branches" },
29
+ dynamicTemplateId: { type: mongoose_1.Schema.Types.ObjectId, ref: "DynamicTemplates" },
30
+ BPCompanyTypeId: {
31
+ type: mongoose_1.Schema.Types.ObjectId,
32
+ ref: "Editor.BPCompany.Types",
33
+ },
34
+ membershipTypeId: {
35
+ type: mongoose_1.Schema.Types.ObjectId,
36
+ ref: "Membership.Types",
37
+ },
38
+ applicationName: { type: String },
39
+ applicationDescription: { type: String },
40
+ categories: {
41
+ type: [
42
+ {
43
+ categoryId: {
44
+ type: mongoose_1.Schema.Types.ObjectId,
45
+ ref: "Field.Categories",
46
+ required: true,
47
+ },
48
+ categorySequence: {
49
+ type: Number,
50
+ required: true,
51
+ },
52
+ fields: {
53
+ type: [
54
+ {
55
+ fieldId: {
56
+ type: mongoose_1.Schema.Types.ObjectId,
57
+ ref: "Field.Categories",
58
+ required: true,
59
+ },
60
+ },
61
+ {
62
+ fieldSequence: {
63
+ type: Number,
64
+ required: true,
65
+ },
66
+ fieldDescription: {
67
+ type: String,
68
+ default: "",
69
+ },
70
+ activeStatus: {
71
+ type: Boolean,
72
+ default: true,
73
+ },
74
+ },
75
+ ],
76
+ },
77
+ },
78
+ ],
79
+ required: true,
80
+ },
81
+ approverOneEnabled: { type: Boolean, default: true },
82
+ approverTwoEnabled: { type: Boolean, default: true },
83
+ IsMembershipExtraDetailsEnabled: { type: Boolean, default: true },
84
+ IsMembershipRatesTableEnabled: { type: Boolean, default: true },
85
+ organizationApplicationEnabled: { type: Boolean, default: true },
86
+ SLITOptionEnabled: { type: Boolean, default: true },
87
+ OtherInfoEnabled: { type: Boolean, default: true },
88
+ createdDate: { type: Date, default: null },
89
+ isActive: { type: Boolean, default: true },
90
+ audit: [
91
+ {
92
+ userId: { type: String },
93
+ auditedOn: { type: Date, default: null },
94
+ actionType: { type: String },
95
+ },
96
+ ],
97
+ });
98
+ const mongoApplicationSchemSchema = mongoose_1.default.model("Editor.Application", ApplicationSchemSchema);
@@ -26,8 +26,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.mongoSLITOBranchMembershipTypeFieldMapping = void 0;
27
27
  const mongoose_1 = __importStar(require("mongoose"));
28
28
  const SLITOCategoryFieldMappingSchema = new mongoose_1.Schema({
29
- branchId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Editor.Fields.Master" },
30
- fieldId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Branches" },
29
+ branchId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Branches" },
30
+ fieldId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Editor.Fields.Master" },
31
31
  membershipTypeId: {
32
32
  type: mongoose_1.Schema.Types.ObjectId,
33
33
  ref: "Membership.Types",
@@ -8,6 +8,9 @@ import IApplicationCategory from "../interface/IApplicationCategory.interface";
8
8
 
9
9
  interface IApplicationDocument extends Document {
10
10
  branchId: Types.ObjectId;
11
+ dynamicTemplateId: Types.ObjectId;
12
+ BPCompanyTypeId: Types.ObjectId;
13
+ membershipTypeId: Types.ObjectId;
11
14
  applicationName: string;
12
15
  applicationDescription: string;
13
16
  categories: IApplicationCategory[];
@@ -20,7 +23,89 @@ interface IApplicationDocument extends Document {
20
23
  IsMembershipRatesTableEnabled: boolean;
21
24
  IsMembershipExtraDetailsEnabled: boolean;
22
25
  OtherInfoEnabled: boolean;
26
+
23
27
  // STATIC VARIBLE CONFIG ON BRANCH CONFIG LEVEL END HERE
24
28
  createdDate: Schema.Types.Date;
29
+ isActive: boolean;
25
30
  audit: Audit[];
26
31
  }
32
+
33
+ const ApplicationSchemSchema = new Schema<IApplicationDocument>({
34
+ branchId: { type: Schema.Types.ObjectId, ref: "Branches" },
35
+ dynamicTemplateId: { type: Schema.Types.ObjectId, ref: "DynamicTemplates" },
36
+ BPCompanyTypeId: {
37
+ type: Schema.Types.ObjectId,
38
+ ref: "Editor.BPCompany.Types",
39
+ },
40
+ membershipTypeId: {
41
+ type: Schema.Types.ObjectId,
42
+ ref: "Membership.Types",
43
+ },
44
+ applicationName: { type: String },
45
+ applicationDescription: { type: String },
46
+ categories: {
47
+ type: [
48
+ {
49
+ categoryId: {
50
+ type: Schema.Types.ObjectId,
51
+ ref: "Field.Categories",
52
+ required: true,
53
+ },
54
+
55
+ categorySequence: {
56
+ type: Number,
57
+ required: true,
58
+ },
59
+
60
+ fields: {
61
+ type: [
62
+ {
63
+ fieldId: {
64
+ type: Schema.Types.ObjectId,
65
+ ref: "Field.Categories",
66
+ required: true,
67
+ },
68
+ },
69
+ {
70
+ fieldSequence: {
71
+ type: Number,
72
+ required: true,
73
+ },
74
+
75
+ fieldDescription: {
76
+ type: String,
77
+ default: "",
78
+ },
79
+ activeStatus: {
80
+ type: Boolean,
81
+ default: true,
82
+ },
83
+ },
84
+ ],
85
+ },
86
+ },
87
+ ],
88
+ required: true,
89
+ },
90
+ approverOneEnabled: { type: Boolean, default: true },
91
+ approverTwoEnabled: { type: Boolean, default: true },
92
+ IsMembershipExtraDetailsEnabled: { type: Boolean, default: true },
93
+ IsMembershipRatesTableEnabled: { type: Boolean, default: true },
94
+ organizationApplicationEnabled: { type: Boolean, default: true },
95
+ SLITOptionEnabled: { type: Boolean, default: true },
96
+ OtherInfoEnabled: { type: Boolean, default: true },
97
+ createdDate: { type: Date, default: null },
98
+ isActive: { type: Boolean, default: true },
99
+ audit: [
100
+ {
101
+ userId: { type: String },
102
+ auditedOn: { type: Date, default: null },
103
+ actionType: { type: String },
104
+ },
105
+ ],
106
+ });
107
+
108
+ const mongoApplicationSchemSchema = mongoose.model<IApplicationDocument>(
109
+ "Editor.Application",
110
+ ApplicationSchemSchema,
111
+ );
@@ -4,7 +4,7 @@ import { FieldTypeEnum } from "./Editor.FieldTypeMaster.model";
4
4
 
5
5
  // TEXT OR TEXT AREA
6
6
  export interface TextFieldConfig {
7
- pattern?: string | null; // regex pattern for validation
7
+ pattern?: string | null; // regex pattern for validation
8
8
  minLength?: number | null;
9
9
  maxLength?: number | null;
10
10
  }
@@ -12,8 +12,8 @@ interface SLITOBranchMembershipTypeFieldMapping extends Document {
12
12
 
13
13
  const SLITOCategoryFieldMappingSchema =
14
14
  new Schema<SLITOBranchMembershipTypeFieldMapping>({
15
- branchId: { type: Schema.Types.ObjectId, ref: "Editor.Fields.Master" },
16
- fieldId: { type: Schema.Types.ObjectId, ref: "Branches" },
15
+ branchId: { type: Schema.Types.ObjectId, ref: "Branches" },
16
+ fieldId: { type: Schema.Types.ObjectId, ref: "Editor.Fields.Master" },
17
17
  membershipTypeId: {
18
18
  type: Schema.Types.ObjectId,
19
19
  ref: "Membership.Types",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pristine-member-nest-api-database",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "description": "application verification database changes with gs1 branch. not tested. ",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {