@placeshakr/config 10.20.0 → 10.20.2-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.
@@ -11,7 +11,7 @@ var ROLE$1;
11
11
  /**
12
12
  * security context
13
13
  */
14
- var index$1 = (function (env) {
14
+ var index$2 = (function (env) {
15
15
  var orderedAccess = [ROLE$1.CLIENT, ROLE$1.PRO, ROLE$1.AGENT, ROLE$1.ADMIN, ROLE$1.SUPERADMIN];
16
16
  var hasRole = function hasRole(claims) {
17
17
  return !claims || !claims[env.security.claims.role] ? false : true;
@@ -227,25 +227,23 @@ var productionEnvironment = {
227
227
  systemVersion: 'systemVersions/{systemVersionId}'
228
228
  },
229
229
  indexes: {
230
- // tslint:disable-next-line: object-literal-sort-keys
231
- clients: 'clients',
232
- pros: 'pros',
230
+ // users
231
+ admins: 'admins',
233
232
  agents: 'agents',
233
+ pros: 'pros',
234
234
  sellers: 'sellers',
235
+ clients: 'clients',
236
+ // projects
235
237
  projects: 'projects',
236
238
  medias: 'projects-medias',
237
239
  events: 'projects-events',
238
240
  devis: 'projects-devis',
239
- admins: 'admins',
241
+ // configuration
240
242
  providers: 'providers',
241
243
  materials: 'materials',
242
244
  operations: 'operations',
243
245
  operationsMaterials: 'operations-materials',
244
- materialsProvider: 'materials-provider',
245
- devisTemplates: 'devis-templates',
246
246
  estimations: 'estimations',
247
- categories: 'categories',
248
- operationsCatalogs: 'operations-catalogs',
249
247
  nomenclatures: 'nomenclatures',
250
248
  operationsGroups: 'operations-groups',
251
249
  // used only for managment
@@ -356,13 +354,6 @@ var productionEnvironment = {
356
354
  maxValuesPerFacet: 1000,
357
355
  maxFacetHits: 100
358
356
  },
359
- materialsProvider: {
360
- searchableAttributes: ['name', 'status', 'identifier'],
361
- attributesForFaceting: ['searchable(scope)', 'searchable(status)', 'searchable(identifier)', 'searchable(addMaterials)', 'searchable(editable)'],
362
- ranking: ['desc(status)', 'desc(updatedAt)'],
363
- maxValuesPerFacet: 1000,
364
- maxFacetHits: 100
365
- },
366
357
  systemMaterials: {
367
358
  searchableAttributes: ['name', 'unitPrice'],
368
359
  attributesForFaceting: ['unitPrice', 'searchable(provider)', 'searchable(category)'],
@@ -405,13 +396,6 @@ var productionEnvironment = {
405
396
  maxValuesPerFacet: 1000,
406
397
  maxFacetHits: 100
407
398
  },
408
- devisTemplates: {
409
- searchableAttributes: ['name'],
410
- attributesForFaceting: ['searchable(scope)', 'materialsProvider', 'searchable(category)'],
411
- ranking: ['desc(updatedAt)'],
412
- maxValuesPerFacet: 1000,
413
- maxFacetHits: 100
414
- },
415
399
  estimations: {
416
400
  searchableAttributes: ['name', 'address', 'type', 'typeProject', 'client.displayName', 'client.email', 'client.address', 'client.phone.mobile', 'sellers.displayName', 'sellers.email', 'sellers.phone.mobile', 'provider.name'],
417
401
  attributesForFaceting: ['searchable(type)', 'searchable(typeProject)', 'searchable(scope)', 'searchable(owner.userId)'],
@@ -419,13 +403,6 @@ var productionEnvironment = {
419
403
  maxValuesPerFacet: 1000,
420
404
  maxFacetHits: 100
421
405
  },
422
- categories: {
423
- searchableAttributes: ['name'],
424
- attributesForFaceting: ['searchable(entity)', 'searchable(parent)', 'searchable(scope)', 'searchable(provider)'],
425
- ranking: ['asc(name)'],
426
- maxValuesPerFacet: 1000,
427
- maxFacetHits: 100
428
- },
429
406
  systemCategories: {
430
407
  searchableAttributes: ['name'],
431
408
  attributesForFaceting: ['searchable(entity)', 'searchable(parent)', 'searchable(provider)'],
@@ -433,13 +410,6 @@ var productionEnvironment = {
433
410
  maxValuesPerFacet: 1000,
434
411
  maxFacetHits: 100
435
412
  },
436
- operationsCatalogs: {
437
- searchableAttributes: ['name'],
438
- attributesForFaceting: ['searchable(scope)', 'searchable(status)'],
439
- ranking: ['asc(name)'],
440
- maxValuesPerFacet: 1000,
441
- maxFacetHits: 100
442
- },
443
413
  nomenclatures: {
444
414
  searchableAttributes: ['value'],
445
415
  attributesForFaceting: ['searchable(scope)', 'searchable(identifier)', 'searchable(status)'],
@@ -1244,7 +1214,7 @@ var production = {
1244
1214
  *
1245
1215
  * @param envName
1246
1216
  */
1247
- var index = (function (envName) {
1217
+ var index$1 = (function (envName) {
1248
1218
  if (envName === 'production') return createProducts(production);
1249
1219
  return createProducts(testing);
1250
1220
  });
@@ -1941,5 +1911,14 @@ var createEvent = function createEvent(type, data, meta) {
1941
1911
  };
1942
1912
  };
1943
1913
 
1944
- export { Environments, ROLE$1 as ROLE, acls, types as articho, createEvent, flatten, getEnv, index as getPlatformConfiguration, helpers, getPath as path, reversePathName, index$1 as security, uid };
1914
+ var requests = {
1915
+ __proto__: null
1916
+ };
1917
+
1918
+ var index = {
1919
+ __proto__: null,
1920
+ Requests: requests
1921
+ };
1922
+
1923
+ export { Environments, ROLE$1 as ROLE, index as WhatsApp, acls, types as articho, createEvent, flatten, getEnv, index$1 as getPlatformConfiguration, helpers, getPath as path, reversePathName, index$2 as security, uid };
1945
1924
  //# sourceMappingURL=config.esm.js.map