@silexpert/core 0.4.268 → 0.4.270
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/GeneralLedger.d.ts +1 -1
- package/es/api/resources/GeneralLedger.d.ts.map +1 -1
- package/es/api/resources/GeneralLedger.js +2 -2
- package/es/api/resources/GeneralLedger.js.map +1 -1
- package/es/api/resources/Mail.d.ts +1 -1
- package/es/api/resources/Mail.d.ts.map +1 -1
- package/es/api/resources/Mail.js +2 -1
- package/es/api/resources/Mail.js.map +1 -1
- package/es/types/Enum/BrandClementine.d.ts +9 -0
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +6 -0
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/BrandComptalib.d.ts +85 -0
- package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
- package/es/types/Enum/BrandComptalib.js +6 -0
- package/es/types/Enum/BrandComptalib.js.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts +1 -0
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js +7 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -0
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +7 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.js +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/es/types/Interface/api/revision/ReadRevision.d.ts +2 -1
- package/es/types/Interface/api/revision/ReadRevision.d.ts.map +1 -1
- package/es/types/Interface/api/revision/ReadRevision.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 +8 -26
- package/es/utils/brands.js.map +1 -1
- package/js/api/resources/GeneralLedger.js +2 -2
- package/js/api/resources/GeneralLedger.js.map +1 -1
- package/js/api/resources/Mail.js +2 -1
- package/js/api/resources/Mail.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +6 -0
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/BrandComptalib.js +6 -0
- package/js/types/Enum/BrandComptalib.js.map +1 -1
- package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js +2 -0
- package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +4 -0
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionAccount.js +1 -1
- package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/js/utils/brands.js +7 -26
- package/js/utils/brands.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/GeneralLedger.ts +2 -2
- package/ts/api/resources/Mail.ts +2 -1
- package/ts/types/Enum/BrandClementine.ts +6 -0
- package/ts/types/Enum/BrandComptalib.ts +6 -0
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +6 -0
- package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +6 -0
- package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +1 -1
- package/ts/types/Interface/api/revision/ReadRevision.ts +2 -1
- package/ts/utils/brands.ts +7 -25
package/js/utils/brands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.js","mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAaA,MAAMA,qBAAqB,GAAIC,OAAD,IAA+E
|
|
1
|
+
{"version":3,"file":"brands.js","mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;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,MAAMY,eAAe,GAAIC,KAAD,IAA2G;EACjI,IAAIA,KAAK,CAACvB,OAAN,CAAc,eAAd,IAAiC,CAAC,CAAtC,EAAyC,OAAO,YAAP;EACzC,IAAIuB,KAAK,CAACvB,OAAN,CAAc,eAAd,IAAiC,CAAC,CAAtC,EAAyC,OAAO,WAAP;EACzC,IAAIuB,KAAK,CAACvB,OAAN,CAAc,gBAAd,IAAkC,CAAC,CAAvC,EAA0C,OAAO,aAAP;EAC1C,IAAIuB,KAAK,CAACvB,OAAN,CAAc,sBAAd,IAAwC,CAAC,CAA7C,EAAgD,OAAO,YAAP;EAChD,IAAIuB,KAAK,CAACvB,OAAN,CAAc,wBAAd,IAA0C,CAAC,CAA/C,EAAkD,OAAO,qBAAP;EAClD,OAAO,IAAP;AACD,CAPD;;QAUEW,c,GAAAA,c;QAAgBV,oB,GAAAA,oB;QAAsBR,qB,GAAAA,qB;QAAuB6B,e,GAAAA,e","names":["getBrandNameByNodeEnv","nodeEnv","env","process","NODE_ENV","_a","API_HOST","indexOf","getAllBrandByNodeEnv","nodeEnvUsed","currentEnvName","listEnvEnum","BrandClementine","BrandLegalstart","BrandComptalib","BrandPourcentage","currentConfigFile","brand","getBrandConfig","params","idTypeBrand","objectWaited","find","b","sort","a","objectToReturn","brandDefault","name","getBrandByEmail","email"],"sourceRoot":"","sources":["../../ts/utils/brands.ts"],"sourcesContent":["import { get as getLodash } from 'lodash';\nimport { BrandClementine } from '../types/Enum/BrandClementine';\nimport { BrandLegalstart } from '../types/Enum/BrandLegalstart';\nimport { BrandComptalib } from '../types/Enum/BrandComptalib';\nimport { BrandPourcentage } from '../types/Enum/BrandPourcentage';\n\ntype brand = {\n idTypeBrand: number,\n name: string\n};\n\ntype getBrandConfigParams = {\n idTypeBrand?: number,\n objectWaited?: string,\n nodeEnv?: string\n};\n\nconst getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' => {\n const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;\n if (env) {\n if (env.indexOf('legalstart') > -1 || env.indexOf('Legalstart') > -1) {\n return 'Legalstart';\n }\n if (env.indexOf('comptalib') > -1 || env.indexOf('Comptalib') > -1) {\n return 'Comptalib';\n }\n if (env.indexOf('pourcentage') > -1 || env.indexOf('Pourcentage') > -1) {\n return 'Pourcentage';\n }\n }\n return 'Clementine';\n};\n\nconst getAllBrandByNodeEnv = (nodeEnv?: string): Array<brand> => {\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n const brand = currentConfigFile;\n\n return brand;\n};\n\nconst getBrandConfig = (params: getBrandConfigParams): brand => {\n const {\n idTypeBrand = null, objectWaited = null, nodeEnv,\n } = params;\n let brand;\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n if (idTypeBrand) {\n // Récupération de la brand via idTypeBrand\n brand = currentConfigFile.find((b: brand) => b.idTypeBrand === idTypeBrand);\n }\n // else if (idSociety) {\n // Récupération de la brand via l'idSociety -> impossible directement depuis le core (pas d'accès au resources, ni au token pour l'appel via fetch)\n\n if (!brand) {\n // Si aucune brand trouvée, on passe par défaut la première brand de la liste\n [brand] = currentConfigFile.sort((a: brand, b: brand) => a.idTypeBrand - b.idTypeBrand);\n }\n\n if (objectWaited) {\n // Si on attend un attribut particulier de la brand, on le parcourt\n let objectToReturn = getLodash(brand, objectWaited);\n // Si aucun attribut trouvé, on renvoit celui de Clementine par défaut\n if (!objectToReturn) {\n const brandDefault = currentConfigFile.find((b: brand) => b.name === currentEnvName);\n objectToReturn = getLodash(brandDefault, objectWaited);\n }\n return objectToReturn;\n }\n\n return brand;\n};\n\nconst getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | 'Lecomptablefrancais' | null => {\n if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';\n if (email.indexOf('comptalib.com') > -1) return 'Comptalib';\n if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';\n if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';\n if (email.indexOf('lecomptablefrancais.fr') > -1) return 'Lecomptablefrancais';\n return null;\n};\n\nexport {\n getBrandConfig, getAllBrandByNodeEnv, getBrandNameByNodeEnv, getBrandByEmail,\n};"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.270",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -37,8 +37,8 @@ export class GeneralLedger extends Resource {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
getPdf(params: QueryGeneralLedger):Promise<Buffer> {
|
|
41
|
-
return this.axios.$get(
|
|
40
|
+
getPdf(idSociety: number, params: QueryGeneralLedger):Promise<Buffer> {
|
|
41
|
+
return this.axios.$get(`/societies/${idSociety}/general-ledger/pdf`, {
|
|
42
42
|
params,
|
|
43
43
|
responseType: 'arraybuffer',
|
|
44
44
|
headers: {
|
package/ts/api/resources/Mail.ts
CHANGED
|
@@ -152,10 +152,11 @@ export class Mail extends Resource {
|
|
|
152
152
|
},
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
public countToBeClassifiedByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {
|
|
155
|
+
public countToBeClassifiedByUser(idUser: number, to?: string, cancelToken?: CancelToken): Promise<number> {
|
|
156
156
|
return this.axios.$get('/mails/count-unprocessed-by-user', {
|
|
157
157
|
...(cancelToken ? { cancelToken } : {}),
|
|
158
158
|
params: {
|
|
159
|
+
to,
|
|
159
160
|
idUser,
|
|
160
161
|
isWithoutSociety: true,
|
|
161
162
|
},
|
|
@@ -76,6 +76,9 @@ export const BrandClementine = [
|
|
|
76
76
|
vatIntracom: 'FR47752566687',
|
|
77
77
|
email: 'facturation@compta-clementine.fr',
|
|
78
78
|
},
|
|
79
|
+
webmail: {
|
|
80
|
+
domain: '@compta-clementine.fr',
|
|
81
|
+
},
|
|
79
82
|
},
|
|
80
83
|
{
|
|
81
84
|
idTypeBrand: 2,
|
|
@@ -243,6 +246,9 @@ export const BrandClementine = [
|
|
|
243
246
|
vatIntracom: 'FR58891501181',
|
|
244
247
|
email: 'facturation@pourcentage.fr',
|
|
245
248
|
},
|
|
249
|
+
webmail: {
|
|
250
|
+
domain: '@pourcentage.fr',
|
|
251
|
+
},
|
|
246
252
|
},
|
|
247
253
|
{
|
|
248
254
|
idTypeBrand: 5,
|
|
@@ -129,6 +129,9 @@ export const BrandComptalib = [
|
|
|
129
129
|
vatIntracom: 'FR58891501181',
|
|
130
130
|
email: 'facturation@pourcentage.fr',
|
|
131
131
|
},
|
|
132
|
+
webmail: {
|
|
133
|
+
domain: '@pourcentage.fr',
|
|
134
|
+
},
|
|
132
135
|
},
|
|
133
136
|
{
|
|
134
137
|
idTypeBrand: 3,
|
|
@@ -203,6 +206,9 @@ export const BrandComptalib = [
|
|
|
203
206
|
vatIntracom: 'FR58891501181',
|
|
204
207
|
email: 'bonjour@comptalib.com',
|
|
205
208
|
},
|
|
209
|
+
webmail: {
|
|
210
|
+
domain: '@lecomptablefrancais.fr',
|
|
211
|
+
},
|
|
206
212
|
},
|
|
207
213
|
{
|
|
208
214
|
idTypeBrand: 4,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
IsArray,
|
|
2
3
|
IsBoolean, IsInt, IsOptional, Min,
|
|
3
4
|
} from 'class-validator';
|
|
4
5
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
@@ -21,6 +22,11 @@ export class QueryGeneralLedger {
|
|
|
21
22
|
@Min(1)
|
|
22
23
|
page: number;
|
|
23
24
|
|
|
25
|
+
@ApiPropertyOptional()
|
|
26
|
+
@IsArray()
|
|
27
|
+
@IsOptional()
|
|
28
|
+
idAccount?: number[];
|
|
29
|
+
|
|
24
30
|
@ApiPropertyOptional({ default: true })
|
|
25
31
|
@IsBoolean()
|
|
26
32
|
@ToBoolean()
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
IsBoolean,
|
|
3
3
|
IsInt,
|
|
4
4
|
IsOptional,
|
|
5
|
+
IsString,
|
|
5
6
|
} from 'class-validator';
|
|
6
7
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
7
8
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
@@ -22,4 +23,9 @@ export class QueryCountUnprocessedByUserMail {
|
|
|
22
23
|
@IsBoolean()
|
|
23
24
|
@ToBoolean()
|
|
24
25
|
handlingManagerRoleMails?: boolean;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
@IsString({ each: true })
|
|
30
|
+
to?: string;
|
|
25
31
|
}
|
|
@@ -23,7 +23,7 @@ export class QueryRevisionAccount implements QueryPaginate {
|
|
|
23
23
|
@IsNumber()
|
|
24
24
|
limit: number;
|
|
25
25
|
|
|
26
|
-
@ApiPropertyOptional({ default: '
|
|
26
|
+
@ApiPropertyOptional({ default: 'date' })
|
|
27
27
|
@IsString()
|
|
28
28
|
@IsOptional()
|
|
29
29
|
orderBy?: 'date' | 'designation' | 'idAccount' | 'debit' | 'credit';
|
package/ts/utils/brands.ts
CHANGED
|
@@ -16,34 +16,15 @@ type getBrandConfigParams = {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' => {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;
|
|
20
|
+
if (env) {
|
|
21
|
+
if (env.indexOf('legalstart') > -1 || env.indexOf('Legalstart') > -1) {
|
|
21
22
|
return 'Legalstart';
|
|
22
23
|
}
|
|
23
|
-
if (
|
|
24
|
+
if (env.indexOf('comptalib') > -1 || env.indexOf('Comptalib') > -1) {
|
|
24
25
|
return 'Comptalib';
|
|
25
26
|
}
|
|
26
|
-
if (
|
|
27
|
-
return 'Pourcentage';
|
|
28
|
-
}
|
|
29
|
-
} else if (process.env.NODE_ENV) {
|
|
30
|
-
if (process.env.NODE_ENV.indexOf('legalstart') > -1 || process.env.NODE_ENV.indexOf('Legalstart') > -1) {
|
|
31
|
-
return 'Legalstart';
|
|
32
|
-
}
|
|
33
|
-
if (process.env.NODE_ENV.indexOf('comptalib') > -1 || process.env.NODE_ENV.indexOf('Comptalib') > -1) {
|
|
34
|
-
return 'Comptalib';
|
|
35
|
-
}
|
|
36
|
-
if (process.env.NODE_ENV.indexOf('pourcentage') > -1 || process.env.NODE_ENV.indexOf('Pourcentage') > -1) {
|
|
37
|
-
return 'Pourcentage';
|
|
38
|
-
}
|
|
39
|
-
} else if (process.env.API_HOST) {
|
|
40
|
-
if (process.env.API_HOST.indexOf('legalstart') > -1 || process.env.API_HOST.indexOf('Legalstart') > -1) {
|
|
41
|
-
return 'Legalstart';
|
|
42
|
-
}
|
|
43
|
-
if (process.env.API_HOST.indexOf('comptalib') > -1 || process.env.API_HOST.indexOf('Comptalib') > -1) {
|
|
44
|
-
return 'Comptalib';
|
|
45
|
-
}
|
|
46
|
-
if (process.env.API_HOST.indexOf('pourcentage') > -1 || process.env.API_HOST.indexOf('Pourcentage') > -1) {
|
|
27
|
+
if (env.indexOf('pourcentage') > -1 || env.indexOf('Pourcentage') > -1) {
|
|
47
28
|
return 'Pourcentage';
|
|
48
29
|
}
|
|
49
30
|
}
|
|
@@ -103,11 +84,12 @@ const getBrandConfig = (params: getBrandConfigParams): brand => {
|
|
|
103
84
|
return brand;
|
|
104
85
|
};
|
|
105
86
|
|
|
106
|
-
const getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | null => {
|
|
87
|
+
const getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | 'Lecomptablefrancais' | null => {
|
|
107
88
|
if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';
|
|
108
89
|
if (email.indexOf('comptalib.com') > -1) return 'Comptalib';
|
|
109
90
|
if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';
|
|
110
91
|
if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';
|
|
92
|
+
if (email.indexOf('lecomptablefrancais.fr') > -1) return 'Lecomptablefrancais';
|
|
111
93
|
return null;
|
|
112
94
|
};
|
|
113
95
|
|