@placeshakr/config 10.19.0 → 10.19.6-alpha.2

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.
@@ -157,7 +157,10 @@ var productionEnvironment = {
157
157
  receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers',
158
158
  indexes: 'enterprises/{enterpriseId}/indexes',
159
159
  notifications: 'enterprises/{enterpriseId}/notifications',
160
- nomenclatures: 'enterprises/{enterpriseId}/nomenclatures'
160
+ nomenclatures: 'enterprises/{enterpriseId}/nomenclatures',
161
+ operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs',
162
+ operationsGroups: 'enterprises/{enterpriseId}/operationsGroups',
163
+ devisVersions: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions'
161
164
  },
162
165
  docs: {
163
166
  user: 'users/{userId}',
@@ -199,7 +202,10 @@ var productionEnvironment = {
199
202
  history: 'enterprises/{enterpriseId}/histories/{historyId}',
200
203
  receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}',
201
204
  notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
202
- nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}'
205
+ nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}',
206
+ operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}',
207
+ operationsGroups: 'enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}',
208
+ devisVersion: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions/{versionId}'
203
209
  },
204
210
  indexes: {
205
211
  users: 'users',
@@ -238,6 +244,7 @@ var productionEnvironment = {
238
244
  categories: 'categories',
239
245
  operationsCatalogs: 'operations-catalogs',
240
246
  nomenclatures: 'nomenclatures',
247
+ operationsGroups: 'operations-groups',
241
248
  // used only for managment
242
249
  systemMaterials: 'system-materials',
243
250
  systemOperations: 'system-operations',
@@ -280,7 +287,7 @@ var productionEnvironment = {
280
287
  },
281
288
  admins: {
282
289
  searchableAttributes: ['email', 'displayName', 'address', 'phone.mobile', 'jobTitle'],
283
- attributesForFaceting: ['active', 'searchable(email)', 'searchable(scope)'],
290
+ attributesForFaceting: ['active', 'searchable(email)', 'searchable(userId)', 'searchable(scope)'],
284
291
  maxValuesPerFacet: 1000,
285
292
  maxFacetHits: 100
286
293
  },
@@ -311,14 +318,14 @@ var productionEnvironment = {
311
318
  },
312
319
  materials: {
313
320
  searchableAttributes: ['name', 'unitPrice', 'provider'],
314
- attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)'],
321
+ attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', 'margin.id'],
315
322
  ranking: ['asc(name)'],
316
323
  maxValuesPerFacet: 1000,
317
324
  maxFacetHits: 100
318
325
  },
319
326
  operations: {
320
327
  searchableAttributes: ['name', 'unitPrice', 'objectID'],
321
- attributesForFaceting: ['searchable(pieces)', 'searchable(surface)', 'type', 'unitPrice', 'searchable(scope)', 'catalogId'],
328
+ attributesForFaceting: ['searchable(lot)', 'unitPrice', 'searchable(scope)', 'catalogId'],
322
329
  maxValuesPerFacet: 1000,
323
330
  maxFacetHits: 100
324
331
  },
@@ -359,7 +366,7 @@ var productionEnvironment = {
359
366
  },
360
367
  devis: {
361
368
  searchableAttributes: ['name', 'status'],
362
- attributesForFaceting: ['searchable(status)', 'projectId', 'searchable(scope)'],
369
+ attributesForFaceting: ['searchable(status)', 'operationsCatalog', 'projectId', 'searchable(scope)'],
363
370
  ranking: ['desc(dateApproved)', 'desc(status)', 'desc(updatedAt)'],
364
371
  maxValuesPerFacet: 1000,
365
372
  maxFacetHits: 100
@@ -440,7 +447,7 @@ var productionEnvironment = {
440
447
  },
441
448
  systemOperations: {
442
449
  searchableAttributes: ['name', 'unitPrice'],
443
- attributesForFaceting: ['searchable(pieces)', 'searchable(surface)', 'type', 'unitPrice'],
450
+ attributesForFaceting: ['searchable(lot)'],
444
451
  ranking: ['desc(updatedAt)'],
445
452
  maxValuesPerFacet: 1000,
446
453
  maxFacetHits: 100
@@ -480,7 +487,7 @@ var productionEnvironment = {
480
487
  },
481
488
  devisTemplates: {
482
489
  searchableAttributes: ['name'],
483
- attributesForFaceting: ['searchable(scope)', 'projectType', 'materialsProvider'],
490
+ attributesForFaceting: ['searchable(scope)', 'materialsProvider'],
484
491
  ranking: ['desc(updatedAt)'],
485
492
  maxValuesPerFacet: 1000,
486
493
  maxFacetHits: 100
@@ -525,6 +532,13 @@ var productionEnvironment = {
525
532
  ranking: ['asc(value)'],
526
533
  maxValuesPerFacet: 1000,
527
534
  maxFacetHits: 100
535
+ },
536
+ operationsGroups: {
537
+ searchableAttributes: ['name'],
538
+ attributesForFaceting: ['searchable(scope)', 'searchable(status)', 'searchable(operationsCatalog)'],
539
+ ranking: ['asc(name)'],
540
+ maxValuesPerFacet: 1000,
541
+ maxFacetHits: 100
528
542
  }
529
543
  }
530
544
  };
@@ -601,6 +615,7 @@ var test = function test(base) {
601
615
  receptionVouchers: 'emulator-projects-reception-vouchers',
602
616
  operationsCatalogs: 'operations-catalogs',
603
617
  nomenclatures: 'nomenclatures',
618
+ operationsGroups: 'operations-groups',
604
619
  // used only for managment
605
620
  systemMaterials: 'system-materials',
606
621
  systemOperations: 'system-operations',
@@ -656,6 +671,7 @@ var emulator = function emulator(base) {
656
671
  receptionVouchers: 'emulator-projects-reception-vouchers',
657
672
  operationsCatalogs: 'operations-catalogs',
658
673
  nomenclatures: 'nomenclatures',
674
+ operationsGroups: 'operations-groups',
659
675
  // used only for managment
660
676
  systemMaterials: 'system-materials',
661
677
  systemOperations: 'system-operations',
@@ -756,7 +772,10 @@ var helpers = {
756
772
  downPayment: /*#__PURE__*/FactoryCreateFunction(),
757
773
  histories: /*#__PURE__*/FactoryCreateFunction(),
758
774
  receptionVoucher: /*#__PURE__*/FactoryCreateFunction(),
759
- nomenclatures: /*#__PURE__*/FactoryCreateFunction()
775
+ nomenclatures: /*#__PURE__*/FactoryCreateFunction(),
776
+ operationsCatalog: /*#__PURE__*/FactoryCreateFunction(),
777
+ operationsGroups: /*#__PURE__*/FactoryCreateFunction(),
778
+ devisVersions: /*#__PURE__*/FactoryCreateFunction()
760
779
  };
761
780
 
762
781
  /**
@@ -904,82 +923,6 @@ var getPath = function getPath(path, params) {
904
923
  */
905
924
  var createProducts = function createProducts(params) {
906
925
  var products = {
907
- standard: {
908
- id: params.standard.id,
909
- internal: 'standard',
910
- product: {
911
- id: params.standard.id,
912
- name: 'Standard',
913
- description: 'Pour les entreprises unipersonnelles',
914
- type: 'service',
915
- price: 69,
916
- main: true,
917
- active: true,
918
- isPrivate: true,
919
- rating: 1,
920
- order: 1,
921
- includes: {
922
- maxAdminUsers: null,
923
- maxAgentUsers: null,
924
- maxProUsers: null,
925
- maxSellerUsers: null,
926
- authorizationManagement: true,
927
- dashboard: true,
928
- accounting: true,
929
- projectStorage: true,
930
- customCatalog: true,
931
- customConfig: true,
932
- exportReports: true,
933
- externalApiIntegration: true,
934
- support: true
935
- },
936
- plans: Object.values(params.standard.tariffs).map(function (t) {
937
- return t.id;
938
- }),
939
- tax_rates: params.standard.tax_rates
940
- },
941
- tariffs: params.standard.tariffs,
942
- additionalUser: params.standard.prices.additionalUser,
943
- additionalUserPrice: params.standard.additionalUserPrice
944
- },
945
- plus: {
946
- id: params.plus.id,
947
- internal: 'plus',
948
- product: {
949
- id: params.plus.id,
950
- name: 'Plus',
951
- description: 'Idéal pour les agences et les entreprises de plus grande taille',
952
- type: 'service',
953
- price: 159,
954
- main: true,
955
- active: true,
956
- isPrivate: true,
957
- rating: 2,
958
- order: 2,
959
- includes: {
960
- maxAdminUsers: null,
961
- maxAgentUsers: null,
962
- maxProUsers: null,
963
- maxSellerUsers: null,
964
- authorizationManagement: true,
965
- dashboard: true,
966
- accounting: true,
967
- projectStorage: true,
968
- customCatalog: true,
969
- customConfig: true,
970
- exportReports: true,
971
- externalApiIntegration: true,
972
- support: true
973
- },
974
- plans: Object.values(params.plus.tariffs).map(function (t) {
975
- return t.id;
976
- }),
977
- tax_rates: params.plus.tax_rates
978
- },
979
- tariffs: params.plus.tariffs,
980
- additionalUser: params.plus.prices.additionalUser,
981
- additionalUserPrice: params.plus.additionalUserPrice
982
- },
983
926
  classic: {
984
927
  id: params.classic.id,
985
928
  internal: 'classic',
@@ -991,6 +934,7 @@ var createProducts = function createProducts(params) {
991
934
  price: 159,
992
935
  main: true,
993
936
  active: true,
937
+ isPrivate: false,
994
938
  rating: 3,
995
939
  order: 3,
996
940
  includes: {
@@ -1013,49 +957,217 @@ var createProducts = function createProducts(params) {
1013
957
  }),
1014
958
  tax_rates: params.classic.tax_rates
1015
959
  },
1016
- tariffs: params.classic.tariffs,
1017
- additionalUser: params.classic.prices.additionalUser,
1018
- additionalUserPrice: params.classic.additionalUserPrice
1019
- }
960
+ tariffs: params.classic.tariffs
961
+ } // standard: {
962
+ // id: params.standard.id,
963
+ // internal: 'standard',
964
+ // product: {
965
+ // id: params.standard.id,
966
+ // name: 'Standard',
967
+ // description: 'Pour les entreprises unipersonnelles',
968
+ // type: 'service',
969
+ // price: 69,
970
+ // main: true,
971
+ // active: true,
972
+ // isPrivate: true,
973
+ // rating: 1,
974
+ // order: 1,
975
+ // includes: {
976
+ // maxAdminUsers: null,
977
+ // maxAgentUsers: null,
978
+ // maxProUsers: null,
979
+ // maxSellerUsers: null,
980
+ // authorizationManagement: true,
981
+ // dashboard: true,
982
+ // accounting: true,
983
+ // projectStorage: true,
984
+ // customCatalog: true,
985
+ // customConfig: true,
986
+ // exportReports: true,
987
+ // externalApiIntegration: true,
988
+ // support: true,
989
+ // },
990
+ // plans: Object.values(params.standard.tariffs).map(t => t.id),
991
+ // tax_rates: params.standard.tax_rates,
992
+ // },
993
+ // tariffs: params.standard.tariffs,
994
+ // },
995
+ // plus: {
996
+ // id: params.plus.id,
997
+ // internal: 'plus',
998
+ // product: {
999
+ // id: params.plus.id,
1000
+ // name: 'Plus',
1001
+ // description: 'Idéal pour les agences et les entreprises de plus grande taille',
1002
+ // type: 'service',
1003
+ // price: 159,
1004
+ // main: true,
1005
+ // active: true,
1006
+ // isPrivate: true,
1007
+ // rating: 2,
1008
+ // order: 2,
1009
+ // includes: {
1010
+ // maxAdminUsers: null,
1011
+ // maxAgentUsers: null,
1012
+ // maxProUsers: null,
1013
+ // maxSellerUsers: null,
1014
+ // authorizationManagement: true,
1015
+ // dashboard: true,
1016
+ // accounting: true,
1017
+ // projectStorage: true,
1018
+ // customCatalog: true,
1019
+ // customConfig: true,
1020
+ // exportReports: true,
1021
+ // externalApiIntegration: true,
1022
+ // support: true,
1023
+ // },
1024
+ // plans: Object.values(params.plus.tariffs).map(t => t.id),
1025
+ // tax_rates: params.plus.tax_rates,
1026
+ // },
1027
+ // tariffs: params.plus.tariffs,
1028
+ // },
1029
+ // test_1: {
1030
+ // id: params.test_1.id,
1031
+ // internal: 'test_1',
1032
+ // product: {
1033
+ // id: params.test_1.id,
1034
+ // name: 'Test 1',
1035
+ // description: '',
1036
+ // type: 'service',
1037
+ // price: 50,
1038
+ // main: true,
1039
+ // active: true,
1040
+ // isPrivate: false,
1041
+ // rating: 1,
1042
+ // order: 4,
1043
+ // includes: {
1044
+ // maxAdminUsers: 1,
1045
+ // maxAgentUsers: 0,
1046
+ // maxProUsers: 0,
1047
+ // maxSellerUsers: 0,
1048
+ // authorizationManagement: true,
1049
+ // dashboard: true,
1050
+ // accounting: true,
1051
+ // projectStorage: true,
1052
+ // customCatalog: true,
1053
+ // customConfig: true,
1054
+ // exportReports: true,
1055
+ // externalApiIntegration: true,
1056
+ // support: true,
1057
+ // },
1058
+ // plans: Object.values(params.test_1.tariffs).map(t => t.id),
1059
+ // tax_rates: params.test_1.tax_rates,
1060
+ // },
1061
+ // tariffs: params.test_1.tariffs,
1062
+ // },
1063
+ // test_2: {
1064
+ // id: params.test_2.id,
1065
+ // internal: 'test_2',
1066
+ // product: {
1067
+ // id: params.test_2.id,
1068
+ // name: 'Test 2',
1069
+ // description: '',
1070
+ // type: 'service',
1071
+ // price: 100,
1072
+ // main: true,
1073
+ // active: true,
1074
+ // isPrivate: false,
1075
+ // rating: 2,
1076
+ // order: 5,
1077
+ // includes: {
1078
+ // maxAdminUsers: 1,
1079
+ // maxAgentUsers: 0,
1080
+ // maxProUsers: 0,
1081
+ // maxSellerUsers: 0,
1082
+ // authorizationManagement: true,
1083
+ // dashboard: true,
1084
+ // accounting: true,
1085
+ // projectStorage: true,
1086
+ // customCatalog: true,
1087
+ // customConfig: true,
1088
+ // exportReports: true,
1089
+ // externalApiIntegration: true,
1090
+ // support: true,
1091
+ // },
1092
+ // plans: Object.values(params.test_2.tariffs).map(t => t.id),
1093
+ // tax_rates: params.test_2.tax_rates,
1094
+ // },
1095
+ // tariffs: params.test_2.tariffs,
1096
+ // },
1097
+ // test_3: {
1098
+ // id: params.test_3.id,
1099
+ // internal: 'test_3',
1100
+ // product: {
1101
+ // id: params.test_3.id,
1102
+ // name: 'Test 3',
1103
+ // description: '',
1104
+ // type: 'service',
1105
+ // price: 80,
1106
+ // main: true,
1107
+ // active: true,
1108
+ // isPrivate: false,
1109
+ // rating: 3,
1110
+ // order: 6,
1111
+ // includes: {
1112
+ // maxAdminUsers: null,
1113
+ // maxAgentUsers: null,
1114
+ // maxProUsers: null,
1115
+ // maxSellerUsers: null,
1116
+ // authorizationManagement: true,
1117
+ // dashboard: true,
1118
+ // accounting: true,
1119
+ // projectStorage: true,
1120
+ // customCatalog: true,
1121
+ // customConfig: true,
1122
+ // exportReports: true,
1123
+ // externalApiIntegration: true,
1124
+ // support: true,
1125
+ // },
1126
+ // plans: Object.values(params.test_3.tariffs).map(t => t.id),
1127
+ // tax_rates: params.test_3.tax_rates,
1128
+ // },
1129
+ // tariffs: params.test_3.tariffs,
1130
+ // },
1131
+ // test_4: {
1132
+ // id: params.test_4.id,
1133
+ // internal: 'test_4',
1134
+ // product: {
1135
+ // id: params.test_4.id,
1136
+ // name: 'Test 4',
1137
+ // description: '',
1138
+ // type: 'service',
1139
+ // price: 65,
1140
+ // main: true,
1141
+ // active: true,
1142
+ // isPrivate: false,
1143
+ // rating: 3,
1144
+ // order: 7,
1145
+ // includes: {
1146
+ // maxAdminUsers: 3,
1147
+ // maxAgentUsers: 3,
1148
+ // maxProUsers: 3,
1149
+ // maxSellerUsers: 3,
1150
+ // authorizationManagement: true,
1151
+ // dashboard: true,
1152
+ // accounting: true,
1153
+ // projectStorage: true,
1154
+ // customCatalog: true,
1155
+ // customConfig: true,
1156
+ // exportReports: true,
1157
+ // externalApiIntegration: true,
1158
+ // support: true,
1159
+ // },
1160
+ // plans: Object.values(params.test_4.tariffs).map(t => t.id),
1161
+ // tax_rates: params.test_4.tax_rates,
1162
+ // },
1163
+ // tariffs: params.test_4.tariffs,
1164
+ // },
1165
+
1020
1166
  };
1021
1167
  return products;
1022
1168
  };
1023
1169
 
1024
1170
  var testing = {
1025
- standard: {
1026
- id: 'prod_KzmEyS3UQ5lbnz',
1027
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1028
- tariffs: {
1029
- base: {
1030
- id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
1031
- price: 69,
1032
- usageType: 'licensed',
1033
- type: 'base'
1034
- }
1035
- },
1036
- prices: {
1037
- monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
1038
- additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe'
1039
- },
1040
- additionalUserPrice: 10
1041
- },
1042
- plus: {
1043
- id: 'prod_KzmyY1ysEOeK93',
1044
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1045
- tariffs: {
1046
- base: {
1047
- id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
1048
- price: 159,
1049
- usageType: 'licensed',
1050
- type: 'base'
1051
- }
1052
- },
1053
- prices: {
1054
- monthly: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
1055
- additionalUser: 'price_1KJnP0LFzcsAA7x6s3rO71QX'
1056
- },
1057
- additionalUserPrice: 5
1058
- },
1059
1171
  classic: {
1060
1172
  id: 'prod_KzmO4rORyWl8cA',
1061
1173
  tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
@@ -1090,49 +1202,69 @@ var testing = {
1090
1202
  usageType: 'metered',
1091
1203
  type: 'extra_user'
1092
1204
  }
1093
- },
1094
- prices: {
1095
- monthly: 'price_1KJmpiLFzcsAA7x6rLA0GNZX',
1096
- additionalUser: 'price_1KJmpiLFzcsAA7x6VtCIuhqw'
1097
- },
1098
- additionalUserPrice: 30
1099
- }
1205
+ }
1206
+ } // standard: {
1207
+ // id: 'prod_KzmEyS3UQ5lbnz',
1208
+ // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1209
+ // tariffs: {
1210
+ // base: { id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu', price: 69, usageType: 'licensed', type: 'base' },
1211
+ // },
1212
+ // // prices: {
1213
+ // // monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
1214
+ // // additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe',
1215
+ // // },
1216
+ // // additionalUserPrice: 10,
1217
+ // },
1218
+ // plus: {
1219
+ // id: 'prod_KzmyY1ysEOeK93',
1220
+ // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1221
+ // tariffs: {
1222
+ // base: { id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv', price: 159, usageType: 'licensed', type: 'base' },
1223
+ // },
1224
+ // },
1225
+ // test_1: {
1226
+ // id: 'prod_L2ZqDUzF0HFuFN',
1227
+ // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1228
+ // tariffs: {
1229
+ // base: { id: 'price_1KMUgwLFzcsAA7x6c3wk0Buy', price: 50, usageType: 'licensed', type: 'base' },
1230
+ // additionalAdmin: { id: 'price_1KMUgwLFzcsAA7x6X8qYBxls', price: 10, usageType: 'metered', type: 'extra_user' },
1231
+ // additionalAgent: { id: 'price_1KMUgwLFzcsAA7x6fyOLh2gM', price: 8, usageType: 'metered', type: 'extra_user' },
1232
+ // additionalPro: { id: 'price_1KMUgwLFzcsAA7x6eB6Oevw2', price: 6, usageType: 'metered', type: 'extra_user' },
1233
+ // additionalSeller: { id: 'price_1KMUgwLFzcsAA7x6s9WBpxTS', price: 4, usageType: 'metered', type: 'extra_user' },
1234
+ // },
1235
+ // },
1236
+ // test_2: {
1237
+ // id: 'prod_L2xmEk7gqqRJtS',
1238
+ // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1239
+ // tariffs: {
1240
+ // base: { id: 'price_1KMrqrLFzcsAA7x62Ag7xwjU', price: 100, usageType: 'licensed', type: 'base' },
1241
+ // additionalAdmin: { id: 'price_1KMrqrLFzcsAA7x6cu3it43A', price: 20, usageType: 'metered', type: 'extra_user' },
1242
+ // additionalAgent: { id: 'price_1KMrqrLFzcsAA7x6eNCDb3D6', price: 16, usageType: 'metered', type: 'extra_user' },
1243
+ // additionalPro: { id: 'price_1KMrqrLFzcsAA7x6wRuDxyyN', price: 12, usageType: 'metered', type: 'extra_user' },
1244
+ // additionalSeller: { id: 'price_1KMrqsLFzcsAA7x61NRR9gne', price: 8, usageType: 'metered', type: 'extra_user' },
1245
+ // },
1246
+ // },
1247
+ // test_3: {
1248
+ // id: 'prod_L2xnCHGi6QNgX8',
1249
+ // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1250
+ // tariffs: {
1251
+ // base: { id: 'price_1KMrs0LFzcsAA7x6p2tkW6lu', price: 80, usageType: 'licensed', type: 'base' },
1252
+ // },
1253
+ // },
1254
+ // test_4: {
1255
+ // id: 'prod_L2yWF4ssugw8Ln',
1256
+ // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1257
+ // tariffs: {
1258
+ // base: { id: 'price_1KMsZFLFzcsAA7x6qVbCQpuN', price: 65, usageType: 'licensed', type: 'base' },
1259
+ // additionalAdmin: { id: 'price_1KMsZFLFzcsAA7x6EjaDfica', price: 15, usageType: 'metered', type: 'extra_user' },
1260
+ // additionalAgent: { id: 'price_1KMsZFLFzcsAA7x6T1FI1WF4', price: 12, usageType: 'metered', type: 'extra_user' },
1261
+ // additionalPro: { id: 'price_1KMsZFLFzcsAA7x6L6I0M1ND', price: 9, usageType: 'metered', type: 'extra_user' },
1262
+ // additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
1263
+ // },
1264
+ // },
1265
+
1100
1266
  };
