@placeshakr/config 10.22.3-alpha.0 → 10.23.0-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.
@@ -175,47 +175,36 @@ const productionEnvironment: Environment = {
175
175
  },
176
176
  indexes: {
177
177
  // users
178
- admins: 'admins',
179
- agents: 'agents',
180
- pros: 'pros',
181
- sellers: 'sellers',
182
- clients: 'clients',
178
+ admins: 'admins', // 1
179
+ agents: 'agents', // 2
180
+ pros: 'pros', // 3
181
+ sellers: 'sellers', // 4
182
+ clients: 'clients', // 5
183
183
  // projects
184
- projects: 'projects',
185
- medias: 'projects-medias',
186
- events: 'projects-events',
187
- devis: 'projects-devis',
184
+ projects: 'projects', // 6
185
+ medias: 'projects-medias', // 7
186
+ events: 'projects-events', // 8
187
+ devis: 'projects-devis', // 9
188
188
  // configuration
189
- providers: 'providers',
190
- materials: 'materials',
191
- operations: 'operations',
192
- operationsMaterials: 'operations-materials',
193
- estimations: 'estimations',
194
- nomenclatures: 'nomenclatures',
195
- workOrders: 'workOrders',
189
+ providers: 'providers', // 10
190
+ materials: 'materials', // 11
191
+ operations: 'operations', // 12
192
+ operationsMaterials: 'operations-materials', // 13
193
+ estimations: 'estimations', // 14
194
+ nomenclatures: 'nomenclatures', // 15
195
+ workOrders: 'workOrders', // 16
196
196
  // used only for managment
197
- systemMaterials: 'system-materials',
198
- systemOperations: 'system-operations',
199
- systemOperationsMaterials: 'system-operations-materials',
200
- systemMaterialsProvider: 'system-materials-provider',
201
- systemStatus: 'system-status',
202
- systemNomenclatures: 'system-nomenclatures',
203
- systemCategories: 'system-categories',
197
+ systemMaterials: 'system-materials', // 17
198
+ systemOperations: 'system-operations', // 18
199
+ systemOperationsMaterials: 'system-operations-materials', // 19
200
+ systemMaterialsProvider: 'system-materials-provider', // 20
201
+ systemStatus: 'system-status', // 21
202
+ systemNomenclatures: 'system-nomenclatures', // 22
203
+ systemCategories: 'system-categories', // 23
204
204
  },
205
205
  },
