@placeshakr/config 10.19.33-alpha.0 → 10.19.33-alpha.11

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 = {
@@ -148,6 +155,7 @@ var productionEnvironment = {
148
155
  counters: 'counters',
149
156
  invoices: 'enterprises/{enterpriseId}/invoices',
150
157
  materialsProvider: 'enterprises/{enterpriseId}/materialsProvider',
158
+ materials: 'enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}/materials',
151
159
  invitations: 'enterprises/{enterpriseId}/invitations',
152
160
  devisTemplates: 'enterprises/{enterpriseId}/devisTemplates',
153
161
  estimations: 'enterprises/{enterpriseId}/estimations',
@@ -157,8 +165,11 @@ var productionEnvironment = {
157
165
  indexes: 'enterprises/{enterpriseId}/indexes',
158
166
  notifications: 'enterprises/{enterpriseId}/notifications',
159
167
  nomenclatures: 'enterprises/{enterpriseId}/nomenclatures',
168
+ categories: 'enterprises/{enterpriseId}/categories',
160
169
  operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs',
161
170
  operationsGroups: 'enterprises/{enterpriseId}/operationsGroups',
171
+ operations: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations',
172
+ operationMaterials: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}/materials',
162
173
  devisVersions: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions',
163
174
  enterpriseDocuments: 'enterprises/{enterpriseId}/documents',
164
175
  enterpriseMedias: 'enterprises/{enterpriseId}/medias',
@@ -196,6 +207,7 @@ var productionEnvironment = {
196
207
  counter: 'counters/{counterId}',
197
208
  invoice: 'enterprises/{enterpriseId}/invoices/{invoiceId}',
198
209
  materialsProvider: 'enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}',
210
+ material: 'enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}/materials/{materialId}',
199
211
  invitation: 'enterprises/{enterpriseId}/invitations/{invitationId}',
200
212
  devisTemplate: 'enterprises/{enterpriseId}/devisTemplates/{devisTemplateId}',
201
213
  estimation: 'enterprises/{enterpriseId}/estimations/{estimationId}',
@@ -204,8 +216,11 @@ var productionEnvironment = {
204
216
  receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}',
205
217
  notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
206
218
  nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}',
219
+ category: 'enterprises/{enterpriseId}/categories/{categoryId}',
207
220
  operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}',
208
221
  operationsGroups: 'enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}',
222
+ operation: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}',
223
+ operationMaterial: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}/operations/{operationId}/materials/{operationMaterialId}',
209
224
  devisVersion: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions/{versionId}',
210
225
  enterpriseDocument: 'enterprises/{enterpriseId}/documents/{documentId}',
211
226
  enterpriseMedia: 'enterprises/{enterpriseId}/medias/{mediaId}',
@@ -445,20 +460,17 @@ var productionEnvironment = {
445
460
  };
446
461
 
447
462
  function _extends() {
448
- _extends = Object.assign || function (target) {
463
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
449
464
  for (var i = 1; i < arguments.length; i++) {
450
465
  var source = arguments[i];
451
-
452
466
  for (var key in source) {
453
467
  if (Object.prototype.hasOwnProperty.call(source, key)) {
454
468
  target[key] = source[key];
455
469
  }
456
470
  }
457
471
  }
458
-
459
472
  return target;
460
473
  };
461
-
462
474
  return _extends.apply(this, arguments);
463
475
  }
464
476
 
@@ -468,14 +480,12 @@ var dev = function dev(base) {
468
480
  name: 'development'
469
481
  });
470
482
  };
471
-
472
483
  var staging = function staging(base) {
473
484
  return _extends({}, base, {
474
485
  isTest: false,
475
486
  name: 'staging'
476
487
  });
477
488
  };
