pristine-member-nest-api-database 1.0.69 → 1.0.71

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.
@@ -28,7 +28,7 @@ exports.mongoBpCompanySchema = void 0;
28
28
  const mongoose_1 = __importStar(require("mongoose"));
29
29
  const BPCompanyTypesSchema = new mongoose_1.Schema({
30
30
  BPCompanyTypeName: { type: String, required: true },
31
- BPCompanyTypeCode: { type: mongoose_1.Schema.Types.ObjectId, ref: "Field.Categories" },
31
+ BPCompanyTypeCode: { type: String, required: true },
32
32
  isSystemDefined: { type: Boolean, default: false },
33
33
  isActive: { type: Boolean, default: true },
34
34
  audit: [
@@ -23,16 +23,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.mongoBranchBpCompanyTypesFieldCategoryMappingSchema = void 0;
26
+ exports.mongoBranchBpCompanyTypesFieldMappingSchema = void 0;
27
27
  // Editor.BPcompanyTpes.Branch.Field.Category.Mapping.ts
28
28
  const mongoose_1 = __importStar(require("mongoose"));
29
- const BranchCompanyTypesFieldCategoryMappingSchema = new mongoose_1.Schema({
29
+ const BranchCompanyTypesFieldMappingSchema = new mongoose_1.Schema({
30
30
  BranchId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Branch" },
31
31
  companyTypeId: {
32
32
  type: mongoose_1.Schema.Types.ObjectId,
33
33
  ref: "Editor.BPCompany.Types",
34
34
  },
35
- categoryId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Field.Categories" },
36
35
  fieldId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Editor.Fields.Master" },
37
36
  isSystemDefined: { type: Boolean, default: false },
38
37
  isActive: { type: Boolean, default: true },
@@ -44,5 +43,5 @@ const BranchCompanyTypesFieldCategoryMappingSchema = new mongoose_1.Schema({
44
43
  },
45
44
  ],
46
45
  });
47
- const mongoBranchBpCompanyTypesFieldCategoryMappingSchema = mongoose_1.default.model("Editor.Branch.CompanyTypes.Field.Category.Mapping", BranchCompanyTypesFieldCategoryMappingSchema);
48
- exports.mongoBranchBpCompanyTypesFieldCategoryMappingSchema = mongoBranchBpCompanyTypesFieldCategoryMappingSchema;
46
+ const mongoBranchBpCompanyTypesFieldMappingSchema = mongoose_1.default.model("Editor.Branch.CompanyTypes.Field.Mapping", BranchCompanyTypesFieldMappingSchema);
47
+ exports.mongoBranchBpCompanyTypesFieldMappingSchema = mongoBranchBpCompanyTypesFieldMappingSchema;
@@ -5,7 +5,7 @@ import { Audit } from "../interface/Audit.interface";
5
5
 
6
6
  interface BPCompanyTypes extends Document {
7
7
  BPCompanyTypeName: string;
8
- BPCompanyTypeCode: mongoose.Types.ObjectId;
8
+ BPCompanyTypeCode: string;
9
9
  isSystemDefined: boolean;
10
10
  isActive: boolean;
11
11
  audit: Audit[];
@@ -13,7 +13,7 @@ interface BPCompanyTypes extends Document {
13
13
 
14
14
  const BPCompanyTypesSchema = new Schema<BPCompanyTypes>({
15
15
  BPCompanyTypeName: { type: String, required: true },
16
- BPCompanyTypeCode: { type: Schema.Types.ObjectId, ref: "Field.Categories" },
16
+ BPCompanyTypeCode: { type: String, required: true },
17
17
  isSystemDefined: { type: Boolean, default: false },
18
18
  isActive: { type: Boolean, default: true },
19
19
  audit: [
@@ -2,26 +2,23 @@
2
2
  import mongoose, { Document, Schema } from "mongoose";
3
3
  import { Audit } from "../interface/Audit.interface";
4
4
 
5
- interface BranchCompanyTypesFieldCategoryMapping extends Document {
5
+ interface BranchCompanyTypesMapping extends Document {
6
6
  BranchId: mongoose.Types.ObjectId;
7
7
  companyTypeId: mongoose.Types.ObjectId;
8
- categoryId: mongoose.Types.ObjectId;
9
8
  fieldId: mongoose.Types.ObjectId;
10
9
  isSystemDefined: boolean;
11
10
  isActive: boolean;
12
11
  audit: Audit[];
13
12
  }
14
13
 
15
- const BranchCompanyTypesFieldCategoryMappingSchema =
16
- new Schema<BranchCompanyTypesFieldCategoryMapping>({
14
+ const BranchCompanyTypesFieldMappingSchema =
15
+ new Schema<BranchCompanyTypesMapping>({
17
16
  BranchId: { type: Schema.Types.ObjectId, ref: "Branch" },
18
17
  companyTypeId: {
19
18
  type: Schema.Types.ObjectId,
20
19
  ref: "Editor.BPCompany.Types",
21
20
  },
22
- categoryId: { type: Schema.Types.ObjectId, ref: "Field.Categories" },
23
21
  fieldId: { type: Schema.Types.ObjectId, ref: "Editor.Fields.Master" },
24
-
25
22
  isSystemDefined: { type: Boolean, default: false },
26
23
  isActive: { type: Boolean, default: true },
27
24
  audit: [
@@ -33,13 +30,13 @@ const BranchCompanyTypesFieldCategoryMappingSchema =
33
30
  ],
34
31
  });
35
32
 
36
- const mongoBranchBpCompanyTypesFieldCategoryMappingSchema =
37
- mongoose.model<BranchCompanyTypesFieldCategoryMapping>(
38
- "Editor.Branch.CompanyTypes.Field.Category.Mapping",
39
- BranchCompanyTypesFieldCategoryMappingSchema,
33
+ const mongoBranchBpCompanyTypesFieldMappingSchema =
34
+ mongoose.model<BranchCompanyTypesMapping>(
35
+ "Editor.Branch.CompanyTypes.Field.Mapping",
36
+ BranchCompanyTypesFieldMappingSchema,
40
37
  );
41
38
 
42
39
  export {
43
- BranchCompanyTypesFieldCategoryMapping,
44
- mongoBranchBpCompanyTypesFieldCategoryMappingSchema,
40
+ BranchCompanyTypesMapping,
41
+ mongoBranchBpCompanyTypesFieldMappingSchema,
45
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pristine-member-nest-api-database",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "application verification database changes with gs1 branch. not tested. ",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {