@placeshakr/config 10.19.33-alpha.3 → 10.19.33

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.
@@ -14,15 +14,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
14
14
  /**
15
15
  * security context
16
16
  */
17
-
18
-
19
17
  var index = (function (env) {
20
18
  var orderedAccess = [exports.ROLE.CLIENT, exports.ROLE.PRO, exports.ROLE.AGENT, exports.ROLE.ADMIN, exports.ROLE.SUPERADMIN];
21
-
22
19
  var hasRole = function hasRole(claims) {
23
20
  return !claims || !claims[env.security.claims.role] ? false : true;
24
21
  };
25
-
26
22
  var is = function is(claims, role) {
27
23
  if (!hasRole(claims)) return false;
28
24
  return claims[env.security.claims.role] === role;
@@ -33,8 +29,6 @@ var index = (function (env) {
33
29
  * @param role
34
30
  * @param claims
35
31
  */
36
-
37
-
38
32
  var canActAs = function canActAs(role, claims) {
39
33
  var userRole = getRole(claims);
40
34
  return orderedAccess.indexOf(role) < orderedAccess.indexOf(userRole);
@@ -43,8 +37,6 @@ var index = (function (env) {
43
37
  * Get user role
44
38
  * @param claims
45
39
  */
46
-
47
-
48
40
  var getRole = function getRole(claims) {
49
41
  return hasRole(claims) ? claims[env.security.claims.role] : null;
50
42
  };
@@ -52,14 +44,11 @@ var index = (function (env) {
52
44
  * Get all the roles on which an user can impersonate
53
45
  * @param claims
54
46
  */
55
-
56
-
57
47
  var getRoles = function getRoles(claims) {
58
48
  return orderedAccess.filter(function (role) {
59
49
  return canActAs(role, claims);
60
50
  });
61
51
  };
62
-
63
52
  return {
64
53
  is: is,
65
54
  canActAs: canActAs,
@@ -68,13 +57,20 @@ var index = (function (env) {
68
57
  };
69
58
  });
70
59
 
71
- var acls = ['project.view', 'project.edit', 'project.create', 'project.delete', 'project.progress.edit', // assignations
72
- 'project.assign.pro', 'project.assign.agent', 'project.assign.client', 'project.assign.seller', 'project.unassign.pro', 'project.unassign.agent', 'project.unassign.client', 'project.unassign.seller', // other actions
73
- 'project.validate', 'project.status.edit', 'project.pro.prices.view', 'project.enterprise.prices.view', 'project.sync.agenda', 'project.estimation', // devis
74
- 'project.devis.create', 'project.devis.edit', 'project.devis.delete', // notes
75
- 'project.note.view', 'project.note.create', 'project.note.edit', 'project.note.delete', // documents
76
- 'project.document.view', 'project.document.create', 'project.document.edit', 'project.document.delete', // medias
77
- 'project.media.view', 'project.media.create', 'project.media.edit', 'project.media.delete', // events
60
+ var acls = ['project.view', 'project.edit', 'project.create', 'project.delete', 'project.progress.edit',
61
+ // assignations
62
+ 'project.assign.pro', 'project.assign.agent', 'project.assign.client', 'project.assign.seller', 'project.unassign.pro', 'project.unassign.agent', 'project.unassign.client', 'project.unassign.seller',
63
+ // other actions
64
+ 'project.validate', 'project.status.edit', 'project.pro.prices.view', 'project.enterprise.prices.view', 'project.sync.agenda', 'project.estimation',
65
+ // devis
66
+ 'project.devis.create', 'project.devis.edit', 'project.devis.delete',
67
+ // notes
68
+ 'project.note.view', 'project.note.create', 'project.note.edit', 'project.note.delete',
69
+ // documents
70
+ 'project.document.view', 'project.document.create', 'project.document.edit', 'project.document.delete',
71
+ // medias
72
+ 'project.media.view', 'project.media.create', 'project.media.edit', 'project.media.delete',
73
+ // events
78
74
  'project.event.view', 'project.event.create', 'project.event.edit',
79
75
  /**
80
76
  * Devis policy
@@ -83,17 +79,28 @@ var acls = ['project.view', 'project.edit', 'project.create', 'project.delete',
83
79
  /**
84
80
  * Configuration
85
81
  */
86
- 'configuration.view', // status
87
- 'configuration.status.view', 'configuration.status.create', 'configuration.status.edit', 'configuration.status.delete', // providers
88
- 'configuration.provider.view', 'configuration.provider.edit', 'configuration.provider.delete', 'configuration.provider.create', // material providers
89
- 'configuration.material.provider.view', 'configuration.material.provider.edit', 'configuration.material.provider.delete', 'configuration.material.provider.create', // materials
90
- 'configuration.material.view', 'configuration.material.edit', 'configuration.material.delete', 'configuration.material.create', // operations
91
- 'configuration.operation.view', 'configuration.operation.edit', 'configuration.operation.delete', 'configuration.operation.create', // devis templates
92
- 'configuration.devis.template.view', 'configuration.devis.template.edit', 'configuration.devis.template.delete', 'configuration.devis.template.create', // team
93
- 'configuration.team.view', // users (pro)
94
- 'configuration.pro.edit', 'configuration.pro.delete', 'configuration.pro.create', 'configuration.pro.view', // users (agent)
95
- 'configuration.agent.edit', 'configuration.agent.delete', 'configuration.agent.create', 'configuration.agent.view', // users (admins)
96
- 'configuration.admin.edit', 'configuration.admin.delete', 'configuration.admin.create', 'configuration.admin.view', // enterprise
82
+ 'configuration.view',
83
+ // status
84
+ 'configuration.status.view', 'configuration.status.create', 'configuration.status.edit', 'configuration.status.delete',
85
+ // providers
86
+ 'configuration.provider.view', 'configuration.provider.edit', 'configuration.provider.delete', 'configuration.provider.create',
87
+ // material providers
88
+ 'configuration.material.provider.view', 'configuration.material.provider.edit', 'configuration.material.provider.delete', 'configuration.material.provider.create',
89
+ // materials
90
+ 'configuration.material.view', 'configuration.material.edit', 'configuration.material.delete', 'configuration.material.create',
91
+ // operations
92
+ 'configuration.operation.view', 'configuration.operation.edit', 'configuration.operation.delete', 'configuration.operation.create',
93
+ // devis templates
94
+ 'configuration.devis.template.view', 'configuration.devis.template.edit', 'configuration.devis.template.delete', 'configuration.devis.template.create',
95
+ // team
96
+ 'configuration.team.view',
97
+ // users (pro)
98
+ 'configuration.pro.edit', 'configuration.pro.delete', 'configuration.pro.create', 'configuration.pro.view',
99
+ // users (agent)
100
+ 'configuration.agent.edit', 'configuration.agent.delete', 'configuration.agent.create', 'configuration.agent.view',
101
+ // users (admins)
102
+ 'configuration.admin.edit', 'configuration.admin.delete', 'configuration.admin.create', 'configuration.admin.view',
103
+ // enterprise
97
104
  'configuration.enterprise.edit', 'configuration.enterprise.delete', 'configuration.enterprise.create', 'configuration.enterprise.view', 'configuration.enterprise.payment.method.add', 'configuration.enterprise.payment.method.delete', 'configuration.enterprise.payment.history.view'];
98
105
 
99
106
  var productionEnvironment = {
@@ -453,20 +460,17 @@ var productionEnvironment = {
453
460
  };
454
461
 
455
462
  function _extends() {
456
- _extends = Object.assign || function (target) {
463
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
457
464
  for (var i = 1; i < arguments.length; i++) {
458
465
  var source = arguments[i];
459
-
460
466
  for (var key in source) {
461
467
  if (Object.prototype.hasOwnProperty.call(source, key)) {
462
468
  target[key] = source[key];
463
469
  }
464
470
  }
465
471
  }
466
-
467
472
  return target;
468
473
  };
469
-
470
474
  return _extends.apply(this, arguments);
471
475
  }
472
476
 
@@ -476,14 +480,12 @@ var dev = function dev(base) {
476
480
  name: 'development'
477
481
  });
478
482
  };
479
-
480
483
  var staging = function staging(base) {
481
484
  return _extends({}, base, {
482
485
  isTest: false,
483
486
  name: 'staging'
484
487
  });
485
488
  };
486
-
487
489
  var test = function test(base) {
488
490
  return _extends({}, base, {
489
491
  schema: _extends({}, base.schema, {
@@ -523,7 +525,6 @@ var test = function test(base) {
523
525
  name: 'test'
524
526
  });
525
527
  };
526
-
527
528
  var emulator = function emulator(base) {
528
529
  return _extends({}, base, {
529
530
  schema: _extends({}, base.schema, {
@@ -576,25 +577,18 @@ var emulator = function emulator(base) {
576
577
  *
577
578
  * @param envName
578
579
  */
579
-
580
-
581
580
  var getEnv = function getEnv(envName) {
582
581
  switch (envName) {
583
582
  case exports.Environments.dev:
584
583
  return dev(productionEnvironment);
585
-
586
584
  case exports.Environments.staging:
587
585
  return staging(productionEnvironment);
588
-
589
586
  case exports.Environments.production:
590
587
  return productionEnvironment;
591
-
592
588
  case exports.Environments.test:
593
589
  return test(productionEnvironment);
594
-
595
590
  case exports.Environments.emulator:
596
591
  return emulator(productionEnvironment);
597
-
598
592
  default:
599
593
  return productionEnvironment;
600
594
  }
@@ -680,13 +674,13 @@ var uid = {
680
674
  generate: /*#__PURE__*/function () {
681
675
  // Timestamp of last push, used to prevent local
682
676
  // collisions if you push twice in one ms.
683
- var lastPushTime = 0; // We generate 72-bits of randomness which get
677
+ var lastPushTime = 0;
678
+ // We generate 72-bits of randomness which get
684
679
  // turned into 12 characters and appended to the
685
680
  // timestamp to prevent collisions with other clients.
686
681
  // We store the last characters we generated because
687
682
  // in the event of a collision, we'll use those same
688
683
  // characters except "incremented" by one.
689
-
690
684
  var lastRandChars = [];
691
685
  return function () {
692
686
  var now = new Date().getTime();
@@ -694,41 +688,35 @@ var uid = {
694
688
  lastPushTime = now;
695
689
  var timeStampChars = new Array(8);
696
690
  var i;
697
-
698
691
  for (i = 7; i >= 0; i--) {
699
- timeStampChars[i] = ASCII_CHARS.charAt(now % 62); // NOTE: Can't use << here because javascript
692
+ timeStampChars[i] = ASCII_CHARS.charAt(now % 62);
693
+ // NOTE: Can't use << here because javascript
700
694
  // will convert to int and lose the upper bits.
701
-
702
695
  now = Math.floor(now / 62);
703
696
  }
704
-
705
697
  if (now !== 0) throw new Error('We should have converted the entire timestamp.');
706
698
  var id = timeStampChars.join('');
707
-
708
699
  if (!duplicateTime) {
709
700
  for (i = 0; i < 12; i++) {
710
701
  lastRandChars[i] = Math.floor(Math.random() * 62);
711
702
  }
712
- } // If the timestamp hasn't changed since
703
+ }
704
+ // If the timestamp hasn't changed since
713
705
  // last push, use the same random number,
714
706
  // except incremented by 1.
715
707
  else {
716
708
  for (i = 11; i >= 0 && lastRandChars[i] === 61; i--) {
717
709
  lastRandChars[i] = 0;
718
710
  }
719
-
720
711
  lastRandChars[i]++;
721
712
  }
722
-
723
713
  for (i = 0; i < 12; i++) {
724
714
  id += ASCII_CHARS.charAt(lastRandChars[i]);
725
715
  }
726
-
727
716
  if (id.length !== 20) throw new Error('Length should be 20.');
728
717
  return id;
729
718
  };
730
719
  }(),
731
-
732
720
  /**
733
721
  * Timestamp
734
722
  * Gets timestamp from provided uid.
@@ -737,11 +725,9 @@ var uid = {
737
725
  return function (id, asDate) {
738
726
  var time = 0;
739
727
  var data = id.substring(0, 8);
740
-
741
728
  for (var i = 0; i < 8; i++) {
742
729
  time = time * 62 + ASCII_CHARS.indexOf(data[i]);
743
730
  }
744
-
745
731
  if (asDate) return new Date(time);
746
732
  return time;
747
733
  };
@@ -773,27 +759,21 @@ var getPath = function getPath(path, params) {
773
759
  if (params === void 0) {
774
760
  params = {};
775
761
  }
776
-
777
762
  var regex = new RegExp(/\{(\w+)\}*/gm);
778
763
  var m;
779
764
  var generatedPath = path.toString();
780
-
781
765
  do {
782
766
  m = regex.exec(generatedPath);
783
-
784
767
  if (m) {
785
768
  var _m = m,
786
- match = _m[0],
787
- paramName = _m[1];
788
-
769
+ match = _m[0],
770
+ paramName = _m[1];
789
771
  if (!params.hasOwnProperty(paramName)) {
790
772
  throw new Error("Param \"" + paramName + "\" is missing from path params");
791
773
  }
792
-
793
774
  generatedPath = generatedPath.split(match).join(String(params[paramName]));
794
775
  }
795
776
  } while (m !== null);
796
-
797
777
  return generatedPath;
798
778
  };
799
779
 
@@ -911,7 +891,8 @@ var createProducts = function createProducts(params) {
911
891
  tax_rates: params.plus.tax_rates
912
892
  },
913
893
  tariffs: params.plus.tariffs
914
- } // test_1: {
894
+ }
895
+ // test_1: {
915
896
  // id: params.test_1.id,
916
897
  // internal: 'test_1',
917
898
  // product: {
@@ -1047,8 +1028,8 @@ var createProducts = function createProducts(params) {
1047
1028
  // },
1048
1029
  // tariffs: params.test_4.tariffs,
1049
1030
  // },
1050
-
1051
1031
  };
1032
+
1052
1033
  return products;
1053
1034
  };
1054
1035
 
@@ -1099,13 +1080,14 @@ var testing = {
1099
1080
  usageType: 'licensed',
1100
1081
  type: 'base'
1101
1082
  }
1102
- } // prices: {
1083
+ }
1084
+ // prices: {
1103
1085
  // monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
1104
1086
  // additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe',
1105
1087
  // },
1106
1088
  // additionalUserPrice: 10,
1107
-
1108
1089
  },
1090
+
1109
1091
  plus: {
1110
1092
  id: 'prod_KzmyY1ysEOeK93',
1111
1093
  tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
@@ -1117,7 +1099,8 @@ var testing = {
1117
1099
  type: 'base'
1118
1100
  }
1119
1101
  }
1120
- } // test_1: {
1102
+ }
1103
+ // test_1: {
1121
1104
  // id: 'prod_L2ZqDUzF0HFuFN',
1122
1105
  // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1123
1106
  // tariffs: {
@@ -1157,8 +1140,8 @@ var testing = {
1157
1140
  // additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
1158
1141
  // },
1159
1142
  // },
1160
-
1161
1143
  };
1144
+
1162
1145
  var production = {
1163
1146
  classic: {
1164
1147
  id: 'prod_KzmYFhrWXrzWdR',
@@ -1219,7 +1202,8 @@ var production = {
1219
1202
  type: 'base'
1220
1203
  }
1221
1204
  }
1222
- } // test_1: {
1205
+ }
1206
+ // test_1: {
1223
1207
  // id: 'prod_L2ZqDUzF0HFuFN',
1224
1208
  // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1225
1209
  // tariffs: {
@@ -1259,20 +1243,17 @@ var production = {
1259
1243
  // additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
1260
1244
  // },
1261
1245
  // },
1262
-
1263
1246
  };
1264
1247
  /**
1265
1248
  *
1266
1249
  * @param envName
1267
1250
  */
1268
-
1269
1251
  var index$1 = (function (envName) {
1270
1252
  if (envName === 'production') return createProducts(production);
1271
1253
  return createProducts(testing);
1272
1254
  });
1273
1255
 
1274
1256
  var ROLE;
1275
-
1276
1257
  (function (ROLE) {
1277
1258
  ROLE["CLIENT"] = "client";
1278
1259
  ROLE["SELLER"] = "seller";
@@ -1282,33 +1263,25 @@ var ROLE;
1282
1263
  ROLE["OWNER"] = "owner";
1283
1264
  ROLE["SUPERADMIN"] = "superadmin";
1284
1265
  })(ROLE || (ROLE = {}));
1285
-
1286
1266
  var VisitReportStatus;
1287
-
1288
1267
  (function (VisitReportStatus) {
1289
1268
  VisitReportStatus["IN_PROGRESS"] = "IN_PROGRESS";
1290
1269
  VisitReportStatus["VALID"] = "VALID";
1291
1270
  })(VisitReportStatus || (VisitReportStatus = {}));
1292
-
1293
1271
  var DevisCommissionsEntity;
1294
-
1295
1272
  (function (DevisCommissionsEntity) {
1296
1273
  DevisCommissionsEntity["pro"] = "pro";
1297
1274
  DevisCommissionsEntity["provider"] = "provider";
1298
1275
  DevisCommissionsEntity["enterprise"] = "enterprise";
1299
1276
  })(DevisCommissionsEntity || (DevisCommissionsEntity = {}));
1300
-
1301
1277
  var DevisHistoryType;
1302
-
1303
1278
  (function (DevisHistoryType) {
1304
1279
  DevisHistoryType["CHANGE_STATUS"] = "CHANGE_STATUS";
1305
1280
  DevisHistoryType["SENT_TO_CLIENT"] = "SENT_TO_CLIENT";
1306
1281
  DevisHistoryType["EMAIL_EVENT"] = "EMAIL_EVENT";
1307
1282
  DevisHistoryType["NEW_VERSION"] = "NEW_VERSION";
1308
1283
  })(DevisHistoryType || (DevisHistoryType = {}));
1309
-
1310
1284
  var DevisDocSectionEnum;
1311
-
1312
1285
  (function (DevisDocSectionEnum) {
1313
1286
  DevisDocSectionEnum["PRESENTATION"] = "PRESENTATION";
1314
1287
  DevisDocSectionEnum["RESUME"] = "RESUME";
@@ -1323,62 +1296,48 @@ var DevisDocSectionEnum;
1323
1296
  DevisDocSectionEnum["CGV"] = "CGV";
1324
1297
  DevisDocSectionEnum["CERFA_CERTIFICATE"] = "CERFA_CERTIFICATE";
1325
1298
  })(DevisDocSectionEnum || (DevisDocSectionEnum = {}));
1326
-
1327
1299
  var DevisDocColorEnum;
1328
-
1329
1300
  (function (DevisDocColorEnum) {
1330
1301
  DevisDocColorEnum["PRIMARY"] = "PRIMARY";
1331
1302
  DevisDocColorEnum["SECONDARY"] = "SECONDARY";
1332
1303
  })(DevisDocColorEnum || (DevisDocColorEnum = {}));
1333
-
1334
1304
  var DevisDocDurationEnum;
1335
-
1336
1305
  (function (DevisDocDurationEnum) {
1337
1306
  DevisDocDurationEnum["DAYS"] = "DAYS";
1338
1307
  DevisDocDurationEnum["WEEKS"] = "WEEKS";
1339
1308
  DevisDocDurationEnum["MONTHS"] = "MONTHS";
1340
1309
  DevisDocDurationEnum["YEARS"] = "YEARS";
1341
1310
  })(DevisDocDurationEnum || (DevisDocDurationEnum = {}));
1342
-
1343
1311
  var MaterialsProviderType;
1344
-
1345
1312
  (function (MaterialsProviderType) {
1346
1313
  // created by the enterprises and use algolia index 'materials'
1347
- MaterialsProviderType["INTERNAL"] = "internal"; // any catalog that needs an external connection
1348
-
1349
- MaterialsProviderType["API"] = "api"; // every catalog created on the super-admin and use algolia index 'system-materials'
1350
-
1314
+ MaterialsProviderType["INTERNAL"] = "internal";
1315
+ // any catalog that needs an external connection
1316
+ MaterialsProviderType["API"] = "api";
1317
+ // every catalog created on the super-admin and use algolia index 'system-materials'
1351
1318
  MaterialsProviderType["SYSTEM"] = "system";
1352
1319
  })(MaterialsProviderType || (MaterialsProviderType = {}));
1353
-
1354
1320
  var ProjectType;
1355
-
1356
1321
  (function (ProjectType) {
1357
1322
  ProjectType["ONE_PIECE"] = "ONE_PIECE";
1358
1323
  ProjectType["FULL"] = "FULL";
1359
1324
  ProjectType["COMPOUND"] = "COMPOUND";
1360
1325
  ProjectType["CHILD"] = "CHILD";
1361
1326
  })(ProjectType || (ProjectType = {}));
1362
-
1363
1327
  var OperationStatusEnum;
1364
-
1365
1328
  (function (OperationStatusEnum) {
1366
1329
  OperationStatusEnum["TODO"] = "TODO";
1367
1330
  OperationStatusEnum["INPROGRESS"] = "INPROGRESS";
1368
1331
  OperationStatusEnum["DONE"] = "DONE";
1369
1332
  })(OperationStatusEnum || (OperationStatusEnum = {}));
1370
-
1371
1333
  var NotesType;
1372
-
1373
1334
  (function (NotesType) {
1374
1335
  NotesType["NOTE"] = "NOTE";
1375
1336
  NotesType["PROBLEM"] = "PROBLEM";
1376
1337
  NotesType["IMPORTANT"] = "IMPORTANT";
1377
1338
  NotesType["DELIVERY"] = "DELIVERY";
1378
1339
  })(NotesType || (NotesType = {}));
1379
-
1380
1340
  var NotificationType;
1381
-
1382
1341
  (function (NotificationType) {
1383
1342
  NotificationType[NotificationType["SUCCESS"] = 0] = "SUCCESS";
1384
1343
  NotificationType[NotificationType["INFO"] = 1] = "INFO";
@@ -1386,9 +1345,7 @@ var NotificationType;
1386
1345
  NotificationType[NotificationType["DANGER"] = 3] = "DANGER";
1387
1346
  NotificationType[NotificationType["TOAST"] = 4] = "TOAST";
1388
1347
  })(NotificationType || (NotificationType = {}));
1389
-
1390
1348
  var DevisStatusEnum;
1391
-
1392
1349
  (function (DevisStatusEnum) {
1393
1350
  DevisStatusEnum["CREATED"] = "CREATED";
1394
1351
  DevisStatusEnum["SENT"] = "SENT";
@@ -1396,44 +1353,34 @@ var DevisStatusEnum;
1396
1353
  DevisStatusEnum["REFUSED"] = "REFUSED";
1397
1354
  DevisStatusEnum["ABANDONED"] = "ABANDONED";
1398
1355
  })(DevisStatusEnum || (DevisStatusEnum = {}));
1399
-
1400
1356
  var DevisTypeEnum;
1401
-
1402
1357
  (function (DevisTypeEnum) {
1403
1358
  DevisTypeEnum["DEVIS"] = "DEVIS";
1404
1359
  DevisTypeEnum["SAV"] = "SAV";
1405
1360
  DevisTypeEnum["TS"] = "TS";
1406
1361
  })(DevisTypeEnum || (DevisTypeEnum = {}));
1407
-
1408
1362
  var DevisViewMode;
1409
-
1410
1363
  (function (DevisViewMode) {
1411
1364
  DevisViewMode[DevisViewMode["HOME"] = 0] = "HOME";
1412
1365
  DevisViewMode[DevisViewMode["GENERAL"] = 1] = "GENERAL";
1413
1366
  DevisViewMode[DevisViewMode["PRO"] = 2] = "PRO";
1414
1367
  DevisViewMode[DevisViewMode["CLIENT"] = 3] = "CLIENT";
1415
1368
  })(DevisViewMode || (DevisViewMode = {}));
1416
-
1417
1369
  var DevisPdfSectionEnum;
1418
-
1419
1370
  (function (DevisPdfSectionEnum) {
1420
1371
  DevisPdfSectionEnum["FINANCIAL_HELP"] = "FINANCIAL_HELP";
1421
1372
  DevisPdfSectionEnum["PROJECT"] = "PROJECT";
1422
1373
  DevisPdfSectionEnum["CLIENT"] = "CLIENT";
1423
1374
  DevisPdfSectionEnum["PROJECT_MANAGER"] = "PROJECT_MANAGER";
1424
1375
  })(DevisPdfSectionEnum || (DevisPdfSectionEnum = {}));
1425
-
1426
1376
  var DocumentsTypeEnum;
1427
-
1428
1377
  (function (DocumentsTypeEnum) {
1429
1378
  DocumentsTypeEnum["DEVIS"] = "DEVIS";
1430
1379
  DocumentsTypeEnum["DOCUMENT"] = "DOCUMENT";
1431
1380
  DocumentsTypeEnum["CLIENT"] = "CLIENT";
1432
1381
  DocumentsTypeEnum["OTHER"] = "OTHER";
1433
1382
  })(DocumentsTypeEnum || (DocumentsTypeEnum = {}));
1434
-
1435
1383
  var EventsTypeEnum;
1436
-
1437
1384
  (function (EventsTypeEnum) {
1438
1385
  EventsTypeEnum["OTHER"] = "AUTRE";
1439
1386
  EventsTypeEnum["VISIT"] = "VISIT";
@@ -1443,23 +1390,17 @@ var EventsTypeEnum;
1443
1390
  EventsTypeEnum["TECHNICAL_STATEMENT"] = "TECHNICAL_STATEMENT";
1444
1391
  EventsTypeEnum["TS_DESIGN"] = "TS_DESIGN";
1445
1392
  })(EventsTypeEnum || (EventsTypeEnum = {}));
1446
-
1447
1393
  var PaymentMethodTypeEnum;
1448
-
1449
1394
  (function (PaymentMethodTypeEnum) {
1450
1395
  PaymentMethodTypeEnum["CREDIT_CARD"] = "CREDIT_CARD";
1451
1396
  PaymentMethodTypeEnum["BANK_TRANSFERT"] = "BANK_TRANSFERT";
1452
1397
  })(PaymentMethodTypeEnum || (PaymentMethodTypeEnum = {}));
1453
-
1454
1398
  var BillDocTypeEnum;
1455
-
1456
1399
  (function (BillDocTypeEnum) {
1457
1400
  BillDocTypeEnum["BILL"] = "BILL";
1458
1401
  BillDocTypeEnum["PURCHASE_ORDER"] = "PURCHASE_ORDER";
1459
1402
  })(BillDocTypeEnum || (BillDocTypeEnum = {}));
1460
-
1461
1403
  var BillIssuedStatus;
1462
-
1463
1404
  (function (BillIssuedStatus) {
1464
1405
  BillIssuedStatus["PROVISIONAL"] = "PROVISIONAL";
1465
1406
  BillIssuedStatus["WAITING"] = "WAITING";
@@ -1469,9 +1410,7 @@ var BillIssuedStatus;
1469
1410
  BillIssuedStatus["BLOCKED"] = "BLOCKED";
1470
1411
  BillIssuedStatus["CANCELED"] = "CANCELED";
1471
1412
  })(BillIssuedStatus || (BillIssuedStatus = {}));
1472
-
1473
1413
  var BillReceivedStatus;
1474
-
1475
1414
  (function (BillReceivedStatus) {
1476
1415
  BillReceivedStatus["PROVISIONAL"] = "PROVISIONAL";
1477
1416
  BillReceivedStatus["WAITING_AGENT_VALIDATION"] = "WAITING_AGENT_VALIDATION";
@@ -1485,25 +1424,19 @@ var BillReceivedStatus;
1485
1424
  BillReceivedStatus["REFUSED"] = "REFUSED";
1486
1425
  BillReceivedStatus["BLOCKED"] = "BLOCKED";
1487
1426
  })(BillReceivedStatus || (BillReceivedStatus = {}));
1488
-
1489
1427
  var ReceptionVoucherStatus;
1490
-
1491
1428
  (function (ReceptionVoucherStatus) {
1492
1429
  ReceptionVoucherStatus["WAITING_AGENT_VALIDATION"] = "WAITING_AGENT_VALIDATION";
1493
1430
  ReceptionVoucherStatus["WAITING_ACCOUNT_VALIDATION"] = "WAITING_ACCOUNT_VALIDATION";
1494
1431
  ReceptionVoucherStatus["ACCEPTED"] = "ACCEPTED";
1495
1432
  ReceptionVoucherStatus["REFUSED"] = "REFUSED";
1496
1433
  })(ReceptionVoucherStatus || (ReceptionVoucherStatus = {}));
1497
-
1498
1434
  var BillType;
1499
-
1500
1435
  (function (BillType) {
1501
1436
  BillType["RECEIVED"] = "RECEIVED";
1502
1437
  BillType["ISSUED"] = "ISSUED";
1503
1438
  })(BillType || (BillType = {}));
1504
-
1505
1439
  var BillReceivedEntity;
1506
-
1507
1440
  (function (BillReceivedEntity) {
1508
1441
  BillReceivedEntity["PRO"] = "PRO";
1509
1442
  BillReceivedEntity["MATERIAL_PROVIDER"] = "MATERIAL_PROVIDER";
@@ -1511,16 +1444,12 @@ var BillReceivedEntity;
1511
1444
  BillReceivedEntity["PROVIDER"] = "PROVIDER";
1512
1445
  BillReceivedEntity["OTHER"] = "OTHER";
1513
1446
  })(BillReceivedEntity || (BillReceivedEntity = {}));
1514
-
1515
1447
  var BillReceivedType;
1516
-
1517
1448
  (function (BillReceivedType) {
1518
1449
  BillReceivedType["FACTURE"] = "FACTURE";
1519
1450
  BillReceivedType["CREDIT_NOTE"] = "CREDIT_NOTE";
1520
1451
  })(BillReceivedType || (BillReceivedType = {}));
1521
-
1522
1452
  var BillIssuedEntity;
1523
-
1524
1453
  (function (BillIssuedEntity) {
1525
1454
  BillIssuedEntity["CLIENT"] = "CLIENT";
1526
1455
  BillIssuedEntity["PRO"] = "PRO";
@@ -1529,18 +1458,14 @@ var BillIssuedEntity;
1529
1458
  BillIssuedEntity["SERVICE_PROVIDER"] = "SERVICE_PROVIDER";
1530
1459
  BillIssuedEntity["OTHER"] = "OTHER";
1531
1460
  })(BillIssuedEntity || (BillIssuedEntity = {}));
1532
-
1533
1461
  var BillIssuedType;
1534
-
1535
1462
  (function (BillIssuedType) {
1536
1463
  BillIssuedType["CUSTOM"] = "CUSTOM";
1537
1464
  BillIssuedType["DOWN_PAYMENT"] = "DOWN_PAYMENT";
1538
1465
  BillIssuedType["BALANCE"] = "BALANCE";
1539
1466
  BillIssuedType["CREDIT_NOTE"] = "CREDIT_NOTE";
1540
1467
  })(BillIssuedType || (BillIssuedType = {}));
1541
-
1542
1468
  var BillElementType;
1543
-
1544
1469
  (function (BillElementType) {
1545
1470
  BillElementType["ADVANCE"] = "ADVANCE";
1546
1471
  BillElementType["HOURS"] = "HOURS";
@@ -1549,32 +1474,24 @@ var BillElementType;
1549
1474
  BillElementType["SERVICE"] = "SERVICE";
1550
1475
  BillElementType["PROVIDER_COMMISSION"] = "PROVIDER_COMMISSION";
1551
1476
  })(BillElementType || (BillElementType = {}));
1552
-
1553
1477
  var BillDiscountType;
1554
-
1555
1478
  (function (BillDiscountType) {
1556
1479
  BillDiscountType["PERCENT"] = "PERCENT";
1557
1480
  BillDiscountType["MONEY"] = "MONEY";
1558
1481
  })(BillDiscountType || (BillDiscountType = {}));
1559
-
1560
1482
  var PaymentType;
1561
-
1562
1483
  (function (PaymentType) {
1563
1484
  PaymentType["CREDIT"] = "CREDIT";
1564
1485
  PaymentType["DEBIT"] = "DEBIT";
1565
1486
  })(PaymentType || (PaymentType = {}));
1566
-
1567
1487
  var ProjectTypeEnum;
1568
-
1569
1488
  (function (ProjectTypeEnum) {
1570
1489
  ProjectTypeEnum["ONE_PIECE"] = "ONE_PIECE";
1571
1490
  ProjectTypeEnum["FULL"] = "FULL";
1572
1491
  ProjectTypeEnum["COMPOUND"] = "COMPOUND";
1573
1492
  ProjectTypeEnum["CHILD"] = "CHILD";
1574
1493
  })(ProjectTypeEnum || (ProjectTypeEnum = {}));
1575
-
1576
1494
  var ProjectCategoriesEnum;
1577
-
1578
1495
  (function (ProjectCategoriesEnum) {
1579
1496
  ProjectCategoriesEnum["UNSPECIFIED"] = "UNSPECIFIED";
1580
1497
  ProjectCategoriesEnum["BATHROOM"] = "BATHROOM";
@@ -1593,9 +1510,7 @@ var ProjectCategoriesEnum;
1593
1510
  ProjectCategoriesEnum["OUTSIDE"] = "OUTSIDE";
1594
1511
  ProjectCategoriesEnum["COMMERCE"] = "COMMERCE";
1595
1512
  })(ProjectCategoriesEnum || (ProjectCategoriesEnum = {}));
1596
-
1597
1513
  var ProSpecialitiesEnum;
1598
-
1599
1514
  (function (ProSpecialitiesEnum) {
1600
1515
  ProSpecialitiesEnum["KITCHEN"] = "kitchen";
1601
1516
  ProSpecialitiesEnum["BATHROOM"] = "bathroom";
@@ -1604,12 +1519,10 @@ var ProSpecialitiesEnum;
1604
1519
  ProSpecialitiesEnum["ATTICS"] = "attics";
1605
1520
  ProSpecialitiesEnum["POOL"] = "swimming_pool";
1606
1521
  })(ProSpecialitiesEnum || (ProSpecialitiesEnum = {}));
1607
-
1608
1522
  var ProSkillsEnum;
1609
-
1610
1523
  (function (ProSkillsEnum) {
1611
1524
  ProSkillsEnum["ELECTRICITY"] = "electricity";
1612
- ProSkillsEnum["PLUMBIG"] = "plumbing";
1525
+ ProSkillsEnum["PLUMBING"] = "plumbing";
1613
1526
  ProSkillsEnum["CARPENTRY"] = "carpentry";
1614
1527
  ProSkillsEnum["MASONRY"] = "masonry";
1615
1528
  ProSkillsEnum["PAINTING"] = "painting";
@@ -1618,9 +1531,7 @@ var ProSkillsEnum;
1618
1531
  ProSkillsEnum["FRAME"] = "frame";
1619
1532
  ProSkillsEnum["INSULATION"] = "insulation";
1620
1533
  })(ProSkillsEnum || (ProSkillsEnum = {}));
1621
-
1622
1534
  var CommercialStatusEnum;
1623
-
1624
1535
  (function (CommercialStatusEnum) {
1625
1536
  CommercialStatusEnum["CONTRACTOR"] = "CONTRACTOR";
1626
1537
  CommercialStatusEnum["EIRL"] = "EIRL";
@@ -1629,9 +1540,7 @@ var CommercialStatusEnum;
1629
1540
  CommercialStatusEnum["SASU"] = "SASU";
1630
1541
  CommercialStatusEnum["SAS"] = "SAS";
1631
1542
  })(CommercialStatusEnum || (CommercialStatusEnum = {}));
1632
-
1633
1543
  var Origin;
1634
-
1635
1544
  (function (Origin) {
1636
1545
  Origin["PROVIDER"] = "provider";
1637
1546
  Origin["INTERNET"] = "internet";
@@ -1639,9 +1548,7 @@ var Origin;
1639
1548
  Origin["RUMOR"] = "rumor";
1640
1549
  Origin["PUBLICITY"] = "publicity";
1641
1550
  })(Origin || (Origin = {}));
1642
-
1643
1551
  var OrderMaterialStatus;
1644
-
1645
1552
  (function (OrderMaterialStatus) {
1646
1553
  OrderMaterialStatus["TODO"] = "TODO";
1647
1554
  OrderMaterialStatus["VALID"] = "VALID";
@@ -1650,27 +1557,21 @@ var OrderMaterialStatus;
1650
1557
  OrderMaterialStatus["RECEIVED"] = "RECEIVED";
1651
1558
  OrderMaterialStatus["ONSITE"] = "ONSITE";
1652
1559
  })(OrderMaterialStatus || (OrderMaterialStatus = {}));
1653
-
1654
1560
  var PhonesEnum;
1655
-
1656
1561
  (function (PhonesEnum) {
1657
1562
  PhonesEnum["MOBILE"] = "mobile";
1658
1563
  PhonesEnum["WORK"] = "work";
1659
1564
  PhonesEnum["LANDLINE"] = "landline";
1660
1565
  PhonesEnum["OTHER"] = "other";
1661
1566
  })(PhonesEnum || (PhonesEnum = {}));
1662
-
1663
1567
  var SendgridTemplates;
1664
-
1665
1568
  (function (SendgridTemplates) {
1666
1569
  SendgridTemplates["NOTES"] = "notes";
1667
1570
  SendgridTemplates["EVENTS"] = "events";
1668
1571
  SendgridTemplates["DOCUMENTS"] = "documents";
1669
1572
  SendgridTemplates["DEVIS"] = "devis";
1670
1573
  })(SendgridTemplates || (SendgridTemplates = {}));
1671
-
1672
1574
  var TermsOfPayment;
1673
-
1674
1575
  (function (TermsOfPayment) {
1675
1576
  TermsOfPayment["UPON_RECEIPT"] = "upon-receipt";
1676
1577
  TermsOfPayment["MONTH_END"] = "month-end";
@@ -1685,9 +1586,7 @@ var TermsOfPayment;
1685
1586
  TermsOfPayment["DAYS_90_END_MONTH"] = "90-days-end-month";
1686
1587
  TermsOfPayment["DAYS_120"] = "120-days";
1687
1588
  })(TermsOfPayment || (TermsOfPayment = {}));
1688
-
1689
1589
  var PaymentChoice;
1690
-
1691
1590
  (function (PaymentChoice) {
1692
1591
  PaymentChoice["UNSPECIFIED"] = "unspecified";
1693
1592
  PaymentChoice["CASH"] = "cash";
@@ -1701,9 +1600,7 @@ var PaymentChoice;
1701
1600
  PaymentChoice["BILL_EXCHANGE_WITHOUT_ACCEPTANCE"] = "bill-exchange-without-acceptance";
1702
1601
  PaymentChoice["PROMISSORY_NOTE"] = "promissory-note";
1703
1602
  })(PaymentChoice || (PaymentChoice = {}));
1704
-
1705
1603
  var LateInterest;
1706
-
1707
1604
  (function (LateInterest) {
1708
1605
  LateInterest["NO_LATE_INTEREST"] = "No-late-interest";
1709
1606
  LateInterest["PER_MONTH_1"] = "1%-per-month";
@@ -1712,25 +1609,19 @@ var LateInterest;
1712
1609
  LateInterest["CURRENT_LEGAL_INTEREST_RATE"] = "current-legal-interest-rate";
1713
1610
  LateInterest["SPECIFY"] = "specify";
1714
1611
  })(LateInterest || (LateInterest = {}));
1715
-
1716
1612
  var ProfileStatus;
1717
-
1718
1613
  (function (ProfileStatus) {
1719
1614
  ProfileStatus["ACTIVE"] = "active";
1720
1615
  ProfileStatus["INACTIVE"] = "inactive";
1721
1616
  ProfileStatus["BLOCKED"] = "blocked";
1722
1617
  ProfileStatus["SUSPENDED"] = "suspended";
1723
1618
  })(ProfileStatus || (ProfileStatus = {}));
1724
-
1725
1619
  var EstimationOriginEnum;
1726
-
1727
1620
  (function (EstimationOriginEnum) {
1728
1621
  EstimationOriginEnum["WEBSITE"] = "WEBSITE";
1729
1622
  EstimationOriginEnum["ARTICHO"] = "ARTICHO";
1730
1623
  })(EstimationOriginEnum || (EstimationOriginEnum = {}));
1731
-
1732
1624
  var EstimationTypeEnum;
1733
-
1734
1625
  (function (EstimationTypeEnum) {
1735
1626
  EstimationTypeEnum["KITCHEN"] = "KITCHEN";
1736
1627
  EstimationTypeEnum["BATHROOM"] = "BATHROOM";
@@ -1740,9 +1631,7 @@ var EstimationTypeEnum;
1740
1631
  EstimationTypeEnum["COMMERCIAL_LOCAL"] = "COMMERCIAL_LOCAL";
1741
1632
  EstimationTypeEnum["WITHOUT_ESTIMATION"] = "WITHOUT_ESTIMATION";
1742
1633
  })(EstimationTypeEnum || (EstimationTypeEnum = {}));
1743
-
1744
1634
  var EmailTemplate;
1745
-
1746
1635
  (function (EmailTemplate) {
1747
1636
  EmailTemplate["USER_INVITATION"] = "user-invitation";
1748
1637
  EmailTemplate["DOCUMENTS"] = "documents";
@@ -1763,24 +1652,18 @@ var EmailTemplate;
1763
1652
  EmailTemplate["EXPORT_LOGS"] = "export-logs";
1764
1653
  EmailTemplate["PLAN_VALIDATED"] = "plan-validated";
1765
1654
  })(EmailTemplate || (EmailTemplate = {}));
1766
-
1767
1655
  var DevisPdfType;
1768
-
1769
1656
  (function (DevisPdfType) {
1770
1657
  DevisPdfType["PROVIDER"] = "provider";
1771
1658
  DevisPdfType["PROFESSIONAL"] = "professional";
1772
1659
  DevisPdfType["ENTERPRISE"] = "enterprise";
1773
1660
  })(DevisPdfType || (DevisPdfType = {}));
1774
-
1775
1661
  var DevisContractingEntity;
1776
-
1777
1662
  (function (DevisContractingEntity) {
1778
1663
  DevisContractingEntity["PROVIDER"] = "provider";
1779
1664
  DevisContractingEntity["ENTERPRISE"] = "enterprise";
1780
1665
  })(DevisContractingEntity || (DevisContractingEntity = {}));
1781
-
1782
1666
  var EnterpriseStatusEnum;
1783
-
1784
1667
  (function (EnterpriseStatusEnum) {
1785
1668
  EnterpriseStatusEnum["INCOMPLETE"] = "incomplete";
1786
1669
  EnterpriseStatusEnum["INCOMPLETE_EXPIRED"] = "incomplete_expired";
@@ -1790,25 +1673,19 @@ var EnterpriseStatusEnum;
1790
1673
  EnterpriseStatusEnum["CANCELED"] = "canceled";
1791
1674
  EnterpriseStatusEnum["UNPAID"] = "unpaid";
1792
1675
  })(EnterpriseStatusEnum || (EnterpriseStatusEnum = {}));
1793
-
1794
1676
  var EnterpriseProductEnum;
1795
-
1796
1677
  (function (EnterpriseProductEnum) {
1797
1678
  EnterpriseProductEnum["STANDARD"] = "standard";
1798
1679
  EnterpriseProductEnum["PLUS"] = "plus";
1799
1680
  EnterpriseProductEnum["PREMIUM"] = "premium";
1800
1681
  })(EnterpriseProductEnum || (EnterpriseProductEnum = {}));
1801
-
1802
1682
  var EstimationStatusEnum;
1803
-
1804
1683
  (function (EstimationStatusEnum) {
1805
1684
  EstimationStatusEnum["WAITING"] = "WAITING";
1806
1685
  EstimationStatusEnum["APPROVED"] = "APPROVED";
1807
1686
  EstimationStatusEnum["REFUSED"] = "REFUSED";
1808
1687
  })(EstimationStatusEnum || (EstimationStatusEnum = {}));
1809
-
1810
1688
  var HistoryActionEnum;
1811
-
1812
1689
  (function (HistoryActionEnum) {
1813
1690
  HistoryActionEnum["EDIT"] = "EDIT";
1814
1691
  HistoryActionEnum["SEND_EMAIL"] = "SEND_EMAIL";
@@ -1831,9 +1708,7 @@ var HistoryActionEnum;
1831
1708
  HistoryActionEnum["INVALIDATE_PLAN"] = "INVALIDATE_PLAN";
1832
1709
  HistoryActionEnum["EDIT_USER_STATUS"] = "EDIT_USER_STATUS";
1833
1710
  })(HistoryActionEnum || (HistoryActionEnum = {}));
1834
-
1835
1711
  var HistoryEntityType;
1836
-
1837
1712
  (function (HistoryEntityType) {
1838
1713
  HistoryEntityType["PROJECT"] = "PROJECT";
1839
1714
  HistoryEntityType["NOTE"] = "NOTE";
@@ -1845,9 +1720,7 @@ var HistoryEntityType;
1845
1720
  HistoryEntityType["DEVIS"] = "DEVIS";
1846
1721
  HistoryEntityType["PROFILE"] = "PROFILE";
1847
1722
  })(HistoryEntityType || (HistoryEntityType = {}));
1848
-
1849
1723
  var CategoryEntityEnum;
1850
-
1851
1724
  (function (CategoryEntityEnum) {
1852
1725
  CategoryEntityEnum["MATERIAL"] = "MATERIAL";
1853
1726
  CategoryEntityEnum["OPERATION"] = "OPERATION";
@@ -1855,17 +1728,13 @@ var CategoryEntityEnum;
1855
1728
  CategoryEntityEnum["IMAGE_LIBRARY"] = "IMAGE_LIBRARY";
1856
1729
  CategoryEntityEnum["DEVIS_TEMPLATE"] = "DEVIS_TEMPLATE";
1857
1730
  })(CategoryEntityEnum || (CategoryEntityEnum = {}));
1858
-
1859
1731
  var DevisTemplateCatProvider;
1860
-
1861
1732
  (function (DevisTemplateCatProvider) {
1862
1733
  DevisTemplateCatProvider["BASIC"] = "BASIC";
1863
1734
  DevisTemplateCatProvider["ADVANCED_PIECE"] = "ADVANCED_PIECE";
1864
1735
  DevisTemplateCatProvider["ADVANCED_LOT"] = "ADVANCED_LOT";
1865
1736
  })(DevisTemplateCatProvider || (DevisTemplateCatProvider = {}));
1866
-
1867
1737
  var NomenclaturesIdentifier;
1868
-
1869
1738
  (function (NomenclaturesIdentifier) {
1870
1739
  NomenclaturesIdentifier["OPERATIONS_SECTOR"] = "OPERATIONS_SECTOR";
1871
1740
  NomenclaturesIdentifier["OPERATIONS_PIECE"] = "OPERATIONS_PIECE";
@@ -1882,9 +1751,7 @@ var NomenclaturesIdentifier;
1882
1751
  NomenclaturesIdentifier["EMAILS_COMMENTS_MODELS"] = "EMAILS_COMMENTS_MODELS";
1883
1752
  NomenclaturesIdentifier["PAYMENT_PLANNING"] = "PAYMENT_PLANNING";
1884
1753
  })(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
1885
-
1886
1754
  var BarCodeEnum;
1887
-
1888
1755
  (function (BarCodeEnum) {
1889
1756
  BarCodeEnum["CODE128"] = "code128";
1890
1757
  BarCodeEnum["EAN13"] = "ean13";
@@ -1897,27 +1764,21 @@ var BarCodeEnum;
1897
1764
  BarCodeEnum["MSI"] = "msi";
1898
1765
  BarCodeEnum["PHARMACODE"] = "pharmacode";
1899
1766
  })(BarCodeEnum || (BarCodeEnum = {}));
1900
-
1901
1767
  var OperationQuantityEnum;
1902
-
1903
1768
  (function (OperationQuantityEnum) {
1904
1769
  OperationQuantityEnum["NOT_DEFINED"] = "NOT_DEFINED";
1905
1770
  OperationQuantityEnum["PERIMETER"] = "PERIMETER";
1906
1771
  OperationQuantityEnum["GROUND_CEILING_SURFACE"] = "GROUND_CEILING_SURFACE";
1907
1772
  OperationQuantityEnum["WALL_SURFACE"] = "WALL_SURFACE";
1908
1773
  })(OperationQuantityEnum || (OperationQuantityEnum = {}));
1909
-
1910
1774
  var OperationRulesEnum;
1911
-
1912
1775
  (function (OperationRulesEnum) {
1913
1776
  OperationRulesEnum["BIGGER_THAN"] = "BIGGER_THAN";
1914
1777
  OperationRulesEnum["LOWER_THAN"] = "LOWER_THAN";
1915
1778
  OperationRulesEnum["EQUAL_TO"] = "EQUAL_TO";
1916
1779
  OperationRulesEnum["BETWEEN"] = "BETWEEN";
1917
1780
  })(OperationRulesEnum || (OperationRulesEnum = {}));
1918
-
1919
1781
  var ItemResponsible;
1920
-
1921
1782
  (function (ItemResponsible) {
1922
1783
  ItemResponsible["NONE"] = "NONE";
1923
1784
  ItemResponsible["CLIENT"] = "CLIENT";
@@ -1927,33 +1788,25 @@ var ItemResponsible;
1927
1788
  ItemResponsible["ENTERPRISE"] = "ENTERPRISE";
1928
1789
  ItemResponsible["PROVIDER"] = "PROVIDER";
1929
1790
  })(ItemResponsible || (ItemResponsible = {}));
1930
-
1931
1791
  var ProjectPriceTypeEnum;
1932
-
1933
1792
  (function (ProjectPriceTypeEnum) {
1934
1793
  ProjectPriceTypeEnum["accepted"] = "accepted";
1935
1794
  ProjectPriceTypeEnum["prospected"] = "prospected";
1936
1795
  ProjectPriceTypeEnum["rejected"] = "rejected";
1937
1796
  })(ProjectPriceTypeEnum || (ProjectPriceTypeEnum = {}));
1938
-
1939
1797
  var DevisFormatEnum;
1940
-
1941
1798
  (function (DevisFormatEnum) {
1942
1799
  DevisFormatEnum["PIECE"] = "PIECE";
1943
1800
  DevisFormatEnum["LOT"] = "LOT";
1944
1801
  })(DevisFormatEnum || (DevisFormatEnum = {}));
1945
-
1946
1802
  var ConfigurationsIdentifier;
1947
-
1948
1803
  (function (ConfigurationsIdentifier) {
1949
1804
  ConfigurationsIdentifier["ADMIN_FORM"] = "ADMIN_FORM";
1950
1805
  ConfigurationsIdentifier["PROS_FORM"] = "PROS_FORM";
1951
1806
  ConfigurationsIdentifier["AGENTS_FORM"] = "AGENTS_FORM";
1952
1807
  ConfigurationsIdentifier["SELLERS_FORM"] = "SELLERS_FORM";
1953
1808
  })(ConfigurationsIdentifier || (ConfigurationsIdentifier = {}));
1954
-
1955
1809
  var ConfigurationFieldType;
1956
-
1957
1810
  (function (ConfigurationFieldType) {
1958
1811
  ConfigurationFieldType["TEXT"] = "users.admins.configPanel.inputType.text";
1959
1812
  ConfigurationFieldType["PASSWORD"] = "users.admins.configPanel.inputType.password";
@@ -1964,24 +1817,18 @@ var ConfigurationFieldType;
1964
1817
  ConfigurationFieldType["SELECT_MULTI"] = "users.admins.configPanel.inputType.selectMulti";
1965
1818
  ConfigurationFieldType["GOOGLE_LOCATION"] = "users.admins.configPanel.inputType.googleLocation";
1966
1819
  })(ConfigurationFieldType || (ConfigurationFieldType = {}));
1967
-
1968
1820
  var LogsIdentifier;
1969
-
1970
1821
  (function (LogsIdentifier) {
1971
1822
  LogsIdentifier["EXPORT_DATA"] = "EXPORT_DATA";
1972
1823
  })(LogsIdentifier || (LogsIdentifier = {}));
1973
-
1974
1824
  var QueryIdentifier;
1975
-
1976
1825
  (function (QueryIdentifier) {
1977
1826
  QueryIdentifier["EXPORT_EVENTS"] = "EXPORT_EVENTS";
1978
1827
  QueryIdentifier["EXPORT_BILLS"] = "EXPORT_BILLS";
1979
1828
  QueryIdentifier["EXPORT_DEVIS"] = "EXPORT_DEVIS";
1980
1829
  QueryIdentifier["EXPORT_PROJECTS"] = "EXPORT_PROJECTS";
1981
1830
  })(QueryIdentifier || (QueryIdentifier = {}));
1982
-
1983
1831
  var BillIssuedReasons;
1984
-
1985
1832
  (function (BillIssuedReasons) {
1986
1833
  BillIssuedReasons["CREDIT_NOTE_ADMINISTRATIVE"] = "CREDIT_NOTE_ADMINISTRATIVE";
1987
1834
  BillIssuedReasons["CREDIT_NOTE_OPERATIONAL"] = "CREDIT_NOTE_OPERATIONAL";
@@ -2062,18 +1909,15 @@ var types = {
2062
1909
  function isBuffer(obj) {
2063
1910
  return obj && obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj);
2064
1911
  }
2065
-
2066
1912
  function keyIdentity(key) {
2067
1913
  return key;
2068
1914
  }
2069
-
2070
1915
  function flatten(target, options) {
2071
1916
  var opts = options || {};
2072
1917
  var delimiter = opts.delimiter || '.';
2073
1918
  var maxDepth = opts.maxDepth;
2074
1919
  var transformKey = opts.transformKey || keyIdentity;
2075
1920
  var output = {};
2076
-
2077
1921
  function step(object, prev, currentDepth) {
2078
1922
  var depth = currentDepth || 1;
2079
1923
  Object.keys(object).forEach(function (key) {
@@ -2083,15 +1927,12 @@ function flatten(target, options) {
2083
1927
  var isbuffer = isBuffer(value);
2084
1928
  var isobject = type === '[object Object]' || type === '[object Array]';
2085
1929
  var newKey = prev ? prev + delimiter + transformKey(key) : transformKey(key);
2086
-
2087
1930
  if (!isarray && !isbuffer && isobject && Object.keys(value).length && (!maxDepth || depth < maxDepth)) {
2088
1931
  step(value, newKey, depth + 1);
2089
1932
  }
2090
-
2091
1933
  output[newKey] = value;
2092
1934
  });
2093
1935
  }
2094
-
2095
1936
  step(target, null, 0);
2096
1937
  return output;
2097
1938
  }