sowhat-types 2.0.217 → 2.0.219

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
@@ -29,22 +29,51 @@ __export(src_exports, {
29
29
  EMAIL_REGEX: () => EMAIL_REGEX,
30
30
  FetchPowensConnectionsTypeEnum: () => FetchPowensConnectionsTypeEnum,
31
31
  FinancialProductEnum: () => FinancialProductEnum,
32
+ FinancialProducts: () => FinancialProducts,
33
+ HouseholdSalaryRangeEnum: () => HouseholdSalaryRangeEnum,
34
+ HouseholdSalaryRanges: () => HouseholdSalaryRanges,
32
35
  LIVES_OUTSIDE_FRANCE: () => LIVES_OUTSIDE_FRANCE,
33
36
  LegalDocumentTypeEnum: () => LegalDocumentTypeEnum,
34
37
  LoanTypeEnum: () => LoanTypeEnum,
38
+ MaritalStatusEnum: () => MaritalStatusEnum,
39
+ MartialStatuses: () => MartialStatuses,
35
40
  MobilityTypeEnum: () => MobilityTypeEnum,
41
+ PersonalNetWorthRangeEnum: () => PersonalNetWorthRangeEnum,
42
+ PersonalNetWorthRanges: () => PersonalNetWorthRanges,
43
+ PersonalSalaryRangeEnum: () => PersonalSalaryRangeEnum,
44
+ PersonalSalaryRanges: () => PersonalSalaryRanges,
36
45
  PowensConnectionStateEnum: () => PowensConnectionStateEnum,
37
46
  PowensUserStatusEnum: () => PowensUserStatusEnum,
38
47
  ProfessionEnum: () => ProfessionEnum,
39
48
  ProfessionStatusEnum: () => ProfessionStatusEnum,
49
+ ProfessionStatusList: () => ProfessionStatusList,
50
+ ProfessionsList: () => ProfessionsList,
40
51
  ProjectNeedEnum: () => ProjectNeedEnum,
52
+ ProjectNeeds: () => ProjectNeeds,
41
53
  ProjectOptionEnum: () => ProjectOptionEnum,
42
54
  ProjectStatusEnum: () => ProjectStatusEnum,
43
55
  RealEstateTypeEnum: () => RealEstateTypeEnum,
44
56
  SupportedCurrencyExchangesEnum: () => SupportedCurrencyExchangesEnum,
45
57
  SupportedCurrencySymbolsEnum: () => SupportedCurrencySymbolsEnum,
46
58
  UserAiSummaryStatusEnum: () => UserAiSummaryStatusEnum,
47
- UserStatusEnum: () => UserStatusEnum
59
+ UserStatusEnum: () => UserStatusEnum,
60
+ getFinancialProductKey: () => getFinancialProductKey,
61
+ getFinancialProductLabel: () => getFinancialProductLabel,
62
+ getHouseholdSalaryRangeKey: () => getHouseholdSalaryRangeKey,
63
+ getHouseholdSalaryRangeLabel: () => getHouseholdSalaryRangeLabel,
64
+ getMaritalStatusKey: () => getMaritalStatusKey,
65
+ getMaritalStatusLabel: () => getMaritalStatusLabel,
66
+ getPersonalNetWorthRangeKey: () => getPersonalNetWorthRangeKey,
67
+ getPersonalNetWorthRangeLabel: () => getPersonalNetWorthRangeLabel,
68
+ getPersonalSalaryRangeKey: () => getPersonalSalaryRangeKey,
69
+ getPersonalSalaryRangeLabel: () => getPersonalSalaryRangeLabel,
70
+ getProfessionKey: () => getProfessionKey,
71
+ getProfessionLabel: () => getProfessionLabel,
72
+ getProfessionStatusKey: () => getProfessionStatusKey,
73
+ getProfessionStatusLabel: () => getProfessionStatusLabel,
74
+ getProjectNeedKey: () => getProjectNeedKey,
75
+ getProjectNeedProLabel: () => getProjectNeedProLabel,
76
+ getProjectNeedUserLabel: () => getProjectNeedUserLabel
48
77
  });
49
78
  module.exports = __toCommonJS(src_exports);
50
79
 
@@ -93,15 +122,6 @@ var AvailableCurrencyEnum = /* @__PURE__ */ ((AvailableCurrencyEnum2) => {
93
122
  return AvailableCurrencyEnum2;
94
123
  })(AvailableCurrencyEnum || {});
95
124
 
