@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.
@@ -15,7 +15,7 @@ exports.ROLE = void 0;
15
15
  /**
16
16
  * security context
17
17
  */
18
- var index$1 = (function (env) {
18
+ var index$2 = (function (env) {
19
19
  var orderedAccess = [exports.ROLE.CLIENT, exports.ROLE.PRO, exports.ROLE.AGENT, exports.ROLE.ADMIN, exports.ROLE.SUPERADMIN];
20
20
  var hasRole = function hasRole(claims) {
21
21
  return !claims || !claims[env.security.claims.role] ? false : true;
@@ -231,25 +231,23 @@ var productionEnvironment = {
231
231
  systemVersion: 'systemVersions/{systemVersionId}'
232
232
  },
233
233
  indexes: {
234
- // tslint:disable-next-line: object-literal-sort-keys
235
- clients: 'clients',
236
- pros: 'pros',
234
+ // users
235
+ admins: 'admins',
237
236
  agents: 'agents',
237
+ pros: 'pros',
238
238
  sellers: 'sellers',
239
+ clients: 'clients',
240
+ // projects
239
241
  projects: 'projects',
240
242
  medias: 'projects-medias',
241
243
  events: 'projects-events',
242
244
  devis: 'projects-devis',
243
- admins: 'admins',
245
+ // configuration
244
246
  providers: 'providers',
245
247
  materials: 'materials',
246
248
  operations: 'operations',
247
249
  operationsMaterials: 'operations-materials',
248
- materialsProvider: 'materials-provider',
249
- devisTemplates: 'devis-templates',
250
250
  estimations: 'estimations',
251
- categories: 'categories',
252
- operationsCatalogs: 'operations-catalogs',
253
251
  nomenclatures: 'nomenclatures',
254
252
  operationsGroups: 'operations-groups',
255
253
  // used only for managment
@@ -360,13 +358,6 @@ var productionEnvironment = {
360
358
  maxValuesPerFacet: 1000,
361
359
  maxFacetHits: 100
362
360
  },
363
- materialsProvider: {
364
- searchableAttributes: ['name', 'status', 'identifier'],
365
- attributesForFaceting: ['searchable(scope)', 'searchable(status)', 'searchable(identifier)', 'searchable(addMaterials)', 'searchable(editable)'],
366
- ranking: ['desc(status)', 'desc(updatedAt)'],
367
- maxValuesPerFacet: 1000,
368
- maxFacetHits: 100
369
- },
370
361
  systemMaterials: {
371
362
  searchableAttributes: ['name', 'unitPrice'],
372
363
  attributesForFaceting: ['unitPrice', 'searchable(provider)', 'searchable(category)'],
@@ -409,13 +400,6 @@ var productionEnvironment = {
409
400
  maxValuesPerFacet: 1000,
410
401
  maxFacetHits: 100
411
402
  },
412
- devisTemplates: {
413
- searchableAttributes: ['name'],
414
- attributesForFaceting: ['searchable(scope)', 'materialsProvider', 'searchable(category)'],
415
- ranking: ['desc(updatedAt)'],
416
- maxValuesPerFacet: 1000,
417
- maxFacetHits: 100
418
- },
419
403
  estimations: {
420
404
  searchableAttributes: ['name', 'address', 'type', 'typeProject', 'client.displayName', 'client.email', 'client.address', 'client.phone.mobile', 'sellers.displayName', 'sellers.email', 'sellers.phone.mobile', 'provider.name'],
421
405
  attributesForFaceting: ['searchable(type)', 'searchable(typeProject)', 'searchable(scope)', 'searchable(owner.userId)'],
@@ -423,13 +407,6 @@ var productionEnvironment = {
423
407
  maxValuesPerFacet: 1000,
424
408
  maxFacetHits: 100
425
409
  },
426
- categories: {
427
- searchableAttributes: ['name'],
428
- attributesForFaceting: ['searchable(entity)', 'searchable(parent)', 'searchable(scope)', 'searchable(provider)'],
429
- ranking: ['asc(name)'],
430
- maxValuesPerFacet: 1000,
431
- maxFacetHits: 100
432
- },
433
410
  systemCategories: {
434
411
  searchableAttributes: ['name'],
435
412
  attributesForFaceting: ['searchable(entity)', 'searchable(parent)', 'searchable(provider)'],
@@ -437,13 +414,6 @@ var productionEnvironment = {
437
414
  maxValuesPerFacet: 1000,
438
415
  maxFacetHits: 100
439
416
  },
440
- operationsCatalogs: {
441
- searchableAttributes: ['name'],
442
- attributesForFaceting: ['searchable(scope)', 'searchable(status)'],
443
- ranking: ['asc(name)'],
444
- maxValuesPerFacet: 1000,
445
- maxFacetHits: 100
446
- },
447
417
  nomenclatures: {
448
418
  searchableAttributes: ['value'],
449
419
  attributesForFaceting: ['searchable(scope)', 'searchable(identifier)', 'searchable(status)'],
@@ -1248,7 +1218,7 @@ var production = {
1248
1218
  *
1249
1219
  * @param envName
1250
1220
  */
1251
- var index = (function (envName) {
1221
+ var index$1 = (function (envName) {
1252
1222
  if (envName === 'production') return createProducts(production);
1253
1223
  return createProducts(testing);
1254
1224
  });
@@ -1945,15 +1915,25 @@ var createEvent = function createEvent(type, data, meta) {
1945
1915
  };
1946
1916
  };
1947
1917
 
1918
+ var requests = {
1919
+ __proto__: null
1920
+ };
1921
+
1922
+ var index = {
1923
+ __proto__: null,
1924
+ Requests: requests
1925
+ };
1926
+
1927
+ exports.WhatsApp = index;
1948
1928
  exports.acls = acls;
1949
1929
  exports.articho = types;
1950
1930
  exports.createEvent = createEvent;
1951
1931
  exports.flatten = flatten;
1952
1932
  exports.getEnv = getEnv;
1953
- exports.getPlatformConfiguration = index;
1933
+ exports.getPlatformConfiguration = index$1;
1954
1934
  exports.helpers = helpers;
1955
1935
  exports.path = getPath;
1956
1936
  exports.reversePathName = reversePathName;
1957
- exports.security = index$1;
1937
+ exports.security = index$2;
1958
1938
  exports.uid = uid;
1959
1939
  //# sourceMappingURL=config.cjs.development.js.map