478
-
479
489
  var test = function test(base) {
480
490
  return _extends({}, base, {
481
491
  schema: _extends({}, base.schema, {
@@ -515,7 +525,6 @@ var test = function test(base) {
515
525
  name: 'test'
516
526
  });
517
527
  };
518
-
519
528
  var emulator = function emulator(base) {
520
529
  return _extends({}, base, {
521
530
  schema: _extends({}, base.schema, {
@@ -568,25 +577,18 @@ var emulator = function emulator(base) {
568
577
  *
569
578
  * @param envName
570
579
  */
571
-
572
-
573
580
  var getEnv = function getEnv(envName) {
574
581
  switch (envName) {
575
582
  case exports.Environments.dev:
576
583
  return dev(productionEnvironment);
577
-
578
584
  case exports.Environments.staging:
579
585
  return staging(productionEnvironment);
580
-
581
586
  case exports.Environments.production:
582
587
  return productionEnvironment;
583
-
584
588
  case exports.Environments.test:
585
589
  return test(productionEnvironment);
586
-
587
590
  case exports.Environments.emulator:
588
591
  return emulator(productionEnvironment);
589
-
590
592
  default:
591
593
  return productionEnvironment;
592
594
  }
@@ -638,13 +640,17 @@ var helpers = {
638
640
  histories: /*#__PURE__*/FactoryCreateFunction(),
639
641
  receptionVoucher: /*#__PURE__*/FactoryCreateFunction(),
640
642
  nomenclatures: /*#__PURE__*/FactoryCreateFunction(),
643
+ categories: /*#__PURE__*/FactoryCreateFunction(),
641
644
  operationsCatalog: /*#__PURE__*/FactoryCreateFunction(),
645
+ operations: /*#__PURE__*/FactoryCreateFunction(),
646
+ operationMaterials: /*#__PURE__*/FactoryCreateFunction(),
642
647
  operationsGroups: /*#__PURE__*/FactoryCreateFunction(),
643
648
  devisVersions: /*#__PURE__*/FactoryCreateFunction(),
644
649
  enterpriseDocuments: /*#__PURE__*/FactoryCreateFunction(),
645
650
  enterpriseMedias: /*#__PURE__*/FactoryCreateFunction(),
646
651
  configurations: /*#__PURE__*/FactoryCreateFunction(),
647
- systemVersions: /*#__PURE__*/FactoryCreateFunction()
652
+ systemVersions: /*#__PURE__*/FactoryCreateFunction(),
653
+ indexes: /*#__PURE__*/FactoryCreateFunction()
648
654
  };
649
655
 
650
656
  /**
@@ -668,13 +674,13 @@ var uid = {
668
674
  generate: /*#__PURE__*/function () {
669
675
  // Timestamp of last push, used to prevent local
670
676
  // collisions if you push twice in one ms.
671
- var lastPushTime = 0; // We generate 72-bits of randomness which get
677
+ var lastPushTime = 0;
678
+ // We generate 72-bits of randomness which get
672
679
  // turned into 12 characters and appended to the
673
680
  // timestamp to prevent collisions with other clients.
674
681
  // We store the last characters we generated because
675
682
  // in the event of a collision, we'll use those same
676
683
  // characters except "incremented" by one.
677
-
678
684
  var lastRandChars = [];
679
685
  return function () {
680
686
  var now = new Date().getTime();
@@ -682,41 +688,35 @@ var uid = {
682
688
  lastPushTime = now;
683
689
  var timeStampChars = new Array(8);
684
690
  var i;
685
-
686
691
  for (i = 7; i >= 0; i--) {
687
- 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
688
694
  // will convert to int and lose the upper bits.
689
-
690
695
  now = Math.floor(now / 62);
691
696
  }
692
-
693
697
  if (now !== 0) throw new Error('We should have converted the entire timestamp.');
694
698
  var id = timeStampChars.join('');
695
-
696
699
  if (!duplicateTime) {
697
700
  for (i = 0; i < 12; i++) {
698
701
  lastRandChars[i] = Math.floor(Math.random() * 62);
699
702
  }
700
- } // If the timestamp hasn't changed since
703
+ }
704
+ // If the timestamp hasn't changed since
701
705
  // last push, use the same random number,
702
706
  // except incremented by 1.
703
707
  else {
704
708
  for (i = 11; i >= 0 && lastRandChars[i] === 61; i--) {
705
709
  lastRandChars[i] = 0;
706
710
  }
707
-
708
711
  lastRandChars[i]++;
709
712
  }
710
-
711
713
  for (i = 0; i < 12; i++) {
712
714
  id += ASCII_CHARS.charAt(lastRandChars[i]);
713
715
  }
714
-
715
716
  if (id.length !== 20) throw new Error('Length should be 20.');
716
717
  return id;
717
718
  };
718
719
  }(),
719
-
720
720
  /**
721
721
  * Timestamp
722
722
  * Gets timestamp from provided uid.
@@ -725,11 +725,9 @@ var uid = {
725
725
  return function (id, asDate) {
726
726
  var time = 0;
727
727
  var data = id.substring(0, 8);
728
-
729
728
  for (var i = 0; i < 8; i++) {
730
729
  time = time * 62 + ASCII_CHARS.indexOf(data[i]);
731
730
  }
732
-
733
731
  if (asDate) return new Date(time);
734
732
  return time;
735
733
  };
@@ -761,27 +759,21 @@ var getPath = function getPath(path, params) {
761
759
  if (params === void 0) {
762
760
  params = {};
763
761
  }
764
-
765
762
  var regex = new RegExp(/\{(\w+)\}*/gm);
766
763
  var m;
767
764
  var generatedPath = path.toString();
768
-
769
765
  do {
770
766
  m = regex.exec(generatedPath);
771
-
772
767
  if (m) {
773
768
  var _m = m,
774
- match = _m[0],
775
- paramName = _m[1];
776
-
769
+ match = _m[0],
770
+ paramName = _m[1];
777
771
  if (!params.hasOwnProperty(paramName)) {
778
772
  throw new Error("Param \"" + paramName + "\" is missing from path params");
779
773
  }
780
-
781
774
  generatedPath = generatedPath.split(match).join(String(params[paramName]));
782
775
  }
783
776
  } while (m !== null);
784
-
785
777
  return generatedPath;
786
778
  };
787
779
 
@@ -899,7 +891,8 @@ var createProducts = function createProducts(params) {
899
891
  tax_rates: params.plus.tax_rates
900
892
  },
901
893
  tariffs: params.plus.tariffs
902
- } // test_1: {
894
+ }
895
+ // test_1: {
903
896
  // id: params.test_1.id,
904
897
  // internal: 'test_1',
905
898
  // product: {
@@ -1035,8 +1028,8 @@ var createProducts = function createProducts(params) {
1035
1028
  // },
1036
1029
  // tariffs: params.test_4.tariffs,
1037
1030
  // },
1038
-
1039
1031
  };
1032
+
1040
1033
  return products;
1041
1034
  };
1042
1035
 
@@ -1087,13 +1080,14 @@ var testing = {
1087
1080
  usageType: 'licensed',
1088
1081
  type: 'base'
1089
1082
  }
1090
- } // prices: {
1083
+ }
1084
+ // prices: {
1091
1085
  // monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
1092
1086
  // additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe',
1093
1087
  // },
1094
1088
  // additionalUserPrice: 10,
1095
-
1096
1089
  },
1090
+
1097
1091
  plus: {
1098
1092
  id: 'prod_KzmyY1ysEOeK93',
1099
1093
  tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
@@ -1105,7 +1099,8 @@ var testing = {
1105
1099
  type: 'base'
1106
1100
  }
1107
1101
  }
1108
- } // test_1: {
1102
+ }
1103
+ // test_1: {
1109
1104
  // id: 'prod_L2ZqDUzF0HFuFN',
1110
1105
  // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1111
1106
  // tariffs: {
@@ -1145,8 +1140,8 @@ var testing = {
1145
1140
  // additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
1146
1141
  // },
1147
1142
  // },
1148
-
1149
1143
  };
1144
+
1150
1145
  var production = {
1151
1146
  classic: {
1152
1147
  id: 'prod_KzmYFhrWXrzWdR',
@@ -1207,7 +1202,8 @@ var production = {
1207
1202
  type: 'base'
1208
1203
  }
1209
1204
  }
1210
- } // test_1: {
1205
+ }
1206
+ // test_1: {
1211
1207
  // id: 'prod_L2ZqDUzF0HFuFN',
1212
1208
  // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1213
1209
  // tariffs: {
@@ -1247,20 +1243,17 @@ var production = {
1247
1243
  // additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
1248
1244
  // },
1249
1245
  // },
1250
-
1251
1246
  };
1252
1247
  /**
1253
1248
  *
1254
1249
  * @param envName
1255
1250
  */
1256
-
1257
1251
  var index$1 = (function (envName) {
1258
1252
  if (envName === 'production') return createProducts(production);
1259
1253
  return createProducts(testing);
1260
1254
  });
1261
1255
 
1262
1256
  var ROLE;
1263
-
1264
1257
  (function (ROLE) {
1265
1258
  ROLE["CLIENT"] = "client";
1266
1259
  ROLE["SELLER"] = "seller";
@@ -1270,33 +1263,25 @@ var ROLE;
1270
1263
  ROLE["OWNER"] = "owner";
1271
1264
  ROLE["SUPERADMIN"] = "superadmin";
1272
1265
  })(ROLE || (ROLE = {}));
