@placeshakr/config 10.19.22 → 10.19.23-alpha.2

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.
package/src/types.ts CHANGED
@@ -388,6 +388,7 @@ export interface Enterprise extends Resource {
388
388
  [key: DevisDocSectionEnum | string]: boolean;
389
389
  };
390
390
  presentation: string;
391
+ devisValidity: { duration: number; typeOfDuration: DevisDocDurationEnum };
391
392
  };
392
393
 
393
394
  /**
@@ -443,6 +444,16 @@ export interface Enterprise extends Resource {
443
444
  bill: number;
444
445
  creditNote: number;
445
446
  };
447
+
448
+ /**
449
+ * Custom Id the admin chose for prefixing projects ids
450
+ */
451
+ prefixReference?: string | null;
452
+
453
+ /**
454
+ * Providers configuration
455
+ */
456
+ providersConfiguration?: ProvidersConfiguration;
446
457
  }
447
458
 
448
459
  export type Certificate = { name: string; number: number };
@@ -663,6 +674,7 @@ export interface Profile extends Resource {
663
674
  * entity name where the user actually works
664
675
  */
665
676
  entity?: string;
677
+
666
678
  }
667
679
 
668
680
  export interface UserProfilePreview {
@@ -696,6 +708,21 @@ export interface Agent extends Profile {
696
708
  */
697
709
  isLeader: boolean;
698
710
 
711
+ /**
712
+ * list of the agent's specialities
713
+ */
714
+ specialities?: string[];
715
+
716
+ /**
717
+ * list of the agent's type of offers (ex: call for tenders, ...)
718
+ */
719
+ offerType?: string[];
720
+
721
+ /**
722
+ * list of the agent's intervention area
723
+ */
724
+ area?: string[];
725
+
699
726
  /**
700
727
  * identifier of the team leader to which the agent belongs (if he is not a leader)
701
728
  */
@@ -761,7 +788,7 @@ export interface Seller extends Profile {
761
788
  /**
762
789
  * the provider related
763
790
  */
764
- provider: string | Provider;
791
+ provider: string;
765
792
 
766
793
  /**
767
794
  * indicates if is a team leader
@@ -772,6 +799,11 @@ export interface Seller extends Profile {
772
799
  * identifier of the team leader to which the agent belongs (if he is not a leader)
773
800
  */
774
801
  leader?: string;
802
+
803
+ /**
804
+ * sector name where the user actually works
805
+ */
806
+ district?: string[];
775
807
  }
776
808
 
777
809
  /**
@@ -915,6 +947,21 @@ export interface Provider extends Resource {
915
947
  * If true, provider is the default choice for "devis contracting entity"
916
948
  */
917
949
  defaultEntity: boolean;
950
+
951
+ /**
952
+ * Category of the provider
953
+ */
954
+ category?: string;
955
+
956
+ /**
957
+ * Subcategory of the provider (depending of the category)
958
+ */
959
+ subcategory?: string;
960
+
961
+ /**
962
+ * Where the provider comes from
963
+ */
964
+ origin?: string;
918
965
  }
919
966
 
920
967
  /**
@@ -1151,6 +1198,21 @@ export interface Project extends Resource {
1151
1198
  * if is true project can't be removed
1152
1199
  */
1153
1200
  blocked?: boolean;
1201
+
1202
+ /**
1203
+ * External reference used for Hubspot or any external platform
1204
+ */
1205
+ externalReference?: string;
1206
+
1207
+ /**
1208
+ * internalReference is an auto-increment number used as a user-friendly ID
1209
+ */
1210
+ internalReference: string;
1211
+
1212
+ /**
1213
+ * Number of projects inside the project's enterprise
1214
+ */
1215
+ projectIndex: number;
1154
1216
  }
1155
1217
 
1156
1218
  /**
@@ -2030,6 +2092,13 @@ export enum DevisDocColorEnum {
2030
2092
  SECONDARY = 'SECONDARY',
2031
2093
  }
2032
2094
 
2095
+ export enum DevisDocDurationEnum {
2096
+ DAYS = 'DAYS',
2097
+ WEEKS = 'WEEKS',
2098
+ MONTHS = 'MONTHS',
2099
+ YEARS = 'YEARS',
2100
+ }
2101
+
2033
2102
  /**
2034
2103
  *
2035
2104
  */
