@placeshakr/config 10.19.6-alpha.0 → 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.
@@ -161,7 +161,8 @@ var productionEnvironment = {
161
161
  notifications: 'enterprises/{enterpriseId}/notifications',
162
162
  nomenclatures: 'enterprises/{enterpriseId}/nomenclatures',
163
163
  operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs',
164
- operationsGroups: 'enterprises/{enterpriseId}/operationsGroups'
164
+ operationsGroups: 'enterprises/{enterpriseId}/operationsGroups',
165
+ devisVersions: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions'
165
166
  },
166
167
  docs: {
167
168
  user: 'users/{userId}',
@@ -205,7 +206,8 @@ var productionEnvironment = {
205
206
  notification: 'enterprises/{enterpriseId}/notifications/{notificationId}',
206
207
  nomenclatures: 'enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}',
207
208
  operationsCatalogs: 'enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}',
208
- operationsGroups: 'enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}'
209
+ operationsGroups: 'enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}',
210
+ devisVersion: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions/{versionId}'
209
211
  },
210
212
  indexes: {
211
213
  users: 'users',
@@ -772,7 +774,8 @@ var helpers = {
772
774
  receptionVoucher: /*#__PURE__*/FactoryCreateFunction(),
773
775
  nomenclatures: /*#__PURE__*/FactoryCreateFunction(),
774
776
  operationsCatalog: /*#__PURE__*/FactoryCreateFunction(),
775
- operationsGroups: /*#__PURE__*/FactoryCreateFunction()
777
+ operationsGroups: /*#__PURE__*/FactoryCreateFunction(),
778
+ devisVersions: /*#__PURE__*/FactoryCreateFunction()
776
779
  };
777
780
 
778
781
  /**
@@ -920,82 +923,6 @@ var getPath = function getPath(path, params) {
920
923
  */
921
924
  var createProducts = function createProducts(params) {
922
925
  var products = {
923
- standard: {
924
- id: params.standard.id,
925
- internal: 'standard',
926
- product: {
927
- id: params.standard.id,
928
- name: 'Standard',
929
- description: 'Pour les entreprises unipersonnelles',
930
- type: 'service',
931
- price: 69,
932
- main: true,
933
- active: true,
934
- isPrivate: true,
935
- rating: 1,
936
- order: 1,
937
- includes: {
938
- maxAdminUsers: null,
939
- maxAgentUsers: null,
940
- maxProUsers: null,
941
- maxSellerUsers: null,
942
- authorizationManagement: true,
943
- dashboard: true,
944
- accounting: true,
945
- projectStorage: true,
946
- customCatalog: true,
947
- customConfig: true,
948
- exportReports: true,
949
- externalApiIntegration: true,
950
- support: true
951
- },
952
- plans: Object.values(params.standard.tariffs).map(function (t) {
953
- return t.id;
954
- }),
955
- tax_rates: params.standard.tax_rates
956
- },
957
- tariffs: params.standard.tariffs // additionalUser: params.standard.prices.additionalUser,
958
- // additionalUserPrice: params.standard.additionalUserPrice,
959
-
960
- },
961
- plus: {
962
- id: params.plus.id,
963
- internal: 'plus',
964
- product: {
965
- id: params.plus.id,
966
- name: 'Plus',
967
- description: 'Idéal pour les agences et les entreprises de plus grande taille',
968
- type: 'service',
969
- price: 159,
970
- main: true,
971
- active: true,
972
- isPrivate: true,
973
- rating: 2,
974
- order: 2,
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.plus.tariffs).map(function (t) {
991
- return t.id;
992
- }),
993
- tax_rates: params.plus.tax_rates
994
- },
995
- tariffs: params.plus.tariffs // additionalUser: params.plus.prices.additionalUser,
996
- // additionalUserPrice: params.plus.additionalUserPrice,
997
-
998
- },
999
926
  classic: {
1000
927
  id: params.classic.id,
1001
928
  internal: 'classic',
@@ -1007,7 +934,7 @@ var createProducts = function createProducts(params) {
1007
934
  price: 159,
1008
935
  main: true,
1009
936
  active: true,
1010
- isPrivate: true,
937
+ isPrivate: false,
1011
938
  rating: 3,
1012
939
  order: 3,
1013
940
  includes: {
@@ -1030,201 +957,217 @@ var createProducts = function createProducts(params) {
1030
957
  }),
1031
958
  tax_rates: params.classic.tax_rates
1032
959
  },
1033
- tariffs: params.classic.tariffs // additionalUser: params.classic.prices.additionalUser,
1034
- // additionalUserPrice: params.classic.additionalUserPrice,
1035
-
1036
- },
1037
- test_1: {
1038
- id: params.test_1.id,
1039
- internal: 'test_1',
1040
- product: {
1041
- id: params.test_1.id,
1042
- name: 'Test 1',
1043
- description: '',
1044
- type: 'service',
1045
- price: 50,
1046
- main: true,
1047
- active: true,
1048
- isPrivate: false,
1049
- rating: 1,
1050
- order: 4,
1051
- includes: {
1052
- maxAdminUsers: 1,
1053
- maxAgentUsers: 0,
1054
- maxProUsers: 0,
1055
- maxSellerUsers: 0,
1056
- authorizationManagement: true,
1057
- dashboard: true,
1058
- accounting: true,
1059
- projectStorage: true,
1060
- customCatalog: true,
1061
- customConfig: true,
1062
- exportReports: true,
1063
- externalApiIntegration: true,
1064
- support: true
1065
- },
1066
- plans: Object.values(params.test_1.tariffs).map(function (t) {
1067
- return t.id;
1068
- }),
1069
- tax_rates: params.test_1.tax_rates
1070
- },
1071
- tariffs: params.test_1.tariffs // additionalUser: params.test_1.prices.additionalUser,
1072
- // additionalUserPrice: params.test_1.additionalUserPrice,
1073
-
1074
- },
1075
- test_2: {
1076
- id: params.test_2.id,
1077
- internal: 'test_2',
1078
- product: {
1079
- id: params.test_2.id,
1080
- name: 'Test 2',
1081
- description: '',
1082
- type: 'service',
1083
- price: 100,
1084
- main: true,
1085
- active: true,
1086
- isPrivate: false,
1087
- rating: 2,
1088
- order: 5,
1089
- includes: {
1090
- maxAdminUsers: 1,
1091
- maxAgentUsers: 0,
1092
- maxProUsers: 0,
1093
- maxSellerUsers: 0,
1094
- authorizationManagement: true,
1095
- dashboard: true,
1096
- accounting: true,
1097
- projectStorage: true,
1098
- customCatalog: true,
1099
- customConfig: true,
1100
- exportReports: true,
1101
- externalApiIntegration: true,
1102
- support: true
1103
- },
1104
- plans: Object.values(params.test_2.tariffs).map(function (t) {
1105
- return t.id;
1106
- }),
1107
- tax_rates: params.test_2.tax_rates
1108
- },
1109
- tariffs: params.test_2.tariffs // additionalUser: params.test_2.prices.additionalUser,
1110
- // additionalUserPrice: params.test_2.additionalUserPrice,
1111
-
1112
- },
1113
- test_3: {
1114
- id: params.test_3.id,
1115
- internal: 'test_3',
1116
- product: {
1117
- id: params.test_3.id,
1118
- name: 'Test 3',
1119
- description: '',
1120
- type: 'service',
1121
- price: 80,
1122
- main: true,
1123
- active: true,
1124
- isPrivate: false,
1125
- rating: 3,
1126
- order: 6,
1127
- includes: {
1128
- maxAdminUsers: null,
1129
- maxAgentUsers: null,
1130
- maxProUsers: null,
1131
- maxSellerUsers: null,
1132
- authorizationManagement: true,
1133
- dashboard: true,
1134
- accounting: true,
1135
- projectStorage: true,
1136
- customCatalog: true,
1137
- customConfig: true,
1138
- exportReports: true,
1139
- externalApiIntegration: true,
1140
- support: true
1141
- },
1142
- plans: Object.values(params.test_3.tariffs).map(function (t) {
1143
- return t.id;
1144
- }),
1145
- tax_rates: params.test_3.tax_rates
1146
- },
1147
- tariffs: params.test_3.tariffs // additionalUser: params.test_3.prices.additionalUser,
1148
- // additionalUserPrice: params.test_3.additionalUserPrice,
1149
-
1150
- },
1151
- test_4: {
1152
- id: params.test_4.id,
1153
- internal: 'test_4',
1154
- product: {
1155
- id: params.test_4.id,
1156
- name: 'Test 4',
1157
- description: '',
1158
- type: 'service',
1159
- price: 65,
1160
- main: true,
1161
- active: true,
1162
- isPrivate: false,
1163
- rating: 3,
1164
- order: 7,
1165
- includes: {
1166
- maxAdminUsers: 3,
1167
- maxAgentUsers: 3,
1168
- maxProUsers: 3,
1169
- maxSellerUsers: 3,
1170
- authorizationManagement: true,
1171
- dashboard: true,
1172
- accounting: true,
1173
- projectStorage: true,
1174
- customCatalog: true,
1175
- customConfig: true,
1176
- exportReports: true,
1177
- externalApiIntegration: true,
1178
- support: true
1179
- },
1180
- plans: Object.values(params.test_4.tariffs).map(function (t) {
1181
- return t.id;
1182
- }),
1183
- tax_rates: params.test_4.tax_rates
1184
- },
1185
- tariffs: params.test_4.tariffs // additionalUser: params.test_4.prices.additionalUser,
1186
- // additionalUserPrice: params.test_4.additionalUserPrice,
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
+ // },
1187
1165
 
1188
- }
1189
1166
  };
1190
1167
  return products;
1191
1168
  };
1192
1169
 
1193
1170
  var testing = {
1194
- standard: {
1195
- id: 'prod_KzmEyS3UQ5lbnz',
1196
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1197
- tariffs: {
1198
- base: {
1199
- id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
1200
- price: 69,
1201
- usageType: 'licensed',
1202
- type: 'base'
1203
- }
1204
- } // prices: {
1205
- // monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
1206
- // additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe',
1207
- // },
1208
- // additionalUserPrice: 10,
1209
-
1210
- },
1211
- plus: {
1212
- id: 'prod_KzmyY1ysEOeK93',
1213
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1214
- tariffs: {
1215
- base: {
1216
- id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
1217
- price: 159,
1218
- usageType: 'licensed',
1219
- type: 'base'
1220
- }
1221
- } // prices: {
1222
- // monthly: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
1223
- // additionalUser: 'price_1KJnP0LFzcsAA7x6s3rO71QX',
1224
- // },
1225
- // additionalUserPrice: 5,
1226
-
1227
- },
1228
1171
  classic: {
1229
1172
  id: 'prod_KzmO4rORyWl8cA',
1230
1173
  tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
@@ -1259,189 +1202,69 @@ var testing = {
1259
1202
  usageType: 'metered',
1260
1203
  type: 'extra_user'
1261
1204
  }
1262
- } // prices: {
1263
- // monthly: 'price_1KJmpiLFzcsAA7x6rLA0GNZX',
1264
- // additionalUser: 'price_1KJmpiLFzcsAA7x6VtCIuhqw',
1265
- // },
1266
- // additionalUserPrice: 30,
1267
-
1268
- },
1269
- test_1: {
1270
- id: 'prod_L2ZqDUzF0HFuFN',
1271
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1272
- tariffs: {
1273
- base: {
1274
- id: 'price_1KMUgwLFzcsAA7x6c3wk0Buy',
1275
- price: 50,
1276
- usageType: 'licensed',
1277
- type: 'base'
1278
- },
1279
- additionalAdmin: {
1280
- id: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
1281
- price: 10,
1282
- usageType: 'metered',
1283
- type: 'extra_user'
1284
- },
1285
- additionalAgent: {
1286
- id: 'price_1KMUgwLFzcsAA7x6fyOLh2gM',
1287
- price: 8,
1288
- usageType: 'metered',
1289
- type: 'extra_user'
1290
- },
1291
- additionalPro: {
1292
- id: 'price_1KMUgwLFzcsAA7x6eB6Oevw2',
1293
- price: 6,
1294
- usageType: 'metered',
1295
- type: 'extra_user'
1296
- },
1297
- additionalSeller: {
1298
- id: 'price_1KMUgwLFzcsAA7x6s9WBpxTS',
1299
- price: 4,
1300
- usageType: 'metered',
1301
- type: 'extra_user'
1302
- }
1303
- } // prices: {
1304
- // monthly: 'price_1KMUgwLFzcsAA7x6c3wk0Buy',
1305
- // additionalUser: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
1306
- // },
1307
- // additionalUserPrice: 10,
1308
-
1309
- },
1310
- test_2: {
1311
- id: 'prod_L2xmEk7gqqRJtS',
1312
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1313
- tariffs: {
1314
- base: {
1315
- id: 'price_1KMrqrLFzcsAA7x62Ag7xwjU',
1316
- price: 100,
1317
- usageType: 'licensed',
1318
- type: 'base'
1319
- },
1320
- additionalAdmin: {
1321
- id: 'price_1KMrqrLFzcsAA7x6cu3it43A',
1322
- price: 20,
1323
- usageType: 'metered',
1324
- type: 'extra_user'
1325
- },
1326
- additionalAgent: {
1327
- id: 'price_1KMrqrLFzcsAA7x6eNCDb3D6',
1328
- price: 16,
1329
- usageType: 'metered',
1330
- type: 'extra_user'
1331
- },
1332
- additionalPro: {
1333
- id: 'price_1KMrqrLFzcsAA7x6wRuDxyyN',
1334
- price: 12,
1335
- usageType: 'metered',
1336
- type: 'extra_user'
1337
- },
1338
- additionalSeller: {
1339
- id: 'price_1KMrqsLFzcsAA7x61NRR9gne',
1340
- price: 8,
1341
- usageType: 'metered',
1342
- type: 'extra_user'
1343
- }
1344
- } // prices: {
1345
- // monthly: 'price_1KMrqrLFzcsAA7x62Ag7xwjU',
1346
- // additionalUser: 'price_1KMrqrLFzcsAA7x6cu3it43A',
1347
- // },
1348
- // additionalUserPrice: 20,
1349
-
1350
- },
1351
- test_3: {
1352
- id: 'prod_L2xnCHGi6QNgX8',
1353
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1354
- tariffs: {
1355
- base: {
1356
- id: 'price_1KMrs0LFzcsAA7x6p2tkW6lu',
1357
- price: 80,
1358
- usageType: 'licensed',
1359
- type: 'base'
1360
- }
1361
- } // prices: {
1362
- // monthly: 'price_1KMrs0LFzcsAA7x6p2tkW6lu',
1363
- // additionalUser: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
1364
- // },
1365
- // additionalUserPrice: 10,
1366
-
1367
- },
1368
- test_4: {
1369
- id: 'prod_L2yWF4ssugw8Ln',
1370
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1371
- tariffs: {
1372
- base: {
1373
- id: 'price_1KMsZFLFzcsAA7x6qVbCQpuN',
1374
- price: 65,
1375
- usageType: 'licensed',
1376
- type: 'base'
1377
- },
1378
- additionalAdmin: {
1379
- id: 'price_1KMsZFLFzcsAA7x6EjaDfica',
1380
- price: 15,
1381
- usageType: 'metered',
1382
- type: 'extra_user'
1383
- },
1384
- additionalAgent: {
1385
- id: 'price_1KMsZFLFzcsAA7x6T1FI1WF4',
1386
- price: 12,
1387
- usageType: 'metered',
1388
- type: 'extra_user'
1389
- },
1390
- additionalPro: {
1391
- id: 'price_1KMsZFLFzcsAA7x6L6I0M1ND',
1392
- price: 9,
1393
- usageType: 'metered',
1394
- type: 'extra_user'
1395
- },
1396
- additionalSeller: {
1397
- id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW',
1398
- price: 6,
1399
- usageType: 'metered',
1400
- type: 'extra_user'
1401
- }
1402
- } // prices: {
1403
- // monthly: 'price_1KMsZFLFzcsAA7x6qVbCQpuN',
1404
- // additionalUser: 'price_1KMsZFLFzcsAA7x6EjaDfica',
1405
- // },
1406
- // additionalUserPrice: 15,
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
+ // },
1407
1265
 
1408
- }
1409
1266
  };
1410
1267
  var production = {
1411
- standard: {
1412
- id: 'prod_HsAwETfIUblsAT',
1413
- tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1414
- tariffs: {
1415
- base: {
1416
- id: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
1417
- price: 69,
1418
- usageType: 'licensed',
1419
- type: 'base'
1420
- }
1421
- } // prices: {
1422
- // monthly: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
1423
- // additionalUser: 'price_1HRQFTLFzcsAA7x6X9wS7JUr',
1424
- // },
1425
- // additionalUserPrice: 10,
1426
-
1427
- },
1428
- plus: {
1429
- id: 'prod_HsB2YJPEZ9H98c',
1430
- tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1431
- tariffs: {
1432
- base: {
1433
- id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
1434
- price: 159,
1435
- usageType: 'licensed',
1436
- type: 'base'
1437
- }
1438
- } // prices: {
1439
- // monthly: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
1440
- // additionalUser: 'price_1HRg1fLFzcsAA7x6QYbtnty6',
1441
- // },
1442
- // additionalUserPrice: 5,
1443
-
1444
- },
1445
1268
  classic: {
1446
1269
  id: 'prod_KzmYFhrWXrzWdR',
1447
1270
  tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
@@ -1476,153 +1299,62 @@ var production = {
1476
1299
  usageType: 'metered',
1477
1300
  type: 'extra_user'
1478
1301
  }
1479
- } // prices: {
1480
- // monthly: 'price_1KJmzNLFzcsAA7x6I6gNlCpY',
1481
- // additionalUser: 'price_1KJmzNLFzcsAA7x6Tl6D8Wus',
1482
- // },
1483
- // additionalUserPrice: 30,
1484
-
1485
- },
1486
- test_1: {
1487
- id: 'prod_L2ZqDUzF0HFuFN',
1488
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1489
- tariffs: {
1490
- base: {
1491
- id: 'price_1KMUgwLFzcsAA7x6c3wk0Buy',
1492
- price: 50,
1493
- usageType: 'licensed',
1494
- type: 'base'
1495
- },
1496
- additionalAdmin: {
1497
- id: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
1498
- price: 10,
1499
- usageType: 'metered',
1500
- type: 'extra_user'
1501
- },
1502
- additionalAgent: {
1503
- id: 'price_1KMUgwLFzcsAA7x6fyOLh2gM',
1504
- price: 8,
1505
- usageType: 'metered',
1506
- type: 'extra_user'
1507
- },
1508
- additionalPro: {
1509
- id: 'price_1KMUgwLFzcsAA7x6eB6Oevw2',
1510
- price: 6,
1511
- usageType: 'metered',
1512
- type: 'extra_user'
1513
- },
1514
- additionalSeller: {
1515
- id: 'price_1KMUgwLFzcsAA7x6s9WBpxTS',
1516
- price: 4,
1517
- usageType: 'metered',
1518
- type: 'extra_user'
1519
- }
1520
- } // prices: {
1521
- // monthly: 'price_1KMUgwLFzcsAA7x6c3wk0Buy',
1522
- // additionalUser: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
1523
- // },
1524
- // additionalUserPrice: 10,
1525
-
1526
- },
1527
- test_2: {
1528
- id: 'prod_L2xmEk7gqqRJtS',
1529
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1530
- tariffs: {
1531
- base: {
1532
- id: 'price_1KMrqrLFzcsAA7x62Ag7xwjU',
1533
- price: 100,
1534
- usageType: 'licensed',
1535
- type: 'base'
1536
- },
1537
- additionalAdmin: {
1538
- id: 'price_1KMrqrLFzcsAA7x6cu3it43A',
1539
- price: 20,
1540
- usageType: 'metered',
1541
- type: 'extra_user'
1542
- },
1543
- additionalAgent: {
1544
- id: 'price_1KMrqrLFzcsAA7x6eNCDb3D6',
1545
- price: 16,
1546
- usageType: 'metered',
1547
- type: 'extra_user'
1548
- },
1549
- additionalPro: {
1550
- id: 'price_1KMrqrLFzcsAA7x6wRuDxyyN',
1551
- price: 12,
1552
- usageType: 'metered',
1553
- type: 'extra_user'
1554
- },
1555
- additionalSeller: {
1556
- id: 'price_1KMrqsLFzcsAA7x61NRR9gne',
1557
- price: 8,
1558
- usageType: 'metered',
1559
- type: 'extra_user'
1560
- }
1561
- } // prices: {
1562
- // monthly: 'price_1KMrqrLFzcsAA7x62Ag7xwjU',
1563
- // additionalUser: 'price_1KMrqrLFzcsAA7x6cu3it43A',
1564
- // },
1565
- // additionalUserPrice: 20,
1566
-
1567
- },
1568
- test_3: {
1569
- id: 'prod_L2xnCHGi6QNgX8',
1570
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1571
- tariffs: {
1572
- base: {
1573
- id: 'price_1KMrs0LFzcsAA7x6p2tkW6lu',
1574
- price: 80,
1575
- usageType: 'licensed',
1576
- type: 'base'
1577
- }
1578
- } // prices: {
1579
- // monthly: 'price_1KMrs0LFzcsAA7x6p2tkW6lu',
1580
- // additionalUser: 'price_1KMUgwLFzcsAA7x6X8qYBxls',
1581
- // },
1582
- // additionalUserPrice: 10,
1583
-
1584
- },
1585
- test_4: {
1586
- id: 'prod_L2yWF4ssugw8Ln',
1587
- tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1588
- tariffs: {
1589
- base: {
1590
- id: 'price_1KMsZFLFzcsAA7x6qVbCQpuN',
1591
- price: 65,
1592
- usageType: 'licensed',
1593
- type: 'base'
1594
- },
1595
- additionalAdmin: {
1596
- id: 'price_1KMsZFLFzcsAA7x6EjaDfica',
1597
- price: 15,
1598
- usageType: 'metered',
1599
- type: 'extra_user'
1600
- },
1601
- additionalAgent: {
1602
- id: 'price_1KMsZFLFzcsAA7x6T1FI1WF4',
1603
- price: 12,
1604
- usageType: 'metered',
1605
- type: 'extra_user'
1606
- },
1607
- additionalPro: {
1608
- id: 'price_1KMsZFLFzcsAA7x6L6I0M1ND',
1609
- price: 9,
1610
- usageType: 'metered',
1611
- type: 'extra_user'
1612
- },
1613
- additionalSeller: {
1614
- id: 'price_1KMsZFLFzcsAA7x6G5GXzPeW',
1615
- price: 6,
1616
- usageType: 'metered',
1617
- type: 'extra_user'
1618
- }
1619
- } // prices: {
1620
- // monthly: 'price_1KMsZFLFzcsAA7x6qVbCQpuN',
1621
- // additionalUser: 'price_1KMsZFLFzcsAA7x6EjaDfica',
1622
- // },
1623
- // additionalUserPrice: 15,
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
+ // },
1624
1357
 
1625
- }
1626
1358
  };
