orbitx-core-models 11.15.0 → 11.17.0
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/interfaces/partner.interface.d.ts +1 -1
- package/dist/interfaces/partner.interface.d.ts.map +1 -1
- package/dist/models/company.model.d.ts.map +1 -1
- package/dist/models/company.model.js +0 -12
- package/dist/models/partner.model.d.ts.map +1 -1
- package/dist/models/partner.model.js +0 -12
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ export interface IPayoutInfo {
|
|
|
23
23
|
stripeAccountId?: string;
|
|
24
24
|
currency?: string;
|
|
25
25
|
isKYCCompleted: boolean;
|
|
26
|
+
areDetailsSubmitted: boolean;
|
|
26
27
|
}
|
|
27
28
|
export interface IPayoutTier {
|
|
28
29
|
payoutInfo: IPayoutInfo;
|
|
@@ -30,7 +31,6 @@ export interface IPayoutTier {
|
|
|
30
31
|
progress: Types.ObjectId;
|
|
31
32
|
hasReachedFirstLeadTarget: boolean;
|
|
32
33
|
featureAccess?: string[];
|
|
33
|
-
areDetailsSubmitted: boolean;
|
|
34
34
|
}
|
|
35
35
|
export interface IPartner {
|
|
36
36
|
_id?: Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partner.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/partner.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CA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AC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,WAAW,CAAC;IACxB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;IACzB,yBAAyB,EAAE,OAAO,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,WAAW,EAAE,YAAY,CAAC;IAC1B,UAAU,EAAE,WAAW,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company.model.d.ts","sourceRoot":"","sources":["../../src/models/company.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAU,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAoB,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"company.model.d.ts","sourceRoot":"","sources":["../../src/models/company.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAU,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAoB,MAAM,iCAAiC,CAAC;AA0K7E,eAAO,MAAM,OAAO;;;;OAAqD,CAAC;AAC1E,eAAe,OAAO,CAAC"}
|
|
@@ -76,10 +76,6 @@ const companySchema = new mongoose_1.Schema({
|
|
|
76
76
|
website: {
|
|
77
77
|
type: String,
|
|
78
78
|
trim: true,
|
|
79
|
-
validate: {
|
|
80
|
-
validator: (v) => !v ? true : /^https?:\/\/[^\s$.?#].[^\s]*$/.test(v),
|
|
81
|
-
message: "Invalid URL format",
|
|
82
|
-
},
|
|
83
79
|
},
|
|
84
80
|
language: { type: String, required: true, trim: true },
|
|
85
81
|
industry: { type: String, required: true, trim: true },
|
|
@@ -128,10 +124,6 @@ const companySchema = new mongoose_1.Schema({
|
|
|
128
124
|
phoneNumber: {
|
|
129
125
|
type: String,
|
|
130
126
|
trim: true,
|
|
131
|
-
validate: {
|
|
132
|
-
validator: (v) => (!v ? true : /^\+?[\d\s-]{7,15}$/.test(v)),
|
|
133
|
-
message: "Invalid call connect phone number format",
|
|
134
|
-
},
|
|
135
127
|
},
|
|
136
128
|
transcriptEmail: {
|
|
137
129
|
type: String,
|
|
@@ -142,10 +134,6 @@ const companySchema = new mongoose_1.Schema({
|
|
|
142
134
|
smsChatNumber: {
|
|
143
135
|
type: String,
|
|
144
136
|
trim: true,
|
|
145
|
-
validate: {
|
|
146
|
-
validator: (v) => (!v ? true : /^\+?[\d\s-]{7,15}$/.test(v)),
|
|
147
|
-
message: "Invalid SMS chat number format",
|
|
148
|
-
},
|
|
149
137
|
},
|
|
150
138
|
visitorGreeting: { type: String, trim: true },
|
|
151
139
|
visitorGreetingDelay: { type: Number, min: 0, default: 0 },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partner.model.d.ts","sourceRoot":"","sources":["../../src/models/partner.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAU,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EACL,QAAQ,EAGT,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"partner.model.d.ts","sourceRoot":"","sources":["../../src/models/partner.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAU,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EACL,QAAQ,EAGT,MAAM,iCAAiC,CAAC;AAiHzC,eAAO,MAAM,OAAO;;;;OAAqD,CAAC;AAC1E,eAAe,OAAO,CAAC"}
|
|
@@ -43,20 +43,12 @@ const accountInfoSchema = new mongoose_1.Schema({
|
|
|
43
43
|
firmWebsite: {
|
|
44
44
|
type: String,
|
|
45
45
|
trim: true,
|
|
46
|
-
validate: {
|
|
47
|
-
validator: (v) => !v ? true : /^https?:\/\/[^\s$.?#].[^\s]*$/.test(v),
|
|
48
|
-
message: "Invalid URL format",
|
|
49
|
-
},
|
|
50
46
|
},
|
|
51
47
|
firmOwner: { type: String, required: true, trim: true },
|
|
52
48
|
ownerPhone: {
|
|
53
49
|
type: String,
|
|
54
50
|
required: true,
|
|
55
51
|
trim: true,
|
|
56
|
-
validate: {
|
|
57
|
-
validator: (v) => /^\+?[\d\s-]{7,15}$/.test(v),
|
|
58
|
-
message: "Invalid phone number format",
|
|
59
|
-
},
|
|
60
52
|
},
|
|
61
53
|
ownerEmail: {
|
|
62
54
|
type: String,
|
|
@@ -68,10 +60,6 @@ const accountInfoSchema = new mongoose_1.Schema({
|
|
|
68
60
|
representativePhone: {
|
|
69
61
|
type: String,
|
|
70
62
|
trim: true,
|
|
71
|
-
validate: {
|
|
72
|
-
validator: (v) => (!v ? true : /^\+?[\d\s-]{7,15}$/.test(v)),
|
|
73
|
-
message: "Invalid phone number format",
|
|
74
|
-
},
|
|
75
63
|
},
|
|
76
64
|
representativeEmail: {
|
|
77
65
|
type: String,
|