206
206
  search: {
207
- users: {
208
- searchableAttributes: [
209
- 'email',
210
- 'displayName',
211
- 'address',
212
- 'phone.mobile',
213
- 'jobTitle',
214
- ],
215
- attributesForFaceting: ['active', 'searchable(scope)'],
216
- maxValuesPerFacet: 1000,
217
- maxFacetHits: 100,
218
- },
207
+ // users
219
208
  agents: {
220
209
  searchableAttributes: [
221
210
  'email',
@@ -312,74 +301,7 @@ const productionEnvironment: Environment = {
312
301
  maxValuesPerFacet: 1000,
313
302
  maxFacetHits: 100,
314
303
  },
315
- providers: {
316
- searchableAttributes: [
317
- 'name',
318
- 'contact.name',
319
- 'contact.email',
320
- 'address',
321
- 'siret',
322
- ],
323
- attributesForFaceting: [
324
- 'tva',
325
- 'commission.enterprise',
326
- 'commission.pro',
327
- 'commission.provider',
328
- 'searchable(scope)',
329
- ],
330
- maxValuesPerFacet: 1000,
331
- maxFacetHits: 100,
332
- },
333
- statuses: {
334
- searchableAttributes: ['name'],
335
- attributesForFaceting: [
336
- 'searchable(scope)',
337
- 'searchable(forDashboard)',
338
- 'searchable(default)',
339
- 'searchable(locked)',
340
- ],
341
- ranking: ['asc(order)', 'asc(createdAt)'],
342
- maxValuesPerFacet: 1000,
343
- maxFacetHits: 100,
344
- },
345
- materials: {
346
- searchableAttributes: ['name', 'unitPrice', 'provider'],
347
- attributesForFaceting: [
348
- 'unitPrice',
349
- 'searchable(scope)',
350
- 'searchable(provider)',
351
- 'searchable(category)',
352
- 'margin.id',
353
- 'supplier.id',
354
- ],
355
- ranking: ['asc(name)'],
356
- maxValuesPerFacet: 1000,
357
- maxFacetHits: 100,
358
- },
359
- operations: {
360
- searchableAttributes: ['name', 'unitPrice', 'objectID'],
361
- attributesForFaceting: [
362
- 'unitPrice',
363
- 'searchable(lot)',
364
- 'searchable(scope)',
365
- 'searchable(catalogId)',
366
- 'searchable(category)',
367
- ],
368
- maxValuesPerFacet: 1000,
369
- maxFacetHits: 100,
370
- },
371
- operationsMaterials: {
372
- searchableAttributes: ['name', 'unitPrice', 'unit', 'externalId'],
373
- attributesForFaceting: [
374
- 'searchable(scope)',
375
- 'searchable(provider)',
376
- 'searchable(optId)',
377
- 'searchable(externalId)',
378
- ],
379
- ranking: ['asc(order)'],
380
- maxValuesPerFacet: 1000,
381
- maxFacetHits: 100,
382
- },
304
+ // projects
383
305
  projects: {
384
306
  searchableAttributes: [
385
307
  'name',
@@ -447,43 +369,30 @@ const productionEnvironment: Environment = {
447
369
  maxValuesPerFacet: 1000,
448
370
  maxFacetHits: 100,
449
371
  },
450
- workOrders: {
451
- searchableAttributes: [
452
- 'reference',
453
- 'address',
454
- 'estimatedPrice',
455
- 'owner.displayName',
456
- ],
372
+ medias: {
373
+ searchableAttributes: ['name'],
457
374
  attributesForFaceting: [
458
375
  'owner',
376
+ 'searchable(tags)',
377
+ 'projectId',
459
378
  'searchable(scope)',
460
- 'searchable(priority)',
461
- 'searchable(status)',
462
- 'searchable(skills)',
463
- 'searchable(region)',
464
- 'searchable(agenceName)',
465
- 'searchable(client)',
466
- 'searchable(owner.userId)',
467
- 'searchable(region)',
468
- 'searchable(agenceName)',
469
- 'searchable(skills)',
470
- 'searchable(client)',
471
- 'searchable(marketplaceEntity)',
379
+ 'createdDate',
472
380
  ],
473
381
  ranking: ['desc(createdAt)'],
474
382
  maxValuesPerFacet: 1000,
475
383
  maxFacetHits: 100,
476
384
  },
477
- medias: {
478
- searchableAttributes: ['name'],
385
+ events: {
386
+ searchableAttributes: ['title', 'type'],
479
387
  attributesForFaceting: [
388
+ 'type',
389
+ 'searchable(start)',
390
+ 'searchable(end)',
480
391
  'owner',
481
- 'searchable(tags)',
482
392
  'projectId',
483
393
  'searchable(scope)',
484
- 'createdDate',
485
394
  ],
486
- ranking: ['desc(createdAt)'],
395
+ ranking: ['desc(start)'],
487
396
  maxValuesPerFacet: 1000,
488
397
  maxFacetHits: 100,
489
398
  },
@@ -500,75 +409,63 @@ const productionEnvironment: Environment = {
500
409
  maxValuesPerFacet: 1000,
501
410
  maxFacetHits: 100,
502
411
  },
503
- events: {
504
- searchableAttributes: ['title', 'type'],
412
+ // configuration
413
+ providers: {
414
+ searchableAttributes: [
415
+ 'name',
416
+ 'contact.name',
417
+ 'contact.email',
418
+ 'address',
419
+ 'siret',
420
+ ],
505
421
  attributesForFaceting: [
506
- 'type',
507
- 'searchable(start)',
508
- 'searchable(end)',
509
- 'owner',
510
- 'projectId',
422
+ 'tva',
423
+ 'commission.enterprise',
424
+ 'commission.pro',
425
+ 'commission.provider',
511
426
  'searchable(scope)',
512
427
  ],
513
- ranking: ['desc(start)'],
514
428
  maxValuesPerFacet: 1000,
515
429
  maxFacetHits: 100,
516
430
  },
517
- systemMaterials: {
518
- searchableAttributes: ['name', 'unitPrice'],
431
+ materials: {
432
+ searchableAttributes: ['name', 'unitPrice', 'provider'],
519
433
  attributesForFaceting: [
520
434
  'unitPrice',
435
+ 'searchable(scope)',
521
436
  'searchable(provider)',
522
437
  'searchable(category)',
438
+ 'margin.id',
439
+ 'supplier.id',
523
440
  ],
524
- ranking: ['desc(updatedAt)'],
525
- maxValuesPerFacet: 1000,
526
- maxFacetHits: 100,
527
- },
528
- systemOperations: {
529
- searchableAttributes: ['name', 'unitPrice'],
530
- attributesForFaceting: ['searchable(lot)'],
531
- ranking: ['desc(updatedAt)'],
532
- maxValuesPerFacet: 1000,
533
- maxFacetHits: 100,
534
- },
535
- systemOperationsMaterials: {
536
- searchableAttributes: ['name', 'unitPrice', 'unit', 'externalId'],
537
- attributesForFaceting: ['searchable(provider)', 'searchable(optId)'],
538
- ranking: ['asc(order)'],
441
+ ranking: ['asc(name)'],
539
442
  maxValuesPerFacet: 1000,
540
443
  maxFacetHits: 100,
541
444
  },
542
- systemMaterialsProvider: {
543
- searchableAttributes: ['name', 'status'],
445
+ operations: {
446
+ searchableAttributes: ['name', 'unitPrice', 'objectID'],
544
447
  attributesForFaceting: [
545
- 'searchable(status)',
546
- 'searchable(identifier)',
547
- 'searchable(addMaterials)',
548
- 'searchable(editable)',
549
- 'searchable(type)',
448
+ 'unitPrice',
449
+ 'searchable(lot)',
450
+ 'searchable(scope)',
451
+ 'searchable(catalogId)',
452
+ 'searchable(category)',
550
453
  ],
551
- ranking: ['desc(updatedAt)'],
552
454
  maxValuesPerFacet: 1000,
553
455
  maxFacetHits: 100,
554
456
  },
555
- systemStatus: {
556
- searchableAttributes: ['name', 'color'],
457
+ operationsMaterials: {
458
+ searchableAttributes: ['name', 'unitPrice', 'unit', 'externalId'],
557
459
  attributesForFaceting: [
558
- 'searchable(forDashboard)',
559
- 'searchable(default)',
460
+ 'searchable(scope)',
461
+ 'searchable(provider)',
462
+ 'searchable(optId)',
463
+ 'searchable(externalId)',
560
464
  ],
561
465
  ranking: ['asc(order)'],
562
466
  maxValuesPerFacet: 1000,
563
467
  maxFacetHits: 100,
564
468
  },
565
- systemNomenclatures: {
566
- searchableAttributes: ['identifier', 'value'],
567
- attributesForFaceting: ['searchable(identifier)', 'searchable(status)'],
568
- ranking: ['desc(updatedAt)'],
569
- maxValuesPerFacet: 1000,
570
- maxFacetHits: 100,
571
- },
572
469
  estimations: {
573
470
  searchableAttributes: [
574
471
  'name',
@@ -594,17 +491,6 @@ const productionEnvironment: Environment = {
594
491
  maxValuesPerFacet: 1000,
595
492
  maxFacetHits: 100,
596
493
  },
597
- systemCategories: {
598
- searchableAttributes: ['name'],
599
- attributesForFaceting: [
600
- 'searchable(entity)',
601
- 'searchable(parent)',
602
- 'searchable(provider)',
603
- ],
604
- ranking: ['asc(name)'],
605
- maxValuesPerFacet: 1000,
606
- maxFacetHits: 100,
607
- },
608
494
  nomenclatures: {
609
495
  searchableAttributes: ['value'],
610
496
  attributesForFaceting: [
@@ -616,29 +502,97 @@ const productionEnvironment: Environment = {
616
502
  maxValuesPerFacet: 1000,
617
503
  maxFacetHits: 100,
618
504
  },
619
- operationsGroups: {
620
- searchableAttributes: ['name'],
505
+ workOrders: {
506
+ searchableAttributes: [
507
+ 'reference',
508
+ 'address',
509
+ 'estimatedPrice',
510
+ 'owner.displayName',
511
+ ],
621
512
  attributesForFaceting: [
513
+ 'owner',
622
514
  'searchable(scope)',
515
+ 'searchable(priority)',
623
516
  'searchable(status)',
624
- 'searchable(operationsCatalog)',
517
+ 'searchable(skills)',
518
+ 'searchable(region)',
519
+ 'searchable(agenceName)',
520
+ 'searchable(client)',
521
+ 'searchable(owner.userId)',
522
+ 'searchable(region)',
523
+ 'searchable(agenceName)',
524
+ 'searchable(skills)',
525
+ 'searchable(client)',
526
+ 'searchable(marketplaceEntity)',
625
527
  ],
626
- ranking: ['asc(name)'],
528
+ ranking: ['desc(createdAt)'],
627
529
  maxValuesPerFacet: 1000,
628
530
  maxFacetHits: 100,
629
531
  },
630
- workOrder: {
631
- searchableAttributes: ['reference'],
532
+ // used only for managment
533
+ systemMaterials: {
534
+ searchableAttributes: ['name', 'unitPrice'],
535
+ attributesForFaceting: [
536
+ 'unitPrice',
537
+ 'searchable(provider)',
538
+ 'searchable(category)',
539
+ ],
540
+ ranking: ['desc(updatedAt)'],
541
+ maxValuesPerFacet: 1000,
542
+ maxFacetHits: 100,
543
+ },
544
+ systemOperations: {
545
+ searchableAttributes: ['name', 'unitPrice'],
546
+ attributesForFaceting: ['searchable(lot)'],
547
+ ranking: ['desc(updatedAt)'],
548
+ maxValuesPerFacet: 1000,
549
+ maxFacetHits: 100,
550
+ },
551
+ systemOperationsMaterials: {
552
+ searchableAttributes: ['name', 'unitPrice', 'unit', 'externalId'],
553
+ attributesForFaceting: ['searchable(provider)', 'searchable(optId)'],
554
+ ranking: ['asc(order)'],
555
+ maxValuesPerFacet: 1000,
556
+ maxFacetHits: 100,
557
+ },
558
+ systemMaterialsProvider: {
559
+ searchableAttributes: ['name', 'status'],
632
560
  attributesForFaceting: [
633
- 'searchable(scope)',
634
561
  'searchable(status)',
635
- 'searchable(priority)',
636
- 'searchable(candidates)',
637
- 'searchable(agenceName)',
638
- 'searchable(skills)',
639
- 'searchable(client)',
562
+ 'searchable(identifier)',
563
+ 'searchable(addMaterials)',
564
+ 'searchable(editable)',
565
+ 'searchable(type)',
566
+ ],
567
+ ranking: ['desc(updatedAt)'],
568
+ maxValuesPerFacet: 1000,
569
+ maxFacetHits: 100,
570
+ },
571
+ systemStatus: {
572
+ searchableAttributes: ['name', 'color'],
573
+ attributesForFaceting: [
574
+ 'searchable(forDashboard)',
575
+ 'searchable(default)',
640
576
  ],
641
- ranking: ['asc(createdAt)'],
577
+ ranking: ['asc(order)'],
578
+ maxValuesPerFacet: 1000,
579
+ maxFacetHits: 100,
580
+ },
581
+ systemNomenclatures: {
582
+ searchableAttributes: ['identifier', 'value'],
583
+ attributesForFaceting: ['searchable(identifier)', 'searchable(status)'],
584
+ ranking: ['desc(updatedAt)'],
585
+ maxValuesPerFacet: 1000,
586
+ maxFacetHits: 100,
587
+ },
588
+ systemCategories: {
589
+ searchableAttributes: ['name'],
590
+ attributesForFaceting: [
591
+ 'searchable(entity)',
592
+ 'searchable(parent)',
593
+ 'searchable(provider)',
594
+ ],
595
+ ranking: ['asc(name)'],
642
596
  maxValuesPerFacet: 1000,
643
597
  maxFacetHits: 100,
644
598
  },
package/src/types.ts CHANGED
@@ -863,6 +863,11 @@ export interface Agent extends Profile {
863
863
  permissions?: {
864
864
  assignCandidate: boolean;
865
865
  };
866
+
867
+ serviceOrderResponsibles?: {
868
+ value: number;
869
+ email: string;
870
+ }[];
866
871
  }
867
872
 
868
873
  /**
@@ -3816,6 +3821,7 @@ export enum ConfigurationFieldType {
3816
3821
  CONTACTS = 'users.admins.configPanel.inputType.contacts',
3817
3822
  SIRET = 'users.admins.configPanel.inputType.siret',
3818
3823
  BUILDING_CERTIFICATIONS = 'users.admins.configPanel.inputType.buildingCertifications',
3824
+ SERVICE_ORDER_RESPONSIBLES = 'users.admins.configPanel.inputType.serviceOrderResponsibles',
3819
3825
  }
3820
3826
 
3821
3827
  type ConfigurationTextInputType = {
@@ -3886,6 +3892,11 @@ type ConfigurationBuildingCertificationsInputType = {
3886
3892
  options: SelectOption[];
3887
3893
  defaultValue: ConfigurationBuildingCertificationType[];
3888
3894
  };
3895
+ type ConfigurationServiceOrderResponsiblesInputType = {
3896
+ type: ConfigurationFieldType.SERVICE_ORDER_RESPONSIBLES;
3897
+ description?: string;
3898
+ defaultValue: { email: string; value: number }[];
3899
+ };
3889
3900
 
3890
3901
  export type ConfigurationContactType = {
3891
3902
  name: string;
@@ -3935,7 +3946,8 @@ type ConfigurationInputTypeAndDescription =
3935
3946
  | ConfigurationSiretInputType
3936
3947
  | ConfigurationBuildingCertificationsInputType
3937
3948
  | ConfigurationMedicalType
3938
- | ConfigurationMemberSocialEconomicCommittee;
3949
+ | ConfigurationMemberSocialEconomicCommittee
3950
+ | ConfigurationServiceOrderResponsiblesInputType;
3939
3951
 
3940
3952
  export type ConfigurationField = {
3941
3953
  type: ConfigurationFieldType;
@@ -4222,7 +4234,7 @@ export interface WorkOrder extends Resource {
4222
4234
  /**
4223
4235
  * Affects the workflow of the project in the marketplace
4224
4236
  */
4225
- marketplaceEntity?: MarketplaceEntityEnum;
4237
+ marketplaceEntity: MarketplaceEntityEnum;
4226
4238
  }
4227
4239
 
4228
4240
  export enum CandidatureStatus {