1273
-
1274
1266
  var VisitReportStatus;
1275
-
1276
1267
  (function (VisitReportStatus) {
1277
1268
  VisitReportStatus["IN_PROGRESS"] = "IN_PROGRESS";
1278
1269
  VisitReportStatus["VALID"] = "VALID";
1279
1270
  })(VisitReportStatus || (VisitReportStatus = {}));
1280
-
1281
1271
  var DevisCommissionsEntity;
1282
-
1283
1272
  (function (DevisCommissionsEntity) {
1284
1273
  DevisCommissionsEntity["pro"] = "pro";
1285
1274
  DevisCommissionsEntity["provider"] = "provider";
1286
1275
  DevisCommissionsEntity["enterprise"] = "enterprise";
1287
1276
  })(DevisCommissionsEntity || (DevisCommissionsEntity = {}));
1288
-
1289
1277
  var DevisHistoryType;
1290
-
1291
1278
  (function (DevisHistoryType) {
1292
1279
  DevisHistoryType["CHANGE_STATUS"] = "CHANGE_STATUS";
1293
1280
  DevisHistoryType["SENT_TO_CLIENT"] = "SENT_TO_CLIENT";
1294
1281
  DevisHistoryType["EMAIL_EVENT"] = "EMAIL_EVENT";
1295
1282
  DevisHistoryType["NEW_VERSION"] = "NEW_VERSION";
1296
1283
  })(DevisHistoryType || (DevisHistoryType = {}));
1297
-
1298
1284
  var DevisDocSectionEnum;
1299
-
1300
1285
  (function (DevisDocSectionEnum) {
1301
1286
  DevisDocSectionEnum["PRESENTATION"] = "PRESENTATION";
1302
1287
  DevisDocSectionEnum["RESUME"] = "RESUME";
@@ -1311,62 +1296,48 @@ var DevisDocSectionEnum;
1311
1296
  DevisDocSectionEnum["CGV"] = "CGV";
1312
1297
  DevisDocSectionEnum["CERFA_CERTIFICATE"] = "CERFA_CERTIFICATE";
1313
1298
  })(DevisDocSectionEnum || (DevisDocSectionEnum = {}));
1314
-
1315
1299
  var DevisDocColorEnum;
1316
-
1317
1300
  (function (DevisDocColorEnum) {
1318
1301
  DevisDocColorEnum["PRIMARY"] = "PRIMARY";
1319
1302
  DevisDocColorEnum["SECONDARY"] = "SECONDARY";
1320
1303
  })(DevisDocColorEnum || (DevisDocColorEnum = {}));
1321
-
1322
1304
  var DevisDocDurationEnum;
1323
-
1324
1305
  (function (DevisDocDurationEnum) {
1325
1306
  DevisDocDurationEnum["DAYS"] = "DAYS";
1326
1307
  DevisDocDurationEnum["WEEKS"] = "WEEKS";
1327
1308
  DevisDocDurationEnum["MONTHS"] = "MONTHS";
1328
1309
  DevisDocDurationEnum["YEARS"] = "YEARS";
1329
1310
  })(DevisDocDurationEnum || (DevisDocDurationEnum = {}));
1330
-
1331
1311
  var MaterialsProviderType;
1332
-
1333
1312
  (function (MaterialsProviderType) {
1334
1313
  // created by the enterprises and use algolia index 'materials'
1335
- MaterialsProviderType["INTERNAL"] = "internal"; // any catalog that needs an external connection
1336
-
1337
- MaterialsProviderType["API"] = "api"; // every catalog created on the super-admin and use algolia index 'system-materials'
1338
-
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'
1339
1318
  MaterialsProviderType["SYSTEM"] = "system";
1340
1319
  })(MaterialsProviderType || (MaterialsProviderType = {}));
1341
-
1342
1320
  var ProjectType;
1343
-
1344
1321
  (function (ProjectType) {
1345
1322
  ProjectType["ONE_PIECE"] = "ONE_PIECE";
1346
1323
  ProjectType["FULL"] = "FULL";
1347
1324
  ProjectType["COMPOUND"] = "COMPOUND";
1348
1325
  ProjectType["CHILD"] = "CHILD";
1349
1326
  })(ProjectType || (ProjectType = {}));
1350
-
1351
1327
  var OperationStatusEnum;
1352
-
1353
1328
  (function (OperationStatusEnum) {
1354
1329
  OperationStatusEnum["TODO"] = "TODO";
1355
1330
  OperationStatusEnum["INPROGRESS"] = "INPROGRESS";
1356
1331
  OperationStatusEnum["DONE"] = "DONE";
1357
1332
  })(OperationStatusEnum || (OperationStatusEnum = {}));
1358
-
1359
1333
  var NotesType;
1360
-
1361
1334
  (function (NotesType) {
1362
1335
  NotesType["NOTE"] = "NOTE";
1363
1336
  NotesType["PROBLEM"] = "PROBLEM";
1364
1337
  NotesType["IMPORTANT"] = "IMPORTANT";
1365
1338
  NotesType["DELIVERY"] = "DELIVERY";
1366
1339
  })(NotesType || (NotesType = {}));
1367
-
1368
1340
  var NotificationType;
1369
-
1370
1341
  (function (NotificationType) {
1371
1342
  NotificationType[NotificationType["SUCCESS"] = 0] = "SUCCESS";
1372
1343
  NotificationType[NotificationType["INFO"] = 1] = "INFO";
@@ -1374,9 +1345,7 @@ var NotificationType;
1374
1345
  NotificationType[NotificationType["DANGER"] = 3] = "DANGER";
1375
1346
  NotificationType[NotificationType["TOAST"] = 4] = "TOAST";
1376
1347
  })(NotificationType || (NotificationType = {}));
1377
-
1378
1348
  var DevisStatusEnum;
1379
-
1380
1349
  (function (DevisStatusEnum) {
1381
1350
  DevisStatusEnum["CREATED"] = "CREATED";
1382
1351
  DevisStatusEnum["SENT"] = "SENT";
@@ -1384,44 +1353,34 @@ var DevisStatusEnum;
1384
1353
  DevisStatusEnum["REFUSED"] = "REFUSED";
1385
1354
  DevisStatusEnum["ABANDONED"] = "ABANDONED";
1386
1355
  })(DevisStatusEnum || (DevisStatusEnum = {}));
1387
-
1388
1356
  var DevisTypeEnum;
