@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.
@@ -159,7 +159,10 @@ var productionEnvironment = {
159
159
  receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers',
160
160
  indexes: 'enterprises/{enterpriseId}/indexes',
161
161
  notifications: 'enterprises/{enterpriseId}/notifications',
162
- nomenclatures: 'enterprises/{enterpriseId}/nomenclatures'
162
+ nomenclatures: 'enterprises/{enterpriseId}/nomenclatures',
163
+ operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs',
164
+ operationsGroups: 'enterprises/{enterpriseId}/operationsGroups',
165
+ devisVersions: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions'
163
166
  },
164
167
  docs: {
165
168
  user: 'users/{userId}',
@@ -201,7 +204,10 @@ var productionEnvironment = {
201
204
  history: 'enterprises/{enterpriseId}/histories/{historyId}',
202
205
  receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}',
203
206
  notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
204
- nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}'
207
+ nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}',
208
+ operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}',
209
+ operationsGroups: 'enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}',
210
+ devisVersion: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions/{versionId}'
205
211
  },
206
212
  indexes: {
207
213
  users: 'users',
@@ -240,6 +246,7 @@ var productionEnvironment = {
240
246
  categories: 'categories',
241
247
  operationsCatalogs: 'operations-catalogs',
242
248
  nomenclatures: 'nomenclatures',
249
+ operationsGroups: 'operations-groups',
243
250
  // used only for managment
244
251
  systemMaterials: 'system-materials',
245
252
  systemOperations: 'system-operations',
@@ -282,7 +289,7 @@ var productionEnvironment = {
282
289
  },
283
290
  admins: {
284
291
  searchableAttributes: ['email', 'displayName', 'address', 'phone.mobile', 'jobTitle'],
285
- attributesForFaceting: ['active', 'searchable(email)', 'searchable(scope)'],
292
+ attributesForFaceting: ['active', 'searchable(email)', 'searchable(userId)', 'searchable(scope)'],
286
293
  maxValuesPerFacet: 1000,
287
294
  maxFacetHits: 100
288
295
  },
@@ -313,14 +320,14 @@ var productionEnvironment = {
313
320
  },
314
321
  materials: {
315
322
  searchableAttributes: ['name', 'unitPrice', 'provider'],
316
- attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)'],
323
+ attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', 'margin.id'],
317
324
  ranking: ['asc(name)'],
318
325
  maxValuesPerFacet: 1000,
319
326
  maxFacetHits: 100
320
327
  },
321
328
  operations: {
322
329
  searchableAttributes: ['name', 'unitPrice', 'objectID'],
323
- attributesForFaceting: ['searchable(pieces)', 'searchable(surface)', 'type', 'unitPrice', 'searchable(scope)', 'catalogId'],
330
+ attributesForFaceting: ['searchable(lot)', 'unitPrice', 'searchable(scope)', 'catalogId'],
324
331
  maxValuesPerFacet: 1000,
325
332
  maxFacetHits: 100
326
333
  },
@@ -361,7 +368,7 @@ var productionEnvironment = {
361
368
  },
362
369
  devis: {
363
370
  searchableAttributes: ['name', 'status'],
364
- attributesForFaceting: ['searchable(status)', 'projectId', 'searchable(scope)'],
371
+ attributesForFaceting: ['searchable(status)', 'operationsCatalog', 'projectId', 'searchable(scope)'],
365
372
  ranking: ['desc(dateApproved)', 'desc(status)', 'desc(updatedAt)'],
366
373
  maxValuesPerFacet: 1000,
367
374
  maxFacetHits: 100
@@ -442,7 +449,7 @@ var productionEnvironment = {
442
449
  },
443
450
  systemOperations: {
444
451
  searchableAttributes: ['name', 'unitPrice'],
445
- attributesForFaceting: ['searchable(pieces)', 'searchable(surface)', 'type', 'unitPrice'],
452
+ attributesForFaceting: ['searchable(lot)'],
446
453
  ranking: ['desc(updatedAt)'],
447
454
  maxValuesPerFacet: 1000,
448
455
  maxFacetHits: 100
@@ -482,7 +489,7 @@ var productionEnvironment = {
482
489
  },
483
490
  devisTemplates: {
484
491
  searchableAttributes: ['name'],
485
- attributesForFaceting: ['searchable(scope)', 'projectType', 'materialsProvider'],
492
+ attributesForFaceting: ['searchable(scope)', 'materialsProvider'],
486
493
  ranking: ['desc(updatedAt)'],
487
494
  maxValuesPerFacet: 1000,
488
495
  maxFacetHits: 100
@@ -527,6 +534,13 @@ var productionEnvironment = {
527
534
  ranking: ['asc(value)'],
528
535
  maxValuesPerFacet: 1000,
529
536
  maxFacetHits: 100
537
+ },
538
+ operationsGroups: {
539
+ searchableAttributes: ['name'],
540
+ attributesForFaceting: ['searchable(scope)', 'searchable(status)', 'searchable(operationsCatalog)'],
541
+ ranking: ['asc(name)'],
542
+ maxValuesPerFacet: 1000,
543
+ maxFacetHits: 100
530
544
  }
531
545
  }
532
546
  };
@@ -603,6 +617,7 @@ var test = function test(base) {
603
617
  receptionVouchers: 'emulator-projects-reception-vouchers',
604
618
  operationsCatalogs: 'operations-catalogs',
605
619
  nomenclatures: 'nomenclatures',
620
+ operationsGroups: 'operations-groups',
606
621
  // used only for managment
607
622
  systemMaterials: 'system-materials',
608
623
  systemOperations: 'system-operations',
@@ -658,6 +673,7 @@ var emulator = function emulator(base) {
658
673
  receptionVouchers: 'emulator-projects-reception-vouchers',
659
674
  operationsCatalogs: 'operations-catalogs',
660
675
  nomenclatures: 'nomenclatures',
676
+ operationsGroups: 'operations-groups',
661
677
  // used only for managment
662
678
  systemMaterials: 'system-materials',
663
679
  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;
1190
1370
 
1191
1371
  (function (ROLE) {
@@ -1198,6 +1378,15 @@ var ROLE;
1198
1378
  ROLE["SUPERADMIN"] = "superadmin";
1199
1379
  })(ROLE || (ROLE = {}));
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; },
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) {