@placeshakr/config 10.19.0-alpha.8 → 10.19.6-alpha.1

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.
@@ -158,7 +158,11 @@ var productionEnvironment = {
158
158
  histories: 'enterprises/{enterpriseId}/histories',
159
159
  receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers',
160
160
  indexes: 'enterprises/{enterpriseId}/indexes',
161
- notifications: 'enterprises/{enterpriseId}/notifications'
161
+ notifications: 'enterprises/{enterpriseId}/notifications',
162
+ nomenclatures: 'enterprises/{enterpriseId}/nomenclatures',
163
+ operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs',
164
+ operationsGroups: 'enterprises/{enterpriseId}/operationsGroups',
165
+ devisVersions: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions'
162
166
  },
163
167
  docs: {
164
168
  user: 'users/{userId}',
@@ -199,7 +203,11 @@ var productionEnvironment = {
199
203
  userNotification: 'users/{userId}/profiles/{enterpriseId}/notifications/{notificationId}',
200
204
  history: 'enterprises/{enterpriseId}/histories/{historyId}',
201
205
  receptionVouchers: 'enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}',
202
- notification: 'enterprises/{enterpriseId}/notifications/{notificationId}'
206
+ notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
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}'
203
211
  },
204
212
  indexes: {
205
213
  users: 'users',
@@ -238,12 +246,14 @@ var productionEnvironment = {
238
246
  categories: 'categories',
239
247
  operationsCatalogs: 'operations-catalogs',
240
248
  nomenclatures: 'nomenclatures',
249
+ operationsGroups: 'operations-groups',
241
250
  // used only for managment
242
251
  systemMaterials: 'system-materials',
243
252
  systemOperations: 'system-operations',
244
253
  systemOperationsMaterials: 'system-operations-materials',
245
254
  systemMaterialsProvider: 'system-materials-provider',
246
255
  systemStatus: 'system-status',
256
+ systemNomenclatures: 'system-nomenclatures',
247
257
  systemCategories: 'system-categories'
248
258
  }
249
259
  },
@@ -310,14 +320,14 @@ var productionEnvironment = {
310
320
  },
311
321
  materials: {
312
322
  searchableAttributes: ['name', 'unitPrice', 'provider'],
313
- attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)'],
323
+ attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', 'discount.id'],
314
324
  ranking: ['asc(name)'],
315
325
  maxValuesPerFacet: 1000,
316
326
  maxFacetHits: 100
317
327
  },
318
328
  operations: {
319
329
  searchableAttributes: ['name', 'unitPrice', 'objectID'],
320
- attributesForFaceting: ['searchable(pieces)', 'searchable(surface)', 'type', 'unitPrice', 'searchable(scope)', 'catalogId'],
330
+ attributesForFaceting: ['searchable(lot)', 'unitPrice', 'searchable(scope)', 'catalogId'],
321
331
  maxValuesPerFacet: 1000,
322
332
  maxFacetHits: 100
323
333
  },
@@ -358,7 +368,7 @@ var productionEnvironment = {
358
368
  },
359
369
  devis: {
360
370
  searchableAttributes: ['name', 'status'],
361
- attributesForFaceting: ['searchable(status)', 'projectId', 'searchable(scope)'],
371
+ attributesForFaceting: ['searchable(status)', 'operationsCatalog', 'projectId', 'searchable(scope)'],
362
372
  ranking: ['desc(dateApproved)', 'desc(status)', 'desc(updatedAt)'],
363
373
  maxValuesPerFacet: 1000,
364
374
  maxFacetHits: 100
@@ -439,7 +449,7 @@ var productionEnvironment = {
439
449
  },
440
450
  systemOperations: {
441
451
  searchableAttributes: ['name', 'unitPrice'],
442
- attributesForFaceting: ['searchable(pieces)', 'searchable(surface)', 'type', 'unitPrice'],
452
+ attributesForFaceting: ['searchable(lot)'],
443
453
  ranking: ['desc(updatedAt)'],
444
454
  maxValuesPerFacet: 1000,
445
455
  maxFacetHits: 100
@@ -465,6 +475,13 @@ var productionEnvironment = {
465
475
  maxValuesPerFacet: 1000,
466
476
  maxFacetHits: 100
467
477
  },
478
+ systemNomenclatures: {
479
+ searchableAttributes: ['identifier', 'value'],
480
+ attributesForFaceting: ['searchable(identifier)', 'searchable(status)'],
481
+ ranking: ['desc(updatedAt)'],
482
+ maxValuesPerFacet: 1000,
483
+ maxFacetHits: 100
484
+ },
468
485
  billing: {
469
486
  attributesForFaceting: ['searchable(scope)', 'customer', 'paid', 'searchable(status)'],
470
487
  maxValuesPerFacet: 1000,
@@ -472,7 +489,7 @@ var productionEnvironment = {
472
489
  },
473
490
  devisTemplates: {
474
491
  searchableAttributes: ['name'],
475
- attributesForFaceting: ['searchable(scope)', 'projectType', 'materialsProvider'],
492
+ attributesForFaceting: ['searchable(scope)', 'materialsProvider'],
476
493
  ranking: ['desc(updatedAt)'],
477
494
  maxValuesPerFacet: 1000,
478
495
  maxFacetHits: 100
@@ -512,8 +529,15 @@ var productionEnvironment = {
512
529
  maxFacetHits: 100
513
530
  },
514
531
  nomenclatures: {
515
- searchableAttributes: ['name'],
532
+ searchableAttributes: ['value'],
516
533
  attributesForFaceting: ['searchable(scope)', 'searchable(identifier)', 'searchable(status)'],
534
+ ranking: ['asc(value)'],
535
+ maxValuesPerFacet: 1000,
536
+ maxFacetHits: 100
537
+ },
538
+ operationsGroups: {
539
+ searchableAttributes: ['name'],
540
+ attributesForFaceting: ['searchable(scope)', 'searchable(status)', 'searchable(operationsCatalog)'],
517
541
  ranking: ['asc(name)'],
518
542
  maxValuesPerFacet: 1000,
519
543
  maxFacetHits: 100
@@ -593,12 +617,14 @@ var test = function test(base) {
593
617
  receptionVouchers: 'emulator-projects-reception-vouchers',
594
618
  operationsCatalogs: 'operations-catalogs',
595
619
  nomenclatures: 'nomenclatures',
620
+ operationsGroups: 'operations-groups',
596
621
  // used only for managment
597
622
  systemMaterials: 'system-materials',
598
623
  systemOperations: 'system-operations',
599
624
  systemOperationsMaterials: 'system-operations-materials',
600
625
  systemMaterialsProvider: 'system-materials-provider',
601
626
  systemStatus: 'test-system-status',
627
+ systemNomenclatures: 'test-system-nomenclatures',
602
628
  systemCategories: 'system-categories'
603
629
  }
604
630
  }),
@@ -647,12 +673,14 @@ var emulator = function emulator(base) {
647
673
  receptionVouchers: 'emulator-projects-reception-vouchers',
648
674
  operationsCatalogs: 'operations-catalogs',
649
675
  nomenclatures: 'nomenclatures',
676
+ operationsGroups: 'operations-groups',
650
677
  // used only for managment
651
678
  systemMaterials: 'system-materials',
652
679
  systemOperations: 'system-operations',
653
680
  systemOperationsMaterials: 'system-operations-materials',
654
681
  systemMaterialsProvider: 'system-materials-provider',
655
682
  systemStatus: 'emulator-system-status',
683
+ systemNomenclatures: 'emulator-system-nomenclatures',
656
684
  systemCategories: 'system-categories'
657
685
  }
658
686
  }),
@@ -743,7 +771,11 @@ var helpers = {
743
771
  invitations: /*#__PURE__*/FactoryCreateFunction(),
744
772
  downPayment: /*#__PURE__*/FactoryCreateFunction(),
745
773
  histories: /*#__PURE__*/FactoryCreateFunction(),
746
- receptionVoucher: /*#__PURE__*/FactoryCreateFunction()
774
+ receptionVoucher: /*#__PURE__*/FactoryCreateFunction(),
775
+ nomenclatures: /*#__PURE__*/FactoryCreateFunction(),
776
+ operationsCatalog: /*#__PURE__*/FactoryCreateFunction(),
777
+ operationsGroups: /*#__PURE__*/FactoryCreateFunction(),
778
+ devisVersions: /*#__PURE__*/FactoryCreateFunction()
747
779
  };
748
780
 
749
781
  /**
@@ -823,7 +855,7 @@ var uid = {
823
855
  timestamp: /*#__PURE__*/function () {
824
856
  return function (id, asDate) {
825
857
  var time = 0;
826
- var data = id.substr(0, 8);
858
+ var data = id.substring(0, 8);
827
859
 
828
860
  for (var i = 0; i < 8; i++) {
829
861
  time = time * 62 + ASCII_CHARS.indexOf(data[i]);
@@ -891,144 +923,438 @@ var getPath = function getPath(path, params) {
891
923
  */
892
924
  var createProducts = function createProducts(params) {
893
925
  var products = {
894
- standard: {
895
- id: params.standard.id,
896
- internal: 'standard',
926
+ classic: {
927
+ id: params.classic.id,
928
+ internal: 'classic',
897
929
  product: {
898
- price: 6900,
899
- active: true,
900
- description: 'Pour les entreprises unipersonnelles',
901
- id: params.standard.id,
902
- name: 'Standard',
930
+ id: params.classic.id,
931
+ name: 'Abonnement Articho',
932
+ description: '',
903
933
  type: 'service',
934
+ price: 159,
904
935
  main: true,
905
- rating: 1,
906
- order: 1,
907
- includes: {
908
- canCreateUser: false,
909
- maxTeamMembers: 1,
910
- accounting: true
911
- },
912
- plans: [params.standard.prices.monthly],
913
- tax_rates: params.standard.tax_rates
914
- },
915
- additionalUser: params.standard.prices.additionalUser,
916
- additionalUserPrice: params.standard.additionalUserPrice
917
- },
918
- plus: {
919
- id: params.plus.id,
920
- internal: 'plus',
921
- product: {
922
936
  active: true,
923
- description: 'Idéal pour les agences et les entreprises de plus grande taille',
924
- id: params.plus.id,
925
- name: 'Plus',
926
- type: 'service',
927
- rating: 2,
928
- main: true,
929
- price: 15900,
930
- order: 3,
931
- includes: {
932
- canCreateUser: true,
933
- maxTeamMembers: 10,
934
- importExport: true,
935
- accounting: true
936
- },
937
- tax_rates: params.plus.tax_rates,
938
- plans: [params.plus.prices.monthly]
939
- },
940
- additionalUser: params.plus.prices.additionalUser,
941
- additionalUserPrice: params.plus.additionalUserPrice
942
- },
943
- premium: {
944
- id: params.premium.id,
945
- internal: 'premium',
946
- product: {
947
- active: true,
948
- description: 'Pour les grandes entreprises qui cherchent des outils administratifs poussés',
949
- id: params.premium.id,
950
- name: 'Premium',
951
- type: 'service',
952
- isDefault: true,
953
- main: true,
937
+ isPrivate: false,
954
938
  rating: 3,
955
- tax_rates: params.premium.tax_rates,
956
- price: 29900,
957
- order: 2,
939
+ order: 3,
958
940
  includes: {
959
- canCreateUser: true,
960
- customCatalog: true,
961
- maxTeamMembers: 20,
962
- importExport: true,
941
+ maxAdminUsers: 1,
942
+ maxAgentUsers: 0,
943
+ maxProUsers: 0,
944
+ maxSellerUsers: 0,
945
+ authorizationManagement: true,
946
+ dashboard: true,
963
947
  accounting: true,
964
- clientInterface: true
948
+ projectStorage: true,
949
+ customCatalog: true,
950
+ customConfig: true,
951
+ exportReports: true,
952
+ externalApiIntegration: true,
953
+ support: true
965
954
  },
966
- plans: [params.premium.prices.monthly]
955
+ plans: Object.values(params.classic.tariffs).map(function (t) {
956
+ return t.id;
957
+ }),
958
+ tax_rates: params.classic.tax_rates
967
959
  },
968
- additionalUser: params.premium.prices.additionalUser,
969
- additionalUserPrice: params.premium.additionalUserPrice
970
- }
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
+
971
1166
  };
972
1167
  return products;
973
1168
  };
974
1169
 
975
1170
  var testing = {
976
- standard: {
977
- id: 'prod_HzWVSbBrLFn02Y',
1171
+ classic: {
1172
+ id: 'prod_KzmO4rORyWl8cA',
978
1173
  tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
979
- prices: {
980
- monthly: 'price_1K4ZYILFzcsAA7x6k4fgzosO',
981
- additionalUser: 'price_1K4ZYiLFzcsAA7x6u3G68s3N'
982
- },
983
- additionalUserPrice: 1000
984
- },
985
- plus: {
986
- id: 'prod_HzWYKl09U12eLQ',
987
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
988
- prices: {
989
- monthly: 'price_1HPXVBLFzcsAA7x61LF40zVU',
990
- additionalUser: 'price_1HRPfVLFzcsAA7x6JcMj1DWr'
991
- },
992
- additionalUserPrice: 1000
993
- },
994
- premium: {
995
- id: 'prod_HzWZVpSP77M3Pt',
996
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
997
- prices: {
998
- monthly: 'price_1HPXWPLFzcsAA7x6sjYdFXOR',
999
- additionalUser: 'price_1HRPjhLFzcsAA7x6o28A8tDC'
1000
- },
1001
- additionalUserPrice: 500
1002
- }
1174
+ tariffs: {
1175
+ base: {
1176
+ id: 'price_1KJmpiLFzcsAA7x6rLA0GNZX',
1177
+ price: 159,
1178
+ usageType: 'licensed',
1179
+ type: 'base'
1180
+ },
1181
+ additionalAdmin: {
1182
+ id: 'price_1KJmpiLFzcsAA7x6VtCIuhqw',
1183
+ price: 30,
1184
+ usageType: 'metered',
1185
+ type: 'extra_user'
1186
+ },
1187
+ additionalAgent: {
1188
+ id: 'price_1KJmpiLFzcsAA7x6gFBgAXkr',
1189
+ price: 20,
1190
+ usageType: 'metered',
1191
+ type: 'extra_user'
1192
+ },
1193
+ additionalPro: {
1194
+ id: 'price_1KJmpiLFzcsAA7x6JxTnlLC8',
1195
+ price: 10,
1196
+ usageType: 'metered',
1197
+ type: 'extra_user'
1198
+ },
1199
+ additionalSeller: {
1200
+ id: 'price_1KJmpiLFzcsAA7x6XS9PBgQo',
1201
+ price: 2,
1202
+ usageType: 'metered',
1203
+ type: 'extra_user'
1204
+ }
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
+
1003
1266
  };
1004
1267
  var production = {
1005
- standard: {
1006
- id: 'prod_HsAwETfIUblsAT',
1007
- tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1008
- prices: {
1009
- monthly: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
1010
- additionalUser: 'price_1HRQFTLFzcsAA7x6X9wS7JUr'
1011
- },
1012
- additionalUserPrice: 1000
1013
- },
1014
- plus: {
1015
- id: 'prod_HsB2YJPEZ9H98c',
1268
+ classic: {
1269
+ id: 'prod_KzmYFhrWXrzWdR',
1016
1270
  tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1017
- prices: {
1018
- monthly: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
1019
- additionalUser: 'price_1HRg1fLFzcsAA7x6QYbtnty6'
1020
- },
1021
- additionalUserPrice: 1000
1022
- },
1023
- premium: {
1024
- id: 'prod_HsB1kn49KcAbL1',
1025
- tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1026
- prices: {
1027
- monthly: 'price_1HIQfYLFzcsAA7x6AFuSBinh',
1028
- additionalUser: 'price_1HRfz6LFzcsAA7x6dFDETn6N'
1029
- },
1030
- additionalUserPrice: 500
1031
- }
1271
+ tariffs: {
1272
+ base: {
1273
+ id: 'price_1KJmzNLFzcsAA7x6I6gNlCpY',
1274
+ price: 159,
1275
+ usageType: 'licensed',
1276
+ type: 'base'
1277
+ },
1278
+ additionalAdmin: {
1279
+ id: 'price_1KJmzNLFzcsAA7x6Tl6D8Wus',
1280
+ price: 30,
1281
+ usageType: 'metered',
1282
+ type: 'extra_user'
1283
+ },
1284
+ additionalAgent: {
1285
+ id: 'price_1KJmzNLFzcsAA7x6DeUQScKY',
1286
+ price: 20,
1287
+ usageType: 'metered',
1288
+ type: 'extra_user'
1289
+ },
1290
+ additionalPro: {
1291
+ id: 'price_1KJmzNLFzcsAA7x695wsj6rA',
1292
+ price: 10,
1293
+ usageType: 'metered',
1294
+ type: 'extra_user'
1295
+ },
1296
+ additionalSeller: {
1297
+ id: 'price_1KJmzNLFzcsAA7x6gF62MX41',
1298
+ price: 2,
1299
+ usageType: 'metered',
1300
+ type: 'extra_user'
1301
+ }
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
+
1032
1358
  };
1033
1359
  /**
1034
1360
  *
@@ -1040,7 +1366,6 @@ var index$1 = (function (envName) {
1040
1366
  return createProducts(testing);
1041
1367
  });
1042
1368
 
1043
- // @eslint-ignore
1044
1369
  var ROLE;
1045
1370
 
1046
1371
  (function (ROLE) {
@@ -1053,6 +1378,15 @@ var ROLE;
1053
1378
  ROLE["SUPERADMIN"] = "superadmin";
1054
1379
  })(ROLE || (ROLE = {}));
1055
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
+
1056
1390
  var MaterialsProviderType;
1057
1391
 
1058
1392
  (function (MaterialsProviderType) {
@@ -1139,7 +1473,7 @@ var DocumentsTypeEnum;
1139
1473
  var EventsTypeEnum;
1140
1474
 
1141
1475
  (function (EventsTypeEnum) {
1142
- EventsTypeEnum["OTHER"] = "OTHER";
1476
+ EventsTypeEnum["OTHER"] = "AUTRE";
1143
1477
  EventsTypeEnum["VISIT"] = "VISIT";
1144
1478
  EventsTypeEnum["DELIVERY"] = "DELIVERY";
1145
1479
  EventsTypeEnum["CONSTRUCTION"] = "CONSTRUCTION";
@@ -1455,6 +1789,7 @@ var EmailTemplate;
1455
1789
  EmailTemplate["USER_CONTACT"] = "user-contact";
1456
1790
  EmailTemplate["PLAN"] = "plan";
1457
1791
  EmailTemplate["BILL"] = "bill";
1792
+ EmailTemplate["MEDIAS"] = "medias";
1458
1793
  })(EmailTemplate || (EmailTemplate = {}));
1459
1794
 
1460
1795
  var DevisPdfType;
@@ -1513,6 +1848,9 @@ var HistoryActionEnum;
1513
1848
  HistoryActionEnum["ASSIGN_SELLER"] = "ASSIGN_SELLER";
1514
1849
  HistoryActionEnum["UNASSIGN_SELLER"] = "UNASSIGN_SELLER";
1515
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";
1516
1854
  })(HistoryActionEnum || (HistoryActionEnum = {}));
1517
1855
 
1518
1856
  var HistoryEntityType;
@@ -1539,6 +1877,14 @@ var NomenclaturesIdentifier;
1539
1877
  NomenclaturesIdentifier["EVENTS_TYPES"] = "EVENTS_TYPES";
1540
1878
  NomenclaturesIdentifier["PROJECTS_CATEGORY"] = "PROJECTS_CATEGORY";
1541
1879
  NomenclaturesIdentifier["TVA"] = "TVA";
1880
+ NomenclaturesIdentifier["SUPPLIERS"] = "SUPPLIERS";
1881
+ NomenclaturesIdentifier["DISCOUNTS"] = "DISCOUNTS";
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";
1542
1888
  })(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
1543
1889
 
1544
1890
  var OperationQuantityEnum;
@@ -1567,6 +1913,7 @@ var MaterialResponsible;
1567
1913
  MaterialResponsible["AGENT"] = "AGENT";
1568
1914
  MaterialResponsible["SELLER"] = "SELLER";
1569
1915
  MaterialResponsible["ENTERPRISE"] = "ENTERPRISE";
1916
+ MaterialResponsible["PROVIDER"] = "PROVIDER";
1570
1917
  })(MaterialResponsible || (MaterialResponsible = {}));
1571
1918
 
1572
1919
  var ProjectPriceTypeEnum;
@@ -1577,9 +1924,17 @@ var ProjectPriceTypeEnum;
1577
1924
  ProjectPriceTypeEnum["rejected"] = "rejected";
1578
1925
  })(ProjectPriceTypeEnum || (ProjectPriceTypeEnum = {}));
1579
1926
 
1927
+ var DevisFormatEnum;
1928
+
1929
+ (function (DevisFormatEnum) {
1930
+ DevisFormatEnum["PIECE"] = "PIECE";
1931
+ DevisFormatEnum["LOT"] = "LOT";
1932
+ })(DevisFormatEnum || (DevisFormatEnum = {}));
1933
+
1580
1934
  var types = {
1581
1935
  __proto__: null,
1582
1936
  get ROLE () { return ROLE; },
1937
+ get DevisHistoryType () { return DevisHistoryType; },
1583
1938
  get MaterialsProviderType () { return MaterialsProviderType; },
1584
1939
  get ProjectType () { return ProjectType; },
1585
1940
  get OperationStatusEnum () { return OperationStatusEnum; },
@@ -1630,7 +1985,8 @@ var types = {
1630
1985
  get OperationQuantityEnum () { return OperationQuantityEnum; },
1631
1986
  get OperationRulesEnum () { return OperationRulesEnum; },
1632
1987
  get MaterialResponsible () { return MaterialResponsible; },
1633
- get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; }
1988
+ get ProjectPriceTypeEnum () { return ProjectPriceTypeEnum; },
1989
+ get DevisFormatEnum () { return DevisFormatEnum; }
1634
1990
  };
1635
1991
 
1636
1992
  function isBuffer(obj) {