1389
-
1390
1357
  (function (DevisTypeEnum) {
1391
1358
  DevisTypeEnum["DEVIS"] = "DEVIS";
1392
1359
  DevisTypeEnum["SAV"] = "SAV";
1393
1360
  DevisTypeEnum["TS"] = "TS";
1394
1361
  })(DevisTypeEnum || (DevisTypeEnum = {}));
1395
-
1396
1362
  var DevisViewMode;
1397
-
1398
1363
  (function (DevisViewMode) {
1399
1364
  DevisViewMode[DevisViewMode["HOME"] = 0] = "HOME";
1400
1365
  DevisViewMode[DevisViewMode["GENERAL"] = 1] = "GENERAL";
1401
1366
  DevisViewMode[DevisViewMode["PRO"] = 2] = "PRO";
1402
1367
  DevisViewMode[DevisViewMode["CLIENT"] = 3] = "CLIENT";
1403
1368
  })(DevisViewMode || (DevisViewMode = {}));
1404
-
1405
1369
  var DevisPdfSectionEnum;
1406
-
1407
1370
  (function (DevisPdfSectionEnum) {
1408
1371
  DevisPdfSectionEnum["FINANCIAL_HELP"] = "FINANCIAL_HELP";
1409
1372
  DevisPdfSectionEnum["PROJECT"] = "PROJECT";
1410
1373
  DevisPdfSectionEnum["CLIENT"] = "CLIENT";
1411
1374
  DevisPdfSectionEnum["PROJECT_MANAGER"] = "PROJECT_MANAGER";
1412
1375
  })(DevisPdfSectionEnum || (DevisPdfSectionEnum = {}));
1413
-
1414
1376
  var DocumentsTypeEnum;
1415
-
1416
1377
  (function (DocumentsTypeEnum) {
1417
1378
  DocumentsTypeEnum["DEVIS"] = "DEVIS";
1418
1379
  DocumentsTypeEnum["DOCUMENT"] = "DOCUMENT";
1419
1380
  DocumentsTypeEnum["CLIENT"] = "CLIENT";
1420
1381
  DocumentsTypeEnum["OTHER"] = "OTHER";
1421
1382
  })(DocumentsTypeEnum || (DocumentsTypeEnum = {}));
1422
-
1423
1383
  var EventsTypeEnum;
1424
-
1425
1384
  (function (EventsTypeEnum) {
1426
1385
  EventsTypeEnum["OTHER"] = "AUTRE";
1427
1386
  EventsTypeEnum["VISIT"] = "VISIT";
@@ -1431,23 +1390,17 @@ var EventsTypeEnum;
1431
1390
  EventsTypeEnum["TECHNICAL_STATEMENT"] = "TECHNICAL_STATEMENT";
1432
1391
  EventsTypeEnum["TS_DESIGN"] = "TS_DESIGN";
1433
1392
  })(EventsTypeEnum || (EventsTypeEnum = {}));
1434
-
1435
1393
  var PaymentMethodTypeEnum;
1436
-
1437
1394
  (function (PaymentMethodTypeEnum) {
1438
1395
  PaymentMethodTypeEnum["CREDIT_CARD"] = "CREDIT_CARD";
1439
1396
  PaymentMethodTypeEnum["BANK_TRANSFERT"] = "BANK_TRANSFERT";
1440
1397
  })(PaymentMethodTypeEnum || (PaymentMethodTypeEnum = {}));
1441
-
1442
1398
  var BillDocTypeEnum;
1443
-
1444
1399
  (function (BillDocTypeEnum) {
1445
1400
  BillDocTypeEnum["BILL"] = "BILL";
1446
1401
  BillDocTypeEnum["PURCHASE_ORDER"] = "PURCHASE_ORDER";
1447
1402
  })(BillDocTypeEnum || (BillDocTypeEnum = {}));
1448
-
1449
1403
  var BillIssuedStatus;
1450
-
1451
1404
  (function (BillIssuedStatus) {
1452
1405
  BillIssuedStatus["PROVISIONAL"] = "PROVISIONAL";
1453
1406
  BillIssuedStatus["WAITING"] = "WAITING";
@@ -1457,9 +1410,7 @@ var BillIssuedStatus;
1457
1410
  BillIssuedStatus["BLOCKED"] = "BLOCKED";
1458
1411
  BillIssuedStatus["CANCELED"] = "CANCELED";
1459
1412
  })(BillIssuedStatus || (BillIssuedStatus = {}));
1460
-
1461
1413
  var BillReceivedStatus;
1462
-
1463
1414
  (function (BillReceivedStatus) {
1464
1415
  BillReceivedStatus["PROVISIONAL"] = "PROVISIONAL";
1465
1416
  BillReceivedStatus["WAITING_AGENT_VALIDATION"] = "WAITING_AGENT_VALIDATION";
@@ -1473,25 +1424,19 @@ var BillReceivedStatus;
1473
1424
  BillReceivedStatus["REFUSED"] = "REFUSED";
1474
1425
  BillReceivedStatus["BLOCKED"] = "BLOCKED";
1475
1426
  })(BillReceivedStatus || (BillReceivedStatus = {}));
1476
-
1477
1427
  var ReceptionVoucherStatus;
1478
-
1479
1428
  (function (ReceptionVoucherStatus) {
1480
1429
  ReceptionVoucherStatus["WAITING_AGENT_VALIDATION"] = "WAITING_AGENT_VALIDATION";
1481
1430
  ReceptionVoucherStatus["WAITING_ACCOUNT_VALIDATION"] = "WAITING_ACCOUNT_VALIDATION";
1482
1431
  ReceptionVoucherStatus["ACCEPTED"] = "ACCEPTED";
1483
1432
  ReceptionVoucherStatus["REFUSED"] = "REFUSED";
1484
1433
  })(ReceptionVoucherStatus || (ReceptionVoucherStatus = {}));
1485
-
1486
1434
  var BillType;
1487
-
1488
1435
  (function (BillType) {
1489
1436
  BillType["RECEIVED"] = "RECEIVED";
1490
1437
  BillType["ISSUED"] = "ISSUED";
1491
1438
  })(BillType || (BillType = {}));
1492
-
1493
1439
  var BillReceivedEntity;
1494
-
1495
1440
  (function (BillReceivedEntity) {
1496
1441
  BillReceivedEntity["PRO"] = "PRO";
1497
1442
  BillReceivedEntity["MATERIAL_PROVIDER"] = "MATERIAL_PROVIDER";
@@ -1499,16 +1444,12 @@ var BillReceivedEntity;
1499
1444
  BillReceivedEntity["PROVIDER"] = "PROVIDER";
1500
1445
  BillReceivedEntity["OTHER"] = "OTHER";
1501
1446
  })(BillReceivedEntity || (BillReceivedEntity = {}));
