pristine-member-nest-api-database 1.0.75 → 1.0.77

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 CHANGED
@@ -54,7 +54,7 @@ __exportStar(require("./models/Editor.Category.Field.Mapping"), exports);
54
54
  // export * from "./models/Editor.StaticVariable.Category.Field.Mapping";
55
55
  __exportStar(require("./models/Editor.Container.Category.mapping"), exports);
56
56
  __exportStar(require("./models/Editor.BPcompanyTypes.Branch.Field.Mapping"), exports);
57
- __exportStar(require("./models/Editor.SLIITO.Category.Field.Mapping"), exports);
57
+ __exportStar(require("./models/Editor.SLIITO.Branch.MembershipTypes.Field.Mapping"), exports);
58
58
  __exportStar(require("./models/Editor.Application.model"), exports);
59
59
  __exportStar(require("./src/dbConnect"), exports);
60
60
  //packege version 1.0.37 gs1 changes
@@ -0,0 +1,48 @@
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.mongoSLITOBranchMembershipTypeFieldMapping = void 0;
27
+ const mongoose_1 = __importStar(require("mongoose"));
28
+ const SLITOCategoryFieldMappingSchema = new mongoose_1.Schema({
29
+ branchId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Branches" },
30
+ fieldId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Editor.Fields.Master" },
31
+ membershipTypeId: {
32
+ type: mongoose_1.Schema.Types.ObjectId,
33
+ ref: "Membership.Types",
34
+ },
35
+ isSystemDefined: { type: Boolean, default: false },
36
+ isActive: { type: Boolean, default: true },
37
+ audit: [
38
+ {
39
+ userId: { type: String },
40
+ auditedOn: { type: Date, default: null },
41
+ actionType: { type: String },
42
+ },
43
+ ],
44
+ });
45
+ //(composite unique key)
46
+ SLITOCategoryFieldMappingSchema.index({ branchId: 1, membershipTypeId: 1, fieldId: 1 }, { unique: true });
47
+ const mongoSLITOBranchMembershipTypeFieldMapping = mongoose_1.default.model("Editor.SLITO.Branch.Membership.Field.Mapping", SLITOCategoryFieldMappingSchema);
48
+ exports.mongoSLITOBranchMembershipTypeFieldMapping = mongoSLITOBranchMembershipTypeFieldMapping;
package/index.ts CHANGED
@@ -41,7 +41,7 @@ export * from "./models/Editor.Category.Field.Mapping";
41
41
  // export * from "./models/Editor.StaticVariable.Category.Field.Mapping";
42
42
  export * from "./models/Editor.Container.Category.mapping";
43
43
  export * from "./models/Editor.BPcompanyTypes.Branch.Field.Mapping";
44
- export * from "./models/Editor.SLIITO.Category.Field.Mapping";
44
+ export * from "./models/Editor.SLIITO.Branch.MembershipTypes.Field.Mapping";
45
45
 
46
46
  export * from "./models/Editor.Application.model";
47
47
 
@@ -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.75",
3
+ "version": "1.0.77",
4
4
  "description": "application verification database changes with gs1 branch. not tested. ",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {