@placeshakr/config 10.21.10 → 10.22.0-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.
package/src/types.ts CHANGED
@@ -589,6 +589,8 @@ export interface User extends Resource {
589
589
  atlassianAccountID?: string;
590
590
  }
591
591
 
592
+ type Permissions = Record<string, boolean>;
593
+
592
594
  export interface Profile extends Resource {
593
595
  /**
594
596
  *
@@ -712,6 +714,8 @@ export interface Profile extends Resource {
712
714
  * allow profile to receive and send WhatsApp messages
713
715
  */
714
716
  isUsingWhatsApp?: boolean;
717
+
718
+ permissions?: Permissions;
715
719
  }
716
720
 
717
721
  export interface UserProfilePreview {
@@ -764,6 +768,10 @@ export interface Agent extends Profile {
764
768
  * identifier of the team leader to which the agent belongs (if he is not a leader)
765
769
  */
766
770
  leader?: string;
771
+
772
+ permissions?: {
773
+ assignCandidate: boolean;
774
+ };
767
775
  }
768
776
 
769
777
  /**
@@ -1275,18 +1283,6 @@ export interface Project extends Resource {
1275
1283
  * Save the date when the professional is selected
1276
1284
  */
1277
1285
  marketplaceAssignmentDate?: number;
1278
- /**
1279
- * ICP Date (only used with marketplace projects)
1280
- */
1281
- icpDate?: number;
1282
- /**
1283
- * Date on which the service order generated in the marketplace is electronically signed
1284
- */
1285
- serviceOrderSigned?: number;
1286
- /**
1287
- * Date on which the service order generated in the marketplace is send
1288
- */
1289
- serviceOrderSend?: number;
1290
1286
  }
1291
1287
 
1292
1288
  export enum MarketplaceStatus {
@@ -2080,6 +2076,7 @@ export interface Devis extends Resource {
2080
2076
 
2081
2077
  export enum DevisOriginEnum {
2082
2078
  MARKETPLACE = 'MARKETPLACE',
2079
+ MARKETPLACE_EXTRA_WORK = 'MARKETPLACE_EXTRA_WORK', // Travaux supplémentaires
2083
2080
  DUPLICATE = 'DUPLICATE',
2084
2081
  TEMPLATE = 'TEMPLATE',
2085
2082
  }
@@ -2298,6 +2295,7 @@ export type Bill = Resource & {
2298
2295
  metadata?: {
2299
2296
  sentToIpaidthat?: boolean;
2300
2297
  sentToPennyLane?: boolean;
2298
+ sentToPennyLaneDate?: number;
2301
2299
  };
2302
2300
  };
2303
2301
 
@@ -2309,6 +2307,7 @@ export type BillReceived = Bill & {
2309
2307
  entityProvider?: string;
2310
2308
  entity: BillReceivedEntity;
2311
2309
  subType: BillReceivedType;
2310
+ mode?: BillReceivedMode;
2312
2311
  prices: {
2313
2312
  HT: number;
2314
2313
  TTC?: number;
@@ -2772,6 +2771,12 @@ export enum BillReceivedType {
2772
2771
  CREDIT_NOTE = 'CREDIT_NOTE',
2773
2772
  }
2774
2773
 
2774
+ export enum BillReceivedMode {
2775
+ DOWN_PAYMENT = 'DOWN_PAYMENT',
2776
+ BALANCE = 'BALANCE',
2777
+ SITUATION = 'SITUATION',
2778
+ }
2779
+
2775
2780
  export enum BillIssuedEntity {
2776
2781
  CLIENT = 'CLIENT',
2777
2782
  PRO = 'PRO',
@@ -3243,6 +3248,7 @@ export enum EmailTemplate {
3243
3248
  MARKETPLACE_WORK_ORDER_APPROVED = 'marketplace-work-order-approved',
3244
3249
  MARKETPLACE_CLOSE_PROJECT = 'marketplace-close-project',
3245
3250
  MARKETPLACE_WRONG_BILL = 'marketplace-wrong-bill',
3251
+ MARKETPLACE_WRONG_BILL_AGENTS = 'marketplace-wrong-bill-agents',
3246
3252
  MARKETPLACE_PROJECT_PRO_APPLIED = 'marketplace-project-pro-applied',
3247
3253
  MARKETPLACE_PROJECT_PRO_SELECTED = 'marketplace-project-pro-selected',
3248
3254
  MARKETPLACE_PROJECT_PRO_ASSIGNED = 'marketplace-project-pro-assigned',
@@ -3255,6 +3261,7 @@ export enum EmailTemplate {
3255
3261
  MARKETPLACE_DEVIS_DAYS_EXTENDED = 'marketplace-project-days-extended',
3256
3262
  MARKETPLACE_SEBASTIEN_NOTIFICATION = 'marketplace-sebastien-notification',
3257
3263
  MARKETPLACE_SEND_WORK_ORDER = 'marketplace-send-work-order',
3264
+ MARKETPLACE_REQUEST_CANDIDATE_ATTRIBUTION = 'marketplace-request-candidate-attribution',
3258
3265
 
3259
3266
  USER_DOC_TO_EXPIRE = 'user-doc-to-expire',
3260
3267
  USER_DOC_EXPIRED = 'user-doc-expired',
@@ -3945,6 +3952,7 @@ interface DevisCandidateFile extends File {
3945
3952
 
3946
3953
  export interface DevisCandidate extends Devis {
3947
3954
  identifier: 'DEVIS_CANDIDATE';
3955
+ validationComment?: string;
3948
3956
 
3949
3957
  files: DevisCandidateFile[];
3950
3958
  }
@@ -4025,6 +4033,14 @@ export interface WorkOrder extends Resource {
4025
4033
  * used to filter count querys in dashboard to avoid get data from bigQuery
4026
4034
  */
4027
4035
  enterpriseId?: string;
4036
+
4037
+ /**
4038
+ * Informatino realted with accounting
4039
+ */
4040
+ project?: string;
4041
+ activity?: string;
4042
+ entity?: string;
4043
+ rg?: string;
4028
4044
  }
4029
4045
 
4030
4046
  export enum CandidatureStatus {
@@ -4039,3 +4055,37 @@ export interface Candidatures extends Resource {
4039
4055
  comment?: string;
4040
4056
  validatedAt: number;
4041
4057
  }
4058
+
4059
+ export interface ServiceOrder extends Resource {
4060
+ title: string;
4061
+
4062
+ devisId: string;
4063
+ /**
4064
+ * Date on which the service order generated in the marketplace is electronically signed
4065
+ */
4066
+ signedDate?: number;
4067
+ /**
4068
+ * Date on which the service order generated in the marketplace is send
4069
+ */
4070
+ sendDate?: number;
4071
+ /**
4072
+ * Document generated to sign
4073
+ */
4074
+ file: File;
4075
+ /**
4076
+ * Document signed from DocuSign
4077
+ */
4078
+ signedFile?: File;
4079
+ /**
4080
+ * Document certification generated by DocuSign
4081
+ */
4082
+ certificationFile?: File;
4083
+ /**
4084
+ * ICP Date
4085
+ */
4086
+ icpDate?: number;
4087
+ /**
4088
+ * Start date
4089
+ */
4090
+ startDate?: number;
4091
+ }