1502
-
1503
1447
  var BillReceivedType;
1504
-
1505
1448
  (function (BillReceivedType) {
1506
1449
  BillReceivedType["FACTURE"] = "FACTURE";
1507
1450
  BillReceivedType["CREDIT_NOTE"] = "CREDIT_NOTE";
1508
1451
  })(BillReceivedType || (BillReceivedType = {}));
1509
-
1510
1452
  var BillIssuedEntity;
1511
-
1512
1453
  (function (BillIssuedEntity) {
1513
1454
  BillIssuedEntity["CLIENT"] = "CLIENT";
1514
1455
  BillIssuedEntity["PRO"] = "PRO";
@@ -1517,18 +1458,14 @@ var BillIssuedEntity;
1517
1458
  BillIssuedEntity["SERVICE_PROVIDER"] = "SERVICE_PROVIDER";
1518
1459
  BillIssuedEntity["OTHER"] = "OTHER";
1519
1460
  })(BillIssuedEntity || (BillIssuedEntity = {}));
1520
-
1521
1461
  var BillIssuedType;
1522
-
1523
1462
  (function (BillIssuedType) {
1524
1463
  BillIssuedType["CUSTOM"] = "CUSTOM";
1525
1464
  BillIssuedType["DOWN_PAYMENT"] = "DOWN_PAYMENT";
1526
1465
  BillIssuedType["BALANCE"] = "BALANCE";
1527
1466
  BillIssuedType["CREDIT_NOTE"] = "CREDIT_NOTE";
1528
1467
  })(BillIssuedType || (BillIssuedType = {}));
1529
-
1530
1468
  var BillElementType;
1531
-
1532
1469
  (function (BillElementType) {
1533
1470
  BillElementType["ADVANCE"] = "ADVANCE";
1534
1471
  BillElementType["HOURS"] = "HOURS";
@@ -1537,32 +1474,24 @@ var BillElementType;
1537
1474
  BillElementType["SERVICE"] = "SERVICE";
1538
1475
  BillElementType["PROVIDER_COMMISSION"] = "PROVIDER_COMMISSION";
1539
1476
  })(BillElementType || (BillElementType = {}));
1540
-
1541
1477
  var BillDiscountType;
1542
-
1543
1478
  (function (BillDiscountType) {
1544
1479
  BillDiscountType["PERCENT"] = "PERCENT";
1545
1480
  BillDiscountType["MONEY"] = "MONEY";
1546
1481
  })(BillDiscountType || (BillDiscountType = {}));
1547
-
1548
1482
  var PaymentType;
1549
-
1550
1483
  (function (PaymentType) {
1551
1484
  PaymentType["CREDIT"] = "CREDIT";
1552
1485
  PaymentType["DEBIT"] = "DEBIT";
1553
1486
  })(PaymentType || (PaymentType = {}));
1554
-
1555
1487
  var ProjectTypeEnum;
1556
-
1557
1488
  (function (ProjectTypeEnum) {
1558
1489
  ProjectTypeEnum["ONE_PIECE"] = "ONE_PIECE";
1559
1490
  ProjectTypeEnum["FULL"] = "FULL";
1560
1491
  ProjectTypeEnum["COMPOUND"] = "COMPOUND";
1561
1492
  ProjectTypeEnum["CHILD"] = "CHILD";
1562
1493
  })(ProjectTypeEnum || (ProjectTypeEnum = {}));
1563
-
1564
1494
  var ProjectCategoriesEnum;
1565
-
1566
1495
  (function (ProjectCategoriesEnum) {
1567
1496
  ProjectCategoriesEnum["UNSPECIFIED"] = "UNSPECIFIED";
1568
1497
  ProjectCategoriesEnum["BATHROOM"] = "BATHROOM";
@@ -1581,9 +1510,7 @@ var ProjectCategoriesEnum;
1581
1510
  ProjectCategoriesEnum["OUTSIDE"] = "OUTSIDE";
1582
1511
  ProjectCategoriesEnum["COMMERCE"] = "COMMERCE";
1583
1512
  })(ProjectCategoriesEnum || (ProjectCategoriesEnum = {}));
1584
-
1585
1513
  var ProSpecialitiesEnum;
1586
-
1587
1514
  (function (ProSpecialitiesEnum) {
1588
1515
  ProSpecialitiesEnum["KITCHEN"] = "kitchen";
1589
1516
  ProSpecialitiesEnum["BATHROOM"] = "bathroom";
@@ -1592,12 +1519,10 @@ var ProSpecialitiesEnum;
1592
1519
  ProSpecialitiesEnum["ATTICS"] = "attics";
1593
1520
  ProSpecialitiesEnum["POOL"] = "swimming_pool";
1594
1521
  })(ProSpecialitiesEnum || (ProSpecialitiesEnum = {}));
1595
-
1596
1522
  var ProSkillsEnum;
1597
-
1598
1523
  (function (ProSkillsEnum) {
1599
1524
  ProSkillsEnum["ELECTRICITY"] = "electricity";
1600
- ProSkillsEnum["PLUMBIG"] = "plumbing";
1525
+ ProSkillsEnum["PLUMBING"] = "plumbing";
1601
1526
  ProSkillsEnum["CARPENTRY"] = "carpentry";
1602
1527
  ProSkillsEnum["MASONRY"] = "masonry";
1603
1528
  ProSkillsEnum["PAINTING"] = "painting";
@@ -1606,9 +1531,7 @@ var ProSkillsEnum;
1606
1531
  ProSkillsEnum["FRAME"] = "frame";
1607
1532
  ProSkillsEnum["INSULATION"] = "insulation";
1608
1533
  })(ProSkillsEnum || (ProSkillsEnum = {}));
1609
-
1610
1534
  var CommercialStatusEnum;
1611
-
1612
1535
  (function (CommercialStatusEnum) {
1613
1536
  CommercialStatusEnum["CONTRACTOR"] = "CONTRACTOR";
1614
1537
  CommercialStatusEnum["EIRL"] = "EIRL";
@@ -1617,9 +1540,7 @@ var CommercialStatusEnum;
1617
1540
  CommercialStatusEnum["SASU"] = "SASU";
1618
1541
  CommercialStatusEnum["SAS"] = "SAS";
1619
1542
  })(CommercialStatusEnum || (CommercialStatusEnum = {}));
1620
-
1621
1543
  var Origin;
