@silexpert/core 1.1.258 → 1.1.260
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/TerminationList.d.ts +5 -3
- package/dist/cjs/api/resources/TerminationList.d.ts.map +1 -1
- package/dist/cjs/api/resources/TerminationList.js +6 -0
- package/dist/cjs/api/resources/TerminationList.js.map +1 -1
- package/dist/cjs/types/Enum/BrandAnytime.d.ts +1 -1
- package/dist/cjs/types/Enum/BrandAnytime.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandAnytime.js +2 -2
- package/dist/cjs/types/Enum/BrandAnytime.js.map +1 -1
- package/dist/cjs/types/Enum/FollowList.d.ts +14 -4
- package/dist/cjs/types/Enum/FollowList.d.ts.map +1 -1
- package/dist/cjs/types/Enum/FollowList.js +32 -12
- package/dist/cjs/types/Enum/FollowList.js.map +1 -1
- package/dist/cjs/types/Enum/RefundReason.d.ts +40 -0
- package/dist/cjs/types/Enum/RefundReason.d.ts.map +1 -0
- package/dist/cjs/types/Enum/RefundReason.js +54 -0
- package/dist/cjs/types/Enum/RefundReason.js.map +1 -0
- package/dist/cjs/types/Enum/TerminationList.d.ts +18 -0
- package/dist/cjs/types/Enum/TerminationList.d.ts.map +1 -0
- package/dist/cjs/types/Enum/TerminationList.js +39 -0
- package/dist/cjs/types/Enum/TerminationList.js.map +1 -0
- package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +9 -4
- package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js +33 -7
- package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
- package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts +17 -0
- package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js +106 -0
- package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js.map +1 -0
- package/dist/cjs/types/Interface/models/IRefund.d.ts +4 -4
- package/dist/cjs/types/Interface/models/IRefund.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IRefund.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISms.d.ts +1 -1
- package/dist/cjs/types/Interface/models/ISms.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISms.js.map +1 -1
- package/dist/cjs/types/Interface/models/ITerminationList.d.ts +5 -0
- package/dist/cjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ITerminationList.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUserBrand.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IUserBrand.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUserBrand.js.map +1 -1
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/brands.d.ts +1 -1
- package/dist/cjs/utils/brands.d.ts.map +1 -1
- package/dist/cjs/utils/brands.js +8 -4
- package/dist/cjs/utils/brands.js.map +1 -1
- package/dist/mjs/api/resources/TerminationList.d.ts +5 -3
- package/dist/mjs/api/resources/TerminationList.d.ts.map +1 -1
- package/dist/mjs/api/resources/TerminationList.js +6 -0
- package/dist/mjs/api/resources/TerminationList.js.map +1 -1
- package/dist/mjs/types/Enum/BrandAnytime.d.ts +1 -1
- package/dist/mjs/types/Enum/BrandAnytime.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandAnytime.js +1 -1
- package/dist/mjs/types/Enum/BrandAnytime.js.map +1 -1
- package/dist/mjs/types/Enum/FollowList.d.ts +14 -4
- package/dist/mjs/types/Enum/FollowList.d.ts.map +1 -1
- package/dist/mjs/types/Enum/FollowList.js +32 -12
- package/dist/mjs/types/Enum/FollowList.js.map +1 -1
- package/dist/mjs/types/Enum/RefundReason.d.ts +40 -0
- package/dist/mjs/types/Enum/RefundReason.d.ts.map +1 -0
- package/dist/mjs/types/Enum/RefundReason.js +51 -0
- package/dist/mjs/types/Enum/RefundReason.js.map +1 -0
- package/dist/mjs/types/Enum/TerminationList.d.ts +18 -0
- package/dist/mjs/types/Enum/TerminationList.d.ts.map +1 -0
- package/dist/mjs/types/Enum/TerminationList.js +36 -0
- package/dist/mjs/types/Enum/TerminationList.js.map +1 -0
- package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +9 -4
- package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js +39 -8
- package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
- package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts +17 -0
- package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js +116 -0
- package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js.map +1 -0
- package/dist/mjs/types/Interface/models/IRefund.d.ts +4 -4
- package/dist/mjs/types/Interface/models/IRefund.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IRefund.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISms.d.ts +1 -1
- package/dist/mjs/types/Interface/models/ISms.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISms.js.map +1 -1
- package/dist/mjs/types/Interface/models/ITerminationList.d.ts +5 -0
- package/dist/mjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ITerminationList.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUserBrand.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IUserBrand.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUserBrand.js.map +1 -1
- package/dist/mjs/types/index.d.ts +3 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +3 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/brands.d.ts +1 -1
- package/dist/mjs/utils/brands.d.ts.map +1 -1
- package/dist/mjs/utils/brands.js +8 -4
- package/dist/mjs/utils/brands.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/TerminationList.ts +11 -3
- package/ts/types/Enum/BrandAnytime.ts +1 -1
- package/ts/types/Enum/FollowList.ts +32 -12
- package/ts/types/Enum/RefundReason.ts +50 -0
- package/ts/types/Enum/TerminationList.ts +36 -0
- package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +32 -11
- package/ts/types/Interface/api/terminationList/QueryPaginateTerminationList.ts +78 -0
- package/ts/types/Interface/models/IRefund.ts +4 -4
- package/ts/types/Interface/models/ISms.ts +1 -1
- package/ts/types/Interface/models/ITerminationList.ts +5 -0
- package/ts/types/Interface/models/IUserBrand.ts +4 -3
- package/ts/types/index.ts +3 -1
- package/ts/utils/brands.ts +9 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../../../ts/utils/brands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../../../ts/utils/brands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC1C,O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AC;AAEF,OAAO,EACL,cAAc,EAAE,WAAW,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,eAAe,EAAE,eAAe,GAC3G,CAAC","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';\nimport { BrandStatutsExpress } from '../types/Enum/BrandStatutsExpress';\nimport { BrandAnytime } from '../types/Enum/BrandAnytime';\n\ntype brand = {\n idTypeBrand: number,\n colors: {\n primary: string,\n },\n listMails: {\n bonjour: string,\n },\n listPhones: {\n contact: string,\n },\n name: string,\n urlApi1?: string,\n urlClient?: string,\n urlApp?: string,\n offices?: {\n LAXOU: {\n id : number,\n },\n HOME_OFFICE: {\n id : number,\n }\n },\n};\n\nconst allBrands = ['Legalstart', 'Comptalib', 'Clementine', 'Pourcentage', 'StatutsExpress', 'Anytime'] as const;\ntype BrandList = typeof allBrands[number];\n\ntype getBrandConfigParams = {\n idTypeBrand?: number,\n objectWaited?: string,\n nodeEnv?: string\n};\n\nconst getBrandNameByNodeEnv = (nodeEnv?: string): BrandList => {\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 || env.indexOf('ComptaStart') > -1 || env.indexOf('comptaStart') > -1 || env.indexOf('Comptastart') > -1 || env.indexOf('comptastart') > -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 if (env.indexOf('statuts') > -1 || env.indexOf('Statuts') > -1) {\n return 'StatutsExpress';\n }\n\n if (env.indexOf('anytime') > -1 || env.indexOf('Anytime') > -1) {\n return 'Anytime';\n }\n }\n return 'Clementine';\n};\n\nconst isItThisEnv = (brandList: BrandList, nodeEnv?: string): boolean => {\n const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;\n return getBrandNameByNodeEnv(env) === brandList;\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, BrandStatutsExpress, BrandAnytime,\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, BrandStatutsExpress, BrandAnytime,\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' | 'Statuts' | null => {\n if (email.indexOf('legalstart.fr') > -1 || email.indexOf('comptastartbyclementine.fr') > -1) return 'Legalstart';\n if (email.indexOf('statuts-express.fr') > -1) return 'Statuts';\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('clementine.fr') > -1) return 'Clementine';\n if (email.indexOf('lecomptablefrancais.fr') > -1) return 'Lecomptablefrancais';\n return null;\n};\n\nconst getSubBrandList = (nodeEnv?: string): Array<object> => {\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage, BrandStatutsExpress, BrandAnytime,\n };\n // @ts-ignore\n const currentConfigFile: brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n return currentConfigFile;\n};\n\nexport {\n getBrandConfig, isItThisEnv, getAllBrandByNodeEnv, getBrandNameByNodeEnv, getBrandByEmail, getSubBrandList,\n};"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.260",
|
|
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": "dist/cjs/index.js",
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import { CreateTerminationList, DestroyTerminationList, QueryTerminationList } from '../../types';
|
|
1
|
+
import { BasePaginate, CreateTerminationList, DestroyTerminationList, ITerminationList, QueryPaginateTerminationList, QueryTerminationList } from '../../types';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
3
|
|
|
4
4
|
export class TerminationList extends Resource {
|
|
5
|
-
public get(params: QueryTerminationList): Promise<
|
|
5
|
+
public get(params: QueryTerminationList): Promise<ITerminationList> {
|
|
6
6
|
return this.axios.$get('/termination-lists', { params });
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
public
|
|
9
|
+
public getPaginate(params: QueryPaginateTerminationList): Promise<BasePaginate<ITerminationList>> {
|
|
10
|
+
return this.axios.$get('/termination-lists/paginate', { params });
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public create(params: CreateTerminationList): Promise<ITerminationList> {
|
|
10
14
|
return this.axios.$post('/termination-lists', params);
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
public delete(params: DestroyTerminationList): Promise<number> {
|
|
14
18
|
return this.axios.$delete('/termination-lists', { params });
|
|
15
19
|
}
|
|
20
|
+
|
|
21
|
+
public update(id: number, params: Partial<ITerminationList>): Promise<ITerminationList> {
|
|
22
|
+
return this.axios.$patch(`/termination-lists/${id}`, params);
|
|
23
|
+
}
|
|
16
24
|
}
|
|
@@ -79,16 +79,16 @@ export const FollowList = {
|
|
|
79
79
|
name: 'Relance 5',
|
|
80
80
|
color: 'pink lighten-4',
|
|
81
81
|
},
|
|
82
|
-
NRP: {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
},
|
|
87
|
-
CONSTITUTION_ANSWER: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
},
|
|
82
|
+
// NRP: {
|
|
83
|
+
// id: 17,
|
|
84
|
+
// name: 'NRP Constitution',
|
|
85
|
+
// color: 'purple lighten-3',
|
|
86
|
+
// },
|
|
87
|
+
// CONSTITUTION_ANSWER: {
|
|
88
|
+
// id: 18,
|
|
89
|
+
// name: 'Répondu Constitution',
|
|
90
|
+
// color: 'green lighten-3',
|
|
91
|
+
// },
|
|
92
92
|
RDV_PROGRAM: {
|
|
93
93
|
id: 19,
|
|
94
94
|
name: 'RDV programmé',
|
|
@@ -96,7 +96,27 @@ export const FollowList = {
|
|
|
96
96
|
},
|
|
97
97
|
ESTIMATE_RELANCE: {
|
|
98
98
|
id: 20,
|
|
99
|
-
name: 'Relance Devis',
|
|
100
|
-
color: '
|
|
99
|
+
name: 'Relance Devis 1',
|
|
100
|
+
color: 'purple lighten-1',
|
|
101
|
+
},
|
|
102
|
+
ESTIMATE_RELANCE_2: {
|
|
103
|
+
id: 21,
|
|
104
|
+
name: 'Relance Devis 2',
|
|
105
|
+
color: 'purple lighten-2',
|
|
106
|
+
},
|
|
107
|
+
ESTIMATE_RELANCE_3: {
|
|
108
|
+
id: 22,
|
|
109
|
+
name: 'Relance Devis 3',
|
|
110
|
+
color: 'purple lighten-3',
|
|
111
|
+
},
|
|
112
|
+
ESTIMATE_RELANCE_4: {
|
|
113
|
+
id: 23,
|
|
114
|
+
name: 'Relance Devis 4',
|
|
115
|
+
color: 'purple lighten-4',
|
|
116
|
+
},
|
|
117
|
+
ESTIMATE_RELANCE_5: {
|
|
118
|
+
id: 24,
|
|
119
|
+
name: 'Relance Devis 5',
|
|
120
|
+
color: 'purple lighten-5',
|
|
101
121
|
},
|
|
102
122
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export enum RefundReason {
|
|
2
|
+
OVERCHARGED = 1,
|
|
3
|
+
SATISFIED_REFUNDED = 2,
|
|
4
|
+
EC_NOT_REGISTERED = 3,
|
|
5
|
+
DEBIT_AFTER_TERMINATION = 4,
|
|
6
|
+
CONFLICT = 5,
|
|
7
|
+
OTHER = 6,
|
|
8
|
+
TERMINATION = 7,
|
|
9
|
+
DEBIT_UNJUSTIFIED = 8,
|
|
10
|
+
LAB_REFUSED = 9,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const RefundReasonList = [
|
|
14
|
+
{
|
|
15
|
+
id: RefundReason.OVERCHARGED,
|
|
16
|
+
label: 'Trop prélevé',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: RefundReason.SATISFIED_REFUNDED,
|
|
20
|
+
label: 'Satisfait / Remboursé',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: RefundReason.EC_NOT_REGISTERED,
|
|
24
|
+
label: 'Ancien EC non-réglé',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: RefundReason.DEBIT_AFTER_TERMINATION,
|
|
28
|
+
label: 'Prélevement après résiliation',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: RefundReason.CONFLICT,
|
|
32
|
+
label: 'Conflits',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: RefundReason.OTHER,
|
|
36
|
+
label: 'Autres',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: RefundReason.TERMINATION,
|
|
40
|
+
label: 'Résiliation',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: RefundReason.DEBIT_UNJUSTIFIED,
|
|
44
|
+
label: 'Prélèvement non justifié',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: RefundReason.LAB_REFUSED,
|
|
48
|
+
label: 'Lab refusée',
|
|
49
|
+
},
|
|
50
|
+
] as const;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export enum TerminationListType {
|
|
2
|
+
REGULAR = 1,
|
|
3
|
+
OUT_OF_TIME = 2,
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const TerminationListTypeDetail = [
|
|
7
|
+
{
|
|
8
|
+
id: TerminationListType.REGULAR,
|
|
9
|
+
label: 'Régulière',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
id: TerminationListType.OUT_OF_TIME,
|
|
13
|
+
label: 'Hors délai',
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
export enum TerminationListState {
|
|
18
|
+
IN_PROGRESS = 1,
|
|
19
|
+
ACCEPTED = 2,
|
|
20
|
+
REFUSED = 3,
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const TerminationListStateDetail = [
|
|
24
|
+
{
|
|
25
|
+
id: TerminationListState.IN_PROGRESS,
|
|
26
|
+
label: 'En cours d\'instruction',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: TerminationListState.ACCEPTED,
|
|
30
|
+
label: 'Acceptée',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: TerminationListState.REFUSED,
|
|
34
|
+
label: 'Refusée',
|
|
35
|
+
},
|
|
36
|
+
];
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IsBoolean,
|
|
3
3
|
IsDate,
|
|
4
|
-
IsInt, IsOptional, IsString,
|
|
4
|
+
IsInt, IsOptional, IsString, IsNumber,
|
|
5
5
|
} from 'class-validator';
|
|
6
6
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
7
7
|
|
|
8
8
|
export class CreateTerminationList {
|
|
9
|
+
@ApiPropertyOptional()
|
|
10
|
+
@IsOptional()
|
|
11
|
+
@IsInt()
|
|
12
|
+
idTerminationType?: number;
|
|
13
|
+
|
|
14
|
+
@ApiPropertyOptional()
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsInt()
|
|
17
|
+
idTerminationState?: number;
|
|
18
|
+
|
|
9
19
|
@ApiPropertyOptional()
|
|
10
20
|
@IsOptional()
|
|
11
21
|
@IsString()
|
|
@@ -21,15 +31,13 @@ export class CreateTerminationList {
|
|
|
21
31
|
@IsDate()
|
|
22
32
|
recalledCustomerBySupervisor?: Date;
|
|
23
33
|
|
|
24
|
-
@
|
|
25
|
-
@IsOptional()
|
|
34
|
+
@ApiProperty()
|
|
26
35
|
@IsDate()
|
|
27
|
-
effectiveDate
|
|
36
|
+
effectiveDate: Date;
|
|
28
37
|
|
|
29
|
-
@
|
|
30
|
-
@IsOptional()
|
|
38
|
+
@ApiProperty()
|
|
31
39
|
@IsInt()
|
|
32
|
-
idExercice
|
|
40
|
+
idExercice: number;
|
|
33
41
|
|
|
34
42
|
@ApiPropertyOptional()
|
|
35
43
|
@IsOptional()
|
|
@@ -41,20 +49,33 @@ export class CreateTerminationList {
|
|
|
41
49
|
@IsBoolean()
|
|
42
50
|
refund?: boolean;
|
|
43
51
|
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
@IsOptional()
|
|
54
|
+
@IsNumber()
|
|
55
|
+
monthlyPrice: number;
|
|
56
|
+
|
|
44
57
|
@ApiPropertyOptional()
|
|
45
58
|
@IsOptional()
|
|
46
59
|
@IsInt()
|
|
47
|
-
|
|
60
|
+
monthNumber: number;
|
|
48
61
|
|
|
49
|
-
@
|
|
62
|
+
@ApiPropertyOptional()
|
|
50
63
|
@IsOptional()
|
|
51
64
|
@IsInt()
|
|
52
|
-
|
|
65
|
+
monthOffer: number;
|
|
53
66
|
|
|
54
67
|
@ApiPropertyOptional()
|
|
55
68
|
@IsOptional()
|
|
56
69
|
@IsInt()
|
|
57
|
-
|
|
70
|
+
idReasonTermination?: number;
|
|
71
|
+
|
|
72
|
+
@ApiProperty()
|
|
73
|
+
@IsInt()
|
|
74
|
+
idSociety: number;
|
|
75
|
+
|
|
76
|
+
@ApiProperty()
|
|
77
|
+
@IsInt({ each: true })
|
|
78
|
+
idPrestation: number[];
|
|
58
79
|
|
|
59
80
|
@ApiPropertyOptional()
|
|
60
81
|
@IsOptional()
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { IsBoolean, IsDateString, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
|
+
|
|
5
|
+
export class QueryPaginateTerminationList {
|
|
6
|
+
@ApiPropertyOptional()
|
|
7
|
+
@IsInt()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
page?: number;
|
|
10
|
+
|
|
11
|
+
@ApiPropertyOptional()
|
|
12
|
+
@IsInt()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
limit?: number;
|
|
15
|
+
|
|
16
|
+
@ApiPropertyOptional()
|
|
17
|
+
@IsString()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
search?: string;
|
|
20
|
+
|
|
21
|
+
@ApiPropertyOptional()
|
|
22
|
+
@IsInt()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
year?: number;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional()
|
|
27
|
+
@IsDateString()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
beginDate?: Date;
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional()
|
|
32
|
+
@IsDateString()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
endDate?: Date;
|
|
35
|
+
|
|
36
|
+
@ApiPropertyOptional()
|
|
37
|
+
@IsInt()
|
|
38
|
+
@IsOptional()
|
|
39
|
+
idUser?: number;
|
|
40
|
+
|
|
41
|
+
@ApiPropertyOptional()
|
|
42
|
+
@IsInt()
|
|
43
|
+
@IsOptional()
|
|
44
|
+
monthCreatedAt?: number;
|
|
45
|
+
|
|
46
|
+
@ApiPropertyOptional()
|
|
47
|
+
@IsInt()
|
|
48
|
+
@IsOptional()
|
|
49
|
+
idReasonTermination?: number;
|
|
50
|
+
|
|
51
|
+
@ApiPropertyOptional()
|
|
52
|
+
@IsInt()
|
|
53
|
+
@IsOptional()
|
|
54
|
+
idBrandType?: number;
|
|
55
|
+
|
|
56
|
+
@ApiPropertyOptional()
|
|
57
|
+
@IsBoolean()
|
|
58
|
+
@ToBoolean()
|
|
59
|
+
@IsOptional()
|
|
60
|
+
displayArchive?: boolean;
|
|
61
|
+
|
|
62
|
+
@ApiPropertyOptional()
|
|
63
|
+
@IsString()
|
|
64
|
+
@IsOptional()
|
|
65
|
+
orderBy?: string;
|
|
66
|
+
|
|
67
|
+
@ApiPropertyOptional()
|
|
68
|
+
@IsBoolean()
|
|
69
|
+
@ToBoolean()
|
|
70
|
+
@IsOptional()
|
|
71
|
+
descending?: boolean;
|
|
72
|
+
|
|
73
|
+
@ApiPropertyOptional()
|
|
74
|
+
@IsBoolean()
|
|
75
|
+
@ToBoolean()
|
|
76
|
+
@IsOptional()
|
|
77
|
+
stat?: boolean;
|
|
78
|
+
}
|
|
@@ -18,8 +18,8 @@ export interface IRefund {
|
|
|
18
18
|
updatedAt?: Date | null;
|
|
19
19
|
|
|
20
20
|
// Associations
|
|
21
|
-
refundsMotif
|
|
22
|
-
society
|
|
23
|
-
file
|
|
24
|
-
userDemand
|
|
21
|
+
refundsMotif?: IRefundMotif;
|
|
22
|
+
society?: ISociety;
|
|
23
|
+
file?: IFile;
|
|
24
|
+
userDemand?: IUser;
|
|
25
25
|
}
|
|
@@ -7,6 +7,8 @@ import { IPrestation } from './IPrestation';
|
|
|
7
7
|
// terminitionsList
|
|
8
8
|
export interface ITerminationList {
|
|
9
9
|
id?: number;
|
|
10
|
+
idTerminationType?: number | null;
|
|
11
|
+
idTerminationState?: number | null;
|
|
10
12
|
comment?: string | null;
|
|
11
13
|
recalledCustomer?: Date | null;
|
|
12
14
|
recalledCustomerBySupervisor?: Date | null;
|
|
@@ -14,6 +16,9 @@ export interface ITerminationList {
|
|
|
14
16
|
idExercice?: number | null;
|
|
15
17
|
endContractDate?: Date | null;
|
|
16
18
|
refund?: boolean;
|
|
19
|
+
monthlyPrice?: number | null;
|
|
20
|
+
monthNumber?: number | null;
|
|
21
|
+
monthOffer?: number | null;
|
|
17
22
|
idReasonTermination?: number | null;
|
|
18
23
|
idSociety?: number | null;
|
|
19
24
|
idPrestation?: number | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -412,6 +412,7 @@ export * from './Enum/Ged';
|
|
|
412
412
|
export * from './Enum/TypeBankConnection';
|
|
413
413
|
export * from './Enum/GlobalRegime';
|
|
414
414
|
export * from './Enum/TaxSystem';
|
|
415
|
+
export * from './Enum/TerminationList';
|
|
415
416
|
export * from './Enum/SalesContractConfig';
|
|
416
417
|
export * from './Enum/FiscalRegime';
|
|
417
418
|
export * from './Enum/Activity';
|
|
@@ -534,6 +535,7 @@ export * from './Enum/Brevo';
|
|
|
534
535
|
export * from './Enum/ZoneCode';
|
|
535
536
|
export * from './Enum/TimeSlot';
|
|
536
537
|
export * from './Enum/StateSynchro';
|
|
538
|
+
export * from './Enum/RefundReason';
|
|
537
539
|
|
|
538
540
|
// Interfaces API
|
|
539
541
|
export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
|
|
@@ -1025,6 +1027,7 @@ export * from './Interface/api/visualizedInformation/Update';
|
|
|
1025
1027
|
export * from './Interface/api/society/QueryArchived';
|
|
1026
1028
|
export * from './Interface/api/vatControl/CreateVatControl';
|
|
1027
1029
|
export * from './Interface/api/vatControl/QueryVatControl';
|
|
1030
|
+
export * from './Interface/api/terminationList/QueryPaginateTerminationList';
|
|
1028
1031
|
export * from './Interface/api/card/QueryUserCards';
|
|
1029
1032
|
export * from './Interface/api/card/QueryUserCardsStats';
|
|
1030
1033
|
export * from './Interface/api/card/UpdateCard';
|
|
@@ -1049,7 +1052,6 @@ export * from './Interface/api/echo/NewsPaper';
|
|
|
1049
1052
|
export * from './Interface/api/echo/Order';
|
|
1050
1053
|
export * from './Interface/api/userTimeSlot/QueryUserTimeSlot';
|
|
1051
1054
|
export * from './Interface/api/workingSchedule/QueryAvailableTimeSlot';
|
|
1052
|
-
|
|
1053
1055
|
// Enums types
|
|
1054
1056
|
export * from './Interface/enum/Util';
|
|
1055
1057
|
export * from './Interface/enum/Date';
|
package/ts/utils/brands.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { BrandLegalstart } from '../types/Enum/BrandLegalstart';
|
|
|
4
4
|
import { BrandComptalib } from '../types/Enum/BrandComptalib';
|
|
5
5
|
import { BrandPourcentage } from '../types/Enum/BrandPourcentage';
|
|
6
6
|
import { BrandStatutsExpress } from '../types/Enum/BrandStatutsExpress';
|
|
7
|
+
import { BrandAnytime } from '../types/Enum/BrandAnytime';
|
|
7
8
|
|
|
8
9
|
type brand = {
|
|
9
10
|
idTypeBrand: number,
|
|
@@ -30,7 +31,7 @@ type brand = {
|
|
|
30
31
|
},
|
|
31
32
|
};
|
|
32
33
|
|
|
33
|
-
const allBrands = ['Legalstart', 'Comptalib', 'Clementine', 'Pourcentage', 'StatutsExpress'] as const;
|
|
34
|
+
const allBrands = ['Legalstart', 'Comptalib', 'Clementine', 'Pourcentage', 'StatutsExpress', 'Anytime'] as const;
|
|
34
35
|
type BrandList = typeof allBrands[number];
|
|
35
36
|
|
|
36
37
|
type getBrandConfigParams = {
|
|
@@ -54,6 +55,10 @@ const getBrandNameByNodeEnv = (nodeEnv?: string): BrandList => {
|
|
|
54
55
|
if (env.indexOf('statuts') > -1 || env.indexOf('Statuts') > -1) {
|
|
55
56
|
return 'StatutsExpress';
|
|
56
57
|
}
|
|
58
|
+
|
|
59
|
+
if (env.indexOf('anytime') > -1 || env.indexOf('Anytime') > -1) {
|
|
60
|
+
return 'Anytime';
|
|
61
|
+
}
|
|
57
62
|
}
|
|
58
63
|
return 'Clementine';
|
|
59
64
|
};
|
|
@@ -67,7 +72,7 @@ const getAllBrandByNodeEnv = (nodeEnv?: string): Array<brand> => {
|
|
|
67
72
|
const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;
|
|
68
73
|
const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);
|
|
69
74
|
const listEnvEnum = {
|
|
70
|
-
BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage, BrandStatutsExpress,
|
|
75
|
+
BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage, BrandStatutsExpress, BrandAnytime,
|
|
71
76
|
};
|
|
72
77
|
// @ts-ignore
|
|
73
78
|
const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];
|
|
@@ -85,7 +90,7 @@ const getBrandConfig = (params: getBrandConfigParams): brand => {
|
|
|
85
90
|
const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;
|
|
86
91
|
const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);
|
|
87
92
|
const listEnvEnum = {
|
|
88
|
-
BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage, BrandStatutsExpress,
|
|
93
|
+
BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage, BrandStatutsExpress, BrandAnytime,
|
|
89
94
|
};
|
|
90
95
|
// @ts-ignore
|
|
91
96
|
const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];
|
|
@@ -131,7 +136,7 @@ const getSubBrandList = (nodeEnv?: string): Array<object> => {
|
|
|
131
136
|
const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;
|
|
132
137
|
const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);
|
|
133
138
|
const listEnvEnum = {
|
|
134
|
-
BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage, BrandStatutsExpress,
|
|
139
|
+
BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage, BrandStatutsExpress, BrandAnytime,
|
|
135
140
|
};
|
|
136
141
|
// @ts-ignore
|
|
137
142
|
const currentConfigFile: brand[] = listEnvEnum[`Brand${currentEnvName}`];
|