@wisemen/wise-crm-web 1.1.0 → 1.2.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/ActivityIcon-DNdtN-M_.js +19 -0
- package/dist/AppSkeletonLoader-Dq6pKznm.js +1112 -0
- package/dist/AttachmentIcon-BLUd7LaN.js +19 -0
- package/dist/BoldIcon-WRYUWz15.js +16 -0
- package/dist/BookIcon-Bb3r5y_J.js +19 -0
- package/dist/BuildingIcon-DFutRg8d.js +19 -0
- package/dist/BuildingsIcon-BVHy6yoa.js +19 -0
- package/dist/BulletListIcon-BhOXLSBa.js +16 -0
- package/dist/BusinessDetailSidebarProvider-a6VeNUii.js +2946 -0
- package/dist/BusinessDetailView-Dz3wDSx5.js +24 -0
- package/dist/ChevronDownIcon-BmyTSPND.js +19 -0
- package/dist/ClockIcon-BYfZAvIE.js +23 -0
- package/dist/ClockPlusIcon-BcNi0Y9I.js +23 -0
- package/dist/CopyIcon-2eV8MRv_.js +19 -0
- package/dist/CrmDetailHeaderCard-BkA0Z-Cu.js +2523 -0
- package/dist/CrmDetailView-BhZEQqUH.js +67 -0
- package/dist/DealCommunicationTabView-Drp9MEPu.js +140 -0
- package/dist/DealDetailView-DWLudchX.js +1049 -0
- package/dist/DealExternalAttachment-B6l0gDqF.js +179 -0
- package/dist/DealIcon-BwUWYDxo.js +19 -0
- package/dist/DealSendMailDialog-Dqei4933.js +1566 -0
- package/dist/DownloadCloudIcon-BSrLGGrY.js +19 -0
- package/dist/EditWithLineIcon-BKYDPJOY.js +19 -0
- package/dist/Error-za-wClcU.js +13302 -0
- package/dist/FileIcon-DL1e1tAu.js +19 -0
- package/dist/FilterLinesIcon-DgVMySAE.js +22 -0
- package/dist/H1Icon-B6NEsEbj.js +17 -0
- package/dist/H2Icon-CNof5Ohu.js +17 -0
- package/dist/H3Icon-B2F2Tb6r.js +17 -0
- package/dist/HashIcon-C_XttKfW.js +19 -0
- package/dist/HomeFilledIcon-DtZ2eXxt.js +16 -0
- package/dist/IndividualDetailSidebarProvider-jjRoK1Av.js +609 -0
- package/dist/IndividualDetailView-BqIRHn-0.js +24 -0
- package/dist/ItalicIcon-DqBns3yy.js +17 -0
- package/dist/LayersTreeIcon-DZZCSCY9.js +23 -0
- package/dist/LinkBrokenIcon-BNBpWSi7.js +19 -0
- package/dist/LinkExternalIcon-B7SHeB1_.js +19 -0
- package/dist/LinkIcon-8bCrZEv9.js +17 -0
- package/dist/LocationPinIcon-UySRqSfG.js +19 -0
- package/dist/MailIcon-BT7gSIZb.js +19 -0
- package/dist/MobilePhoneIcon-_KQGnCSS.js +19 -0
- package/dist/NumberedListIcon-B-JVTSAe.js +17 -0
- package/dist/PhoneIcon-DGGW_MNR.js +19 -0
- package/dist/RefreshIcon-D1QWfdPD.js +19 -0
- package/dist/SendIcon-BtJ-NCec.js +19 -0
- package/dist/SettingsIcon-CWFwJelS.js +25 -0
- package/dist/StarOutlineIcon-C-ELTCDQ.js +19 -0
- package/dist/StarYellowIcon-7wuNWaQO.js +19 -0
- package/dist/ThreeDotsIcon-C56RWk-0.js +32 -0
- package/dist/TimeLineMarkerIcon-DLmPwfs6.js +18 -0
- package/dist/TrashIcon-o4PWmcYe.js +20 -0
- package/dist/UploadCloudIcon-D2tWB0NP.js +19 -0
- package/dist/UserCircleIcon-DiDajcIH.js +23 -0
- package/dist/UserIcon-Bv1eF7ln.js +22 -0
- package/dist/VerticalDotsIcon-YcD73UqY.js +20 -0
- package/dist/WalletIcon-CUh92U5K.js +19 -0
- package/dist/_plugin-vue_export-helper-D3hKq4w_.js +8 -0
- package/dist/client-9P6xe_5g.js +4188 -0
- package/dist/index.js +5598 -28
- package/dist/style.css +2 -1
- package/dist/testing.js +366 -386
- package/dist/uuid.util-DpiDKVoj.js +11 -0
- package/package.json +17 -17
- package/dist/ActivityIcon-xJAmguCr.js +0 -21
- package/dist/AttachmentIcon-BE5eNDu2.js +0 -21
- package/dist/BoldIcon-gIpFueAk.js +0 -18
- package/dist/BookIcon-BcJ7URa7.js +0 -21
- package/dist/BuildingIcon-Dg6uZKp9.js +0 -21
- package/dist/BuildingsIcon-BFPEpeVP.js +0 -21
- package/dist/BulletListIcon-CjJGF99S.js +0 -18
- package/dist/BusinessDetailView-Cq7_ziCe.js +0 -27
- package/dist/ChevronDownIcon-CsDbkAjy.js +0 -21
- package/dist/ClockIcon-DmkNAIk7.js +0 -32
- package/dist/ClockPlusIcon-DeHgqDF1.js +0 -32
- package/dist/CopyIcon-BsUjyueq.js +0 -21
- package/dist/CrmDetailView.vue_vue_type_script_setup_true_lang-Db5HsgF9.js +0 -102
- package/dist/DealCommunicationTabView-CQ9vUi3p.js +0 -207
- package/dist/DealDetailView-t_v7MuZA.js +0 -1329
- package/dist/DealIcon-BJzNx1o6.js +0 -21
- package/dist/DownloadCloudIcon-DNPJTdVt.js +0 -21
- package/dist/EditWithLineIcon-BXkQTlXs.js +0 -21
- package/dist/FileIcon-DSQi3VUb.js +0 -21
- package/dist/FilterLinesIcon-YkTZirYE.js +0 -24
- package/dist/H1Icon-DsvWrDD0.js +0 -19
- package/dist/H2Icon-8xYiqSmR.js +0 -19
- package/dist/H3Icon-BdH22r8A.js +0 -19
- package/dist/HashIcon-DNclSYC-.js +0 -21
- package/dist/HomeFilledIcon-my0TzA9q.js +0 -18
- package/dist/IndividualDetailView-CjgKD__T.js +0 -27
- package/dist/ItalicIcon-Be9twusP.js +0 -19
- package/dist/LayersTreeIcon-DcK6WtJe.js +0 -32
- package/dist/LinkBrokenIcon-9wgVs__d.js +0 -21
- package/dist/LinkExternalIcon--XtB6wEj.js +0 -21
- package/dist/LinkIcon-BzYeqJaA.js +0 -19
- package/dist/LocationPinIcon-CSBPPRHC.js +0 -21
- package/dist/MailIcon-BgkBOes6.js +0 -21
- package/dist/MobilePhoneIcon-BgB_oAAr.js +0 -21
- package/dist/NumberedListIcon-Bf4a8S_g.js +0 -19
- package/dist/PhoneIcon-BKgg0ufh.js +0 -21
- package/dist/RefreshIcon-GJ03jEFx.js +0 -21
- package/dist/SendIcon-0ygrHbYx.js +0 -21
- package/dist/SettingsIcon-BRNQD8GX.js +0 -28
- package/dist/StarOutlineIcon-Gxm2X9hf.js +0 -21
- package/dist/StarYellowIcon-BZfRhUd6.js +0 -21
- package/dist/ThreeDotsIcon-cBE_pGvU.js +0 -32
- package/dist/TimeLineMarkerIcon-j4hDQteY.js +0 -20
- package/dist/TrashIcon-BynOxtIY.js +0 -22
- package/dist/UploadCloudIcon-BgcrXv_v.js +0 -21
- package/dist/UserCircleIcon-Bc1eahfh.js +0 -32
- package/dist/UserIcon-CCK-3lX3.js +0 -24
- package/dist/VerticalDotsIcon-C5gK8Zmi.js +0 -22
- package/dist/WalletIcon-DjqurEH2.js +0 -21
- package/dist/index-Cb2tNFVq.js +0 -24606
- package/dist/uuid.util-1167NMVR.js +0 -6562
package/dist/testing.js
CHANGED
|
@@ -1,391 +1,371 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { lt as e, pt as t, ut as n } from "./client-9P6xe_5g.js";
|
|
2
|
+
import { t as r } from "./uuid.util-DpiDKVoj.js";
|
|
3
|
+
//#region src/testing/factories/factory.util.ts
|
|
4
|
+
var i = {
|
|
5
|
+
placeId: "ChIJd_Y0eVIxkcRjQ1m2YkYg9o",
|
|
6
|
+
city: "Brussels",
|
|
7
|
+
coordinates: {
|
|
8
|
+
latitude: 50.8503,
|
|
9
|
+
longitude: 4.3517
|
|
10
|
+
},
|
|
11
|
+
country: "Belgium",
|
|
12
|
+
placeName: "Main Street 1, Brussels, Belgium",
|
|
13
|
+
postalCode: "1000",
|
|
14
|
+
streetName: "Main Street",
|
|
15
|
+
streetNumber: "1",
|
|
16
|
+
unit: null
|
|
15
17
|
};
|
|
16
|
-
function t() {
|
|
17
|
-
return p.getRandom();
|
|
18
|
-
}
|
|
19
18
|
function a() {
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
class d {
|
|
23
|
-
static createBillingInformation(e = {}) {
|
|
24
|
-
return {
|
|
25
|
-
uuid: t(),
|
|
26
|
-
createdAt: a(),
|
|
27
|
-
updatedAt: a(),
|
|
28
|
-
billingLocation: {
|
|
29
|
-
uuid: t(),
|
|
30
|
-
address: l
|
|
31
|
-
},
|
|
32
|
-
invoiceCcEmails: [],
|
|
33
|
-
invoiceEmail: "billing@example.com",
|
|
34
|
-
purchaseNoteCcEmails: [],
|
|
35
|
-
purchaseNoteEmail: null,
|
|
36
|
-
reminderCcEmails: [],
|
|
37
|
-
reminderEmail: null,
|
|
38
|
-
...e
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
static createContactPerson(e = {}) {
|
|
42
|
-
return {
|
|
43
|
-
uuid: t(),
|
|
44
|
-
isPrimary: !1,
|
|
45
|
-
email: "contact@example.com",
|
|
46
|
-
firstName: "Jane",
|
|
47
|
-
lastName: "Smith",
|
|
48
|
-
mobilePhone: "+32 470 98 76 54",
|
|
49
|
-
phone: "+32 2 987 65 43",
|
|
50
|
-
position: "Manager",
|
|
51
|
-
...e
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
static createDetail(e = {}) {
|
|
55
|
-
return {
|
|
56
|
-
uuid: t(),
|
|
57
|
-
createdAt: a(),
|
|
58
|
-
updatedAt: a(),
|
|
59
|
-
name: "Acme Corporation",
|
|
60
|
-
billingInformation: null,
|
|
61
|
-
companyNumber: null,
|
|
62
|
-
contactPersons: [],
|
|
63
|
-
customFields: null,
|
|
64
|
-
email: "info@acme.com",
|
|
65
|
-
language: "en-US",
|
|
66
|
-
location: {
|
|
67
|
-
uuid: t(),
|
|
68
|
-
createdAt: a(),
|
|
69
|
-
updatedAt: a(),
|
|
70
|
-
address: l
|
|
71
|
-
},
|
|
72
|
-
mobilePhone: "+32 470 12 34 56",
|
|
73
|
-
parent: null,
|
|
74
|
-
phone: "+32 2 123 45 67",
|
|
75
|
-
vatNumber: {
|
|
76
|
-
countryCode: "BE",
|
|
77
|
-
number: "0123456789"
|
|
78
|
-
},
|
|
79
|
-
children: [],
|
|
80
|
-
...e
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
static createIndex(e = {}) {
|
|
84
|
-
return {
|
|
85
|
-
uuid: t(),
|
|
86
|
-
name: "Acme Corporation",
|
|
87
|
-
companyNumber: null,
|
|
88
|
-
email: "info@acme.com",
|
|
89
|
-
mobilePhone: "+32 470 12 34 56",
|
|
90
|
-
parentName: null,
|
|
91
|
-
phone: "+32 2 123 45 67",
|
|
92
|
-
vatNumber: null,
|
|
93
|
-
...e
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
static createIndexList(e, i = {}) {
|
|
97
|
-
return Array.from({
|
|
98
|
-
length: e
|
|
99
|
-
}, (r, n) => d.createIndex({
|
|
100
|
-
name: `Business ${n + 1}`,
|
|
101
|
-
email: `business${n + 1}@example.com`,
|
|
102
|
-
...i
|
|
103
|
-
}));
|
|
104
|
-
}
|
|
105
|
-
static createStatistics(e = {}) {
|
|
106
|
-
return {
|
|
107
|
-
monthlyAdded: 12,
|
|
108
|
-
monthlyPercentageGrowth: 5.5,
|
|
109
|
-
total: 150,
|
|
110
|
-
...e
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
class c {
|
|
115
|
-
static createContactPerson(e = {}) {
|
|
116
|
-
return {
|
|
117
|
-
uuid: t(),
|
|
118
|
-
isPrimary: !1,
|
|
119
|
-
email: "contact@example.com",
|
|
120
|
-
firstName: "Jane",
|
|
121
|
-
lastName: "Smith",
|
|
122
|
-
mobilePhone: "+32 470 98 76 54",
|
|
123
|
-
phone: "+32 2 987 65 43",
|
|
124
|
-
...e
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
static createDetail(e = {}) {
|
|
128
|
-
return {
|
|
129
|
-
uuid: t(),
|
|
130
|
-
createdAt: a(),
|
|
131
|
-
updatedAt: a(),
|
|
132
|
-
name: "New Deal",
|
|
133
|
-
boardColumn: {
|
|
134
|
-
uuid: t(),
|
|
135
|
-
color: A.BLUE,
|
|
136
|
-
displayName: "New",
|
|
137
|
-
key: "new"
|
|
138
|
-
},
|
|
139
|
-
client: {
|
|
140
|
-
uuid: t(),
|
|
141
|
-
name: "Acme Corporation",
|
|
142
|
-
status: u.CUSTOMER,
|
|
143
|
-
type: o.BUSINESS
|
|
144
|
-
},
|
|
145
|
-
contactPersons: [],
|
|
146
|
-
createdBy: {
|
|
147
|
-
uuid: t(),
|
|
148
|
-
firstName: "Admin",
|
|
149
|
-
lastName: "User"
|
|
150
|
-
},
|
|
151
|
-
dealLanguage: "en-US",
|
|
152
|
-
dealSource: "mail",
|
|
153
|
-
owner: null,
|
|
154
|
-
...e
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
static createIndex(e = {}) {
|
|
158
|
-
return {
|
|
159
|
-
uuid: t(),
|
|
160
|
-
createdAt: a(),
|
|
161
|
-
updatedAt: a(),
|
|
162
|
-
name: "New Deal",
|
|
163
|
-
boardColumn: {
|
|
164
|
-
uuid: t(),
|
|
165
|
-
displayName: "New",
|
|
166
|
-
key: "new"
|
|
167
|
-
},
|
|
168
|
-
client: {
|
|
169
|
-
uuid: t(),
|
|
170
|
-
name: "Acme Corporation",
|
|
171
|
-
status: u.CUSTOMER,
|
|
172
|
-
type: o.BUSINESS
|
|
173
|
-
},
|
|
174
|
-
createdBy: {
|
|
175
|
-
uuid: t(),
|
|
176
|
-
firstName: "Admin",
|
|
177
|
-
lastName: "User"
|
|
178
|
-
},
|
|
179
|
-
dealLanguage: "en-US",
|
|
180
|
-
dealSource: "mail",
|
|
181
|
-
owner: null,
|
|
182
|
-
...e
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
static createIndexList(e, i = {}) {
|
|
186
|
-
return Array.from({
|
|
187
|
-
length: e
|
|
188
|
-
}, (r, n) => c.createIndex({
|
|
189
|
-
name: `Deal ${n + 1}`,
|
|
190
|
-
...i
|
|
191
|
-
}));
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
class m {
|
|
195
|
-
static createBillingInformation(e = {}) {
|
|
196
|
-
return {
|
|
197
|
-
uuid: t(),
|
|
198
|
-
createdAt: a(),
|
|
199
|
-
updatedAt: a(),
|
|
200
|
-
billingLocation: {
|
|
201
|
-
uuid: t(),
|
|
202
|
-
address: l
|
|
203
|
-
},
|
|
204
|
-
invoiceCcEmails: [],
|
|
205
|
-
invoiceEmail: "billing@example.com",
|
|
206
|
-
...e
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
static createContactPerson(e = {}) {
|
|
210
|
-
return {
|
|
211
|
-
uuid: t(),
|
|
212
|
-
isPrimary: !1,
|
|
213
|
-
email: "contact@example.com",
|
|
214
|
-
firstName: "Jane",
|
|
215
|
-
lastName: "Smith",
|
|
216
|
-
mobilePhone: "+32 470 98 76 54",
|
|
217
|
-
phone: "+32 2 987 65 43",
|
|
218
|
-
position: "Manager",
|
|
219
|
-
...e
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
static createDetail(e = {}) {
|
|
223
|
-
return {
|
|
224
|
-
uuid: t(),
|
|
225
|
-
createdAt: a(),
|
|
226
|
-
updatedAt: a(),
|
|
227
|
-
billingInformation: null,
|
|
228
|
-
contactPersons: [],
|
|
229
|
-
customFields: null,
|
|
230
|
-
email: "john.doe@example.com",
|
|
231
|
-
firstName: "John",
|
|
232
|
-
language: "en-US",
|
|
233
|
-
lastName: "Doe",
|
|
234
|
-
linkedBusinesses: [],
|
|
235
|
-
location: {
|
|
236
|
-
uuid: t(),
|
|
237
|
-
createdAt: a(),
|
|
238
|
-
updatedAt: a(),
|
|
239
|
-
address: l
|
|
240
|
-
},
|
|
241
|
-
mobilePhone: "+32 470 12 34 56",
|
|
242
|
-
phone: "+32 2 123 45 67",
|
|
243
|
-
...e
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
static createIndex(e = {}) {
|
|
247
|
-
return {
|
|
248
|
-
uuid: t(),
|
|
249
|
-
name: "John Doe",
|
|
250
|
-
email: "john.doe@example.com",
|
|
251
|
-
mobilePhone: "+32 470 12 34 56",
|
|
252
|
-
phone: "+32 2 123 45 67",
|
|
253
|
-
status: "contact",
|
|
254
|
-
...e
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
static createIndexList(e, i = {}) {
|
|
258
|
-
return Array.from({
|
|
259
|
-
length: e
|
|
260
|
-
}, (r, n) => m.createIndex({
|
|
261
|
-
name: `Person ${n + 1}`,
|
|
262
|
-
email: `person${n + 1}@example.com`,
|
|
263
|
-
...i
|
|
264
|
-
}));
|
|
265
|
-
}
|
|
266
|
-
static createStatistics(e = {}) {
|
|
267
|
-
return {
|
|
268
|
-
monthlyAdded: 12,
|
|
269
|
-
monthlyPercentageGrowth: 5.5,
|
|
270
|
-
total: 150,
|
|
271
|
-
...e
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
class s {
|
|
276
|
-
static createBusinessNote(e = {}) {
|
|
277
|
-
return {
|
|
278
|
-
uuid: t(),
|
|
279
|
-
lastUpdatedByUserUuid: t(),
|
|
280
|
-
updatedAt: a(),
|
|
281
|
-
content: "This is a test note for the business.",
|
|
282
|
-
files: [],
|
|
283
|
-
lastUpdatedByUser: "Admin User",
|
|
284
|
-
...e
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
static createBusinessNoteList(e, i = {}) {
|
|
288
|
-
return Array.from({
|
|
289
|
-
length: e
|
|
290
|
-
}, (r, n) => s.createBusinessNote({
|
|
291
|
-
content: `Business note ${n + 1}`,
|
|
292
|
-
...i
|
|
293
|
-
}));
|
|
294
|
-
}
|
|
295
|
-
static createDealNote(e = {}) {
|
|
296
|
-
return {
|
|
297
|
-
uuid: t(),
|
|
298
|
-
lastUpdatedByUserUuid: t(),
|
|
299
|
-
updatedAt: a(),
|
|
300
|
-
content: "This is a test note for the deal.",
|
|
301
|
-
files: [],
|
|
302
|
-
lastUpdatedByUser: "Admin User",
|
|
303
|
-
...e
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
static createDealNoteList(e, i = {}) {
|
|
307
|
-
return Array.from({
|
|
308
|
-
length: e
|
|
309
|
-
}, (r, n) => s.createDealNote({
|
|
310
|
-
content: `Deal note ${n + 1}`,
|
|
311
|
-
...i
|
|
312
|
-
}));
|
|
313
|
-
}
|
|
314
|
-
static createIndividualNote(e = {}) {
|
|
315
|
-
return {
|
|
316
|
-
uuid: t(),
|
|
317
|
-
lastUpdatedByUserUuid: t(),
|
|
318
|
-
updatedAt: a(),
|
|
319
|
-
content: "This is a test note for the individual.",
|
|
320
|
-
files: [],
|
|
321
|
-
lastUpdatedByUser: "Admin User",
|
|
322
|
-
...e
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
static createIndividualNoteList(e, i = {}) {
|
|
326
|
-
return Array.from({
|
|
327
|
-
length: e
|
|
328
|
-
}, (r, n) => s.createIndividualNote({
|
|
329
|
-
content: `Individual note ${n + 1}`,
|
|
330
|
-
...i
|
|
331
|
-
}));
|
|
332
|
-
}
|
|
19
|
+
return r.getRandom();
|
|
333
20
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
return {
|
|
337
|
-
uuid: t(),
|
|
338
|
-
name: "Wisemen",
|
|
339
|
-
billingConfig: {
|
|
340
|
-
businessBillingInformationRequirement: "EMAIL_AND_ADDRESS",
|
|
341
|
-
individualBillingInformationRequirement: "EMAIL_AND_ADDRESS"
|
|
342
|
-
},
|
|
343
|
-
brandColors: {
|
|
344
|
-
brand25: "#F3FCF4",
|
|
345
|
-
brand50: "#EBFAED",
|
|
346
|
-
brand100: "#DAF6DE",
|
|
347
|
-
brand200: "#ADFFB8",
|
|
348
|
-
brand300: "#7AFF8C",
|
|
349
|
-
brand400: "#47FF60",
|
|
350
|
-
brand500: "#1AFF39",
|
|
351
|
-
brand600: "#00F020",
|
|
352
|
-
brand700: "#00CC1B",
|
|
353
|
-
brand800: "#00A816",
|
|
354
|
-
brand900: "#008512",
|
|
355
|
-
brand950: "#005C0C"
|
|
356
|
-
},
|
|
357
|
-
businessConfig: {
|
|
358
|
-
companyweb: null,
|
|
359
|
-
requireIndividualOnCreate: !1,
|
|
360
|
-
viesValidation: !1
|
|
361
|
-
},
|
|
362
|
-
dealConfig: {
|
|
363
|
-
creatableBusinessStatuses: [],
|
|
364
|
-
creatableIndividualStatuses: [],
|
|
365
|
-
enableBusinessDeals: !0,
|
|
366
|
-
enableIndividualDeals: !1
|
|
367
|
-
},
|
|
368
|
-
entities: [
|
|
369
|
-
{
|
|
370
|
-
entityColor: "orange-dark",
|
|
371
|
-
entityName: "Individual",
|
|
372
|
-
entityType: "individual"
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
entityColor: "green",
|
|
376
|
-
entityName: "Business",
|
|
377
|
-
entityType: "business"
|
|
378
|
-
}
|
|
379
|
-
],
|
|
380
|
-
logoUrl: null,
|
|
381
|
-
...e
|
|
382
|
-
};
|
|
383
|
-
}
|
|
21
|
+
function o() {
|
|
22
|
+
return (/* @__PURE__ */ new Date()).toISOString();
|
|
384
23
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/testing/factories/business.factory.ts
|
|
26
|
+
var s = class e {
|
|
27
|
+
static createBillingInformation(e = {}) {
|
|
28
|
+
return {
|
|
29
|
+
uuid: a(),
|
|
30
|
+
createdAt: o(),
|
|
31
|
+
updatedAt: o(),
|
|
32
|
+
billingLocation: {
|
|
33
|
+
uuid: a(),
|
|
34
|
+
address: i
|
|
35
|
+
},
|
|
36
|
+
invoiceCcEmails: [],
|
|
37
|
+
invoiceEmail: "billing@example.com",
|
|
38
|
+
purchaseNoteCcEmails: [],
|
|
39
|
+
purchaseNoteEmail: null,
|
|
40
|
+
reminderCcEmails: [],
|
|
41
|
+
reminderEmail: null,
|
|
42
|
+
...e
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static createContactPerson(e = {}) {
|
|
46
|
+
return {
|
|
47
|
+
uuid: a(),
|
|
48
|
+
isPrimary: !1,
|
|
49
|
+
email: "contact@example.com",
|
|
50
|
+
firstName: "Jane",
|
|
51
|
+
lastName: "Smith",
|
|
52
|
+
mobilePhone: "+32 470 98 76 54",
|
|
53
|
+
phone: "+32 2 987 65 43",
|
|
54
|
+
position: "Manager",
|
|
55
|
+
...e
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
static createDetail(e = {}) {
|
|
59
|
+
return {
|
|
60
|
+
uuid: a(),
|
|
61
|
+
createdAt: o(),
|
|
62
|
+
updatedAt: o(),
|
|
63
|
+
name: "Acme Corporation",
|
|
64
|
+
billingInformation: null,
|
|
65
|
+
companyNumber: null,
|
|
66
|
+
contactPersons: [],
|
|
67
|
+
customFields: null,
|
|
68
|
+
email: "info@acme.com",
|
|
69
|
+
language: "en-US",
|
|
70
|
+
location: {
|
|
71
|
+
uuid: a(),
|
|
72
|
+
createdAt: o(),
|
|
73
|
+
updatedAt: o(),
|
|
74
|
+
address: i
|
|
75
|
+
},
|
|
76
|
+
mobilePhone: "+32 470 12 34 56",
|
|
77
|
+
parent: null,
|
|
78
|
+
phone: "+32 2 123 45 67",
|
|
79
|
+
vatNumber: {
|
|
80
|
+
countryCode: "BE",
|
|
81
|
+
number: "0123456789"
|
|
82
|
+
},
|
|
83
|
+
children: [],
|
|
84
|
+
...e
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
static createIndex(e = {}) {
|
|
88
|
+
return {
|
|
89
|
+
uuid: a(),
|
|
90
|
+
name: "Acme Corporation",
|
|
91
|
+
companyNumber: null,
|
|
92
|
+
email: "info@acme.com",
|
|
93
|
+
mobilePhone: "+32 470 12 34 56",
|
|
94
|
+
parentName: null,
|
|
95
|
+
phone: "+32 2 123 45 67",
|
|
96
|
+
vatNumber: null,
|
|
97
|
+
...e
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
static createIndexList(t, n = {}) {
|
|
101
|
+
return Array.from({ length: t }, (t, r) => e.createIndex({
|
|
102
|
+
name: `Business ${r + 1}`,
|
|
103
|
+
email: `business${r + 1}@example.com`,
|
|
104
|
+
...n
|
|
105
|
+
}));
|
|
106
|
+
}
|
|
107
|
+
static createStatistics(e = {}) {
|
|
108
|
+
return {
|
|
109
|
+
monthlyAdded: 12,
|
|
110
|
+
monthlyPercentageGrowth: 5.5,
|
|
111
|
+
total: 150,
|
|
112
|
+
...e
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
}, c = class r {
|
|
116
|
+
static createContactPerson(e = {}) {
|
|
117
|
+
return {
|
|
118
|
+
uuid: a(),
|
|
119
|
+
isPrimary: !1,
|
|
120
|
+
email: "contact@example.com",
|
|
121
|
+
firstName: "Jane",
|
|
122
|
+
lastName: "Smith",
|
|
123
|
+
mobilePhone: "+32 470 98 76 54",
|
|
124
|
+
phone: "+32 2 987 65 43",
|
|
125
|
+
...e
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
static createDetail(r = {}) {
|
|
129
|
+
return {
|
|
130
|
+
uuid: a(),
|
|
131
|
+
createdAt: o(),
|
|
132
|
+
updatedAt: o(),
|
|
133
|
+
name: "New Deal",
|
|
134
|
+
boardColumn: {
|
|
135
|
+
uuid: a(),
|
|
136
|
+
color: t.BLUE,
|
|
137
|
+
displayName: "New",
|
|
138
|
+
key: "new"
|
|
139
|
+
},
|
|
140
|
+
client: {
|
|
141
|
+
uuid: a(),
|
|
142
|
+
name: "Acme Corporation",
|
|
143
|
+
status: e.CUSTOMER,
|
|
144
|
+
type: n.BUSINESS
|
|
145
|
+
},
|
|
146
|
+
contactPersons: [],
|
|
147
|
+
createdBy: {
|
|
148
|
+
uuid: a(),
|
|
149
|
+
firstName: "Admin",
|
|
150
|
+
lastName: "User"
|
|
151
|
+
},
|
|
152
|
+
dealLanguage: "en-US",
|
|
153
|
+
dealSource: "mail",
|
|
154
|
+
owner: null,
|
|
155
|
+
...r
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
static createIndex(t = {}) {
|
|
159
|
+
return {
|
|
160
|
+
uuid: a(),
|
|
161
|
+
createdAt: o(),
|
|
162
|
+
updatedAt: o(),
|
|
163
|
+
name: "New Deal",
|
|
164
|
+
boardColumn: {
|
|
165
|
+
uuid: a(),
|
|
166
|
+
displayName: "New",
|
|
167
|
+
key: "new"
|
|
168
|
+
},
|
|
169
|
+
client: {
|
|
170
|
+
uuid: a(),
|
|
171
|
+
name: "Acme Corporation",
|
|
172
|
+
status: e.CUSTOMER,
|
|
173
|
+
type: n.BUSINESS
|
|
174
|
+
},
|
|
175
|
+
createdBy: {
|
|
176
|
+
uuid: a(),
|
|
177
|
+
firstName: "Admin",
|
|
178
|
+
lastName: "User"
|
|
179
|
+
},
|
|
180
|
+
dealLanguage: "en-US",
|
|
181
|
+
dealSource: "mail",
|
|
182
|
+
owner: null,
|
|
183
|
+
...t
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
static createIndexList(e, t = {}) {
|
|
187
|
+
return Array.from({ length: e }, (e, n) => r.createIndex({
|
|
188
|
+
name: `Deal ${n + 1}`,
|
|
189
|
+
...t
|
|
190
|
+
}));
|
|
191
|
+
}
|
|
192
|
+
}, l = class e {
|
|
193
|
+
static createBillingInformation(e = {}) {
|
|
194
|
+
return {
|
|
195
|
+
uuid: a(),
|
|
196
|
+
createdAt: o(),
|
|
197
|
+
updatedAt: o(),
|
|
198
|
+
billingLocation: {
|
|
199
|
+
uuid: a(),
|
|
200
|
+
address: i
|
|
201
|
+
},
|
|
202
|
+
invoiceCcEmails: [],
|
|
203
|
+
invoiceEmail: "billing@example.com",
|
|
204
|
+
...e
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
static createContactPerson(e = {}) {
|
|
208
|
+
return {
|
|
209
|
+
uuid: a(),
|
|
210
|
+
isPrimary: !1,
|
|
211
|
+
email: "contact@example.com",
|
|
212
|
+
firstName: "Jane",
|
|
213
|
+
lastName: "Smith",
|
|
214
|
+
mobilePhone: "+32 470 98 76 54",
|
|
215
|
+
phone: "+32 2 987 65 43",
|
|
216
|
+
position: "Manager",
|
|
217
|
+
...e
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
static createDetail(e = {}) {
|
|
221
|
+
return {
|
|
222
|
+
uuid: a(),
|
|
223
|
+
createdAt: o(),
|
|
224
|
+
updatedAt: o(),
|
|
225
|
+
billingInformation: null,
|
|
226
|
+
contactPersons: [],
|
|
227
|
+
customFields: null,
|
|
228
|
+
email: "john.doe@example.com",
|
|
229
|
+
firstName: "John",
|
|
230
|
+
language: "en-US",
|
|
231
|
+
lastName: "Doe",
|
|
232
|
+
linkedBusinesses: [],
|
|
233
|
+
location: {
|
|
234
|
+
uuid: a(),
|
|
235
|
+
createdAt: o(),
|
|
236
|
+
updatedAt: o(),
|
|
237
|
+
address: i
|
|
238
|
+
},
|
|
239
|
+
mobilePhone: "+32 470 12 34 56",
|
|
240
|
+
phone: "+32 2 123 45 67",
|
|
241
|
+
...e
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
static createIndex(e = {}) {
|
|
245
|
+
return {
|
|
246
|
+
uuid: a(),
|
|
247
|
+
name: "John Doe",
|
|
248
|
+
email: "john.doe@example.com",
|
|
249
|
+
mobilePhone: "+32 470 12 34 56",
|
|
250
|
+
phone: "+32 2 123 45 67",
|
|
251
|
+
status: "contact",
|
|
252
|
+
...e
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
static createIndexList(t, n = {}) {
|
|
256
|
+
return Array.from({ length: t }, (t, r) => e.createIndex({
|
|
257
|
+
name: `Person ${r + 1}`,
|
|
258
|
+
email: `person${r + 1}@example.com`,
|
|
259
|
+
...n
|
|
260
|
+
}));
|
|
261
|
+
}
|
|
262
|
+
static createStatistics(e = {}) {
|
|
263
|
+
return {
|
|
264
|
+
monthlyAdded: 12,
|
|
265
|
+
monthlyPercentageGrowth: 5.5,
|
|
266
|
+
total: 150,
|
|
267
|
+
...e
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
}, u = class e {
|
|
271
|
+
static createBusinessNote(e = {}) {
|
|
272
|
+
return {
|
|
273
|
+
uuid: a(),
|
|
274
|
+
lastUpdatedByUserUuid: a(),
|
|
275
|
+
updatedAt: o(),
|
|
276
|
+
content: "This is a test note for the business.",
|
|
277
|
+
files: [],
|
|
278
|
+
lastUpdatedByUser: "Admin User",
|
|
279
|
+
...e
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
static createBusinessNoteList(t, n = {}) {
|
|
283
|
+
return Array.from({ length: t }, (t, r) => e.createBusinessNote({
|
|
284
|
+
content: `Business note ${r + 1}`,
|
|
285
|
+
...n
|
|
286
|
+
}));
|
|
287
|
+
}
|
|
288
|
+
static createDealNote(e = {}) {
|
|
289
|
+
return {
|
|
290
|
+
uuid: a(),
|
|
291
|
+
lastUpdatedByUserUuid: a(),
|
|
292
|
+
updatedAt: o(),
|
|
293
|
+
content: "This is a test note for the deal.",
|
|
294
|
+
files: [],
|
|
295
|
+
lastUpdatedByUser: "Admin User",
|
|
296
|
+
...e
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
static createDealNoteList(t, n = {}) {
|
|
300
|
+
return Array.from({ length: t }, (t, r) => e.createDealNote({
|
|
301
|
+
content: `Deal note ${r + 1}`,
|
|
302
|
+
...n
|
|
303
|
+
}));
|
|
304
|
+
}
|
|
305
|
+
static createIndividualNote(e = {}) {
|
|
306
|
+
return {
|
|
307
|
+
uuid: a(),
|
|
308
|
+
lastUpdatedByUserUuid: a(),
|
|
309
|
+
updatedAt: o(),
|
|
310
|
+
content: "This is a test note for the individual.",
|
|
311
|
+
files: [],
|
|
312
|
+
lastUpdatedByUser: "Admin User",
|
|
313
|
+
...e
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
static createIndividualNoteList(t, n = {}) {
|
|
317
|
+
return Array.from({ length: t }, (t, r) => e.createIndividualNote({
|
|
318
|
+
content: `Individual note ${r + 1}`,
|
|
319
|
+
...n
|
|
320
|
+
}));
|
|
321
|
+
}
|
|
322
|
+
}, d = class {
|
|
323
|
+
static createDetail(e = {}) {
|
|
324
|
+
return {
|
|
325
|
+
uuid: a(),
|
|
326
|
+
name: "Wisemen",
|
|
327
|
+
billingConfig: {
|
|
328
|
+
businessBillingInformationRequirement: "EMAIL_AND_ADDRESS",
|
|
329
|
+
individualBillingInformationRequirement: "EMAIL_AND_ADDRESS"
|
|
330
|
+
},
|
|
331
|
+
brandColors: {
|
|
332
|
+
brand25: "#F3FCF4",
|
|
333
|
+
brand50: "#EBFAED",
|
|
334
|
+
brand100: "#DAF6DE",
|
|
335
|
+
brand200: "#ADFFB8",
|
|
336
|
+
brand300: "#7AFF8C",
|
|
337
|
+
brand400: "#47FF60",
|
|
338
|
+
brand500: "#1AFF39",
|
|
339
|
+
brand600: "#00F020",
|
|
340
|
+
brand700: "#00CC1B",
|
|
341
|
+
brand800: "#00A816",
|
|
342
|
+
brand900: "#008512",
|
|
343
|
+
brand950: "#005C0C"
|
|
344
|
+
},
|
|
345
|
+
businessConfig: {
|
|
346
|
+
companyweb: null,
|
|
347
|
+
requireIndividualOnCreate: !1,
|
|
348
|
+
viesValidation: !1
|
|
349
|
+
},
|
|
350
|
+
dealConfig: {
|
|
351
|
+
creatableBusinessStatuses: [],
|
|
352
|
+
creatableIndividualStatuses: [],
|
|
353
|
+
enableBusinessDeals: !0,
|
|
354
|
+
enableIndividualDeals: !1
|
|
355
|
+
},
|
|
356
|
+
entities: [{
|
|
357
|
+
entityColor: "orange-dark",
|
|
358
|
+
entityName: "Individual",
|
|
359
|
+
entityType: "individual"
|
|
360
|
+
}, {
|
|
361
|
+
entityColor: "green",
|
|
362
|
+
entityName: "Business",
|
|
363
|
+
entityType: "business"
|
|
364
|
+
}],
|
|
365
|
+
logoUrl: null,
|
|
366
|
+
...e
|
|
367
|
+
};
|
|
368
|
+
}
|
|
391
369
|
};
|
|
370
|
+
//#endregion
|
|
371
|
+
export { s as BusinessFactory, c as DealFactory, l as IndividualFactory, u as NoteFactory, d as TenantConfigFactory };
|