@@ -2417,6 +2486,30 @@ export interface QuotesConfiguration {
2417
2486
  commentModel?: QuotesConfigurationItem;
2418
2487
  }
2419
2488
 
2489
+ export interface ProviderCategory {
2490
+ /**
2491
+ * Category name
2492
+ */
2493
+ name: string;
2494
+
2495
+ /**
2496
+ * Array of subcategories
2497
+ */
2498
+ subcategories: string[];
2499
+ }
2500
+
2501
+ export interface ProvidersConfiguration {
2502
+ /**
2503
+ * Array of categories
2504
+ */
2505
+ categories?: ProviderCategory[];
2506
+
2507
+ /**
2508
+ * Array of origins
2509
+ */
2510
+ origins?: string[];
2511
+ }
2512
+
2420
2513
  type QuotesConfigurationItem = SelectOption;
2421
2514
 
2422
2515
  export type Action =
@@ -2956,6 +3049,16 @@ export interface Invitation {
2956
3049
  */
2957
3050
  entity?: string;
2958
3051
 
3052
+ /**
3053
+ * Invited user's provider name
3054
+ */
3055
+ provider?: Provider;
3056
+
3057
+ /**
3058
+ * Invited user's district where he/she works
3059
+ */
3060
+ district?: string[];
3061
+
2959
3062
  /**
2960
3063
  * Array of phone number + phone's name
2961
3064
  */
@@ -3403,6 +3506,8 @@ export interface DevisVersion extends Devis { }
3403
3506
  export enum ConfigurationsIdentifier {
3404
3507
  ADMIN_FORM = 'ADMIN_FORM',
3405
3508
  PROS_FORM = 'PROS_FORM',
3509
+ AGENTS_FORM = 'AGENTS_FORM',
3510
+ SELLERS_FORM = 'SELLERS_FORM'
3406
3511
  }
3407
3512
 
3408
3513
  export enum ConfigurationFieldType {
@@ -3474,6 +3579,7 @@ export type ConfigurationField = {
3474
3579
  isRequired: boolean;
3475
3580
  label: string;
3476
3581
  isLocked: boolean;
3582
+ provider?: string;
3477
3583
  } & ConfigurationInputTypeAndDescription;
3478
3584
 
3479
3585
  interface CommonConfigurationFormValues {
@@ -3508,9 +3614,36 @@ export interface ProsConfigurationFormValues extends CommonConfigurationFormValu
3508
3614
  address: ConfigurationField;
3509
3615
  }
3510
3616
 
3617
+ export interface AgentsConfigurationFormValues
3618
+ extends CommonConfigurationFormValues {
3619
+ photo: ConfigurationField;
3620
+ firstName: ConfigurationField;
3621
+ lastName: ConfigurationField;
3622
+ email: ConfigurationField;
3623
+ mainPhone: ConfigurationField;
3624
+ secondaryPhone: ConfigurationField;
3625
+ job: ConfigurationField;
3626
+ specialities: ConfigurationField;
3627
+ offerType: ConfigurationField;
3628
+ area: ConfigurationField;
3629
+ }
3630
+
3631
+ export interface SellersConfigurationFormValues extends CommonConfigurationFormValues {
3632
+ photo: ConfigurationField;
3633
+ firstName: ConfigurationField;
3634
+ lastName: ConfigurationField;
3635
+ email: ConfigurationField;
3636
+ mainPhone: ConfigurationField;
3637
+ secondaryPhone: ConfigurationField;
3638
+ job: ConfigurationField;
3639
+ district: ConfigurationField;
3640
+ }
3641
+
3511
3642
  export type UserConfigurationFormValues =
3512
3643
  | AdminConfigurationFormValues
3513
- | ProsConfigurationFormValues;
3644
+ | ProsConfigurationFormValues
3645
+ | AgentsConfigurationFormValues
3646
+ | SellersConfigurationFormValues
3514
3647
 
3515
3648
  export type Configuration = Resource & {
3516
3649
  identifier: ConfigurationsIdentifier;