1101
1267
  var production = {
1102
- standard: {
1103
- id: 'prod_HsAwETfIUblsAT',
1104
- tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1105
- tariffs: {
1106
- base: {
1107
- id: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
1108
- price: 69,
1109
- usageType: 'licensed',
1110
- type: 'base'
1111
- }
1112
- },
1113
- prices: {
1114
- monthly: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
1115
- additionalUser: 'price_1HRQFTLFzcsAA7x6X9wS7JUr'
1116
- },
1117
- additionalUserPrice: 10
1118
- },
1119
- plus: {
1120
- id: 'prod_HsB2YJPEZ9H98c',
1121
- tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1122
- tariffs: {
1123
- base: {
1124
- id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
1125
- price: 159,
1126
- usageType: 'licensed',
1127
- type: 'base'
1128
- }
1129
- },
1130
- prices: {
1131
- monthly: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
1132
- additionalUser: 'price_1HRg1fLFzcsAA7x6QYbtnty6'
1133
- },
1134
- additionalUserPrice: 5
1135
- },
1136
1268
  classic: {
1137
1269
  id: 'prod_KzmYFhrWXrzWdR',
1138
1270
  tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
@@ -1167,13 +1299,62 @@ var production = {
1167
1299
  usageType: 'metered',
1168
1300
  type: 'extra_user'
1169
1301
  }
1170
- },
1171
- prices: {
1172
- monthly: 'price_1KJmzNLFzcsAA7x6I6gNlCpY',
1173
- additionalUser: 'price_1KJmzNLFzcsAA7x6Tl6D8Wus'
1174
- },
1175
- additionalUserPrice: 30
1176
- }
1302
+ }
1303
+ } // standard: {
1304
+ // id: 'prod_HsAwETfIUblsAT',
1305
+ // tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1306
+ // tariffs: {
1307
+ // base: { id: 'price_1HIQaILFzcsAA7x6NVk3cJu1', price: 69, usageType: 'licensed', type: 'base' },
1308
+ // },
1309
+ // },
1310
+ // plus: {
1311
+ // id: 'prod_HsB2YJPEZ9H98c',
1312
+ // tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1313
+ // tariffs: {
1314
+ // base: { id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv', price: 159, usageType: 'licensed', type: 'base' },
1315
+ // },
1316
+ // },
1317
+ // test_1: {
1318
+ // id: 'prod_L2ZqDUzF0HFuFN',
1319
+ // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1320
+ // tariffs: {
1321
+ // base: { id: 'price_1KMUgwLFzcsAA7x6c3wk0Buy', price: 50, usageType: 'licensed', type: 'base' },
1322
+ // additionalAdmin: { id: 'price_1KMUgwLFzcsAA7x6X8qYBxls', price: 10, usageType: 'metered', type: 'extra_user' },
1323
+ // additionalAgent: { id: 'price_1KMUgwLFzcsAA7x6fyOLh2gM', price: 8, usageType: 'metered', type: 'extra_user' },
1324
+ // additionalPro: { id: 'price_1KMUgwLFzcsAA7x6eB6Oevw2', price: 6, usageType: 'metered', type: 'extra_user' },
1325
+ // additionalSeller: { id: 'price_1KMUgwLFzcsAA7x6s9WBpxTS', price: 4, usageType: 'metered', type: 'extra_user' },
1326
+ // },
1327
+ // },
1328
+ // test_2: {
1329
+ // id: 'prod_L2xmEk7gqqRJtS',
1330
+ // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1331
+ // tariffs: {
1332
+ // base: { id: 'price_1KMrqrLFzcsAA7x62Ag7xwjU', price: 100, usageType: 'licensed', type: 'base' },
1333
+ // additionalAdmin: { id: 'price_1KMrqrLFzcsAA7x6cu3it43A', price: 20, usageType: 'metered', type: 'extra_user' },
1334
+ // additionalAgent: { id: 'price_1KMrqrLFzcsAA7x6eNCDb3D6', price: 16, usageType: 'metered', type: 'extra_user' },
1335
+ // additionalPro: { id: 'price_1KMrqrLFzcsAA7x6wRuDxyyN', price: 12, usageType: 'metered', type: 'extra_user' },
1336
+ // additionalSeller: { id: 'price_1KMrqsLFzcsAA7x61NRR9gne', price: 8, usageType: 'metered', type: 'extra_user' },
1337
+ // },
1338
+ // },
1339
+ // test_3: {
1340
+ // id: 'prod_L2xnCHGi6QNgX8',
1341
+ // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1342
+ // tariffs: {
1343
+ // base: { id: 'price_1KMrs0LFzcsAA7x6p2tkW6lu', price: 80, usageType: 'licensed', type: 'base' },
1344
+ // },
1345
+ // },
1346
+ // test_4: {
1347
+ // id: 'prod_L2yWF4ssugw8Ln',
1348
+ // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1349
+ // tariffs: {
1350
+ // base: { id: 'price_1KMsZFLFzcsAA7x6qVbCQpuN', price: 65, usageType: 'licensed', type: 'base' },
1351
+ // additionalAdmin: { id: 'price_1KMsZFLFzcsAA7x6EjaDfica', price: 15, usageType: 'metered', type: 'extra_user' },
1352
+ // additionalAgent: { id: 'price_1KMsZFLFzcsAA7x6T1FI1WF4', price: 12, usageType: 'metered', type: 'extra_user' },
1353
+ // additionalPro: { id: 'price_1KMsZFLFzcsAA7x6L6I0M1ND', price: 9, usageType: 'metered', type: 'extra_user' },
1354
+ // additionalSeller: { id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW', price: 6, usageType: 'metered', type: 'extra_user' },
1355
+ // },
1356
+ // },
1357
+
1177
1358
  };
