@silexpert/core 0.4.247 → 0.4.250
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/Loan.d.ts +2 -1
- package/es/api/resources/Loan.d.ts.map +1 -1
- package/es/api/resources/Loan.js +3 -0
- package/es/api/resources/Loan.js.map +1 -1
- package/es/api/resources/Revision.d.ts +2 -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/types/Enum/BrandPourcentage.d.ts +78 -0
- package/es/types/Enum/BrandPourcentage.d.ts.map +1 -0
- package/es/types/Enum/BrandPourcentage.js +80 -0
- package/es/types/Enum/BrandPourcentage.js.map +1 -0
- package/es/types/Enum/PrestationOption.d.ts +27 -0
- package/es/types/Enum/PrestationOption.d.ts.map +1 -0
- package/es/types/Enum/PrestationOption.js +27 -0
- package/es/types/Enum/PrestationOption.js.map +1 -0
- package/es/types/Enum/TimeCounterType.d.ts +48 -0
- package/es/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/es/types/Enum/TimeCounterType.js +54 -6
- package/es/types/Enum/TimeCounterType.js.map +1 -1
- package/es/types/Enum/VatDeclarationType.js +1 -1
- package/es/types/Enum/VatDeclarationType.js.map +1 -1
- package/es/types/Interface/api/mail/CreateMailParams.d.ts +1 -0
- package/es/types/Interface/api/mail/CreateMailParams.d.ts.map +1 -1
- package/es/types/Interface/api/mail/CreateMailParams.js.map +1 -1
- package/es/types/Interface/models/IChecklist.d.ts +2 -0
- package/es/types/Interface/models/IChecklist.d.ts.map +1 -1
- package/es/types/Interface/models/IChecklist.js.map +1 -1
- package/es/types/Interface/models/IMailRelation.d.ts +12 -0
- package/es/types/Interface/models/IMailRelation.d.ts.map +1 -0
- package/es/types/Interface/models/IMailRelation.js +2 -0
- package/es/types/Interface/models/IMailRelation.js.map +1 -0
- package/es/types/Interface/models/IPrestationOption.d.ts +10 -0
- package/es/types/Interface/models/IPrestationOption.d.ts.map +1 -0
- package/es/types/Interface/models/IPrestationOption.js +2 -0
- package/es/types/Interface/models/IPrestationOption.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/brands.d.ts +1 -1
- package/es/utils/brands.d.ts.map +1 -1
- package/es/utils/brands.js +16 -2
- package/es/utils/brands.js.map +1 -1
- package/js/api/resources/Loan.js +4 -0
- package/js/api/resources/Loan.js.map +1 -1
- package/js/api/resources/Revision.js +5 -3
- package/js/api/resources/Revision.js.map +1 -1
- package/js/types/Enum/BrandPourcentage.js +83 -0
- package/js/types/Enum/BrandPourcentage.js.map +1 -0
- package/js/types/Enum/PrestationOption.js +32 -0
- package/js/types/Enum/PrestationOption.js.map +1 -0
- package/js/types/Enum/TimeCounterType.js +54 -6
- package/js/types/Enum/TimeCounterType.js.map +1 -1
- package/js/types/Enum/VatDeclarationType.js +1 -1
- package/js/types/Enum/VatDeclarationType.js.map +1 -1
- package/js/types/Interface/models/IMailRelation.js +6 -0
- package/js/types/Interface/models/IMailRelation.js.map +1 -0
- package/js/types/Interface/models/IPrestationOption.js +6 -0
- package/js/types/Interface/models/IPrestationOption.js.map +1 -0
- package/js/types/index.js +48 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/brands.js +18 -2
- package/js/utils/brands.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Loan.ts +7 -1
- package/ts/api/resources/Revision.ts +3 -2
- package/ts/types/Enum/BrandPourcentage.ts +79 -0
- package/ts/types/Enum/PrestationOption.ts +26 -0
- package/ts/types/Enum/TimeCounterType.ts +54 -6
- package/ts/types/Enum/VatDeclarationType.ts +1 -1
- package/ts/types/Interface/api/mail/CreateMailParams.ts +1 -0
- package/ts/types/Interface/models/IChecklist.ts +2 -0
- package/ts/types/Interface/models/IMailRelation.ts +15 -0
- package/ts/types/Interface/models/IPrestationOption.ts +13 -0
- package/ts/types/index.ts +4 -0
- package/ts/utils/brands.ts +17 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CancelToken } from 'axios';
|
|
1
2
|
import { Resource } from '../Resource';
|
|
2
3
|
import {
|
|
3
4
|
BasePaginate, QueryRevisionMergeIntoAccount, QueryRevision, QueryRevisionAccount, ReadRevision, ReadRevisionAccount,
|
|
@@ -18,8 +19,8 @@ export class Revision extends Resource {
|
|
|
18
19
|
return this.axios.$get('/revisions/accounts/paginate', { params });
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
getPaginateTransactionsByAccount(idAccount: number, params: QueryRevisionAccount): Promise<BasePaginate<ReadRevisionAccount>> {
|
|
22
|
-
return this.axios.$get(`/revisions/accounts/${idAccount}`, { params });
|
|
22
|
+
getPaginateTransactionsByAccount(idAccount: number, params: QueryRevisionAccount, cancelToken?: CancelToken): Promise<BasePaginate<ReadRevisionAccount>> {
|
|
23
|
+
return this.axios.$get(`/revisions/accounts/${idAccount}`, { ...(cancelToken ? { cancelToken } : {}), params });
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
getTransactionById(idAccountingTransaction: number): Promise<ReadRevisionTransactionDetail> {
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export const BrandPourcentage = [
|
|
2
|
+
{
|
|
3
|
+
idTypeBrand: 1,
|
|
4
|
+
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',
|
|
5
|
+
logoS3: 'config/pourcentage-logo.png',
|
|
6
|
+
name: 'Pourcentage',
|
|
7
|
+
colors: {
|
|
8
|
+
primary: '#1e6f5c',
|
|
9
|
+
},
|
|
10
|
+
listPhones: {
|
|
11
|
+
contact: '01 86 90 82 15',
|
|
12
|
+
qualite: '01 86 90 82 15',
|
|
13
|
+
juridique: '01 86 90 82 15',
|
|
14
|
+
},
|
|
15
|
+
listMails: {
|
|
16
|
+
administratif: 'contact@pourcentage.fr',
|
|
17
|
+
app: 'contact@pourcentage.fr',
|
|
18
|
+
bonjour: 'contact@pourcentage.fr',
|
|
19
|
+
contact: 'contact@pourcentage.fr',
|
|
20
|
+
facturation: 'facturation@pourcentage.fr',
|
|
21
|
+
feedback: 'contact@pourcentage.fr',
|
|
22
|
+
juridique: 'contact@pourcentage.fr',
|
|
23
|
+
informatique: 'contact@pourcentage.fr',
|
|
24
|
+
msd: 'contact@pourcentage.fr',
|
|
25
|
+
noreply: 'contact@pourcentage.fr',
|
|
26
|
+
qualite: 'contact@pourcentage.fr',
|
|
27
|
+
paiement: 'contact@pourcentage.fr',
|
|
28
|
+
social: 'contact@pourcentage.fr',
|
|
29
|
+
support: 'contact@pourcentage.fr',
|
|
30
|
+
tva: 'contact@pourcentage.fr',
|
|
31
|
+
wb: 'contact@pourcentage.fr',
|
|
32
|
+
},
|
|
33
|
+
companyInformation: {
|
|
34
|
+
ape: '6920Z',
|
|
35
|
+
bp: '',
|
|
36
|
+
city: 'Paris',
|
|
37
|
+
montantCapital: '10 000',
|
|
38
|
+
nomRaisonSociale: 'POURCENTAGE',
|
|
39
|
+
ECName: 'M. Jean-Louis BOICHÉ',
|
|
40
|
+
ECOrderCity: 'Nancy',
|
|
41
|
+
phone: '01 86 90 82 15',
|
|
42
|
+
postalAddress: '30, rue des Mathurins',
|
|
43
|
+
rcs: '891 501 181',
|
|
44
|
+
statut: 'SAS',
|
|
45
|
+
zipCode: '75 008',
|
|
46
|
+
},
|
|
47
|
+
idPrestationsListAuthorized: [197, 205],
|
|
48
|
+
logoUrl: 'logo-pourcentage.svg',
|
|
49
|
+
miniLogoUrl: 'logo-pourcentage-mini.svg',
|
|
50
|
+
hiddenPages: [],
|
|
51
|
+
recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
|
|
52
|
+
urlApp: 'https://app.pourcentage.fr/',
|
|
53
|
+
urlApi1: 'https://api.comptalib.com',
|
|
54
|
+
urlApi2: 'https://api-next.comptalib.com',
|
|
55
|
+
urlExpert: 'https://pro.comptalib.com',
|
|
56
|
+
urlClient: 'https://www.pourcentage.fr',
|
|
57
|
+
bank: {
|
|
58
|
+
IBAN: 'FR7616106010019601826952765',
|
|
59
|
+
BIC: 'AGRIFRPP861',
|
|
60
|
+
Name: 'POURCENTAGE',
|
|
61
|
+
Id: 'FR57ZZZ878E61',
|
|
62
|
+
},
|
|
63
|
+
internalInvoicing: {
|
|
64
|
+
statut: 'SASU',
|
|
65
|
+
name: 'POURCENTAGE',
|
|
66
|
+
address: '9, avenue du Rhin',
|
|
67
|
+
zipCode: '54520',
|
|
68
|
+
city: 'LAXOU',
|
|
69
|
+
country: 'FRANCE',
|
|
70
|
+
montantCapital: '10 000',
|
|
71
|
+
siret: '89150118100020',
|
|
72
|
+
ape: '6920Z',
|
|
73
|
+
rcs: '891 501 181',
|
|
74
|
+
phone: '03 83 93 14 14',
|
|
75
|
+
vatIntracom: 'FR58891501181',
|
|
76
|
+
email: 'facturation@pourcentage.fr',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const PrestationOption = {
|
|
2
|
+
BUSINESS_PLAN_OPTION_1: {
|
|
3
|
+
id: 1,
|
|
4
|
+
name: 'Option 1',
|
|
5
|
+
description: 'Version supplémentaire établie demandée suite à des modifications du questionnaire',
|
|
6
|
+
price: 99,
|
|
7
|
+
},
|
|
8
|
+
BUSINESS_PLAN_OPTION_2: {
|
|
9
|
+
id: 2,
|
|
10
|
+
name: 'Option 2',
|
|
11
|
+
description: 'Prévisionnel sur 60 mois',
|
|
12
|
+
price: 139,
|
|
13
|
+
},
|
|
14
|
+
BUSINESS_PLAN_OPTION_3: {
|
|
15
|
+
id: 3,
|
|
16
|
+
name: 'Option 3',
|
|
17
|
+
description: 'Aide au choix du statut juridique, fiscal et social',
|
|
18
|
+
price: 99,
|
|
19
|
+
},
|
|
20
|
+
BUSINESS_PLAN_OPTION_4: {
|
|
21
|
+
id: 4,
|
|
22
|
+
name: 'Option 4',
|
|
23
|
+
description: 'Prévisionnel express en 8 jours ouvrables après retour questionnaire rempli de 35 questions simples',
|
|
24
|
+
price: 99,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -5,25 +5,25 @@ export const TimeCounterType = {
|
|
|
5
5
|
id: 1,
|
|
6
6
|
label: 'OnBoarding',
|
|
7
7
|
aberrantTime: 60,
|
|
8
|
-
limitedRoles: [Role.FRONT_OFFICE],
|
|
8
|
+
limitedRoles: [Role.FRONT_OFFICE, Role.BACK_OFFICE],
|
|
9
9
|
},
|
|
10
10
|
VAT: {
|
|
11
11
|
id: 2,
|
|
12
12
|
label: 'TVA',
|
|
13
13
|
aberrantTime: 60,
|
|
14
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
14
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE, Role.BACK_OFFICE],
|
|
15
15
|
},
|
|
16
16
|
REVISION: {
|
|
17
17
|
id: 3,
|
|
18
18
|
label: 'Révision',
|
|
19
19
|
aberrantTime: 120,
|
|
20
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
20
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE, Role.BACK_OFFICE],
|
|
21
21
|
},
|
|
22
22
|
FOLDER_REVIEW: {
|
|
23
23
|
id: 4,
|
|
24
24
|
label: 'Revue dossier',
|
|
25
25
|
aberrantTime: 60,
|
|
26
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
26
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE, Role.BACK_OFFICE],
|
|
27
27
|
},
|
|
28
28
|
REPORTING: {
|
|
29
29
|
id: 5,
|
|
@@ -65,7 +65,7 @@ export const TimeCounterType = {
|
|
|
65
65
|
id: 11,
|
|
66
66
|
label: 'Prévisionnel',
|
|
67
67
|
aberrantTime: null,
|
|
68
|
-
limitedRoles: [Role.FRONT_OFFICE],
|
|
68
|
+
limitedRoles: [Role.FRONT_OFFICE, Role.BACK_OFFICE],
|
|
69
69
|
},
|
|
70
70
|
CERTIFICATE: {
|
|
71
71
|
id: 12,
|
|
@@ -77,7 +77,7 @@ export const TimeCounterType = {
|
|
|
77
77
|
id: 13,
|
|
78
78
|
label: 'Mission complémentaire',
|
|
79
79
|
aberrantTime: null,
|
|
80
|
-
limitedRoles: [Role.FRONT_OFFICE],
|
|
80
|
+
limitedRoles: [Role.FRONT_OFFICE, Role.BACK_OFFICE],
|
|
81
81
|
},
|
|
82
82
|
ORGANISATION: {
|
|
83
83
|
id: 14,
|
|
@@ -115,4 +115,52 @@ export const TimeCounterType = {
|
|
|
115
115
|
aberrantTime: null,
|
|
116
116
|
limitedRoles: [Role.CUSTOMER_SUCCESS],
|
|
117
117
|
},
|
|
118
|
+
BILAN: {
|
|
119
|
+
id: 20,
|
|
120
|
+
label: 'Bilan',
|
|
121
|
+
aberrantTime: 120,
|
|
122
|
+
limitedRoles: [Role.FRONT_OFFICE, Role.BACK_MANAGER, Role.FRONT_MANAGER, Role.BACK_MANAGER, Role.EXPERT_ACCOUNTANT],
|
|
123
|
+
},
|
|
124
|
+
PAYSLIP: {
|
|
125
|
+
id: 21,
|
|
126
|
+
label: 'Bulletin de paie/DSN',
|
|
127
|
+
aberrantTime: 30,
|
|
128
|
+
limitedRoles: [Role.SOCIAL],
|
|
129
|
+
},
|
|
130
|
+
SOCIAL_PARAMETER: {
|
|
131
|
+
id: 22,
|
|
132
|
+
label: 'Paramétrage social',
|
|
133
|
+
aberrantTime: 40,
|
|
134
|
+
limitedRoles: [Role.SOCIAL],
|
|
135
|
+
},
|
|
136
|
+
WORK_CONTRACT: {
|
|
137
|
+
id: 23,
|
|
138
|
+
label: 'Contrat de travail',
|
|
139
|
+
aberrantTime: 60,
|
|
140
|
+
limitedRoles: [Role.SOCIAL],
|
|
141
|
+
},
|
|
142
|
+
DPAE: {
|
|
143
|
+
id: 24,
|
|
144
|
+
label: 'DPAE',
|
|
145
|
+
aberrantTime: 25,
|
|
146
|
+
limitedRoles: [Role.SOCIAL],
|
|
147
|
+
},
|
|
148
|
+
FACTURATION: {
|
|
149
|
+
id: 25,
|
|
150
|
+
label: 'Facturation',
|
|
151
|
+
aberrantTime: 180,
|
|
152
|
+
limitedRoles: null,
|
|
153
|
+
},
|
|
154
|
+
LEGAL_DOCUMENT: {
|
|
155
|
+
id: 26,
|
|
156
|
+
label: 'Rédaction documents juridiques',
|
|
157
|
+
aberrantTime: 30,
|
|
158
|
+
limitedRoles: [Role.JURIDIC],
|
|
159
|
+
},
|
|
160
|
+
INFOGREFFE: {
|
|
161
|
+
id: 27,
|
|
162
|
+
label: 'Dépôt infogreffe ou autre',
|
|
163
|
+
aberrantTime: 15,
|
|
164
|
+
limitedRoles: [Role.JURIDIC],
|
|
165
|
+
},
|
|
118
166
|
};
|
|
@@ -3,6 +3,7 @@ import { IUser } from './IUser';
|
|
|
3
3
|
import { IExercice } from './IExercice';
|
|
4
4
|
import { ICustomerTva } from './ICustomerTva';
|
|
5
5
|
import { ChecklistTypeEnum } from '../../Enum/ChecklistType';
|
|
6
|
+
import { IMailRelation } from '../..';
|
|
6
7
|
|
|
7
8
|
// checklist
|
|
8
9
|
export interface IChecklist {
|
|
@@ -25,4 +26,5 @@ export interface IChecklist {
|
|
|
25
26
|
checklistHasOneSupervisor?: IUser;
|
|
26
27
|
exercice?: IExercice;
|
|
27
28
|
checklistHasOneCustomerVat?: ICustomerTva;
|
|
29
|
+
mailRelation?: IMailRelation[];
|
|
28
30
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IChecklist } from './IChecklist';
|
|
2
|
+
import { IMail } from './IMail';
|
|
3
|
+
|
|
4
|
+
// jobs
|
|
5
|
+
export interface IMailRelation {
|
|
6
|
+
id?: number;
|
|
7
|
+
idChecklist?: number | null;
|
|
8
|
+
idMail: number;
|
|
9
|
+
createdAt?: Date | null;
|
|
10
|
+
updatedAt?: Date | null;
|
|
11
|
+
|
|
12
|
+
// Associations
|
|
13
|
+
checklist?: IChecklist;
|
|
14
|
+
mail?: IMail;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IPrestation } from './IPrestation';
|
|
2
|
+
|
|
3
|
+
// prestationsOptions
|
|
4
|
+
export interface IPrestationOption {
|
|
5
|
+
id?: number;
|
|
6
|
+
idPrestation: number;
|
|
7
|
+
idOption: number;
|
|
8
|
+
createdAt?: Date | null;
|
|
9
|
+
updatedAt?: Date | null;
|
|
10
|
+
|
|
11
|
+
// Associations
|
|
12
|
+
prestation?: IPrestation;
|
|
13
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -109,6 +109,7 @@ export * from './Interface/models/ILogBi';
|
|
|
109
109
|
export * from './Interface/models/ILog';
|
|
110
110
|
export * from './Interface/models/IMailSociety';
|
|
111
111
|
export * from './Interface/models/IMailAuto';
|
|
112
|
+
export * from './Interface/models/IMailRelation';
|
|
112
113
|
export * from './Interface/models/IMailAutoType';
|
|
113
114
|
export * from './Interface/models/IMonth';
|
|
114
115
|
export * from './Interface/models/INationality';
|
|
@@ -144,6 +145,7 @@ export * from './Interface/models/IPhonePrefixChild';
|
|
|
144
145
|
export * from './Interface/models/IPrestation';
|
|
145
146
|
export * from './Interface/models/IPrestationComplementary';
|
|
146
147
|
export * from './Interface/models/IPrestationList';
|
|
148
|
+
export * from './Interface/models/IPrestationOption';
|
|
147
149
|
export * from './Interface/models/IProcedure';
|
|
148
150
|
export * from './Interface/models/IProduct';
|
|
149
151
|
export * from './Interface/models/IQuality';
|
|
@@ -325,6 +327,7 @@ export * from './Enum/Quality';
|
|
|
325
327
|
export * from './Enum/AbsenceType';
|
|
326
328
|
export * from './Enum/Role';
|
|
327
329
|
export * from './Enum/RoleDetail';
|
|
330
|
+
export * from './Enum/PrestationOption';
|
|
328
331
|
export * from './Enum/TimeCounterType';
|
|
329
332
|
export * from './Enum/MailAuto';
|
|
330
333
|
export * from './Enum/Simulation';
|
|
@@ -389,6 +392,7 @@ export * from './Enum/ExerciceNoteType';
|
|
|
389
392
|
export * from './Enum/BrandClementine';
|
|
390
393
|
export * from './Enum/BrandLegalstart';
|
|
391
394
|
export * from './Enum/BrandComptalib';
|
|
395
|
+
export * from './Enum/BrandPourcentage';
|
|
392
396
|
export * from './Enum/PartneredAccountantServiceState';
|
|
393
397
|
export * from './Enum/AccountsSectors';
|
|
394
398
|
export * from './Enum/ProductType';
|
package/ts/utils/brands.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { get as getLodash } from 'lodash';
|
|
|
2
2
|
import { BrandClementine } from '../types/Enum/BrandClementine';
|
|
3
3
|
import { BrandLegalstart } from '../types/Enum/BrandLegalstart';
|
|
4
4
|
import { BrandComptalib } from '../types/Enum/BrandComptalib';
|
|
5
|
+
import { BrandPourcentage } from '../types/Enum/BrandPourcentage';
|
|
5
6
|
|
|
6
7
|
type brand = {
|
|
7
8
|
idTypeBrand: number,
|
|
@@ -14,7 +15,7 @@ type getBrandConfigParams = {
|
|
|
14
15
|
nodeEnv?: string
|
|
15
16
|
};
|
|
16
17
|
|
|
17
|
-
const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' => {
|
|
18
|
+
const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' => {
|
|
18
19
|
if (nodeEnv) {
|
|
19
20
|
if (nodeEnv.indexOf('legalstart') > -1 || nodeEnv.indexOf('Legalstart') > -1) {
|
|
20
21
|
return 'Legalstart';
|
|
@@ -22,6 +23,9 @@ const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'C
|
|
|
22
23
|
if (nodeEnv.indexOf('comptalib') > -1 || nodeEnv.indexOf('Comptalib') > -1) {
|
|
23
24
|
return 'Comptalib';
|
|
24
25
|
}
|
|
26
|
+
if (nodeEnv.indexOf('pourcentage') > -1 || nodeEnv.indexOf('Pourcentage') > -1) {
|
|
27
|
+
return 'Pourcentage';
|
|
28
|
+
}
|
|
25
29
|
} else if (process.env.NODE_ENV) {
|
|
26
30
|
if (process.env.NODE_ENV.indexOf('legalstart') > -1 || process.env.NODE_ENV.indexOf('Legalstart') > -1) {
|
|
27
31
|
return 'Legalstart';
|
|
@@ -29,6 +33,9 @@ const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'C
|
|
|
29
33
|
if (process.env.NODE_ENV.indexOf('comptalib') > -1 || process.env.NODE_ENV.indexOf('Comptalib') > -1) {
|
|
30
34
|
return 'Comptalib';
|
|
31
35
|
}
|
|
36
|
+
if (process.env.NODE_ENV.indexOf('pourcentage') > -1 || process.env.NODE_ENV.indexOf('Pourcentage') > -1) {
|
|
37
|
+
return 'Pourcentage';
|
|
38
|
+
}
|
|
32
39
|
} else if (process.env.API_HOST) {
|
|
33
40
|
if (process.env.API_HOST.indexOf('legalstart') > -1 || process.env.API_HOST.indexOf('Legalstart') > -1) {
|
|
34
41
|
return 'Legalstart';
|
|
@@ -36,6 +43,9 @@ const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'C
|
|
|
36
43
|
if (process.env.API_HOST.indexOf('comptalib') > -1 || process.env.API_HOST.indexOf('Comptalib') > -1) {
|
|
37
44
|
return 'Comptalib';
|
|
38
45
|
}
|
|
46
|
+
if (process.env.API_HOST.indexOf('pourcentage') > -1 || process.env.API_HOST.indexOf('Pourcentage') > -1) {
|
|
47
|
+
return 'Pourcentage';
|
|
48
|
+
}
|
|
39
49
|
}
|
|
40
50
|
return 'Clementine';
|
|
41
51
|
};
|
|
@@ -43,7 +53,9 @@ const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'C
|
|
|
43
53
|
const getAllBrandByNodeEnv = (nodeEnv?: string): Array<brand> => {
|
|
44
54
|
const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;
|
|
45
55
|
const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);
|
|
46
|
-
const listEnvEnum = {
|
|
56
|
+
const listEnvEnum = {
|
|
57
|
+
BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,
|
|
58
|
+
};
|
|
47
59
|
// @ts-ignore
|
|
48
60
|
const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];
|
|
49
61
|
|
|
@@ -59,7 +71,9 @@ const getBrandConfig = (params: getBrandConfigParams): brand => {
|
|
|
59
71
|
let brand;
|
|
60
72
|
const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;
|
|
61
73
|
const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);
|
|
62
|
-
const listEnvEnum = {
|
|
74
|
+
const listEnvEnum = {
|
|
75
|
+
BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,
|
|
76
|
+
};
|
|
63
77
|
// @ts-ignore
|
|
64
78
|
const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];
|
|
65
79
|
|