@placeshakr/config 10.19.6-alpha.3 → 10.19.6-alpha.4

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.
@@ -320,7 +320,7 @@ var productionEnvironment = {
320
320
  },
321
321
  materials: {
322
322
  searchableAttributes: ['name', 'unitPrice', 'provider'],
323
- attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', 'margin.id'],
323
+ attributesForFaceting: ['unitPrice', 'searchable(scope)', 'searchable(provider)', 'searchable(category)', 'margin.id', 'supplier.id'],
324
324
  ranking: ['asc(name)'],
325
325
  maxValuesPerFacet: 1000,
326
326
  maxFacetHits: 100
@@ -958,75 +958,79 @@ var createProducts = function createProducts(params) {
958
958
  tax_rates: params.classic.tax_rates
959
959
  },
960
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: {
961
+ },
962
+ standard: {
963
+ id: params.standard.id,
964
+ internal: 'standard',
965
+ product: {
966
+ id: params.standard.id,
967
+ name: 'Standard',
968
+ description: 'Pour les entreprises unipersonnelles',
969
+ type: 'service',
970
+ price: 69,
971
+ main: true,
972
+ active: true,
973
+ isPrivate: true,
974
+ rating: 1,
975
+ order: 1,
976
+ includes: {
977
+ maxAdminUsers: null,
978
+ maxAgentUsers: null,
979
+ maxProUsers: null,
980
+ maxSellerUsers: null,
981
+ authorizationManagement: true,
982
+ dashboard: true,
983
+ accounting: true,
984
+ projectStorage: true,
985
+ customCatalog: true,
986
+ customConfig: true,
987
+ exportReports: true,
988
+ externalApiIntegration: true,
989
+ support: true
990
+ },
991
+ plans: Object.values(params.standard.tariffs).map(function (t) {
992
+ return t.id;
993
+ }),
994
+ tax_rates: params.standard.tax_rates
995
+ },
996
+ tariffs: params.standard.tariffs
997
+ },
998
+ plus: {
999
+ id: params.plus.id,
1000
+ internal: 'plus',
1001
+ product: {
1002
+ id: params.plus.id,
1003
+ name: 'Plus',
1004
+ description: 'Idéal pour les agences et les entreprises de plus grande taille',
1005
+ type: 'service',
1006
+ price: 159,
1007
+ main: true,
1008
+ active: true,
1009
+ isPrivate: true,
1010
+ rating: 2,
1011
+ order: 2,
1012
+ includes: {
1013
+ maxAdminUsers: null,
1014
+ maxAgentUsers: null,
1015
+ maxProUsers: null,
1016
+ maxSellerUsers: null,
1017
+ authorizationManagement: true,
1018
+ dashboard: true,
1019
+ accounting: true,
1020
+ projectStorage: true,
1021
+ customCatalog: true,
1022
+ customConfig: true,
1023
+ exportReports: true,
1024
+ externalApiIntegration: true,
1025
+ support: true
1026
+ },
1027
+ plans: Object.values(params.plus.tariffs).map(function (t) {
1028
+ return t.id;
1029
+ }),
1030
+ tax_rates: params.plus.tax_rates
1031
+ },
1032
+ tariffs: params.plus.tariffs
1033
+ } // test_1: {
1030
1034
  // id: params.test_1.id,
1031
1035
  // internal: 'test_1',
1032
1036
  // product: {
@@ -1203,26 +1207,36 @@ var testing = {
1203
1207
  type: 'extra_user'
1204
1208
  }
1205
1209
  }
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: {
1210
+ },
1211
+ standard: {
1212
+ id: 'prod_KzmEyS3UQ5lbnz',
1213
+ tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1214
+ tariffs: {
1215
+ base: {
1216
+ id: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
1217
+ price: 69,
1218
+ usageType: 'licensed',
1219
+ type: 'base'
1220
+ }
1221
+ } // prices: {
1222
+ // monthly: 'price_1KJmg4LFzcsAA7x6SMfj1iDu',
1223
+ // additionalUser: 'price_1KJmg4LFzcsAA7x6yzvGdoxe',
1224
+ // },
1225
+ // additionalUserPrice: 10,
1226
+
1227
+ },
1228
+ plus: {
1229
+ id: 'prod_KzmyY1ysEOeK93',
1230
+ tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1231
+ tariffs: {
1232
+ base: {
1233
+ id: 'price_1KJnP0LFzcsAA7x6oDVeaPAv',
1234
+ price: 159,
1235
+ usageType: 'licensed',
1236
+ type: 'base'
1237
+ }
1238
+ }
1239
+ } // test_1: {
1226
1240
  // id: 'prod_L2ZqDUzF0HFuFN',
1227
1241
  // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1228
1242
  // tariffs: {
@@ -1300,21 +1314,31 @@ var production = {
1300
1314
  type: 'extra_user'
1301
1315
  }
1302
1316
  }
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: {
1317
+ },
1318
+ standard: {
1319
+ id: 'prod_HsAwETfIUblsAT',
1320
+ tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1321
+ tariffs: {
1322
+ base: {
1323
+ id: 'price_1HIQaILFzcsAA7x6NVk3cJu1',
1324
+ price: 69,
1325
+ usageType: 'licensed',
1326
+ type: 'base'
1327
+ }
1328
+ }
1329
+ },
1330
+ plus: {
1331
+ id: 'prod_HsB2YJPEZ9H98c',
1332
+ tax_rates: ['txr_1HIMA8LFzcsAA7x61nsqfrYU'],
1333
+ tariffs: {
1334
+ base: {
1335
+ id: 'price_1HIQg0LFzcsAA7x6X6lfFUdv',
1336
+ price: 159,
1337
+ usageType: 'licensed',
1338
+ type: 'base'
1339
+ }
1340
+ }
1341
+ } // test_1: {
1318
1342
  // id: 'prod_L2ZqDUzF0HFuFN',
1319
1343
  // tax_rates: ['txr_1HPXZVLFzcsAA7x6w0zpHu01'],
1320
1344
  // tariffs: {