pristine-member-nest-api-database 1.0.55 → 1.0.57

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
@@ -45,6 +45,8 @@ __exportStar(require("./models/VehicleCategory.ir.model"), exports);
45
45
  __exportStar(require("./models/TermsConditions.model"), exports);
46
46
  __exportStar(require("./models/PrivacyPolicies.model"), exports);
47
47
  __exportStar(require("./models/Containers.model"), exports);
48
+ __exportStar(require("./models/EditorFieldMaster.model"), exports);
49
+ __exportStar(require("./models/FieldTypes.model"), exports);
48
50
  __exportStar(require("./src/dbConnect"), exports);
49
51
  //packege version 1.0.37 gs1 changes
50
52
  //packege version 1.0.38 and 1.0.38 after application(application verification stable 1.0.40) verification without GS1 changes
@@ -31,9 +31,17 @@ const mongoose_1 = __importStar(require("mongoose"));
31
31
  var FieldTypeEnum;
32
32
  (function (FieldTypeEnum) {
33
33
  FieldTypeEnum["TEXT"] = "TEXT";
34
- FieldTypeEnum["NUMBER"] = "NUMBER";
34
+ FieldTypeEnum["WHOLENUMBER"] = "WHOLENUMBER";
35
+ FieldTypeEnum["DECIMALNUMBER"] = "DECIMALNUMBER";
36
+ FieldTypeEnum["EMAIL"] = "EMAIL";
37
+ FieldTypeEnum["DATE"] = "DATE";
35
38
  FieldTypeEnum["CHECKBOX"] = "CHECKBOX";
36
39
  FieldTypeEnum["DROPDOWN"] = "DROPDOWN";
40
+ FieldTypeEnum["MULTISELECT"] = "MULTISELECT";
41
+ FieldTypeEnum["SINGLECOUNTRYFLAG"] = "SINGLECOUNTRYFLAG";
42
+ FieldTypeEnum["MULTIPLECOUNTRYFLAG"] = "MULTIPLECOUNTRYFLAG";
43
+ FieldTypeEnum["SINGLEATTACHMENT"] = "SINGLEATTACHMENT";
44
+ FieldTypeEnum["MULTIPLEATTACHMENT"] = "MULTIPLEATTACHMENT";
37
45
  FieldTypeEnum["TABLE"] = "TABLE";
38
46
  FieldTypeEnum["MATRIX"] = "MATRIX";
39
47
  })(FieldTypeEnum || (exports.FieldTypeEnum = FieldTypeEnum = {}));
package/index.ts CHANGED
@@ -30,6 +30,9 @@ export * from "./models/VehicleCategory.ir.model";
30
30
  export * from "./models/TermsConditions.model";
31
31
  export * from "./models/PrivacyPolicies.model";
32
32
  export * from "./models/Containers.model";
33
+
34
+ export * from "./models/EditorFieldMaster.model";
35
+ export * from "./models/FieldTypes.model";
33
36
  export * from "./src/dbConnect";
34
37
 
35
38
  //packege version 1.0.37 gs1 changes
@@ -16,5 +16,38 @@ interface IApplicationDocument extends Document {
16
16
  approverOneEnabled: boolean;
17
17
  approverTwoEnabled: boolean;
18
18
  createdDate: Schema.Types.Date;
19
+ IsMembershipTableEnabled: boolean;
20
+ IsMembershipExtraDetailsEnabled: boolean;
21
+ // BranchManagerData: {
22
+ // attachment: {
23
+ // fileName: string;
24
+ // fileType: string;
25
+ // fileSize: number;
26
+ // fileUrl: string;
27
+ // };
28
+ // remarks: string;
29
+ // electedDate: Date;
30
+ // InvoiceDiscount: number;
31
+ // };
32
+ // approverOneData: {
33
+ // remarks: string;
34
+ // userId: string;
35
+ // attachment: {
36
+ // fileName: string;
37
+ // fileType: string;
38
+ // fileSize: number;
39
+ // fileUrl: string;
40
+ // };
41
+ // };
42
+ // approverTwoData: {
43
+ // remarks: string;
44
+ // userId: string;
45
+ // attachment: {
46
+ // fileName: string;
47
+ // fileType: string;
48
+ // fileSize: number;
49
+ // fileUrl: string;
50
+ // };
51
+ // };
19
52
  audit: Audit[];
20
53
  }
@@ -6,9 +6,17 @@ import { Audit } from "../interface/Audit.interface";
6
6
  ========================= */
7
7
  export enum FieldTypeEnum {
8
8
  TEXT = "TEXT",
9
- NUMBER = "NUMBER",
9
+ WHOLENUMBER = "WHOLENUMBER",
10
+ DECIMALNUMBER = "DECIMALNUMBER",
11
+ EMAIL = "EMAIL",
12
+ DATE = "DATE",
10
13
  CHECKBOX = "CHECKBOX",
11
14
  DROPDOWN = "DROPDOWN",
15
+ MULTISELECT = "MULTISELECT",
16
+ SINGLECOUNTRYFLAG = "SINGLECOUNTRYFLAG",
17
+ MULTIPLECOUNTRYFLAG = "MULTIPLECOUNTRYFLAG",
18
+ SINGLEATTACHMENT = "SINGLEATTACHMENT",
19
+ MULTIPLEATTACHMENT = "MULTIPLEATTACHMENT",
12
20
  TABLE = "TABLE",
13
21
  MATRIX = "MATRIX",
14
22
  }
@@ -19,9 +27,22 @@ export enum FieldTypeEnum {
19
27
 
20
28
  // TEXT
21
29
  export interface TextFieldConfig {
22
- maxLength?: number;
23
- minLength?: number;
24
- placeholder?: string;
30
+ pattern?: string | null; // regex pattern for validation
31
+ }
32
+
33
+ //decimal ```NUMBER
34
+ export interface DecimalNumberFieldConfig {
35
+ step?: number; // for decimals
36
+ pattern?: string; // regex pattern for validation
37
+ }
38
+
39
+ //whole number ```NUMBER
40
+ export interface WholeNumberFieldConfig {
41
+ pattern?: string; // regex pattern for validation
42
+ }
43
+ export interface DecimalNumberFieldConfig {
44
+ step?: number; // for decimals add number of decimal places allowed
45
+ pattern?: string; // regex pattern for validation
25
46
  }
26
47
 
27
48
  // OPTIONS (checkbox / dropdown)
@@ -73,7 +94,8 @@ export type FieldConfig =
73
94
  | TextFieldConfig
74
95
  | OptionFieldConfig
75
96
  | TableFieldConfig
76
- | MatrixFieldConfig;
97
+ | MatrixFieldConfig
98
+ | null;
77
99
 
78
100
  /* =========================
79
101
  MAIN DOCUMENT INTERFACE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pristine-member-nest-api-database",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "description": "application verification database changes with gs1 branch. not tested. ",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {