@nimee/shared-types 1.0.236 → 1.0.238

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,6 @@ export interface IDynamicFieldDefinition {
28
28
  };
29
29
  isActive?: boolean;
30
30
  order?: number;
31
- hiddenFromEndUser?: boolean;
32
31
  }
33
32
  export interface IDynamicFieldValue {
34
33
  fieldName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"dynamicFields.js","sourceRoot":"","sources":["../../src/common/dynamicFields.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAWX;AAXD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;IACnB,iCAAa,CAAA;IACb,mCAAe,CAAA;IACf,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,+CAA2B,CAAA;IAC3B,yCAAqB,CAAA;IACrB,+BAAW,CAAA;AACb,CAAC,EAXW,gBAAgB,gCAAhB,gBAAgB,QAW3B"}
1
+ {"version":3,"file":"dynamicFields.js","sourceRoot":"","sources":["../../src/common/dynamicFields.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAWX;AAXD,WAAY,gBAAgB;IACxB,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;IACnB,iCAAa,CAAA;IACb,mCAAe,CAAA;IACf,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,+CAA2B,CAAA;IAC3B,yCAAqB,CAAA;IACrB,+BAAW,CAAA;AACf,CAAC,EAXW,gBAAgB,gCAAhB,gBAAgB,QAW3B"}
@@ -10,6 +10,13 @@ import { IDynamicFields } from "../common/dynamicFields";
10
10
  export declare enum IEndUserRoleTypeEnum {
11
11
  endUser = "endUser"
12
12
  }
13
+ export declare enum ILeadStatusEnum {
14
+ initial = "initial",
15
+ cold = "cold",
16
+ warm = "warm",
17
+ approved_for_subscription_purchase = "approved_for_subscription_purchase",
18
+ paying_member = "paying_member"
19
+ }
13
20
  export interface IEndUserModel {
14
21
  _id?: string | mongoose.Types.ObjectId;
15
22
  fname: string;
@@ -48,4 +55,6 @@ export interface IEndUserModel {
48
55
  lastParticipationDate?: Date;
49
56
  approved_for_subscription_purchase?: boolean;
50
57
  dynamicFields?: IDynamicFields;
58
+ lead_origin?: string;
59
+ lead_status?: ILeadStatusEnum;
51
60
  }
@@ -1,8 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IEndUserRoleTypeEnum = void 0;
3
+ exports.ILeadStatusEnum = exports.IEndUserRoleTypeEnum = void 0;
4
4
  var IEndUserRoleTypeEnum;
5
5
  (function (IEndUserRoleTypeEnum) {
6
6
  IEndUserRoleTypeEnum["endUser"] = "endUser";
7
7
  })(IEndUserRoleTypeEnum || (exports.IEndUserRoleTypeEnum = IEndUserRoleTypeEnum = {}));
8
+ var ILeadStatusEnum;
9
+ (function (ILeadStatusEnum) {
10
+ ILeadStatusEnum["initial"] = "initial";
11
+ ILeadStatusEnum["cold"] = "cold";
12
+ ILeadStatusEnum["warm"] = "warm";
13
+ ILeadStatusEnum["approved_for_subscription_purchase"] = "approved_for_subscription_purchase";
14
+ ILeadStatusEnum["paying_member"] = "paying_member";
15
+ })(ILeadStatusEnum || (exports.ILeadStatusEnum = ILeadStatusEnum = {}));
8
16
  //# sourceMappingURL=endUser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"endUser.js","sourceRoot":"","sources":["../../src/user/endUser.ts"],"names":[],"mappings":";;;AAGA,IAAY,oBAEX;AAFD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;AACrB,CAAC,EAFW,oBAAoB,oCAApB,oBAAoB,QAE/B"}
1
+ {"version":3,"file":"endUser.js","sourceRoot":"","sources":["../../src/user/endUser.ts"],"names":[],"mappings":";;;AAGA,IAAY,oBAEX;AAFD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;AACrB,CAAC,EAFW,oBAAoB,oCAApB,oBAAoB,QAE/B;AAED,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,4FAAyE,CAAA;IACzE,kDAA+B,CAAA;AACjC,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.236",
3
+ "version": "1.0.238",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -1,43 +1,42 @@
1
1
  export enum DynamicFieldType {
2
- TEXT = "text",
3
- NUMBER = "number",
4
- BOOLEAN = "boolean",
5
- DATE = "date",
6
- EMAIL = "email",
7
- PHONE = "phone",
8
- SELECT = "select",
9
- MULTISELECT = "multiselect",
10
- TEXTAREA = "textarea",
11
- URL = "url",
2
+ TEXT = "text",
3
+ NUMBER = "number",
4
+ BOOLEAN = "boolean",
5
+ DATE = "date",
6
+ EMAIL = "email",
7
+ PHONE = "phone",
8
+ SELECT = "select",
9
+ MULTISELECT = "multiselect",
10
+ TEXTAREA = "textarea",
11
+ URL = "url",
12
12
  }
13
13
 
14
14
  export interface IDynamicFieldDefinition {
15
- name: string;
16
- label: string;
17
- type: DynamicFieldType;
18
- required?: boolean;
19
- placeholder?: string;
20
- description?: string;
21
- options?: string[]; // For select/multiselect fields
22
- defaultValue?: any;
23
- validation?: {
24
- minLength?: number;
25
- maxLength?: number;
26
- min?: number;
27
- max?: number;
28
- pattern?: string;
29
- };
30
- isActive?: boolean;
31
- order?: number;
32
- hiddenFromEndUser?: boolean;
15
+ name: string;
16
+ label: string;
17
+ type: DynamicFieldType;
18
+ required?: boolean;
19
+ placeholder?: string;
20
+ description?: string;
21
+ options?: string[]; // For select/multiselect fields
22
+ defaultValue?: any;
23
+ validation?: {
24
+ minLength?: number;
25
+ maxLength?: number;
26
+ min?: number;
27
+ max?: number;
28
+ pattern?: string;
29
+ };
30
+ isActive?: boolean;
31
+ order?: number;
33
32
  }
34
33
 
35
34
  export interface IDynamicFieldValue {
36
- fieldName: string;
37
- value: any;
38
- lastUpdated?: Date;
35
+ fieldName: string;
36
+ value: any;
37
+ lastUpdated?: Date;
39
38
  }
40
39
 
41
40
  export interface IDynamicFields {
42
- [fieldName: string]: any;
43
- }
41
+ [fieldName: string]: any;
42
+ }
@@ -4,6 +4,15 @@ import { IDynamicFields } from "../common/dynamicFields";
4
4
  export enum IEndUserRoleTypeEnum {
5
5
  endUser = "endUser",
6
6
  }
7
+
8
+ export enum ILeadStatusEnum {
9
+ initial = "initial",
10
+ cold = "cold",
11
+ warm = "warm",
12
+ approved_for_subscription_purchase = "approved_for_subscription_purchase",
13
+ paying_member = "paying_member",
14
+ }
15
+
7
16
  export interface IEndUserModel {
8
17
  _id?: string | mongoose.Types.ObjectId;
9
18
  fname: string;
@@ -40,4 +49,6 @@ export interface IEndUserModel {
40
49
  lastParticipationDate?: Date;
41
50
  approved_for_subscription_purchase?: boolean;
42
51
  dynamicFields?: IDynamicFields;
52
+ lead_origin?: string;
53
+ lead_status?: ILeadStatusEnum;
43
54
  }