@silexpert/core 1.1.151 → 1.1.153
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/cjs/api/resources/Facturation.d.ts +3 -1
- package/dist/cjs/api/resources/Facturation.d.ts.map +1 -1
- package/dist/cjs/api/resources/Facturation.js +8 -0
- package/dist/cjs/api/resources/Facturation.js.map +1 -1
- package/dist/cjs/api/resources/KilometricAllowance.d.ts +2 -1
- package/dist/cjs/api/resources/KilometricAllowance.d.ts.map +1 -1
- package/dist/cjs/api/resources/KilometricAllowance.js +3 -0
- package/dist/cjs/api/resources/KilometricAllowance.js.map +1 -1
- package/dist/cjs/api/resources/SalesContract.d.ts +6 -5
- package/dist/cjs/api/resources/SalesContract.d.ts.map +1 -1
- package/dist/cjs/api/resources/SalesContract.js +32 -16
- package/dist/cjs/api/resources/SalesContract.js.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.d.ts +1 -0
- package/dist/cjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.js +4 -0
- package/dist/cjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.d.ts +4 -18
- package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +79 -91
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/BrandComptalib.d.ts +3 -0
- package/dist/cjs/types/Enum/BrandComptalib.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandComptalib.js +1 -0
- package/dist/cjs/types/Enum/BrandComptalib.js.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.d.ts +1 -0
- package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.js +1 -0
- package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.d.ts +214 -0
- package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js +162 -0
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.d.ts +3 -1
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +4 -0
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +4 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +54 -0
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/SalesContractConfig.d.ts +13 -4
- package/dist/cjs/types/Enum/SalesContractConfig.d.ts.map +1 -1
- package/dist/cjs/types/Enum/SalesContractConfig.js +64 -0
- package/dist/cjs/types/Enum/SalesContractConfig.js.map +1 -1
- package/dist/cjs/types/Interface/api/cashAndExpense/Query.d.ts +7 -0
- package/dist/cjs/types/Interface/api/cashAndExpense/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/cashAndExpense/Query.js +42 -0
- package/dist/cjs/types/Interface/api/cashAndExpense/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/facturation/Query.d.ts +6 -0
- package/dist/cjs/types/Interface/api/facturation/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/facturation/Query.js +22 -1
- package/dist/cjs/types/Interface/api/facturation/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts +6 -0
- package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.js +23 -1
- package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.js.map +1 -1
- package/dist/cjs/types/Interface/models/IAccountingTransaction.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/brands.d.ts +3 -2
- package/dist/cjs/utils/brands.d.ts.map +1 -1
- package/dist/cjs/utils/brands.js +15 -4
- package/dist/cjs/utils/brands.js.map +1 -1
- package/dist/mjs/api/resources/Facturation.d.ts +3 -1
- package/dist/mjs/api/resources/Facturation.d.ts.map +1 -1
- package/dist/mjs/api/resources/Facturation.js +8 -0
- package/dist/mjs/api/resources/Facturation.js.map +1 -1
- package/dist/mjs/api/resources/KilometricAllowance.d.ts +2 -1
- package/dist/mjs/api/resources/KilometricAllowance.d.ts.map +1 -1
- package/dist/mjs/api/resources/KilometricAllowance.js +6 -0
- package/dist/mjs/api/resources/KilometricAllowance.js.map +1 -1
- package/dist/mjs/api/resources/SalesContract.d.ts +6 -5
- package/dist/mjs/api/resources/SalesContract.d.ts.map +1 -1
- package/dist/mjs/api/resources/SalesContract.js +32 -15
- package/dist/mjs/api/resources/SalesContract.js.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.d.ts +1 -0
- package/dist/mjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.js +4 -0
- package/dist/mjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.d.ts +4 -18
- package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +79 -91
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/BrandComptalib.d.ts +3 -0
- package/dist/mjs/types/Enum/BrandComptalib.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandComptalib.js +1 -0
- package/dist/mjs/types/Enum/BrandComptalib.js.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.d.ts +1 -0
- package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.js +1 -0
- package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.d.ts +214 -0
- package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +162 -0
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.d.ts +3 -1
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +4 -0
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +4 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +54 -0
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/SalesContractConfig.d.ts +13 -4
- package/dist/mjs/types/Enum/SalesContractConfig.d.ts.map +1 -1
- package/dist/mjs/types/Enum/SalesContractConfig.js +68 -1
- package/dist/mjs/types/Enum/SalesContractConfig.js.map +1 -1
- package/dist/mjs/types/Interface/api/cashAndExpense/Query.d.ts +7 -0
- package/dist/mjs/types/Interface/api/cashAndExpense/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/cashAndExpense/Query.js +42 -0
- package/dist/mjs/types/Interface/api/cashAndExpense/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/facturation/Query.d.ts +6 -0
- package/dist/mjs/types/Interface/api/facturation/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/facturation/Query.js +26 -2
- package/dist/mjs/types/Interface/api/facturation/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts +6 -0
- package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.js +25 -0
- package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.js.map +1 -1
- package/dist/mjs/types/Interface/models/IAccountingTransaction.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/brands.d.ts +3 -2
- package/dist/mjs/utils/brands.d.ts.map +1 -1
- package/dist/mjs/utils/brands.js +14 -4
- package/dist/mjs/utils/brands.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Facturation.ts +10 -1
- package/ts/api/resources/KilometricAllowance.ts +8 -1
- package/ts/api/resources/SalesContract.ts +33 -17
- package/ts/api/resources/ThirdParty.ts +5 -0
- package/ts/types/Enum/BrandClementine.ts +79 -91
- package/ts/types/Enum/BrandComptalib.ts +1 -0
- package/ts/types/Enum/BrandLegalstart.ts +1 -0
- package/ts/types/Enum/BrandPourcentage.ts +162 -0
- package/ts/types/Enum/Ged.ts +4 -0
- package/ts/types/Enum/PrestationType.ts +54 -0
- package/ts/types/Enum/SalesContractConfig.ts +41 -6
- package/ts/types/Interface/api/cashAndExpense/Query.ts +24 -0
- package/ts/types/Interface/api/facturation/Query.ts +19 -2
- package/ts/types/Interface/api/salesContract/SendSalesContractParams.ts +17 -0
- package/ts/types/Interface/models/IAccountingTransaction.ts +2 -0
- package/ts/types/index.ts +1 -0
- package/ts/utils/brands.ts +16 -4
|
@@ -170,6 +170,9 @@ export enum PrestationType {
|
|
|
170
170
|
STATUTS_OPTION_1 = 213,
|
|
171
171
|
STATUTS_OPTION_2 = 214,
|
|
172
172
|
STATUTS_OPTION_AE = 215,
|
|
173
|
+
COMPTA_MICRO_KLEMS = 216,
|
|
174
|
+
COMPTA_EI_KLEMS = 217,
|
|
175
|
+
COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS = 218,
|
|
173
176
|
}
|
|
174
177
|
|
|
175
178
|
// Liste des prestations avec une lettre de mission à signer
|
|
@@ -3066,4 +3069,55 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3066
3069
|
signaturePage: null,
|
|
3067
3070
|
point: 0,
|
|
3068
3071
|
},
|
|
3072
|
+
COMPTA_MICRO_KLEMS: {
|
|
3073
|
+
id: PrestationType.COMPTA_MICRO_KLEMS,
|
|
3074
|
+
name: 'Compta Micro Klems',
|
|
3075
|
+
isComptable: true,
|
|
3076
|
+
isJuridique: false,
|
|
3077
|
+
isSocial: false,
|
|
3078
|
+
isAttestation: false,
|
|
3079
|
+
inAverageCart: false,
|
|
3080
|
+
isBack: false,
|
|
3081
|
+
price: null,
|
|
3082
|
+
isCatalog: true,
|
|
3083
|
+
hidden: false,
|
|
3084
|
+
isComplementary: false,
|
|
3085
|
+
signaturePosition: '',
|
|
3086
|
+
signaturePage: null,
|
|
3087
|
+
point: 0,
|
|
3088
|
+
},
|
|
3089
|
+
COMPTA_EI_KLEMS: {
|
|
3090
|
+
id: PrestationType.COMPTA_EI_KLEMS,
|
|
3091
|
+
name: 'Compta Entreprise Individuelle Klems',
|
|
3092
|
+
isComptable: true,
|
|
3093
|
+
isJuridique: false,
|
|
3094
|
+
isSocial: false,
|
|
3095
|
+
isAttestation: false,
|
|
3096
|
+
inAverageCart: false,
|
|
3097
|
+
isBack: false,
|
|
3098
|
+
price: null,
|
|
3099
|
+
isCatalog: true,
|
|
3100
|
+
hidden: false,
|
|
3101
|
+
isComplementary: false,
|
|
3102
|
+
signaturePosition: '',
|
|
3103
|
+
signaturePage: null,
|
|
3104
|
+
point: 0,
|
|
3105
|
+
},
|
|
3106
|
+
COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS: {
|
|
3107
|
+
id: PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,
|
|
3108
|
+
name: 'Compta Loueur Meublé Non Professionnel Klems',
|
|
3109
|
+
isComptable: true,
|
|
3110
|
+
isJuridique: false,
|
|
3111
|
+
isSocial: false,
|
|
3112
|
+
isAttestation: false,
|
|
3113
|
+
inAverageCart: false,
|
|
3114
|
+
isBack: false,
|
|
3115
|
+
price: null,
|
|
3116
|
+
isCatalog: true,
|
|
3117
|
+
hidden: false,
|
|
3118
|
+
isComplementary: false,
|
|
3119
|
+
signaturePosition: '',
|
|
3120
|
+
signaturePage: null,
|
|
3121
|
+
point: 0,
|
|
3122
|
+
},
|
|
3069
3123
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../utils';
|
|
1
3
|
import { PrestationType } from './PrestationType';
|
|
2
4
|
|
|
3
5
|
// Config in the Brand enum
|
|
@@ -26,12 +28,45 @@ export type SalesContractConfig = {
|
|
|
26
28
|
};
|
|
27
29
|
|
|
28
30
|
// List of version for a config
|
|
29
|
-
export
|
|
31
|
+
export class SalesContractConfigVersion {
|
|
30
32
|
versionId: string;
|
|
31
33
|
name: string;
|
|
32
|
-
}
|
|
34
|
+
}
|
|
33
35
|
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
export class ParamsPreviewContract {
|
|
37
|
+
@ApiProperty()
|
|
38
|
+
idPrestationList: number;
|
|
39
|
+
|
|
40
|
+
@ApiPropertyOptional()
|
|
41
|
+
@IsOptional()
|
|
42
|
+
@IsString()
|
|
43
|
+
versionId?: string;
|
|
44
|
+
|
|
45
|
+
@ApiPropertyOptional()
|
|
46
|
+
@IsOptional()
|
|
47
|
+
@IsNumber()
|
|
48
|
+
idTypeBrand?: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class ParamsGetConfig {
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
@IsOptional()
|
|
54
|
+
@IsString()
|
|
55
|
+
versionId?: string;
|
|
56
|
+
|
|
57
|
+
@ApiPropertyOptional()
|
|
58
|
+
@IsOptional()
|
|
59
|
+
@IsNumber()
|
|
60
|
+
idTypeBrand?: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export class ParamsBackgroundUpload {
|
|
64
|
+
@ApiProperty()
|
|
65
|
+
@IsString()
|
|
66
|
+
blocName: string;
|
|
67
|
+
|
|
68
|
+
@ApiPropertyOptional()
|
|
69
|
+
@IsOptional()
|
|
70
|
+
@IsNumber()
|
|
71
|
+
idTypeBrand?: number;
|
|
72
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IsBoolean, IsDateString, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
|
+
|
|
5
|
+
export class QueryKilometricAllowance {
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
@IsDateString()
|
|
8
|
+
startDate: string;
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsDateString()
|
|
12
|
+
endDate: string;
|
|
13
|
+
|
|
14
|
+
@ApiPropertyOptional()
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsString()
|
|
17
|
+
orderBy?: string;
|
|
18
|
+
|
|
19
|
+
@ApiPropertyOptional()
|
|
20
|
+
@IsBoolean()
|
|
21
|
+
@ToBoolean()
|
|
22
|
+
@IsOptional()
|
|
23
|
+
isDescending?: boolean;
|
|
24
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsInt, IsOptional, IsString,
|
|
2
|
+
IsInt, IsNumber, IsOptional, IsString,
|
|
3
3
|
} from 'class-validator';
|
|
4
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
5
|
import { OptionalQueryPaginate } from '../BasePaginate';
|
|
6
6
|
|
|
7
7
|
export class QueryPaginatedRebilling extends OptionalQueryPaginate {
|
|
@@ -15,3 +15,20 @@ export class QueryPaginatedRebilling extends OptionalQueryPaginate {
|
|
|
15
15
|
@IsInt()
|
|
16
16
|
idUser?: number;
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
export class CreateRecommanded {
|
|
20
|
+
@ApiProperty()
|
|
21
|
+
@IsNumber()
|
|
22
|
+
idSociety: number;
|
|
23
|
+
|
|
24
|
+
@ApiProperty()
|
|
25
|
+
@IsNumber()
|
|
26
|
+
amount: number;
|
|
27
|
+
|
|
28
|
+
@ApiProperty()
|
|
29
|
+
numberRecommand: string;
|
|
30
|
+
|
|
31
|
+
@ApiProperty()
|
|
32
|
+
dateRecommand: string;
|
|
33
|
+
|
|
34
|
+
}
|
|
@@ -17,3 +17,20 @@ export class SendSalesContractParams {
|
|
|
17
17
|
@ApiPropertyOptional()
|
|
18
18
|
files?: File[];
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
export class SendMandateParams {
|
|
22
|
+
@ApiProperty()
|
|
23
|
+
@IsInt()
|
|
24
|
+
idSociety: number;
|
|
25
|
+
|
|
26
|
+
@ApiProperty()
|
|
27
|
+
@IsString()
|
|
28
|
+
startText: string;
|
|
29
|
+
|
|
30
|
+
@ApiProperty()
|
|
31
|
+
@IsString()
|
|
32
|
+
endText: string;
|
|
33
|
+
|
|
34
|
+
@ApiPropertyOptional()
|
|
35
|
+
files?: File[];
|
|
36
|
+
}
|
|
@@ -12,6 +12,7 @@ import { IPartnerTransaction } from './IPartnerTransaction';
|
|
|
12
12
|
import { ICurrency } from './ICurrency';
|
|
13
13
|
import { IMachineLearningResult } from './IMachineLearningResult';
|
|
14
14
|
import { ISocietyPartner } from './ISocietyPartner';
|
|
15
|
+
import { ISocietyVehicle } from './ISocietyVehicle';
|
|
15
16
|
|
|
16
17
|
// accountingTransactions
|
|
17
18
|
export interface IAccountingTransaction {
|
|
@@ -76,4 +77,5 @@ export interface IAccountingTransaction {
|
|
|
76
77
|
childs?: IAccountingTransaction[];
|
|
77
78
|
machineLearningResults?: IMachineLearningResult[];
|
|
78
79
|
societyPartner?: ISocietyPartner;
|
|
80
|
+
vehicle?: ISocietyVehicle | null;
|
|
79
81
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -495,6 +495,7 @@ export * from './Enum/VatControl';
|
|
|
495
495
|
export * from './Enum/Cycle';
|
|
496
496
|
|
|
497
497
|
// Interfaces API
|
|
498
|
+
export * from './Interface/api/cashAndExpense/Query';
|
|
498
499
|
export * from './Interface/api/cerfa/das2';
|
|
499
500
|
export * from './Interface/api/adjustment/Query';
|
|
500
501
|
export * from './Interface/api/adjustment/Read';
|
package/ts/utils/brands.ts
CHANGED
|
@@ -31,7 +31,7 @@ type brand = {
|
|
|
31
31
|
},
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
const allBrands = ['Legalstart', 'Comptalib', 'Clementine', 'Pourcentage', '
|
|
34
|
+
const allBrands = ['Legalstart', 'Comptalib', 'Clementine', 'Pourcentage', 'Klems', 'StatutsExpress'] as const;
|
|
35
35
|
type BrandList = typeof allBrands[number];
|
|
36
36
|
|
|
37
37
|
type getBrandConfigParams = {
|
|
@@ -52,8 +52,8 @@ const getBrandNameByNodeEnv = (nodeEnv?: string): BrandList => {
|
|
|
52
52
|
if (env.indexOf('pourcentage') > -1 || env.indexOf('Pourcentage') > -1) {
|
|
53
53
|
return 'Pourcentage';
|
|
54
54
|
}
|
|
55
|
-
if (env.indexOf('
|
|
56
|
-
return '
|
|
55
|
+
if (env.indexOf('klems') > -1 || env.indexOf('Klems') > -1) {
|
|
56
|
+
return 'Klems';
|
|
57
57
|
}
|
|
58
58
|
if (env.indexOf('statuts') > -1 || env.indexOf('Statuts') > -1) {
|
|
59
59
|
return 'StatutsExpress';
|
|
@@ -130,6 +130,18 @@ const getBrandByEmail = (email: string): 'Legalstart' | 'Comptalib' | 'Clementin
|
|
|
130
130
|
return null;
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
+
const getSubBrandList = (nodeEnv?: string): Array<object> => {
|
|
134
|
+
const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;
|
|
135
|
+
const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);
|
|
136
|
+
const listEnvEnum = {
|
|
137
|
+
BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage, BrandClems, BrandStatutsExpress,
|
|
138
|
+
};
|
|
139
|
+
// @ts-ignore
|
|
140
|
+
const currentConfigFile: brand[] = listEnvEnum[`Brand${currentEnvName}`];
|
|
141
|
+
|
|
142
|
+
return currentConfigFile;
|
|
143
|
+
};
|
|
144
|
+
|
|
133
145
|
export {
|
|
134
|
-
getBrandConfig, isItThisEnv, getAllBrandByNodeEnv, getBrandNameByNodeEnv, getBrandByEmail,
|
|
146
|
+
getBrandConfig, isItThisEnv, getAllBrandByNodeEnv, getBrandNameByNodeEnv, getBrandByEmail, getSubBrandList,
|
|
135
147
|
};
|