1627
1359
  /**
1628
1360
  *
@@ -1634,7 +1366,6 @@ var index$1 = (function (envName) {
1634
1366
  return createProducts(testing);
1635
1367
  });
1636
1368
 
1637
- // @eslint-ignore
1638
1369
  var ROLE;
1639
1370
 
1640
1371
  (function (ROLE) {
@@ -1652,6 +1383,8 @@ var DevisHistoryType;
1652
1383
  (function (DevisHistoryType) {
1653
1384
  DevisHistoryType["CHANGE_STATUS"] = "CHANGE_STATUS";
1654
1385
  DevisHistoryType["SENT_TO_CLIENT"] = "SENT_TO_CLIENT";
1386
+ DevisHistoryType["EMAIL_EVENT"] = "EMAIL_EVENT";
1387
+ DevisHistoryType["NEW_VERSION"] = "NEW_VERSION";
1655
1388
  })(DevisHistoryType || (DevisHistoryType = {}));
1656
1389
 
1657
1390
  var MaterialsProviderType;
@@ -2056,6 +1789,7 @@ var EmailTemplate;
2056
1789
  EmailTemplate["USER_CONTACT"] = "user-contact";
2057
1790
  EmailTemplate["PLAN"] = "plan";
2058
1791
  EmailTemplate["BILL"] = "bill";
1792
+ EmailTemplate["MEDIAS"] = "medias";
2059
1793
  })(EmailTemplate || (EmailTemplate = {}));
2060
1794
 
2061
1795
  var DevisPdfType;
@@ -2114,6 +1848,9 @@ var HistoryActionEnum;
2114
1848
  HistoryActionEnum["ASSIGN_SELLER"] = "ASSIGN_SELLER";
2115
1849
  HistoryActionEnum["UNASSIGN_SELLER"] = "UNASSIGN_SELLER";
2116
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";
2117
1854
  })(HistoryActionEnum || (HistoryActionEnum = {}));
2118
1855
 
2119
1856
  var HistoryEntityType;
@@ -2147,6 +1884,7 @@ var NomenclaturesIdentifier;
2147
1884
  NomenclaturesIdentifier["DEVIS_TYPES"] = "DEVIS_TYPES";
2148
1885
  NomenclaturesIdentifier["COMMENTS_MODELS"] = "COMMENTS_MODELS";
2149
1886
  NomenclaturesIdentifier["EMAILS_COMMENTS_MODELS"] = "EMAILS_COMMENTS_MODELS";
1887
+ NomenclaturesIdentifier["PAYMENT_PLANNING"] = "PAYMENT_PLANNING";
2150
1888
  })(NomenclaturesIdentifier || (NomenclaturesIdentifier = {}));
2151
1889
 
2152
1890
  var OperationQuantityEnum;
@@ -2175,6 +1913,7 @@ var MaterialResponsible;
2175
1913
  MaterialResponsible["AGENT"] = "AGENT";
2176
1914
  MaterialResponsible["SELLER"] = "SELLER";
2177
1915
  MaterialResponsible["ENTERPRISE"] = "ENTERPRISE";
1916
+ MaterialResponsible["PROVIDER"] = "PROVIDER";
2178
1917
  })(MaterialResponsible || (MaterialResponsible = {}));
2179
1918
 
2180
1919
  var ProjectPriceTypeEnum;