1622
-
1623
1544
  (function (Origin) {
1624
1545
  Origin["PROVIDER"] = "provider";
1625
1546
  Origin["INTERNET"] = "internet";
@@ -1627,9 +1548,7 @@ var Origin;
1627
1548
  Origin["RUMOR"] = "rumor";
1628
1549
  Origin["PUBLICITY"] = "publicity";
1629
1550
  })(Origin || (Origin = {}));
1630
-
1631
1551
  var OrderMaterialStatus;
1632
-
1633
1552
  (function (OrderMaterialStatus) {
1634
1553
  OrderMaterialStatus["TODO"] = "TODO";
1635
1554
  OrderMaterialStatus["VALID"] = "VALID";
@@ -1638,27 +1557,21 @@ var OrderMaterialStatus;
1638
1557
  OrderMaterialStatus["RECEIVED"] = "RECEIVED";
1639
1558
  OrderMaterialStatus["ONSITE"] = "ONSITE";
1640
1559
  })(OrderMaterialStatus || (OrderMaterialStatus = {}));
1641
-
1642
1560
  var PhonesEnum;
1643
-
1644
1561
  (function (PhonesEnum) {
1645
1562
  PhonesEnum["MOBILE"] = "mobile";
1646
1563
  PhonesEnum["WORK"] = "work";
1647
1564
  PhonesEnum["LANDLINE"] = "landline";
1648
1565
  PhonesEnum["OTHER"] = "other";
1649
1566
  })(PhonesEnum || (PhonesEnum = {}));
1650
-
1651
1567
  var SendgridTemplates;
1652
-
1653
1568
  (function (SendgridTemplates) {
1654
1569
  SendgridTemplates["NOTES"] = "notes";
1655
1570
  SendgridTemplates["EVENTS"] = "events";
1656
1571
  SendgridTemplates["DOCUMENTS"] = "documents";
1657
1572
  SendgridTemplates["DEVIS"] = "devis";
1658
1573
  })(SendgridTemplates || (SendgridTemplates = {}));
1659
-
1660
1574
  var TermsOfPayment;
1661
-
1662
1575
  (function (TermsOfPayment) {
1663
1576
  TermsOfPayment["UPON_RECEIPT"] = "upon-receipt";
1664
1577
  TermsOfPayment["MONTH_END"] = "month-end";
@@ -1673,9 +1586,7 @@ var TermsOfPayment;
1673
1586
  TermsOfPayment["DAYS_90_END_MONTH"] = "90-days-end-month";
1674
1587
  TermsOfPayment["DAYS_120"] = "120-days";
1675
1588
  })(TermsOfPayment || (TermsOfPayment = {}));
1676
-
1677
1589
  var PaymentChoice;
1678
-
1679
1590
  (function (PaymentChoice) {
1680
1591
  PaymentChoice["UNSPECIFIED"] = "unspecified";
1681
1592
  PaymentChoice["CASH"] = "cash";
@@ -1689,9 +1600,7 @@ var PaymentChoice;
1689
1600
  PaymentChoice["BILL_EXCHANGE_WITHOUT_ACCEPTANCE"] = "bill-exchange-without-acceptance";
1690
1601
  PaymentChoice["PROMISSORY_NOTE"] = "promissory-note";
1691
1602
  })(PaymentChoice || (PaymentChoice = {}));
1692
-
1693
1603
  var LateInterest;
1694
-
1695
1604
  (function (LateInterest) {
1696
1605
  LateInterest["NO_LATE_INTEREST"] = "No-late-interest";
1697
1606
  LateInterest["PER_MONTH_1"] = "1%-per-month";
@@ -1700,25 +1609,19 @@ var LateInterest;
1700
1609
  LateInterest["CURRENT_LEGAL_INTEREST_RATE"] = "current-legal-interest-rate";
1701
1610
  LateInterest["SPECIFY"] = "specify";
1702
1611
  })(LateInterest || (LateInterest = {}));
1703
-
1704
1612
  var ProfileStatus;
1705
-
1706
1613
  (function (ProfileStatus) {
1707
1614
  ProfileStatus["ACTIVE"] = "active";
1708
1615
  ProfileStatus["INACTIVE"] = "inactive";
1709
1616
  ProfileStatus["BLOCKED"] = "blocked";
1710
1617
  ProfileStatus["SUSPENDED"] = "suspended";
1711
1618
  })(ProfileStatus || (ProfileStatus = {}));
1712
-
1713
1619
  var EstimationOriginEnum;
1714
-
1715
1620
  (function (EstimationOriginEnum) {
1716
1621
  EstimationOriginEnum["WEBSITE"] = "WEBSITE";
1717
1622
  EstimationOriginEnum["ARTICHO"] = "ARTICHO";
1718
1623
  })(EstimationOriginEnum || (EstimationOriginEnum = {}));
1719
-
1720
1624
  var EstimationTypeEnum;
1721
-
1722
1625
  (function (EstimationTypeEnum) {
1723
1626
  EstimationTypeEnum["KITCHEN"] = "KITCHEN";
1724
1627
  EstimationTypeEnum["BATHROOM"] = "BATHROOM";
@@ -1728,9 +1631,7 @@ var EstimationTypeEnum;
1728
1631
  EstimationTypeEnum["COMMERCIAL_LOCAL"] = "COMMERCIAL_LOCAL";
1729
1632
  EstimationTypeEnum["WITHOUT_ESTIMATION"] = "WITHOUT_ESTIMATION";
1730
1633
  })(EstimationTypeEnum || (EstimationTypeEnum = {}));
1731
-
1732
1634
  var EmailTemplate;
1733
-
1734
1635
  (function (EmailTemplate) {
1735
1636
  EmailTemplate["USER_INVITATION"] = "user-invitation";
1736
1637
  EmailTemplate["DOCUMENTS"] = "documents";
@@ -1749,25 +1650,20 @@ var EmailTemplate;
1749
1650
  EmailTemplate["BILL"] = "bill";
1750
1651
  EmailTemplate["MEDIAS"] = "medias";
1751
1652
  EmailTemplate["EXPORT_LOGS"] = "export-logs";
1653
+ EmailTemplate["PLAN_VALIDATED"] = "plan-validated";
1752
1654
  })(EmailTemplate || (EmailTemplate = {}));
1753
-
1754
1655
  var DevisPdfType;
1755
-
1756
1656
  (function (DevisPdfType) {
1757
1657
  DevisPdfType["PROVIDER"] = "provider";
1758
1658
  DevisPdfType["PROFESSIONAL"] = "professional";
1759
1659
  DevisPdfType["ENTERPRISE"] = "enterprise";
1760
1660
  })(DevisPdfType || (DevisPdfType = {}));