96
- // src/enums/supported-currency-exchanges.enum.ts
97
- var SupportedCurrencyExchangesEnum = /* @__PURE__ */ ((SupportedCurrencyExchangesEnum2) => {
98
- SupportedCurrencyExchangesEnum2["EUR"] = "EUR";
99
- SupportedCurrencyExchangesEnum2["USD"] = "USD";
100
- SupportedCurrencyExchangesEnum2["GBP"] = "GBP";
101
- SupportedCurrencyExchangesEnum2["JPY"] = "JPY";
102
- return SupportedCurrencyExchangesEnum2;
103
- })(SupportedCurrencyExchangesEnum || {});
104
-
105
125
  // src/enums/bank-account-transaction-type.enum.ts
106
126
  var BankAccountTransactionTypeEnum = /* @__PURE__ */ ((BankAccountTransactionTypeEnum2) => {
107
127
  BankAccountTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -164,6 +184,17 @@ var FinancialProductEnum = /* @__PURE__ */ ((FinancialProductEnum2) => {
164
184
  return FinancialProductEnum2;
165
185
  })(FinancialProductEnum || {});
166
186
 
187
+ // src/enums/household-salary-range.enum.ts
188
+ var HouseholdSalaryRangeEnum = /* @__PURE__ */ ((HouseholdSalaryRangeEnum2) => {
189
+ HouseholdSalaryRangeEnum2["LESS_THAN_30K"] = "LESS_THAN_30K";
190
+ HouseholdSalaryRangeEnum2["BETWEEN_30K_AND_50K"] = "BETWEEN_30K_AND_50K";
191
+ HouseholdSalaryRangeEnum2["BETWEEN_50K_AND_80K"] = "BETWEEN_50K_AND_80K";
192
+ HouseholdSalaryRangeEnum2["BETWEEN_80K_AND_120K"] = "BETWEEN_80K_AND_120K";
193
+ HouseholdSalaryRangeEnum2["BETWEEN_120K_AND_180K"] = "BETWEEN_120K_AND_180K";
194
+ HouseholdSalaryRangeEnum2["MORE_THAN_180K"] = "MORE_THAN_180K";
195
+ return HouseholdSalaryRangeEnum2;
196
+ })(HouseholdSalaryRangeEnum || {});
197
+
167
198
  // src/enums/legal-document-type.enum.ts
168
199
  var LegalDocumentTypeEnum = /* @__PURE__ */ ((LegalDocumentTypeEnum2) => {
169
200
  LegalDocumentTypeEnum2["TERMS_OF_USAGE"] = "TERMS_OF_USAGE";
@@ -180,6 +211,18 @@ var LoanTypeEnum = /* @__PURE__ */ ((LoanTypeEnum2) => {
180
211
  return LoanTypeEnum2;
181
212
  })(LoanTypeEnum || {});
182
213
 
214
+ // src/enums/marital-status.enum.ts
215
+ var MaritalStatusEnum = /* @__PURE__ */ ((MaritalStatusEnum2) => {
216
+ MaritalStatusEnum2["SINGLE"] = "SINGLE";
217
+ MaritalStatusEnum2["COUPLE"] = "COUPLE";
218
+ MaritalStatusEnum2["PACS"] = "PACS";
219
+ MaritalStatusEnum2["MARRIED"] = "MARRIED";
220
+ MaritalStatusEnum2["DIVORCED"] = "DIVORCED";
221
+ MaritalStatusEnum2["WIDOWED"] = "WIDOWED";
222
+ MaritalStatusEnum2["DONT_WANT_TO_SAY"] = "DONT_WANT_TO_SAY";
223
+ return MaritalStatusEnum2;
224
+ })(MaritalStatusEnum || {});
225
+
183
226
  // src/enums/mobility-type.enum.ts
184
227
  var MobilityTypeEnum = /* @__PURE__ */ ((MobilityTypeEnum2) => {
185
228
  MobilityTypeEnum2["SUV"] = "SUV";
@@ -192,6 +235,28 @@ var MobilityTypeEnum = /* @__PURE__ */ ((MobilityTypeEnum2) => {
192
235
  return MobilityTypeEnum2;
193
236
  })(MobilityTypeEnum || {});
194
237
 
238
+ // src/enums/personal-net-worth-range.enum.ts
239
+ var PersonalNetWorthRangeEnum = /* @__PURE__ */ ((PersonalNetWorthRangeEnum2) => {
240
+ PersonalNetWorthRangeEnum2["LESS_THAN_100K"] = "LESS_THAN_100K";
241
+ PersonalNetWorthRangeEnum2["BETWEEN_100K_AND_200K"] = "BETWEEN_100K_AND_200K";
242
+ PersonalNetWorthRangeEnum2["BETWEEN_200K_AND_500K"] = "BETWEEN_200K_AND_500K";
243
+ PersonalNetWorthRangeEnum2["BETWEEN_500K_AND_1M"] = "BETWEEN_500K_AND_1M";
244
+ PersonalNetWorthRangeEnum2["BETWEEN_1M_AND_2M"] = "BETWEEN_1M_AND_2M";
245
+ PersonalNetWorthRangeEnum2["MORE_THAN_2M"] = "MORE_THAN_2M";
246
+ return PersonalNetWorthRangeEnum2;
247
+ })(PersonalNetWorthRangeEnum || {});
248
+
249
+ // src/enums/personal-salary-range.enum.ts
250
+ var PersonalSalaryRangeEnum = /* @__PURE__ */ ((PersonalSalaryRangeEnum2) => {
251
+ PersonalSalaryRangeEnum2["LESS_THAN_20K"] = "LESS_THAN_20K";
252
+ PersonalSalaryRangeEnum2["BETWEEN_20K_AND_30K"] = "BETWEEN_20K_AND_30K";
253
+ PersonalSalaryRangeEnum2["BETWEEN_30K_AND_45K"] = "BETWEEN_30K_AND_45K";
254
+ PersonalSalaryRangeEnum2["BETWEEN_45K_AND_65K"] = "BETWEEN_45K_AND_65K";
255
+ PersonalSalaryRangeEnum2["BETWEEN_65K_AND_90K"] = "BETWEEN_65K_AND_90K";
256
+ PersonalSalaryRangeEnum2["MORE_THAN_90K"] = "MORE_THAN_90K";
257
+ return PersonalSalaryRangeEnum2;
258
+ })(PersonalSalaryRangeEnum || {});
259
+
195
260
  // src/enums/powens-connection-state.enum.ts
196
261
  var PowensConnectionStateEnum = /* @__PURE__ */ ((PowensConnectionStateEnum2) => {
197
262
  PowensConnectionStateEnum2["SCA_REQUIRED"] = "SCA_REQUIRED";
@@ -218,6 +283,22 @@ var PowensUserStatusEnum = /* @__PURE__ */ ((PowensUserStatusEnum2) => {
218
283
  return PowensUserStatusEnum2;
219
284
  })(PowensUserStatusEnum || {});
220
285
 
286
+ // src/enums/profession-status.enum.ts
287
+ var ProfessionStatusEnum = /* @__PURE__ */ ((ProfessionStatusEnum2) => {
288
+ ProfessionStatusEnum2["STUDENT"] = "STUDENT";
289
+ ProfessionStatusEnum2["INTERIM"] = "INTERIM";
290
+ ProfessionStatusEnum2["CDD"] = "CDD";
291
+ ProfessionStatusEnum2["CDI"] = "CDI";
292
+ ProfessionStatusEnum2["INDEPENDANT"] = "INDEPENDANT";
293
+ ProfessionStatusEnum2["LIBERAL"] = "LIBERAL";
294
+ ProfessionStatusEnum2["COMPANY_DIRECTOR"] = "COMPANY_DIRECTOR";
295
+ ProfessionStatusEnum2["RETIRED"] = "RETIRED";
296
+ ProfessionStatusEnum2["JOB_SEEKER"] = "JOB_SEEKER";
297
+ ProfessionStatusEnum2["INACTIVE"] = "INACTIVE";
298
+ ProfessionStatusEnum2["DONT_WANT_TO_SAY"] = "DONT_WANT_TO_SAY";
299
+ return ProfessionStatusEnum2;
300
+ })(ProfessionStatusEnum || {});
301
+
221
302
  // src/enums/profession.enum.ts
222
303
  var ProfessionEnum = /* @__PURE__ */ ((ProfessionEnum2) => {
223
304
  ProfessionEnum2["AGRICULTURE_ENVIRONMENT"] = "AGRICULTURE_ENVIRONMENT";
@@ -238,32 +319,6 @@ var ProfessionEnum = /* @__PURE__ */ ((ProfessionEnum2) => {
238
319
  return ProfessionEnum2;
239
320
  })(ProfessionEnum || {});
240
321
 
241
- // src/enums/profession-status.enum.ts
242
- var ProfessionStatusEnum = /* @__PURE__ */ ((ProfessionStatusEnum2) => {
243
- ProfessionStatusEnum2["STUDENT"] = "STUDENT";
244
- ProfessionStatusEnum2["INTERIM"] = "INTERIM";
245
- ProfessionStatusEnum2["CDD"] = "CDD";
246
- ProfessionStatusEnum2["CDI"] = "CDI";
247
- ProfessionStatusEnum2["INDEPENDANT"] = "INDEPENDANT";
248
- ProfessionStatusEnum2["LIBERAL"] = "LIBERAL";
249
- ProfessionStatusEnum2["COMPANY_DIRECTOR"] = "COMPANY_DIRECTOR";
250
- ProfessionStatusEnum2["RETIRED"] = "RETIRED";
251
- ProfessionStatusEnum2["JOB_SEEKER"] = "JOB_SEEKER";
252
- ProfessionStatusEnum2["INACTIVE"] = "INACTIVE";
253
- ProfessionStatusEnum2["DONT_WANT_TO_SAY"] = "DONT_WANT_TO_SAY";
254
- return ProfessionStatusEnum2;
255
- })(ProfessionStatusEnum || {});
256
-
257
- // src/enums/real-estate-type.enum.ts
258
- var RealEstateTypeEnum = /* @__PURE__ */ ((RealEstateTypeEnum2) => {
259
- RealEstateTypeEnum2["HOUSE"] = "HOUSE";
260
- RealEstateTypeEnum2["APARTMENT"] = "APARTMENT";
261
- RealEstateTypeEnum2["VILLA"] = "VILLA";
262
- RealEstateTypeEnum2["CHATEAU"] = "CHATEAU";
263
- RealEstateTypeEnum2["MANSION"] = "MANSION";
264
- return RealEstateTypeEnum2;
265
- })(RealEstateTypeEnum || {});
266
-
267
322
  // src/enums/project-need.enum.ts
268
323
  var ProjectNeedEnum = /* @__PURE__ */ ((ProjectNeedEnum2) => {
269
324
  ProjectNeedEnum2["WEALTH_ASSESSMENT"] = "WEALTH_ASSESSMENT";
@@ -297,6 +352,25 @@ var ProjectStatusEnum = /* @__PURE__ */ ((ProjectStatusEnum2) => {
297
352
  return ProjectStatusEnum2;
298
353
  })(ProjectStatusEnum || {});
299
354
 
355
+ // src/enums/real-estate-type.enum.ts
356
+ var RealEstateTypeEnum = /* @__PURE__ */ ((RealEstateTypeEnum2) => {
357
+ RealEstateTypeEnum2["HOUSE"] = "HOUSE";
358
+ RealEstateTypeEnum2["APARTMENT"] = "APARTMENT";
359
+ RealEstateTypeEnum2["VILLA"] = "VILLA";
360
+ RealEstateTypeEnum2["CHATEAU"] = "CHATEAU";
361
+ RealEstateTypeEnum2["MANSION"] = "MANSION";
362
+ return RealEstateTypeEnum2;
363
+ })(RealEstateTypeEnum || {});
364
+
365
+ // src/enums/supported-currency-exchanges.enum.ts
366
+ var SupportedCurrencyExchangesEnum = /* @__PURE__ */ ((SupportedCurrencyExchangesEnum2) => {
367
+ SupportedCurrencyExchangesEnum2["EUR"] = "EUR";
368
+ SupportedCurrencyExchangesEnum2["USD"] = "USD";
369
+ SupportedCurrencyExchangesEnum2["GBP"] = "GBP";
370
+ SupportedCurrencyExchangesEnum2["JPY"] = "JPY";
371
+ return SupportedCurrencyExchangesEnum2;
372
+ })(SupportedCurrencyExchangesEnum || {});
373
+
300
374
  // src/enums/supported-currency-symbols.enum.ts
301
375
  var SupportedCurrencySymbolsEnum = /* @__PURE__ */ ((SupportedCurrencySymbolsEnum2) => {
302
376
  SupportedCurrencySymbolsEnum2["EUR"] = "\u20AC";
@@ -322,6 +396,257 @@ var UserStatusEnum = /* @__PURE__ */ ((UserStatusEnum2) => {
322
396
  UserStatusEnum2["BLACK_LISTED"] = "BLACK_LISTED";
323
397
  return UserStatusEnum2;
324
398
  })(UserStatusEnum || {});
399
+
400
+ // src/utils/financial-product.ts
401
+ var FinancialProducts = [
402
+ { key: "LIVRET_A" /* LIVRET_A */, label: "Livret A" },
403
+ { key: "LDDS" /* LDDS */, label: "LDDS" },
404
+ { key: "LEP" /* LEP */, label: "LEP" },
405
+ { key: "COMPTE_SUR_LIVRET" /* COMPTE_SUR_LIVRET */, label: "Compte sur livret" },
406
+ { key: "COMPTE_A_TERME" /* COMPTE_A_TERME */, label: "Compte \xE0 terme" },
407
+ { key: "ASSURANCE_VIE" /* ASSURANCE_VIE */, label: "Assurance-vie" },
408
+ { key: "PEA" /* PEA */, label: "PEA" },
409
+ { key: "COMPTE_TITRES_ORDINAIRE" /* COMPTE_TITRES_ORDINAIRE */, label: "CTO" },
410
+ { key: "PER" /* PER */, label: "PER" },
411
+ { key: "EPARGNE_SALARIALE" /* EPARGNE_SALARIALE */, label: "\xC9pargne salariale" },
412
+ { key: "SCPI" /* SCPI */, label: "SCPI" },
413
+ { key: "PRIVATE_EQUITY" /* PRIVATE_EQUITY */, label: "Private equity" },
414
+ { key: "OTHER" /* OTHER */, label: "Autre" }
415
+ ];
416
+ function getFinancialProductLabel(key) {
417
+ const financialProductLabel = FinancialProducts.find(
418
+ (product) => product.key === key.toUpperCase()
419
+ );
420
+ if (!financialProductLabel) {
421
+ return "Inconnu";
422
+ }
423
+ return financialProductLabel.label;
424
+ }
425
+ function getFinancialProductKey(label) {
426
+ const financialProductKey = FinancialProducts.find((product) => product.label === label);
427
+ if (!financialProductKey) {
428
+ return null;
429
+ }
430
+ return financialProductKey.key;
431
+ }
432
+
433
+ // src/utils/household-salary-range.ts
434
+ var HouseholdSalaryRanges = [
435
+ { key: "LESS_THAN_30K" /* LESS_THAN_30K */, label: "Moins de 30 000\u20AC" },
436
+ { key: "BETWEEN_30K_AND_50K" /* BETWEEN_30K_AND_50K */, label: "Entre 30 000\u20AC et 50 000\u20AC" },
437
+ { key: "BETWEEN_50K_AND_80K" /* BETWEEN_50K_AND_80K */, label: "Entre 50 000\u20AC et 80 000\u20AC" },
438
+ { key: "BETWEEN_80K_AND_120K" /* BETWEEN_80K_AND_120K */, label: "Entre 80 000\u20AC et 120 000\u20AC" },
439
+ { key: "BETWEEN_120K_AND_180K" /* BETWEEN_120K_AND_180K */, label: "Entre 120 000\u20AC et 180 000\u20AC" },
440
+ { key: "MORE_THAN_180K" /* MORE_THAN_180K */, label: "Plus de 180 000\u20AC" }
441
+ ];
442
+ function getHouseholdSalaryRangeLabel(key) {
443
+ const range = HouseholdSalaryRanges.find(
444
+ (range2) => range2.key === key.toUpperCase()
445
+ );
446
+ return !range ? "Inconnu" : range.label;
447
+ }
448
+ function getHouseholdSalaryRangeKey(label) {
449
+ const range = HouseholdSalaryRanges.find((range2) => range2.label === label);
450
+ return !range ? null : range.key;
451
+ }
452
+
453
+ // src/utils/marital-status.ts
454
+ var MartialStatuses = [
455
+ { key: "SINGLE" /* SINGLE */, label: "C\xE9libataire" },
456
+ { key: "COUPLE" /* COUPLE */, label: "En couple" },
457
+ { key: "PACS" /* PACS */, label: "Pacs\xE9(e)" },
458
+ { key: "MARRIED" /* MARRIED */, label: "Mari\xE9(e)" },
459
+ { key: "DIVORCED" /* DIVORCED */, label: "Divorc\xE9(e)" },
460
+ { key: "WIDOWED" /* WIDOWED */, label: "Veuf(ve)" },
461
+ { key: "DONT_WANT_TO_SAY" /* DONT_WANT_TO_SAY */, label: "Ne souhaite pas r\xE9pondre" }
462
+ ];
463
+ function getMaritalStatusLabel(maritalStatus) {
464
+ const ms = MartialStatuses.find(
465
+ (ms2) => ms2.key === maritalStatus.toUpperCase()
466
+ );
467
+ return !ms ? "Inconnu" : ms.label;
468
+ }
469
+ function getMaritalStatusKey(label) {
470
+ const ms = MartialStatuses.find((ms2) => ms2.label === label);
471
+ return !ms ? null : ms.key;
472
+ }
473
+
474
+ // src/utils/personal-salary-range.ts
475
+ var PersonalSalaryRanges = [
476
+ { key: "LESS_THAN_20K" /* LESS_THAN_20K */, label: "Moins de 20 000\u20AC" },
477
+ { key: "BETWEEN_20K_AND_30K" /* BETWEEN_20K_AND_30K */, label: "Entre 20 000\u20AC et 30 000\u20AC" },
478
+ { key: "BETWEEN_30K_AND_45K" /* BETWEEN_30K_AND_45K */, label: "Entre 30 000\u20AC et 45 000\u20AC" },
479
+ { key: "BETWEEN_45K_AND_65K" /* BETWEEN_45K_AND_65K */, label: "Entre 45 000\u20AC et 65 000\u20AC" },
480
+ { key: "BETWEEN_65K_AND_90K" /* BETWEEN_65K_AND_90K */, label: "Entre 65 000\u20AC et 90 000\u20AC" },
481
+ { key: "MORE_THAN_90K" /* MORE_THAN_90K */, label: "Plus de 90 000\u20AC" }
482
+ ];
483
+ var getPersonalSalaryRangeLabel = (key) => {
484
+ const range = PersonalSalaryRanges.find(
485
+ (range2) => range2.key === key.toUpperCase()
486
+ );
487
+ return !range ? "Inconnu" : range.label;
488
+ };
489
+ var getPersonalSalaryRangeKey = (label) => {
490
+ const range = PersonalSalaryRanges.find((range2) => range2.label === label);
491
+ return !range ? null : range.key;
492
+ };
493
+
494
+ // src/utils/personal-net-worth-range.ts
495
+ var PersonalNetWorthRanges = [
496
+ { key: "LESS_THAN_100K" /* LESS_THAN_100K */, label: "Moins de 100 000\u20AC" },
497
+ { key: "BETWEEN_100K_AND_200K" /* BETWEEN_100K_AND_200K */, label: "Entre 100 000\u20AC et 200 000\u20AC" },
498
+ { key: "BETWEEN_200K_AND_500K" /* BETWEEN_200K_AND_500K */, label: "Entre 200 000\u20AC et 500 000\u20AC" },
499
+ { key: "BETWEEN_500K_AND_1M" /* BETWEEN_500K_AND_1M */, label: "Entre 500 000\u20AC et 1 000 000\u20AC" },
500
+ { key: "BETWEEN_1M_AND_2M" /* BETWEEN_1M_AND_2M */, label: "Entre 1 000 000\u20AC et 2 000 000\u20AC" },
501
+ { key: "MORE_THAN_2M" /* MORE_THAN_2M */, label: "Plus de 2 000 000\u20AC" }
502
+ ];
503
+ function getPersonalNetWorthRangeLabel(key) {
504
+ const range = PersonalNetWorthRanges.find(
505
+ (range2) => range2.key === key.toUpperCase()
506
+ );
507
+ return !range ? "Inconnu" : range.label;
508
+ }
509
+ function getPersonalNetWorthRangeKey(label) {
510
+ const range = PersonalNetWorthRanges.find((range2) => range2.label === label);
511
+ return !range ? null : range.key;
512
+ }
513
+
514
+ // src/utils/profession-status.ts
515
+ var ProfessionStatusList = [
516
+ { key: "STUDENT" /* STUDENT */, label: "\xC9tudiant" },
517
+ { key: "INTERIM" /* INTERIM */, label: "Interim" },
518
+ { key: "CDD" /* CDD */, label: "Salari\xE9 en CDD" },
519
+ { key: "CDI" /* CDI */, label: "Salari\xE9 en CDI" },
520
+ { key: "INDEPENDANT" /* INDEPENDANT */, label: "Ind\xE9pendant" },
521
+ { key: "LIBERAL" /* LIBERAL */, label: "Profession lib\xE9rale" },
522
+ { key: "COMPANY_DIRECTOR" /* COMPANY_DIRECTOR */, label: "Chef d'entreprise" },
523
+ { key: "RETIRED" /* RETIRED */, label: "Retrait\xE9" },
524
+ { key: "JOB_SEEKER" /* JOB_SEEKER */, label: "En recherche d'emploi" },
525
+ { key: "INACTIVE" /* INACTIVE */, label: "Sans activit\xE9" },
526
+ { key: "DONT_WANT_TO_SAY" /* DONT_WANT_TO_SAY */, label: "Ne souhaite pas r\xE9pondre" }
527
+ ];
528
+ function getProfessionStatusLabel(professionStatus) {
529
+ const ps = ProfessionStatusList.find(
530
+ (s) => s.key === professionStatus.toUpperCase()
531
+ );
532
+ return !ps ? "Inconnu" : ps.label;
533
+ }
534
+ function getProfessionStatusKey(label) {
535
+ const ps = ProfessionStatusList.find((s) => s.label === label);
536
+ return !ps ? null : ps.key;
537
+ }
538
+
539
+ // src/utils/profession.ts
540
+ var ProfessionsList = [
541
+ { value: "AGRICULTURE_ENVIRONMENT" /* AGRICULTURE_ENVIRONMENT */, label: "l'agriculture et l'environnement" },
542
+ { value: "REAL_ESTATE_CONSTRUCTION" /* REAL_ESTATE_CONSTRUCTION */, label: "l'immobilier et construction" },
543
+ { value: "INDUSTRY_ENERGY" /* INDUSTRY_ENERGY */, label: "l'industrie et les \xE9nergies" },
544
+ { value: "DIGITAL_TELECOM" /* DIGITAL_TELECOM */, label: "le num\xE9rique et t\xE9l\xE9coms" },
545
+ { value: "RETAIL_DISTRIBUTION" /* RETAIL_DISTRIBUTION */, label: "le commerce et la distribution" },
546
+ { value: "TRANSPORT_LOGISTICS" /* TRANSPORT_LOGISTICS */, label: "le transport et la logistique" },
547
+ { value: "FINANCE_INSURANCE" /* FINANCE_INSURANCE */, label: "la finance et l'assurance" },
548
+ { value: "HEALTH_SOCIAL" /* HEALTH_SOCIAL */, label: "la sant\xE9 et le social" },
549
+ { value: "EDUCATION_RESEARCH" /* EDUCATION_RESEARCH */, label: "l'\xE9ducation et la recherche" },
550
+ { value: "PUBLIC_ADMINISTRATION" /* PUBLIC_ADMINISTRATION */, label: "l'administration publique" },
551
+ { value: "MILITARY_SECURITY" /* MILITARY_SECURITY */, label: "l'arm\xE9e et la s\xE9curit\xE9" },
552
+ { value: "CATERING_TOURISM" /* CATERING_TOURISM */, label: "la restauration et le tourisme" },
553
+ { value: "CULTURE_LEISURE" /* CULTURE_LEISURE */, label: "la culture et les loisirs" },
554
+ { value: "ARTS_MEDIA" /* ARTS_MEDIA */, label: "les arts et les m\xE9dias" },
555
+ { value: "OTHER_SECTOR" /* OTHER_SECTOR */, label: "un autre secteur" }
556
+ ];
557
+ function getProfessionLabel(profession) {
558
+ const professionDomain = ProfessionsList.find((p) => p.value === profession.toUpperCase());
559
+ if (!professionDomain) {
560
+ return "Inconnu";
561
+ }
562
+ return professionDomain.label;
563
+ }
564
+ function getProfessionKey(label) {
565
+ const professionKey = ProfessionsList.find((p) => p.label === label);
566
+ if (!professionKey) {
567
+ return null;
568
+ }
569
+ return professionKey.value;
570
+ }
571
+
572
+ // src/utils/project-need.ts
573
+ var ProjectNeeds = [
574
+ {
575
+ key: "WEALTH_ASSESSMENT" /* WEALTH_ASSESSMENT */,
576
+ userLabel: "Je n'ai pas d'id\xE9e pr\xE9cise, j'aimerais recevoir des conseils et offres adapt\xE9s \xE0 ma situation.",
577
+ proLabel: "Pas d'id\xE9e pr\xE9cise, souhaite recevoir des conseils et offres adapt\xE9s \xE0 sa situation."
578
+ },
579
+ {
580
+ key: "INVEST_IN_STOCK_EXCHANGE" /* INVEST_IN_STOCK_EXCHANGE */,
581
+ userLabel: "Je compte me lancer en bourse.",
582
+ proLabel: "Souhaite investir dans la bourse."
583
+ },
584
+ {
585
+ key: "PREPARE_RETIREMENT" /* PREPARE_RETIREMENT */,
586
+ userLabel: "Je pense \xE0 l'avenir et souhaite pr\xE9parer ma retraite.",
587
+ proLabel: "Souhaite pr\xE9parer sa retraite."
588
+ },
589
+ {
590
+ key: "TAX_OPTIMIZATION" /* TAX_OPTIMIZATION */,
591
+ userLabel: "J'ai besoin de payer moins d'imp\xF4ts, il faut que je d\xE9fiscalise.",
592
+ proLabel: "Souhaite optimiser ses imp\xF4ts."
593
+ },
594
+ {
595
+ key: "OPTIMIZE_SAVINGS" /* OPTIMIZE_SAVINGS */,
596
+ userLabel: "Je suis dynamique et j'aimerais que mon \xE9pargne le soit \xE9galement, qu'elle me rapporte plus.",
597
+ proLabel: "Souhaite optimiser son \xE9pargne."
598
+ },
599
+ {
600
+ key: "PASS_ON_TO_DESCENDANTS" /* PASS_ON_TO_DESCENDANTS */,
601
+ userLabel: "Je dois prot\xE9ger mes enfants, il est temps de parler transmission.",
602
+ proLabel: "Souhaite prot\xE9ger ses enfants."
603
+ },
604
+ {
605
+ key: "DIVERSIFY_ASSETS" /* DIVERSIFY_ASSETS */,
606
+ userLabel: "J'aimerais savoir comment diversifier mon patrimoine pour r\xE9duire les risques.",
607
+ proLabel: "Souhaite diversifier son patrimoine pour r\xE9duire les risques."
608
+ },
609
+ {
610
+ key: "FUND_REAL_ECONOMY" /* FUND_REAL_ECONOMY */,
611
+ userLabel: "Je veux participer \xE0 l'effort collectif par le financement de l'\xE9conomie r\xE9elle.",
612
+ proLabel: "Souhaite participer \xE0 l'effort collectif par le financement de l'\xE9conomie r\xE9elle."
613
+ },
614
+ {
615
+ key: "SOCIAL_AND_ENVIRONMENTAL_INVESTMENTS" /* SOCIAL_AND_ENVIRONMENTAL_INVESTMENTS */,
616
+ userLabel: "J'ai envie de donner du sens \xE0 mon argent et voudrais en savoir plus sur l'\xE9pargne responsable.",
617
+ proLabel: "Souhaite participer \xE0 l'\xE9pargne responsable."
618
+ },
619
+ {
620
+ key: "SAFETY_SAVINGS" /* SAFETY_SAVINGS */,
621
+ userLabel: "J'ai peur de l'impr\xE9vu et envisage de constituer une \xE9pargne de s\xE9curit\xE9.",
622
+ proLabel: "Souhaite constituer une \xE9pargne de s\xE9curit\xE9."
623
+ }
624
+ ];
625
+ function getProjectNeedUserLabel(key) {
626
+ const projectNeedLabel = ProjectNeeds.find((need) => need.key === key.toUpperCase());
627
+ if (!projectNeedLabel) {
628
+ return "Inconnu";
629
+ }
630
+ return projectNeedLabel.userLabel;
631
+ }
632
+ function getProjectNeedProLabel(key) {
633
+ const projectNeedLabel = ProjectNeeds.find((need) => need.key === key.toUpperCase());
634
+ if (!projectNeedLabel) {
635
+ return "Inconnu";
636
+ }
637
+ return projectNeedLabel.proLabel;
638
+ }
639
+ function getProjectNeedKey(label) {
640
+ let projectNeedKey = ProjectNeeds.find((need) => need.userLabel === label);
641
+ if (projectNeedKey) {
642
+ return projectNeedKey.key;
643
+ }
644
+ projectNeedKey = ProjectNeeds.find((need) => need.proLabel === label);
645
+ if (!projectNeedKey) {
646
+ return null;
647
+ }
648
+ return projectNeedKey.key;
649
+ }
325
650
  // Annotate the CommonJS export names for ESM import in node:
326
651
  0 && (module.exports = {
327
652
  AssetTypeEnum,
@@ -333,21 +658,50 @@ var UserStatusEnum = /* @__PURE__ */ ((UserStatusEnum2) => {
333
658
  EMAIL_REGEX,
334
659
  FetchPowensConnectionsTypeEnum,
335
660
  FinancialProductEnum,
661
+ FinancialProducts,
662
+ HouseholdSalaryRangeEnum,
663
+ HouseholdSalaryRanges,
336
664
  LIVES_OUTSIDE_FRANCE,
337
665
  LegalDocumentTypeEnum,
338
666
  LoanTypeEnum,
667
+ MaritalStatusEnum,
668
+ MartialStatuses,
339
669
  MobilityTypeEnum,
670
+ PersonalNetWorthRangeEnum,
671
+ PersonalNetWorthRanges,
672
+ PersonalSalaryRangeEnum,
673
+ PersonalSalaryRanges,
340
674
  PowensConnectionStateEnum,
341
675
  PowensUserStatusEnum,
342
676
  ProfessionEnum,
343
677
  ProfessionStatusEnum,
678
+ ProfessionStatusList,
679
+ ProfessionsList,
344
680
  ProjectNeedEnum,
681
+ ProjectNeeds,
345
682
  ProjectOptionEnum,
346
683
  ProjectStatusEnum,
347
684
  RealEstateTypeEnum,
348
685
  SupportedCurrencyExchangesEnum,
349
686
  SupportedCurrencySymbolsEnum,
350
687
  UserAiSummaryStatusEnum,
351
- UserStatusEnum
688
+ UserStatusEnum,
689
+ getFinancialProductKey,
690
+ getFinancialProductLabel,
691
+ getHouseholdSalaryRangeKey,
692
+ getHouseholdSalaryRangeLabel,
693
+ getMaritalStatusKey,
694
+ getMaritalStatusLabel,
695
+ getPersonalNetWorthRangeKey,
696
+ getPersonalNetWorthRangeLabel,
697
+ getPersonalSalaryRangeKey,
698
+ getPersonalSalaryRangeLabel,
699
+ getProfessionKey,
700
+ getProfessionLabel,
701
+ getProfessionStatusKey,
702
+ getProfessionStatusLabel,
703
+ getProjectNeedKey,
704
+ getProjectNeedProLabel,
705
+ getProjectNeedUserLabel
352
706
  });
353
707
  //# sourceMappingURL=index.js.map