1178
1359
  /**
1179
1360
  *
@@ -1185,7 +1366,6 @@ var index$1 = (function (envName) {
1185
1366
  return createProducts(testing);
1186
1367
  });
1187
1368
 
1188
- // @eslint-ignore
1189
1369
  var ROLE$1;
1190
1370
 
1191
1371
  (function (ROLE) {
@@ -1198,6 +1378,15 @@ var ROLE$1;
1198
1378
  ROLE["SUPERADMIN"] = "superadmin";
1199
1379
  })(ROLE$1 || (ROLE$1 = {}));
1200
1380
 
1381
+ var DevisHistoryType;
1382
+
1383
+ (function (DevisHistoryType) {
1384
+ DevisHistoryType["CHANGE_STATUS"] = "CHANGE_STATUS";
1385
+ DevisHistoryType["SENT_TO_CLIENT"] = "SENT_TO_CLIENT";
1386
+ DevisHistoryType["EMAIL_EVENT"] = "EMAIL_EVENT";
1387
+ DevisHistoryType["NEW_VERSION"] = "NEW_VERSION";
1388
+ })(DevisHistoryType || (DevisHistoryType = {}));
1389
+
1201
1390
  var MaterialsProviderType;
1202
1391
 
1203
1392
  (function (MaterialsProviderType) {
@@ -1600,6 +1789,7 @@ var EmailTemplate;
1600
1789
  EmailTemplate["USER_CONTACT"] = "user-contact";
1601
1790
  EmailTemplate["PLAN"] = "plan";
1602
1791
  EmailTemplate["BILL"] = "bill";
1792
+ EmailTemplate["MEDIAS"] = "medias";
1603
1793
  })(EmailTemplate || (EmailTemplate = {}));
1604
1794
 
1605
1795
  var DevisPdfType;
@@ -1658,6 +1848,9 @@ var HistoryActionEnum;
1658
1848
  HistoryActionEnum["ASSIGN_SELLER"] = "ASSIGN_SELLER";
1659
1849
  HistoryActionEnum["UNASSIGN_SELLER"] = "UNASSIGN_SELLER";
1660
1850
  HistoryActionEnum["APPROVED_R_V"] = "APPROVED_R_V";
1851
+ HistoryActionEnum["DEVIS_APPROVED"] = "DEVIS_APPROVED";
1852
+ HistoryActionEnum["DEVIS_SENT"] = "DEVIS_SENT";
1853
+ HistoryActionEnum["DEVIS_SIGNED"] = "DEVIS_SIGNED";
1661
1854
  })(HistoryActionEnum || (HistoryActionEnum = {}));
1662
1855
 
1663
1856
  var HistoryEntityType;
@@ -1685,6 +1878,13 @@ var NomenclaturesIdentifier;
1685
1878
  NomenclaturesIdentifier["PROJECTS_CATEGORY"] = "PROJECTS_CATEGORY";
1686
1879
  NomenclaturesIdentifier["TVA"] = "TVA";
1687
1880
  NomenclaturesIdentifier["SUPPLIERS"] = "SUPPLIERS";
1881
+ NomenclaturesIdentifier["MARGINS"] = "MARGINS";
1882
+ NomenclaturesIdentifier["TERMS_OF_SALE"] = "TERMS_OF_SALE";
1883
+ NomenclaturesIdentifier["NOTES_MODELS"] = "NOTES_MODELS";
1884
+ NomenclaturesIdentifier["DEVIS_TYPES"] = "DEVIS_TYPES";
1885
+ NomenclaturesIdentifier["COMMENTS_MODELS"] = "COMMENTS_MODELS";
1886
+ NomenclaturesIdentifier["EMAILS_COMMENTS_MODELS"] = "EMAILS_COMMENTS_MODELS";
1887
+ NomenclaturesIdentifier["PAYMENT_PLANNING"] = "PAYMENT_PLANNING";
1688
1888
  })(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
1689
1889
 
1690
1890
  var OperationQuantityEnum;
@@ -1713,6 +1913,7 @@ var MaterialResponsible;
1713
1913
  MaterialResponsible["AGENT"] = "AGENT";
1714
1914
  MaterialResponsible["SELLER"] = "SELLER";
1715
1915
  MaterialResponsible["ENTERPRISE"] = "ENTERPRISE";
1916
+ MaterialResponsible["PROVIDER"] = "PROVIDER";
1716
1917
  })(MaterialResponsible || (MaterialResponsible = {}));
1717
1918
 
1718
1919
  var ProjectPriceTypeEnum;
@@ -1723,9 +1924,17 @@ var ProjectPriceTypeEnum;
1723
1924
  ProjectPriceTypeEnum["rejected"] = "rejected";
1724
1925
  })(ProjectPriceTypeEnum || (ProjectPriceTypeEnum = {}));
1725
1926
 
1927
+ var DevisFormatEnum;
1928
+
1929
+ (function (DevisFormatEnum) {
1930
+ DevisFormatEnum["PIECE"] = "PIECE";
1931
+ DevisFormatEnum["LOT"] = "LOT";
1932
+ })(DevisFormatEnum || (DevisFormatEnum = {}));
1933
+
1726
1934
  var types = {
1727
1935
  __proto__: null,
1728
1936
  get ROLE () { return ROLE$1; },
1937
+ get DevisHistoryType () { return DevisHistoryType; },
1729
1938
  get MaterialsProviderType () { return MaterialsProviderType; },
1730
1939
  get ProjectType () { return ProjectType; },
1731
1940
  get OperationStatusEnum () { return OperationStatusEnum; },
@@ -1776,7 +1985,8 @@ var types = {
1776
1985
  get OperationQuantityEnum () { return OperationQuantityEnum; },
1777
1986
  get OperationRulesEnum () { return OperationRulesEnum; },
1778
1987
  get MaterialResponsible () { return MaterialResponsible; },
1779
- get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; }
1988
+ get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; },
1989
+ get DevisFormatEnum () { return DevisFormatEnum; }
1780
1990
  };
1781
1991
 
1782
1992
  function isBuffer(obj) {