@placeshakr/config 10.19.6-alpha.3 → 10.19.9-alpha.0

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
@@ -340,7 +340,7 @@ var productionEnvironment = {
340
340
  },
341
341
  projects: {
342
342
  searchableAttributes: ['name', 'address', 'description', 'price.total', 'client.displayName', 'client.email', 'client.address', 'client.phone.mobile', 'pro.displayName', 'pro.email', 'pro.phone.mobile', 'agents.displayName', 'agents.email', 'agents.phone.mobile', 'sellers.displayName', 'sellers.email', 'sellers.phone.mobile', 'provider.name', 'status'],
343
- attributesForFaceting: ['parent.id', 'price.total', 'searchable(type)', 'searchable(status)', 'client.displayName', 'searchable(client.email)', 'agents.userId', 'searchable(agents.displayName)', 'searchable(agents.email)', 'searchable(pro.userId)', 'searchable(pro.displayName)', 'searchable(pro.email)', 'searchable(sellers.userId)', 'searchable(sellers.displayName)', 'searchable(sellers.email)', 'searchable(provider.id)', 'searchable(provider.name)', 'searchable(category)', 'searchable(agentManager)', 'searchable(sellerManager)', 'searchable(scope)'],
343
+ attributesForFaceting: ['parent.id', 'price.total', 'searchable(type)', 'searchable(status)', 'client.displayName', 'searchable(client.email)', 'agents.userId', 'searchable(agents.displayName)', 'searchable(agents.email)', 'searchable(pro.userId)', 'searchable(pro.displayName)', 'searchable(pro.email)', 'searchable(sellers.userId)', 'searchable(sellers.displayName)', 'searchable(sellers.email)', 'searchable(provider.id)', 'searchable(provider.name)', 'searchable(category)', 'searchable(agentManager)', 'searchable(agentReference)', 'searchable(sellerManager)', 'searchable(sellerReference)', 'searchable(scope)'],
344
344
  ranking: ['desc(updatedAt)'],
345
345
  maxValuesPerFacet: 1000,
346
346
  maxFacetHits: 100
@@ -361,14 +361,14 @@ var productionEnvironment = {
361
361
  },
362
362
  plans: {
363
363
  searchableAttributes: ['name', 'description'],
364
- attributesForFaceting: ['projectId', 'searchable(scope)', 'searchable(visibleByPro)'],
364
+ attributesForFaceting: ['projectId', 'pdf_generated', 'searchable(scope)', 'searchable(visibleByPro)'],
365
365
  ranking: ['desc(updatedAt)'],
366
366
  maxValuesPerFacet: 1000,
367
367
  maxFacetHits: 100
368
368
  },
369
369
  devis: {
370
370
  searchableAttributes: ['name', 'status'],
371
- attributesForFaceting: ['searchable(status)', 'operationsCatalog', 'projectId', 'searchable(scope)'],
371
+ attributesForFaceting: ['searchable(status)', 'operationsCatalog', 'projectId', 'searchable(scope)', 'pdf_generated'],
372
372
  ranking: ['desc(dateApproved)', 'desc(status)', 'desc(updatedAt)'],
373
373
  maxValuesPerFacet: 1000,
374
374
  maxFacetHits: 100
@@ -382,7 +382,7 @@ var productionEnvironment = {
382
382
  },
383
383
  events: {
384
384
  searchableAttributes: ['title', 'type'],
385
- attributesForFaceting: ['type', 'start', 'end', 'owner', 'projectId', 'searchable(scope)'],
385
+ attributesForFaceting: ['type', 'searchable(start)', 'searchable(end)', 'owner', 'projectId', 'searchable(scope)'],
386
386
  ranking: ['desc(start)'],
387
387
  maxValuesPerFacet: 1000,
388
388
  maxFacetHits: 100
@@ -428,7 +428,7 @@ var productionEnvironment = {
428
428
  },
429
429
  bills: {
430
430
  searchableAttributes: ['entity', 'type', 'status', 'subType', 'reference'],
431
- attributesForFaceting: ['entity', 'projectId', 'searchable(type)', 'searchable(subType)', 'searchable(status)', 'searchable(scope)'],
431
+ attributesForFaceting: ['entity', 'projectId', 'pdf_generated', 'has_files', 'searchable(type)', 'searchable(subType)', 'searchable(status)', 'searchable(scope)'],
432
432
  ranking: ['desc(referenceNumber)'],
433
433
  maxValuesPerFacet: 1000,
434
434
  maxFacetHits: 100
@@ -503,7 +503,7 @@ var productionEnvironment = {
503
503
  },
504
504
  receptionVouchers: {
505
505
  searchableAttributes: ['status'],
506
- attributesForFaceting: ['projectId', 'searchable(status)', 'searchable(scope)'],
506
+ attributesForFaceting: ['projectId', 'has_files', 'searchable(status)', 'searchable(scope)'],
507
507
  maxValuesPerFacet: 1000,
508
508
  maxFacetHits: 100
509
509
  },
@@ -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: {
@@ -1851,6 +1875,12 @@ var HistoryActionEnum;
1851
1875
  HistoryActionEnum["DEVIS_APPROVED"] = "DEVIS_APPROVED";
1852
1876
  HistoryActionEnum["DEVIS_SENT"] = "DEVIS_SENT";
1853
1877
  HistoryActionEnum["DEVIS_SIGNED"] = "DEVIS_SIGNED";
1878
+ HistoryActionEnum["CREATE_DOCUMENT"] = "CREATE_DOCUMENT";
1879
+ HistoryActionEnum["CREATE_MEDIA"] = "CREATE_MEDIA";
1880
+ HistoryActionEnum["CREATE_EVENT"] = "CREATE_EVENT";
1881
+ HistoryActionEnum["CREATE_PLAN"] = "CREATE_PLAN";
1882
+ HistoryActionEnum["VALIDATE_PLAN"] = "VALIDATE_PLAN";
1883
+ HistoryActionEnum["INVALIDATE_PLAN"] = "INVALIDATE_PLAN";
1854
1884
  })(HistoryActionEnum || (HistoryActionEnum = {}));
1855
1885
 
1856
1886
  var HistoryEntityType;
@@ -1859,6 +1889,11 @@ var HistoryEntityType;
1859
1889
  HistoryEntityType["PROJECT"] = "PROJECT";
1860
1890
  HistoryEntityType["NOTE"] = "NOTE";
1861
1891
  HistoryEntityType["RECEPTION_VOUCHER"] = "RECEPTION_VOUCHER";
1892
+ HistoryEntityType["DOCUMENT"] = "DOCUMENT";
1893
+ HistoryEntityType["PLAN"] = "PLAN";
1894
+ HistoryEntityType["EVENT"] = "EVENT";
1895
+ HistoryEntityType["MEDIA"] = "MEDIA";
1896
+ HistoryEntityType["DEVIS"] = "DEVIS";
1862
1897
  })(HistoryEntityType || (HistoryEntityType = {}));
1863
1898
 
1864
1899
  var CategoryEntityEnum;