@silexpert/core 1.1.113 → 1.1.114
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/es/api/resources/Authenticate.d.ts +1 -1
- package/es/api/resources/Checklist.d.ts +3 -3
- package/es/api/resources/Checklist.d.ts.map +1 -1
- package/es/api/resources/Checklist.js +4 -4
- package/es/api/resources/Checklist.js.map +1 -1
- package/es/api/resources/Commercial.d.ts +4 -4
- package/es/api/resources/Commercial.d.ts.map +1 -1
- package/es/api/resources/Commercial.js +8 -8
- package/es/api/resources/Commercial.js.map +1 -1
- package/es/api/resources/CommercialDocument.d.ts +1 -1
- package/es/api/resources/CommercialDocument.d.ts.map +1 -1
- package/es/api/resources/CommercialDocument.js +2 -2
- package/es/api/resources/CommercialDocument.js.map +1 -1
- package/es/api/resources/Employee.d.ts +1 -1
- package/es/api/resources/Employee.d.ts.map +1 -1
- package/es/api/resources/Employee.js +2 -2
- package/es/api/resources/Employee.js.map +1 -1
- package/es/api/resources/Facturation.d.ts +2 -2
- package/es/api/resources/Facturation.d.ts.map +1 -1
- package/es/api/resources/Facturation.js +4 -4
- package/es/api/resources/Facturation.js.map +1 -1
- package/es/api/resources/Fusion.d.ts +1 -1
- package/es/api/resources/Invoice.d.ts +2 -2
- package/es/api/resources/Invoice.d.ts.map +1 -1
- package/es/api/resources/Invoice.js +4 -4
- package/es/api/resources/Invoice.js.map +1 -1
- package/es/api/resources/Mail.d.ts +16 -16
- package/es/api/resources/Mail.d.ts.map +1 -1
- package/es/api/resources/Mail.js +32 -32
- package/es/api/resources/Mail.js.map +1 -1
- package/es/api/resources/PartneredAccountant.d.ts +3 -3
- package/es/api/resources/PartneredAccountant.d.ts.map +1 -1
- package/es/api/resources/PartneredAccountant.js +6 -6
- package/es/api/resources/PartneredAccountant.js.map +1 -1
- package/es/api/resources/PaymentExpectationCustomer.d.ts +1 -1
- package/es/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/es/api/resources/PaymentExpectationCustomer.js +2 -2
- package/es/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/es/api/resources/Product.d.ts +1 -1
- package/es/api/resources/Product.d.ts.map +1 -1
- package/es/api/resources/Product.js +2 -2
- package/es/api/resources/Product.js.map +1 -1
- package/es/api/resources/Regulate.d.ts +1 -1
- package/es/api/resources/Regulate.d.ts.map +1 -1
- package/es/api/resources/Regulate.js +2 -2
- package/es/api/resources/Regulate.js.map +1 -1
- package/es/api/resources/Report.d.ts +3 -3
- package/es/api/resources/Report.d.ts.map +1 -1
- package/es/api/resources/Report.js +6 -6
- package/es/api/resources/Report.js.map +1 -1
- package/es/api/resources/Revision.d.ts +1 -1
- package/es/api/resources/Revision.d.ts.map +1 -1
- package/es/api/resources/Revision.js +2 -2
- package/es/api/resources/Revision.js.map +1 -1
- package/es/api/resources/SalesContract.d.ts +13 -0
- package/es/api/resources/SalesContract.d.ts.map +1 -0
- package/es/api/resources/SalesContract.js +45 -0
- package/es/api/resources/SalesContract.js.map +1 -0
- package/es/api/resources/SheetMonthSchedule.d.ts +1 -1
- package/es/api/resources/SheetMonthSchedule.d.ts.map +1 -1
- package/es/api/resources/SheetMonthSchedule.js +2 -2
- package/es/api/resources/SheetMonthSchedule.js.map +1 -1
- package/es/api/resources/Society.d.ts +2 -2
- package/es/api/resources/Society.d.ts.map +1 -1
- package/es/api/resources/Society.js +2 -2
- package/es/api/resources/Society.js.map +1 -1
- package/es/api/resources/TaxDeadline.d.ts +3 -3
- package/es/api/resources/TaxDeadline.d.ts.map +1 -1
- package/es/api/resources/TaxDeadline.js +6 -6
- package/es/api/resources/TaxDeadline.js.map +1 -1
- package/es/api/resources/TextMessage.d.ts +3 -3
- package/es/api/resources/TextMessage.d.ts.map +1 -1
- package/es/api/resources/TextMessage.js +6 -6
- package/es/api/resources/TextMessage.js.map +1 -1
- package/es/api/resources/ThirdParty.d.ts +1 -1
- package/es/api/resources/ThirdParty.d.ts.map +1 -1
- package/es/api/resources/ThirdParty.js +2 -2
- package/es/api/resources/ThirdParty.js.map +1 -1
- package/es/api/resources/User.d.ts +1 -1
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js.map +1 -1
- package/es/api/resources/Wallet.d.ts +2 -2
- package/es/api/resources/Wallet.d.ts.map +1 -1
- package/es/api/resources/Wallet.js +4 -4
- package/es/api/resources/Wallet.js.map +1 -1
- package/es/api/resources/prestation.d.ts +2 -2
- package/es/api/resources/prestation.d.ts.map +1 -1
- package/es/api/resources/prestation.js +4 -4
- package/es/api/resources/prestation.js.map +1 -1
- package/es/api/resources/statistic/CustomerSuccess.d.ts +1 -1
- package/es/api/resources/statistic/CustomerSuccess.d.ts.map +1 -1
- package/es/api/resources/statistic/CustomerSuccess.js +2 -2
- package/es/api/resources/statistic/CustomerSuccess.js.map +1 -1
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/BrandClementine.d.ts +91 -0
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +197 -0
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/CustomerSignature.d.ts +39 -0
- package/es/types/Enum/CustomerSignature.d.ts.map +1 -0
- package/es/types/Enum/CustomerSignature.js +41 -0
- package/es/types/Enum/CustomerSignature.js.map +1 -0
- package/es/types/Enum/JobTitle.js +5 -5
- package/es/types/Enum/JobTitle.js.map +1 -1
- package/es/types/Enum/Notification.d.ts +47 -1
- package/es/types/Enum/Notification.d.ts.map +1 -1
- package/es/types/Enum/Notification.js +273 -1
- package/es/types/Enum/Notification.js.map +1 -1
- package/es/types/Enum/PrestationType.d.ts +1 -0
- package/es/types/Enum/PrestationType.d.ts.map +1 -1
- package/es/types/Enum/PrestationType.js +20 -5
- package/es/types/Enum/PrestationType.js.map +1 -1
- package/es/types/Enum/SalesContractConfig.d.ts +29 -0
- package/es/types/Enum/SalesContractConfig.d.ts.map +1 -0
- package/es/types/Enum/SalesContractConfig.js +2 -0
- package/es/types/Enum/SalesContractConfig.js.map +1 -0
- package/es/types/Enum/SendMethod.d.ts +5 -0
- package/es/types/Enum/SendMethod.d.ts.map +1 -0
- package/es/types/Enum/SendMethod.js +6 -0
- package/es/types/Enum/SendMethod.js.map +1 -0
- package/es/types/Interface/api/salesContract/GenerateSalesContractParams.d.ts +4 -0
- package/es/types/Interface/api/salesContract/GenerateSalesContractParams.d.ts.map +1 -0
- package/es/types/Interface/api/salesContract/GenerateSalesContractParams.js +19 -0
- package/es/types/Interface/api/salesContract/GenerateSalesContractParams.js.map +1 -0
- package/es/types/Interface/api/salesContract/SendSalesContractParams.d.ts +8 -0
- package/es/types/Interface/api/salesContract/SendSalesContractParams.d.ts.map +1 -0
- package/es/types/Interface/api/salesContract/SendSalesContractParams.js +38 -0
- package/es/types/Interface/api/salesContract/SendSalesContractParams.js.map +1 -0
- package/es/types/index.d.ts +4 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +4 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.d.ts.map +1 -1
- package/es/utils/index.js +2 -0
- package/es/utils/index.js.map +1 -1
- package/es/utils/isHtml.d.ts +7 -0
- package/es/utils/isHtml.d.ts.map +1 -0
- package/es/utils/isHtml.js +10 -0
- package/es/utils/isHtml.js.map +1 -0
- package/es/utils/isUrl.d.ts +7 -0
- package/es/utils/isUrl.d.ts.map +1 -0
- package/es/utils/isUrl.js +16 -0
- package/es/utils/isUrl.js.map +1 -0
- package/js/api/resources/Checklist.js +8 -4
- package/js/api/resources/Checklist.js.map +1 -1
- package/js/api/resources/Commercial.js +16 -8
- package/js/api/resources/Commercial.js.map +1 -1
- package/js/api/resources/CommercialDocument.js +4 -2
- package/js/api/resources/CommercialDocument.js.map +1 -1
- package/js/api/resources/Employee.js +4 -2
- package/js/api/resources/Employee.js.map +1 -1
- package/js/api/resources/Facturation.js +8 -4
- package/js/api/resources/Facturation.js.map +1 -1
- package/js/api/resources/Invoice.js +8 -4
- package/js/api/resources/Invoice.js.map +1 -1
- package/js/api/resources/Mail.js +64 -32
- package/js/api/resources/Mail.js.map +1 -1
- package/js/api/resources/PartneredAccountant.js +13 -7
- package/js/api/resources/PartneredAccountant.js.map +1 -1
- package/js/api/resources/PaymentExpectationCustomer.js +4 -2
- package/js/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/js/api/resources/Product.js +4 -2
- package/js/api/resources/Product.js.map +1 -1
- package/js/api/resources/Regulate.js +4 -2
- package/js/api/resources/Regulate.js.map +1 -1
- package/js/api/resources/Report.js +12 -6
- package/js/api/resources/Report.js.map +1 -1
- package/js/api/resources/Revision.js +4 -2
- package/js/api/resources/Revision.js.map +1 -1
- package/js/api/resources/SalesContract.js +70 -0
- package/js/api/resources/SalesContract.js.map +1 -0
- package/js/api/resources/SheetMonthSchedule.js +4 -2
- package/js/api/resources/SheetMonthSchedule.js.map +1 -1
- package/js/api/resources/Society.js +4 -2
- package/js/api/resources/Society.js.map +1 -1
- package/js/api/resources/TaxDeadline.js +12 -6
- package/js/api/resources/TaxDeadline.js.map +1 -1
- package/js/api/resources/TextMessage.js +12 -6
- package/js/api/resources/TextMessage.js.map +1 -1
- package/js/api/resources/ThirdParty.js +4 -2
- package/js/api/resources/ThirdParty.js.map +1 -1
- package/js/api/resources/User.js.map +1 -1
- package/js/api/resources/Wallet.js +8 -4
- package/js/api/resources/Wallet.js.map +1 -1
- package/js/api/resources/prestation.js +8 -4
- package/js/api/resources/prestation.js.map +1 -1
- package/js/api/resources/statistic/CustomerSuccess.js +4 -2
- package/js/api/resources/statistic/CustomerSuccess.js.map +1 -1
- package/js/api/resources.js +2 -0
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +179 -3
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/CustomerSignature.js +46 -0
- package/js/types/Enum/CustomerSignature.js.map +1 -0
- package/js/types/Enum/JobTitle.js +7 -5
- package/js/types/Enum/JobTitle.js.map +1 -1
- package/js/types/Enum/Notification.js +273 -1
- package/js/types/Enum/Notification.js.map +1 -1
- package/js/types/Enum/PrestationType.js +7 -5
- package/js/types/Enum/PrestationType.js.map +1 -1
- package/js/types/Enum/SalesContractConfig.js +6 -0
- package/js/types/Enum/SalesContractConfig.js.map +1 -0
- package/js/types/Enum/SendMethod.js +11 -0
- package/js/types/Enum/SendMethod.js.map +1 -0
- package/js/types/Interface/api/salesContract/GenerateSalesContractParams.js +22 -0
- package/js/types/Interface/api/salesContract/GenerateSalesContractParams.js.map +1 -0
- package/js/types/Interface/api/salesContract/SendSalesContractParams.js +26 -0
- package/js/types/Interface/api/salesContract/SendSalesContractParams.js.map +1 -0
- package/js/types/index.js +40 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/index.js +20 -0
- package/js/utils/index.js.map +1 -1
- package/js/utils/isHtml.js +16 -0
- package/js/utils/isHtml.js.map +1 -0
- package/js/utils/isUrl.js +21 -0
- package/js/utils/isUrl.js.map +1 -0
- package/package.json +2 -2
- package/ts/api/resources/Checklist.ts +4 -2
- package/ts/api/resources/Commercial.ts +24 -8
- package/ts/api/resources/CommercialDocument.ts +2 -0
- package/ts/api/resources/Employee.ts +2 -0
- package/ts/api/resources/Facturation.ts +12 -4
- package/ts/api/resources/Invoice.ts +4 -2
- package/ts/api/resources/Mail.ts +32 -16
- package/ts/api/resources/PartneredAccountant.ts +9 -4
- package/ts/api/resources/PaymentExpectationCustomer.ts +2 -0
- package/ts/api/resources/Product.ts +2 -0
- package/ts/api/resources/Regulate.ts +6 -2
- package/ts/api/resources/Report.ts +6 -6
- package/ts/api/resources/Revision.ts +6 -2
- package/ts/api/resources/SalesContract.ts +54 -0
- package/ts/api/resources/SheetMonthSchedule.ts +2 -0
- package/ts/api/resources/Society.ts +3 -2
- package/ts/api/resources/TaxDeadline.ts +6 -3
- package/ts/api/resources/TextMessage.ts +18 -6
- package/ts/api/resources/ThirdParty.ts +2 -0
- package/ts/api/resources/User.ts +1 -1
- package/ts/api/resources/Wallet.ts +4 -2
- package/ts/api/resources/prestation.ts +4 -3
- package/ts/api/resources/statistic/CustomerSuccess.ts +6 -2
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/BrandClementine.ts +198 -0
- package/ts/types/Enum/CustomerSignature.ts +40 -0
- package/ts/types/Enum/JobTitle.ts +5 -5
- package/ts/types/Enum/Notification.ts +286 -2
- package/ts/types/Enum/PrestationType.ts +21 -5
- package/ts/types/Enum/SalesContractConfig.ts +37 -0
- package/ts/types/Enum/SendMethod.ts +4 -0
- package/ts/types/Interface/api/salesContract/GenerateSalesContractParams.ts +8 -0
- package/ts/types/Interface/api/salesContract/SendSalesContractParams.ts +23 -0
- package/ts/types/index.ts +4 -0
- package/ts/utils/index.ts +3 -1
- package/ts/utils/isHtml.ts +9 -0
- package/ts/utils/isUrl.ts +14 -0
|
@@ -1,9 +1,293 @@
|
|
|
1
1
|
export enum NotificationCode {
|
|
2
|
+
STRIPE_SOURCE_EXPIRED = 1,
|
|
3
|
+
SUPERVISION_OK = 2,
|
|
4
|
+
PRESTATION_COMPL_CREATED = 3,
|
|
5
|
+
NEW_CONSTITUTION = 4,
|
|
6
|
+
GESTION_JURIDIQUE = 5,
|
|
7
|
+
NEW_APPROVAL = 6,
|
|
8
|
+
ATTRI_ACCOUNTANT = 7,
|
|
9
|
+
NEW_TASK = 8,
|
|
2
10
|
UNPAID_OR_WAITING_END = 9,
|
|
11
|
+
CHANGE_SUPERVISION = 10,
|
|
12
|
+
SIGNATURE_WEBHOOK = 11,
|
|
13
|
+
ONBOARDING = 12,
|
|
14
|
+
ARCHIVE = 13,
|
|
15
|
+
PROSPECT = 14,
|
|
16
|
+
ATTESTATIONS = 15,
|
|
17
|
+
LABKEEPINGREADY = 16,
|
|
18
|
+
ASKABSENCE = 17,
|
|
19
|
+
CHANGELOGS = 18,
|
|
20
|
+
CONTROL = 19,
|
|
21
|
+
CHANGE_VAT = 20,
|
|
22
|
+
CHANGE_BALANCESHEET = 21,
|
|
23
|
+
NEW_CLIENT_SOCIAL = 22,
|
|
24
|
+
NEW_CLIENT_OTHER_JURIDICAL = 23,
|
|
25
|
+
NEW_DOCUMENT_TO_SIGN = 24,
|
|
26
|
+
NEW_DOCUMENT_WAITING = 25,
|
|
27
|
+
NEW_MAIL_RECEIVING = 26,
|
|
28
|
+
NEW_RDV_CLIENT = 28,
|
|
29
|
+
NEW_COMMENT_FORMALISM = 29,
|
|
30
|
+
NEW_TICKET_SUPPORT = 30,
|
|
31
|
+
CONFORMITY = 31,
|
|
32
|
+
LETTER = 32,
|
|
3
33
|
ASK_TO_CHANGE_COMPTA_TYPE = 33,
|
|
4
|
-
|
|
34
|
+
PAYMENT = 34,
|
|
35
|
+
CA = 35,
|
|
36
|
+
NEW_TASK_SCHEDULE = 36,
|
|
37
|
+
USERS_NOT_CONNECTED = 37,
|
|
38
|
+
ACCEPTANCE = 38,
|
|
39
|
+
CONSTITUTION_ABANDONED = 39,
|
|
40
|
+
INTERNAL_CONTROL = 40,
|
|
5
41
|
}
|
|
6
42
|
|
|
7
43
|
export enum TypeNotificationType {
|
|
8
44
|
ACTION = 1,
|
|
9
|
-
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type NotificationCodeTypeType = {
|
|
48
|
+
id: number;
|
|
49
|
+
name: string;
|
|
50
|
+
slug: string;
|
|
51
|
+
icon: string | null;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type NotificationCodeType = {
|
|
55
|
+
[key: string]: NotificationCodeTypeType
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const NotificationCodeDetail: NotificationCodeType = {
|
|
59
|
+
STRIPE_SOURCE_EXPIRED: {
|
|
60
|
+
id: NotificationCode.STRIPE_SOURCE_EXPIRED,
|
|
61
|
+
name: 'Occurs whenever a card or source will expire at the end of the month on Stripe',
|
|
62
|
+
slug: 'stripe_source_expired',
|
|
63
|
+
icon: 'folder',
|
|
64
|
+
},
|
|
65
|
+
SUPERVISION_OK: {
|
|
66
|
+
id: NotificationCode.SUPERVISION_OK,
|
|
67
|
+
name: 'Supervision OK',
|
|
68
|
+
slug: 'supervision-ok',
|
|
69
|
+
icon: 'adjust',
|
|
70
|
+
},
|
|
71
|
+
PRESTATION_COMPL_CREATED: {
|
|
72
|
+
id: NotificationCode.PRESTATION_COMPL_CREATED,
|
|
73
|
+
name: 'Prestation complémentaire créée',
|
|
74
|
+
slug: 'prestation-compl-created',
|
|
75
|
+
icon: 'shopping_cart',
|
|
76
|
+
},
|
|
77
|
+
NEW_CONSTITUTION: {
|
|
78
|
+
id: NotificationCode.NEW_CONSTITUTION,
|
|
79
|
+
name: 'Nouvelle constitution',
|
|
80
|
+
slug: 'new-constitution',
|
|
81
|
+
icon: 'gavel',
|
|
82
|
+
},
|
|
83
|
+
GESTION_JURIDIQUE: {
|
|
84
|
+
id: NotificationCode.GESTION_JURIDIQUE,
|
|
85
|
+
name: 'souscrit au forfait Gestion juridique',
|
|
86
|
+
slug: 'gestion-juridique',
|
|
87
|
+
icon: 'gavel',
|
|
88
|
+
},
|
|
89
|
+
NEW_APPROVAL: {
|
|
90
|
+
id: NotificationCode.NEW_APPROVAL,
|
|
91
|
+
name: 'Nouvelle approbation',
|
|
92
|
+
slug: 'new-approval',
|
|
93
|
+
icon: 'gavel',
|
|
94
|
+
},
|
|
95
|
+
ATTRI_ACCOUNTANT: {
|
|
96
|
+
id: NotificationCode.ATTRI_ACCOUNTANT,
|
|
97
|
+
name: 'Attribution du dossier comptable',
|
|
98
|
+
slug: 'attri-accountant',
|
|
99
|
+
icon: 'check_box',
|
|
100
|
+
},
|
|
101
|
+
NEW_TASK: {
|
|
102
|
+
id: NotificationCode.NEW_TASK,
|
|
103
|
+
name: 'Nouvelle Tâche',
|
|
104
|
+
slug: 'new-task',
|
|
105
|
+
icon: 'folder',
|
|
106
|
+
},
|
|
107
|
+
UNPAID_OR_WAITING_END: {
|
|
108
|
+
id: NotificationCode.UNPAID_OR_WAITING_END,
|
|
109
|
+
name: 'impayé/résilié',
|
|
110
|
+
slug: 'unpaid-resi',
|
|
111
|
+
icon: 'credit_card',
|
|
112
|
+
},
|
|
113
|
+
CHANGE_SUPERVISION: {
|
|
114
|
+
id: NotificationCode.CHANGE_SUPERVISION,
|
|
115
|
+
name: 'Changement de statut de supervision',
|
|
116
|
+
slug: 'change-supervision',
|
|
117
|
+
icon: 'adjust',
|
|
118
|
+
},
|
|
119
|
+
SIGNATURE_WEBHOOK: {
|
|
120
|
+
id: NotificationCode.SIGNATURE_WEBHOOK,
|
|
121
|
+
name: 'Signature plaquette',
|
|
122
|
+
slug: 'signature-webhook',
|
|
123
|
+
icon: 'shopping_cart',
|
|
124
|
+
},
|
|
125
|
+
ONBOARDING: {
|
|
126
|
+
id: NotificationCode.ONBOARDING,
|
|
127
|
+
name: 'Go to onboarding',
|
|
128
|
+
slug: 'onboarding',
|
|
129
|
+
icon: 'airplanemode_active',
|
|
130
|
+
},
|
|
131
|
+
ARCHIVE: {
|
|
132
|
+
id: NotificationCode.ARCHIVE,
|
|
133
|
+
name: 'Go to archive',
|
|
134
|
+
slug: 'archive',
|
|
135
|
+
icon: 'list',
|
|
136
|
+
},
|
|
137
|
+
PROSPECT: {
|
|
138
|
+
id: NotificationCode.PROSPECT,
|
|
139
|
+
name: 'New Prospect',
|
|
140
|
+
slug: 'prospect',
|
|
141
|
+
icon: 'shopping_cart',
|
|
142
|
+
},
|
|
143
|
+
ATTESTATIONS: {
|
|
144
|
+
id: NotificationCode.ATTESTATIONS,
|
|
145
|
+
name: 'Attestations',
|
|
146
|
+
slug: 'attestations',
|
|
147
|
+
icon: 'gavel',
|
|
148
|
+
},
|
|
149
|
+
LABKEEPINGREADY: {
|
|
150
|
+
id: NotificationCode.LABKEEPINGREADY,
|
|
151
|
+
name: 'LAB - maintien de mission préparé',
|
|
152
|
+
slug: 'labKeepingReady',
|
|
153
|
+
icon: 'extension',
|
|
154
|
+
},
|
|
155
|
+
ASKABSENCE: {
|
|
156
|
+
id: NotificationCode.ASKABSENCE,
|
|
157
|
+
name: 'Demande de changement heure ou congé',
|
|
158
|
+
slug: 'askAbsence',
|
|
159
|
+
icon: 'update',
|
|
160
|
+
},
|
|
161
|
+
CHANGELOGS: {
|
|
162
|
+
id: NotificationCode.CHANGELOGS,
|
|
163
|
+
name: 'Nouveautés',
|
|
164
|
+
slug: 'changeLogs',
|
|
165
|
+
icon: 'redeem',
|
|
166
|
+
},
|
|
167
|
+
CONTROL: {
|
|
168
|
+
id: NotificationCode.CONTROL,
|
|
169
|
+
name: 'Contrôle',
|
|
170
|
+
slug: 'control',
|
|
171
|
+
icon: 'airplanemode_active',
|
|
172
|
+
},
|
|
173
|
+
CHANGE_VAT: {
|
|
174
|
+
id: NotificationCode.CHANGE_VAT,
|
|
175
|
+
name: 'Changement de statut de TVA',
|
|
176
|
+
slug: 'change-vat',
|
|
177
|
+
icon: 'check_box',
|
|
178
|
+
},
|
|
179
|
+
CHANGE_BALANCESHEET: {
|
|
180
|
+
id: NotificationCode.CHANGE_BALANCESHEET,
|
|
181
|
+
name: 'Changement de statut de bilan',
|
|
182
|
+
slug: 'change-balancesheet',
|
|
183
|
+
icon: null,
|
|
184
|
+
},
|
|
185
|
+
NEW_CLIENT_SOCIAL: {
|
|
186
|
+
id: NotificationCode.NEW_CLIENT_SOCIAL,
|
|
187
|
+
name: 'Nouveau client social',
|
|
188
|
+
slug: 'new-client-social',
|
|
189
|
+
icon: 'accessibility_new',
|
|
190
|
+
},
|
|
191
|
+
NEW_CLIENT_OTHER_JURIDICAL: {
|
|
192
|
+
id: NotificationCode.NEW_CLIENT_OTHER_JURIDICAL,
|
|
193
|
+
name: 'Nouveau client autre mission juridique',
|
|
194
|
+
slug: 'new-client-other-juridical',
|
|
195
|
+
icon: 'accessibility_new',
|
|
196
|
+
},
|
|
197
|
+
NEW_DOCUMENT_TO_SIGN: {
|
|
198
|
+
id: NotificationCode.NEW_DOCUMENT_TO_SIGN,
|
|
199
|
+
name: 'Nouveau document à signer',
|
|
200
|
+
slug: 'new-document-to-sign',
|
|
201
|
+
icon: 'description',
|
|
202
|
+
},
|
|
203
|
+
NEW_DOCUMENT_WAITING: {
|
|
204
|
+
id: NotificationCode.NEW_DOCUMENT_WAITING,
|
|
205
|
+
name: 'Document(s) en attente',
|
|
206
|
+
slug: 'new-document-waiting',
|
|
207
|
+
icon: 'hourglass_top',
|
|
208
|
+
},
|
|
209
|
+
NEW_MAIL_RECEIVING: {
|
|
210
|
+
id: NotificationCode.NEW_MAIL_RECEIVING,
|
|
211
|
+
name: 'Email reçu',
|
|
212
|
+
slug: 'new-mail-receiving',
|
|
213
|
+
icon: 'email',
|
|
214
|
+
},
|
|
215
|
+
NEW_RDV_CLIENT: {
|
|
216
|
+
id: NotificationCode.NEW_RDV_CLIENT,
|
|
217
|
+
name: 'Nouveau rdv client',
|
|
218
|
+
slug: 'new-rdv-client',
|
|
219
|
+
icon: 'accessibility_new',
|
|
220
|
+
},
|
|
221
|
+
NEW_COMMENT_FORMALISM: {
|
|
222
|
+
id: NotificationCode.NEW_COMMENT_FORMALISM,
|
|
223
|
+
name: 'Nouveau commentaire formalisme',
|
|
224
|
+
slug: 'new-comment-formalism',
|
|
225
|
+
icon: 'description',
|
|
226
|
+
},
|
|
227
|
+
NEW_TICKET_SUPPORT: {
|
|
228
|
+
id: NotificationCode.NEW_TICKET_SUPPORT,
|
|
229
|
+
name: 'Nouveau ticket support',
|
|
230
|
+
slug: 'new-ticket-support',
|
|
231
|
+
icon: 'fire_extinguisher',
|
|
232
|
+
},
|
|
233
|
+
CONFORMITY: {
|
|
234
|
+
id: NotificationCode.CONFORMITY,
|
|
235
|
+
name: 'Conformité',
|
|
236
|
+
slug: 'conformity',
|
|
237
|
+
icon: 'folder',
|
|
238
|
+
},
|
|
239
|
+
LETTER: {
|
|
240
|
+
id: NotificationCode.LETTER,
|
|
241
|
+
name: 'Courrier',
|
|
242
|
+
slug: 'letter',
|
|
243
|
+
icon: 'folder',
|
|
244
|
+
},
|
|
245
|
+
ASK_TO_CHANGE_COMPTA_TYPE: {
|
|
246
|
+
id: NotificationCode.ASK_TO_CHANGE_COMPTA_TYPE,
|
|
247
|
+
name: 'Demande - changement type comptabilité',
|
|
248
|
+
slug: 'ask-to-change-compta-type',
|
|
249
|
+
icon: 'description',
|
|
250
|
+
},
|
|
251
|
+
PAYMENT: {
|
|
252
|
+
id: NotificationCode.PAYMENT,
|
|
253
|
+
name: 'Payment',
|
|
254
|
+
slug: 'payment',
|
|
255
|
+
icon: 'paid',
|
|
256
|
+
},
|
|
257
|
+
CA: {
|
|
258
|
+
id: NotificationCode.CA,
|
|
259
|
+
name: 'CA',
|
|
260
|
+
slug: 'ca',
|
|
261
|
+
icon: 'paid',
|
|
262
|
+
},
|
|
263
|
+
NEW_TASK_SCHEDULE: {
|
|
264
|
+
id: NotificationCode.NEW_TASK_SCHEDULE,
|
|
265
|
+
name: 'Tâche programmée',
|
|
266
|
+
slug: 'new-task-schedule',
|
|
267
|
+
icon: 'folder',
|
|
268
|
+
},
|
|
269
|
+
USERS_NOT_CONNECTED: {
|
|
270
|
+
id: NotificationCode.USERS_NOT_CONNECTED,
|
|
271
|
+
name: 'Utilisateurs non connectés',
|
|
272
|
+
slug: 'users-not-connected',
|
|
273
|
+
icon: 'person_off',
|
|
274
|
+
},
|
|
275
|
+
ACCEPTANCE: {
|
|
276
|
+
id: NotificationCode.ACCEPTANCE,
|
|
277
|
+
name: 'Acceptation',
|
|
278
|
+
slug: 'acceptance',
|
|
279
|
+
icon: 'check_box',
|
|
280
|
+
},
|
|
281
|
+
CONSTITUTION_ABANDONED: {
|
|
282
|
+
id: NotificationCode.CONSTITUTION_ABANDONED,
|
|
283
|
+
name: 'Constitution abandonnée',
|
|
284
|
+
slug: 'constitution-abandoned',
|
|
285
|
+
icon: 'gavel',
|
|
286
|
+
},
|
|
287
|
+
INTERNAL_CONTROL: {
|
|
288
|
+
id: NotificationCode.INTERNAL_CONTROL,
|
|
289
|
+
name: 'Contrôle Interne',
|
|
290
|
+
slug: 'internal-control',
|
|
291
|
+
icon: 'supervisor_account',
|
|
292
|
+
},
|
|
293
|
+
};
|
|
@@ -172,6 +172,22 @@ export enum PrestationType {
|
|
|
172
172
|
STATUTS_OPTION_AE = 215,
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
// Liste des prestations avec une lettre de mission à signer
|
|
176
|
+
export const allPrestationsWithBrochure = [
|
|
177
|
+
PrestationType.GESTION_JURIDIQUE, PrestationType.COMPTA_ASSISTANCE,
|
|
178
|
+
PrestationType.EXPERTISE_COMPTABLE, PrestationType.EXPERTISE_COMPTABLE_PLUS,
|
|
179
|
+
PrestationType.COMPTA_PRO, PrestationType.COMPTA_PRO_EXPRESS,
|
|
180
|
+
PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS,
|
|
181
|
+
PrestationType.COMPTA_MICRO, PrestationType.COMPTA_MICRO_EXPRESS,
|
|
182
|
+
PrestationType.COMPTA_SCI, PrestationType.COMPTA_SCI_EXPRESS,
|
|
183
|
+
PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,
|
|
184
|
+
PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_PREMIUM,
|
|
185
|
+
PrestationType.COMPTA_POURCENTAGE_EXPRESS, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS,
|
|
186
|
+
PrestationType.CREATION_SOCIETE, PrestationType.BILAN_PREVISIONNEL,
|
|
187
|
+
PrestationType.SOCIAL, PrestationType.EXCEPTIONNEL,
|
|
188
|
+
PrestationType.DECLARATION_IR,
|
|
189
|
+
];
|
|
190
|
+
|
|
175
191
|
export interface PrestationDetailEnum {
|
|
176
192
|
[key: string]: IPrestationList
|
|
177
193
|
}
|
|
@@ -2687,7 +2703,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2687
2703
|
isBack: false,
|
|
2688
2704
|
price: null,
|
|
2689
2705
|
isCatalog: false,
|
|
2690
|
-
hidden:
|
|
2706
|
+
hidden: true,
|
|
2691
2707
|
isComplementary: false,
|
|
2692
2708
|
signaturePosition: '400,54,569,90',
|
|
2693
2709
|
signaturePage: 7,
|
|
@@ -2704,7 +2720,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2704
2720
|
isBack: false,
|
|
2705
2721
|
price: null,
|
|
2706
2722
|
isCatalog: false,
|
|
2707
|
-
hidden:
|
|
2723
|
+
hidden: true,
|
|
2708
2724
|
isComplementary: false,
|
|
2709
2725
|
signaturePosition: '400,54,569,90',
|
|
2710
2726
|
signaturePage: 7,
|
|
@@ -2806,7 +2822,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2806
2822
|
isBack: false,
|
|
2807
2823
|
price: null,
|
|
2808
2824
|
isCatalog: false,
|
|
2809
|
-
hidden:
|
|
2825
|
+
hidden: true,
|
|
2810
2826
|
isComplementary: false,
|
|
2811
2827
|
signaturePosition: '400,54,569,90',
|
|
2812
2828
|
signaturePage: 7,
|
|
@@ -2823,7 +2839,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2823
2839
|
isBack: false,
|
|
2824
2840
|
price: null,
|
|
2825
2841
|
isCatalog: false,
|
|
2826
|
-
hidden:
|
|
2842
|
+
hidden: true,
|
|
2827
2843
|
isComplementary: false,
|
|
2828
2844
|
signaturePosition: '400,54,569,90',
|
|
2829
2845
|
signaturePage: 7,
|
|
@@ -2840,7 +2856,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2840
2856
|
isBack: false,
|
|
2841
2857
|
price: null,
|
|
2842
2858
|
isCatalog: false,
|
|
2843
|
-
hidden:
|
|
2859
|
+
hidden: true,
|
|
2844
2860
|
isComplementary: false,
|
|
2845
2861
|
signaturePosition: '400,54,569,90',
|
|
2846
2862
|
signaturePage: 7,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PrestationType } from './PrestationType';
|
|
2
|
+
|
|
3
|
+
// Config in the Brand enum
|
|
4
|
+
export type SalesContractConfigType = {
|
|
5
|
+
label: string,
|
|
6
|
+
name: string,
|
|
7
|
+
urlBgImage?: string,
|
|
8
|
+
needBgImage?: boolean,
|
|
9
|
+
idPrestationType: PrestationType[],
|
|
10
|
+
versionable?: boolean,
|
|
11
|
+
keyName?: string
|
|
12
|
+
condition: (...args: (string | number)[]) => boolean
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
// Content of a config in the s3 file
|
|
16
|
+
export type SalesContractContent = {
|
|
17
|
+
name: string;
|
|
18
|
+
content: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// Config send from the front
|
|
22
|
+
export type SalesContractConfig = {
|
|
23
|
+
name: string;
|
|
24
|
+
content: string;
|
|
25
|
+
css?: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// List of version for a config
|
|
29
|
+
export type SalesContractConfigVersion = {
|
|
30
|
+
versionId: string;
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type ParamsPreviewContract = {
|
|
35
|
+
idPrestationList: number;
|
|
36
|
+
versionId?: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IsInt, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
|
|
3
|
+
|
|
4
|
+
export class SendSalesContractParams {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsInt()
|
|
7
|
+
idPrestation: number;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsInt()
|
|
11
|
+
price: number;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
@IsString()
|
|
15
|
+
startText: string;
|
|
16
|
+
|
|
17
|
+
@ApiProperty()
|
|
18
|
+
@IsString()
|
|
19
|
+
endText: string;
|
|
20
|
+
|
|
21
|
+
@ApiPropertyOptional()
|
|
22
|
+
files?: File[];
|
|
23
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -340,6 +340,7 @@ export * from './Enum/Role';
|
|
|
340
340
|
export * from './Enum/RoleDetail';
|
|
341
341
|
export * from './Enum/PrestationOption';
|
|
342
342
|
export * from './Enum/TimeCounterType';
|
|
343
|
+
export * from './Enum/CustomerSignature';
|
|
343
344
|
export * from './Enum/MailAuto';
|
|
344
345
|
export * from './Enum/MailAddressType';
|
|
345
346
|
export * from './Enum/Simulation';
|
|
@@ -380,6 +381,7 @@ export * from './Enum/Ged';
|
|
|
380
381
|
export * from './Enum/TypeBankConnection';
|
|
381
382
|
export * from './Enum/GlobalRegime';
|
|
382
383
|
export * from './Enum/TaxSystem';
|
|
384
|
+
export * from './Enum/SalesContractConfig';
|
|
383
385
|
export * from './Enum/FiscalRegime';
|
|
384
386
|
export * from './Enum/Activity';
|
|
385
387
|
export * from './Enum/AdditionnalSells';
|
|
@@ -639,6 +641,8 @@ export * from './Interface/api/promoCode/QueryDefaultPromotion';
|
|
|
639
641
|
export * from './Interface/api/promoCode/ReadDefaultPromotion';
|
|
640
642
|
export * from './Interface/api/SocietyTransaction/QuerySocietyTransactionCount';
|
|
641
643
|
export * from './Interface/api/SocietyTransaction/ReadSocietyTransactionCount';
|
|
644
|
+
export * from './Interface/api/salesContract/SendSalesContractParams';
|
|
645
|
+
export * from './Interface/api/salesContract/GenerateSalesContractParams';
|
|
642
646
|
export * from './Interface/api/webmail/CreateMailFromLambda';
|
|
643
647
|
export * from './Interface/api/webmail/MigrateMailAddresses';
|
|
644
648
|
export * from './Interface/api/webmail/PostAttachmentEmailFromLambdaParams';
|
package/ts/utils/index.ts
CHANGED
|
@@ -14,5 +14,7 @@ export * from './commercialManagement/document';
|
|
|
14
14
|
export * from './commercialManagement/recurrence';
|
|
15
15
|
export * from './amount';
|
|
16
16
|
export * from './quotation';
|
|
17
|
+
export * from './isHtml';
|
|
18
|
+
export * from './isUrl';
|
|
17
19
|
export { getCerfa3517DDRRegistrationField } from './vat/3517/century23';
|
|
18
|
-
export * from './bankAccount';
|
|
20
|
+
export * from './bankAccount';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function to check if a string is a valid url
|
|
3
|
+
* @param value - The string to verify
|
|
4
|
+
* @returns {boolean}
|
|
5
|
+
*/
|
|
6
|
+
export function isUrl(value: string): boolean {
|
|
7
|
+
try {
|
|
8
|
+
// eslint-disable-next-line no-new
|
|
9
|
+
new URL(value);
|
|
10
|
+
return true;
|
|
11
|
+
} catch (_) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}
|