1761
-
1762
1661
  var DevisContractingEntity;
1763
-
1764
1662
  (function (DevisContractingEntity) {
1765
1663
  DevisContractingEntity["PROVIDER"] = "provider";
1766
1664
  DevisContractingEntity["ENTERPRISE"] = "enterprise";
1767
1665
  })(DevisContractingEntity || (DevisContractingEntity = {}));
1768
-
1769
1666
  var EnterpriseStatusEnum;
1770
-
1771
1667
  (function (EnterpriseStatusEnum) {
1772
1668
  EnterpriseStatusEnum["INCOMPLETE"] = "incomplete";
1773
1669
  EnterpriseStatusEnum["INCOMPLETE_EXPIRED"] = "incomplete_expired";
@@ -1777,25 +1673,19 @@ var EnterpriseStatusEnum;
1777
1673
  EnterpriseStatusEnum["CANCELED"] = "canceled";
1778
1674
  EnterpriseStatusEnum["UNPAID"] = "unpaid";
1779
1675
  })(EnterpriseStatusEnum || (EnterpriseStatusEnum = {}));
1780
-
1781
1676
  var EnterpriseProductEnum;
1782
-
1783
1677
  (function (EnterpriseProductEnum) {
1784
1678
  EnterpriseProductEnum["STANDARD"] = "standard";
1785
1679
  EnterpriseProductEnum["PLUS"] = "plus";
1786
1680
  EnterpriseProductEnum["PREMIUM"] = "premium";
1787
1681
  })(EnterpriseProductEnum || (EnterpriseProductEnum = {}));
1788
-
1789
1682
  var EstimationStatusEnum;
1790
-
1791
1683
  (function (EstimationStatusEnum) {
1792
1684
  EstimationStatusEnum["WAITING"] = "WAITING";
1793
1685
  EstimationStatusEnum["APPROVED"] = "APPROVED";
1794
1686
  EstimationStatusEnum["REFUSED"] = "REFUSED";
1795
1687
  })(EstimationStatusEnum || (EstimationStatusEnum = {}));
1796
-
1797
1688
  var HistoryActionEnum;
1798
-
1799
1689
  (function (HistoryActionEnum) {
1800
1690
  HistoryActionEnum["EDIT"] = "EDIT";
1801
1691
  HistoryActionEnum["SEND_EMAIL"] = "SEND_EMAIL";
@@ -1818,9 +1708,7 @@ var HistoryActionEnum;
1818
1708
  HistoryActionEnum["INVALIDATE_PLAN"] = "INVALIDATE_PLAN";
1819
1709
  HistoryActionEnum["EDIT_USER_STATUS"] = "EDIT_USER_STATUS";
1820
1710
  })(HistoryActionEnum || (HistoryActionEnum = {}));
1821
-
1822
1711
  var HistoryEntityType;
1823
-
1824
1712
  (function (HistoryEntityType) {
1825
1713
  HistoryEntityType["PROJECT"] = "PROJECT";
1826
1714
  HistoryEntityType["NOTE"] = "NOTE";
@@ -1832,9 +1720,7 @@ var HistoryEntityType;
1832
1720
  HistoryEntityType["DEVIS"] = "DEVIS";
1833
1721
  HistoryEntityType["PROFILE"] = "PROFILE";
1834
1722
  })(HistoryEntityType || (HistoryEntityType = {}));
1835
-
1836
1723
  var CategoryEntityEnum;
1837
-
1838
1724
  (function (CategoryEntityEnum) {
1839
1725
  CategoryEntityEnum["MATERIAL"] = "MATERIAL";
1840
1726
  CategoryEntityEnum["OPERATION"] = "OPERATION";
@@ -1842,17 +1728,13 @@ var CategoryEntityEnum;
1842
1728
  CategoryEntityEnum["IMAGE_LIBRARY"] = "IMAGE_LIBRARY";
1843
1729
  CategoryEntityEnum["DEVIS_TEMPLATE"] = "DEVIS_TEMPLATE";
1844
1730
  })(CategoryEntityEnum || (CategoryEntityEnum = {}));
1845
-
1846
1731
  var DevisTemplateCatProvider;
1847
-
1848
1732
  (function (DevisTemplateCatProvider) {
1849
1733
  DevisTemplateCatProvider["BASIC"] = "BASIC";
1850
1734
  DevisTemplateCatProvider["ADVANCED_PIECE"] = "ADVANCED_PIECE";
1851
1735
  DevisTemplateCatProvider["ADVANCED_LOT"] = "ADVANCED_LOT";
1852
1736
  })(DevisTemplateCatProvider || (DevisTemplateCatProvider = {}));
1853
-
1854
1737
  var NomenclaturesIdentifier;
