@placeshakr/config 10.21.10 → 10.22.0-alpha.4
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/dist/config.cjs.development.js +26 -4
- package/dist/config.cjs.development.js.map +1 -1
- package/dist/config.cjs.production.min.js +1 -1
- package/dist/config.cjs.production.min.js.map +1 -1
- package/dist/config.esm.js +26 -4
- package/dist/config.esm.js.map +1 -1
- package/dist/environment/base.d.ts.map +1 -1
- package/dist/environment/types.d.ts +4 -0
- package/dist/environment/types.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/types.d.ts +71 -12
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/environment/base.ts +12 -0
- package/src/environment/types.ts +4 -0
- package/src/helpers/index.ts +4 -0
- package/src/path/index.ts +3 -3
- package/src/types.ts +80 -12
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
|
}
|
|
@@ -2265,6 +2262,19 @@ export type ReceptionVoucher = Resource & {
|
|
|
2265
2262
|
withReserve?: boolean;
|
|
2266
2263
|
};
|
|
2267
2264
|
|
|
2265
|
+
export type MarketplaceOrder = Resource & {
|
|
2266
|
+
referenceMarketplace: string;
|
|
2267
|
+
referenceIGO: string;
|
|
2268
|
+
referenceSNCF: string;
|
|
2269
|
+
status: MarketplaceOrderStatus;
|
|
2270
|
+
statusComment?: string;
|
|
2271
|
+
statusDate?: number;
|
|
2272
|
+
ht: number;
|
|
2273
|
+
ttc: number;
|
|
2274
|
+
file: File;
|
|
2275
|
+
devisId: string;
|
|
2276
|
+
};
|
|
2277
|
+
|
|
2268
2278
|
export type BillStatusHistoryItem = {
|
|
2269
2279
|
before: BillIssuedStatus | BillReceivedStatus;
|
|
2270
2280
|
date: number;
|
|
@@ -2298,6 +2308,7 @@ export type Bill = Resource & {
|
|
|
2298
2308
|
metadata?: {
|
|
2299
2309
|
sentToIpaidthat?: boolean;
|
|
2300
2310
|
sentToPennyLane?: boolean;
|
|
2311
|
+
sentToPennyLaneDate?: number;
|
|
2301
2312
|
};
|
|
2302
2313
|
};
|
|
2303
2314
|
|
|
@@ -2309,6 +2320,7 @@ export type BillReceived = Bill & {
|
|
|
2309
2320
|
entityProvider?: string;
|
|
2310
2321
|
entity: BillReceivedEntity;
|
|
2311
2322
|
subType: BillReceivedType;
|
|
2323
|
+
mode?: BillReceivedMode;
|
|
2312
2324
|
prices: {
|
|
2313
2325
|
HT: number;
|
|
2314
2326
|
TTC?: number;
|
|
@@ -2754,6 +2766,11 @@ export enum ReceptionVoucherStatus {
|
|
|
2754
2766
|
REFUSED = 'REFUSED',
|
|
2755
2767
|
}
|
|
2756
2768
|
|
|
2769
|
+
export enum MarketplaceOrderStatus {
|
|
2770
|
+
ORDER_VALIDATE = 'ORDER_VALIDATE',
|
|
2771
|
+
ORDER_CANCELLED = 'ORDER_CANCELLED',
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2757
2774
|
export enum BillType {
|
|
2758
2775
|
RECEIVED = 'RECEIVED',
|
|
2759
2776
|
ISSUED = 'ISSUED',
|
|
@@ -2772,6 +2789,12 @@ export enum BillReceivedType {
|
|
|
2772
2789
|
CREDIT_NOTE = 'CREDIT_NOTE',
|
|
2773
2790
|
}
|
|
2774
2791
|
|
|
2792
|
+
export enum BillReceivedMode {
|
|
2793
|
+
DOWN_PAYMENT = 'DOWN_PAYMENT',
|
|
2794
|
+
BALANCE = 'BALANCE',
|
|
2795
|
+
SITUATION = 'SITUATION',
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2775
2798
|
export enum BillIssuedEntity {
|
|
2776
2799
|
CLIENT = 'CLIENT',
|
|
2777
2800
|
PRO = 'PRO',
|
|
@@ -3243,6 +3266,7 @@ export enum EmailTemplate {
|
|
|
3243
3266
|
MARKETPLACE_WORK_ORDER_APPROVED = 'marketplace-work-order-approved',
|
|
3244
3267
|
MARKETPLACE_CLOSE_PROJECT = 'marketplace-close-project',
|
|
3245
3268
|
MARKETPLACE_WRONG_BILL = 'marketplace-wrong-bill',
|
|
3269
|
+
MARKETPLACE_WRONG_BILL_AGENTS = 'marketplace-wrong-bill-agents',
|
|
3246
3270
|
MARKETPLACE_PROJECT_PRO_APPLIED = 'marketplace-project-pro-applied',
|
|
3247
3271
|
MARKETPLACE_PROJECT_PRO_SELECTED = 'marketplace-project-pro-selected',
|
|
3248
3272
|
MARKETPLACE_PROJECT_PRO_ASSIGNED = 'marketplace-project-pro-assigned',
|
|
@@ -3255,6 +3279,7 @@ export enum EmailTemplate {
|
|
|
3255
3279
|
MARKETPLACE_DEVIS_DAYS_EXTENDED = 'marketplace-project-days-extended',
|
|
3256
3280
|
MARKETPLACE_SEBASTIEN_NOTIFICATION = 'marketplace-sebastien-notification',
|
|
3257
3281
|
MARKETPLACE_SEND_WORK_ORDER = 'marketplace-send-work-order',
|
|
3282
|
+
MARKETPLACE_REQUEST_CANDIDATE_ATTRIBUTION = 'marketplace-request-candidate-attribution',
|
|
3258
3283
|
|
|
3259
3284
|
USER_DOC_TO_EXPIRE = 'user-doc-to-expire',
|
|
3260
3285
|
USER_DOC_EXPIRED = 'user-doc-expired',
|
|
@@ -3945,6 +3970,7 @@ interface DevisCandidateFile extends File {
|
|
|
3945
3970
|
|
|
3946
3971
|
export interface DevisCandidate extends Devis {
|
|
3947
3972
|
identifier: 'DEVIS_CANDIDATE';
|
|
3973
|
+
validationComment?: string;
|
|
3948
3974
|
|
|
3949
3975
|
files: DevisCandidateFile[];
|
|
3950
3976
|
}
|
|
@@ -4025,6 +4051,14 @@ export interface WorkOrder extends Resource {
|
|
|
4025
4051
|
* used to filter count querys in dashboard to avoid get data from bigQuery
|
|
4026
4052
|
*/
|
|
4027
4053
|
enterpriseId?: string;
|
|
4054
|
+
|
|
4055
|
+
/**
|
|
4056
|
+
* Informatino realted with accounting
|
|
4057
|
+
*/
|
|
4058
|
+
project?: string;
|
|
4059
|
+
activity?: string;
|
|
4060
|
+
entity?: string;
|
|
4061
|
+
rg?: string;
|
|
4028
4062
|
}
|
|
4029
4063
|
|
|
4030
4064
|
export enum CandidatureStatus {
|
|
@@ -4039,3 +4073,37 @@ export interface Candidatures extends Resource {
|
|
|
4039
4073
|
comment?: string;
|
|
4040
4074
|
validatedAt: number;
|
|
4041
4075
|
}
|
|
4076
|
+
|
|
4077
|
+
export interface ServiceOrder extends Resource {
|
|
4078
|
+
title: string;
|
|
4079
|
+
|
|
4080
|
+
devisId: string;
|
|
4081
|
+
/**
|
|
4082
|
+
* Date on which the service order generated in the marketplace is electronically signed
|
|
4083
|
+
*/
|
|
4084
|
+
signedDate?: number;
|
|
4085
|
+
/**
|
|
4086
|
+
* Date on which the service order generated in the marketplace is send
|
|
4087
|
+
*/
|
|
4088
|
+
sendDate?: number;
|
|
4089
|
+
/**
|
|
4090
|
+
* Document generated to sign
|
|
4091
|
+
*/
|
|
4092
|
+
file: File;
|
|
4093
|
+
/**
|
|
4094
|
+
* Document signed from DocuSign
|
|
4095
|
+
*/
|
|
4096
|
+
signedFile?: File;
|
|
4097
|
+
/**
|
|
4098
|
+
* Document certification generated by DocuSign
|
|
4099
|
+
*/
|
|
4100
|
+
certificationFile?: File;
|
|
4101
|
+
/**
|
|
4102
|
+
* ICP Date
|
|
4103
|
+
*/
|
|
4104
|
+
icpDate?: number;
|
|
4105
|
+
/**
|
|
4106
|
+
* Start date
|
|
4107
|
+
*/
|
|
4108
|
+
startDate?: number;
|
|
4109
|
+
}
|