@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.
- package/dist/common/dynamicFields.d.ts +0 -1
- package/dist/common/dynamicFields.js.map +1 -1
- package/dist/user/endUser.d.ts +9 -0
- package/dist/user/endUser.js +9 -1
- package/dist/user/endUser.js.map +1 -1
- package/package.json +1 -1
- package/src/common/dynamicFields.ts +32 -33
- package/src/user/endUser.ts +11 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicFields.js","sourceRoot":"","sources":["../../src/common/dynamicFields.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAWX;AAXD,WAAY,gBAAgB;
|
|
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"}
|
package/dist/user/endUser.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/user/endUser.js
CHANGED
|
@@ -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
|
package/dist/user/endUser.js.map
CHANGED
|
@@ -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,43 +1,42 @@
|
|
|
1
1
|
export enum DynamicFieldType {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
fieldName: string;
|
|
36
|
+
value: any;
|
|
37
|
+
lastUpdated?: Date;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
export interface IDynamicFields {
|
|
42
|
-
|
|
43
|
-
}
|
|
41
|
+
[fieldName: string]: any;
|
|
42
|
+
}
|
package/src/user/endUser.ts
CHANGED
|
@@ -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
|
}
|