1855
-
1856
1738
  (function (NomenclaturesIdentifier) {
1857
1739
  NomenclaturesIdentifier["OPERATIONS_SECTOR"] = "OPERATIONS_SECTOR";
1858
1740
  NomenclaturesIdentifier["OPERATIONS_PIECE"] = "OPERATIONS_PIECE";
@@ -1869,9 +1751,7 @@ var NomenclaturesIdentifier;
1869
1751
  NomenclaturesIdentifier["EMAILS_COMMENTS_MODELS"] = "EMAILS_COMMENTS_MODELS";
1870
1752
  NomenclaturesIdentifier["PAYMENT_PLANNING"] = "PAYMENT_PLANNING";
1871
1753
  })(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
1872
-
1873
1754
  var BarCodeEnum;
1874
-
1875
1755
  (function (BarCodeEnum) {
1876
1756
  BarCodeEnum["CODE128"] = "code128";
1877
1757
  BarCodeEnum["EAN13"] = "ean13";
@@ -1884,27 +1764,21 @@ var BarCodeEnum;
1884
1764
  BarCodeEnum["MSI"] = "msi";
1885
1765
  BarCodeEnum["PHARMACODE"] = "pharmacode";
1886
1766
  })(BarCodeEnum || (BarCodeEnum = {}));
1887
-
1888
1767
  var OperationQuantityEnum;
1889
-
1890
1768
  (function (OperationQuantityEnum) {
1891
1769
  OperationQuantityEnum["NOT_DEFINED"] = "NOT_DEFINED";
1892
1770
  OperationQuantityEnum["PERIMETER"] = "PERIMETER";
1893
1771
  OperationQuantityEnum["GROUND_CEILING_SURFACE"] = "GROUND_CEILING_SURFACE";
1894
1772
  OperationQuantityEnum["WALL_SURFACE"] = "WALL_SURFACE";
1895
1773
  })(OperationQuantityEnum || (OperationQuantityEnum = {}));
1896
-
1897
1774
  var OperationRulesEnum;
1898
-
1899
1775
  (function (OperationRulesEnum) {
1900
1776
  OperationRulesEnum["BIGGER_THAN"] = "BIGGER_THAN";
1901
1777
  OperationRulesEnum["LOWER_THAN"] = "LOWER_THAN";
1902
1778
  OperationRulesEnum["EQUAL_TO"] = "EQUAL_TO";
1903
1779
  OperationRulesEnum["BETWEEN"] = "BETWEEN";
1904
1780
  })(OperationRulesEnum || (OperationRulesEnum = {}));
1905
-
1906
1781
  var ItemResponsible;
1907
-
1908
1782
  (function (ItemResponsible) {
1909
1783
  ItemResponsible["NONE"] = "NONE";
1910
1784
  ItemResponsible["CLIENT"] = "CLIENT";
@@ -1914,33 +1788,25 @@ var ItemResponsible;
1914
1788
  ItemResponsible["ENTERPRISE"] = "ENTERPRISE";
1915
1789
  ItemResponsible["PROVIDER"] = "PROVIDER";
1916
1790
  })(ItemResponsible || (ItemResponsible = {}));
1917
-
1918
1791
  var ProjectPriceTypeEnum;
1919
-
1920
1792
  (function (ProjectPriceTypeEnum) {
1921
1793
  ProjectPriceTypeEnum["accepted"] = "accepted";
1922
1794
  ProjectPriceTypeEnum["prospected"] = "prospected";
1923
1795
  ProjectPriceTypeEnum["rejected"] = "rejected";
1924
1796
  })(ProjectPriceTypeEnum || (ProjectPriceTypeEnum = {}));
1925
-
1926
1797
  var DevisFormatEnum;
1927
-
1928
1798
  (function (DevisFormatEnum) {
1929
1799
  DevisFormatEnum["PIECE"] = "PIECE";
1930
1800
  DevisFormatEnum["LOT"] = "LOT";
1931
1801
  })(DevisFormatEnum || (DevisFormatEnum = {}));
1932
-
1933
1802
  var ConfigurationsIdentifier;
1934
-
1935
1803
  (function (ConfigurationsIdentifier) {
1936
1804
  ConfigurationsIdentifier["ADMIN_FORM"] = "ADMIN_FORM";
1937
1805
  ConfigurationsIdentifier["PROS_FORM"] = "PROS_FORM";
1938
1806
  ConfigurationsIdentifier["AGENTS_FORM"] = "AGENTS_FORM";
1939
1807
  ConfigurationsIdentifier["SELLERS_FORM"] = "SELLERS_FORM";
1940
1808
  })(ConfigurationsIdentifier || (ConfigurationsIdentifier = {}));
1941
-
1942
1809
  var ConfigurationFieldType;
1943
-
1944
1810
  (function (ConfigurationFieldType) {
1945
1811
  ConfigurationFieldType["TEXT"] = "users.admins.configPanel.inputType.text";
1946
1812
  ConfigurationFieldType["PASSWORD"] = "users.admins.configPanel.inputType.password";
@@ -1951,24 +1817,18 @@ var ConfigurationFieldType;
1951
1817
  ConfigurationFieldType["SELECT_MULTI"] = "users.admins.configPanel.inputType.selectMulti";
1952
1818
  ConfigurationFieldType["GOOGLE_LOCATION"] = "users.admins.configPanel.inputType.googleLocation";
1953
1819
  })(ConfigurationFieldType || (ConfigurationFieldType = {}));
1954
-
1955
1820
  var LogsIdentifier;
1956
-
1957
1821
  (function (LogsIdentifier) {
1958
1822
  LogsIdentifier["EXPORT_DATA"] = "EXPORT_DATA";
1959
1823
  })(LogsIdentifier || (LogsIdentifier = {}));
1960
-
1961
1824
  var QueryIdentifier;
1962
-
1963
1825
  (function (QueryIdentifier) {
1964
1826
  QueryIdentifier["EXPORT_EVENTS"] = "EXPORT_EVENTS";
1965
1827
  QueryIdentifier["EXPORT_BILLS"] = "EXPORT_BILLS";
1966
1828
  QueryIdentifier["EXPORT_DEVIS"] = "EXPORT_DEVIS";
1967
1829
  QueryIdentifier["EXPORT_PROJECTS"] = "EXPORT_PROJECTS";
1968
1830
  })(QueryIdentifier || (QueryIdentifier = {}));
1969
-
1970
1831
  var BillIssuedReasons;
1971
-
1972
1832
  (function (BillIssuedReasons) {
1973
1833
  BillIssuedReasons["CREDIT_NOTE_ADMINISTRATIVE"] = "CREDIT_NOTE_ADMINISTRATIVE";
1974
1834
  BillIssuedReasons["CREDIT_NOTE_OPERATIONAL"] = "CREDIT_NOTE_OPERATIONAL";
@@ -2049,18 +1909,15 @@ var types = {
2049
1909
  function isBuffer(obj) {
2050
1910
  return obj && obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj);
2051
1911
  }
2052
-
2053
1912
  function keyIdentity(key) {
2054
1913
  return key;
2055
1914
  }
2056
-
2057
1915
  function flatten(target, options) {
2058
1916
  var opts = options || {};
2059
1917
  var delimiter = opts.delimiter || '.';
2060
1918
  var maxDepth = opts.maxDepth;
2061
1919
  var transformKey = opts.transformKey || keyIdentity;
2062
1920
  var output = {};
2063
-
2064
1921
  function step(object, prev, currentDepth) {
2065
1922
  var depth = currentDepth || 1;
2066
1923
  Object.keys(object).forEach(function (key) {
@@ -2070,15 +1927,12 @@ function flatten(target, options) {
2070
1927
  var isbuffer = isBuffer(value);
2071
1928
  var isobject = type === '[object Object]' || type === '[object Array]';
2072
1929
  var newKey = prev ? prev + delimiter + transformKey(key) : transformKey(key);
2073
-
2074
1930
  if (!isarray && !isbuffer && isobject && Object.keys(value).length && (!maxDepth || depth < maxDepth)) {
2075
1931
  step(value, newKey, depth + 1);
2076
1932
  }
2077
-
2078
1933
  output[newKey] = value;
2079
1934
  });
2080
1935
  }
2081
-
2082
1936
  step(target, null, 0);
2083
1937
  return output;
2084
1938
  }