@silexpert/core 1.0.100 → 1.0.103
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/Rule.d.ts +9 -0
- package/es/api/resources/Rule.d.ts.map +1 -0
- package/es/api/resources/Rule.js +10 -0
- package/es/api/resources/Rule.js.map +1 -0
- package/es/api/resources/VatRegimeHistory.d.ts +17 -0
- package/es/api/resources/VatRegimeHistory.d.ts.map +1 -0
- package/es/api/resources/VatRegimeHistory.js +20 -0
- package/es/api/resources/VatRegimeHistory.js.map +1 -0
- package/es/api/resources/shareCapital.d.ts +1 -0
- package/es/api/resources/shareCapital.d.ts.map +1 -1
- package/es/api/resources/shareCapital.js +3 -0
- package/es/api/resources/shareCapital.js.map +1 -1
- package/es/api/resources.d.ts +4 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +4 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/ConstitutionState.d.ts +6 -50
- package/es/types/Enum/ConstitutionState.d.ts.map +1 -1
- package/es/types/Enum/ConstitutionState.js +22 -22
- package/es/types/Enum/ConstitutionState.js.map +1 -1
- package/es/types/Enum/MailAuto.d.ts +5 -1
- package/es/types/Enum/MailAuto.d.ts.map +1 -1
- package/es/types/Enum/MailAuto.js +4 -0
- package/es/types/Enum/MailAuto.js.map +1 -1
- package/es/types/Enum/RoleDetail.js +1 -1
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Interface/api/revive/PostRevive.d.ts +4 -0
- package/es/types/Interface/api/revive/PostRevive.d.ts.map +1 -0
- package/es/types/Interface/api/revive/PostRevive.js +17 -0
- package/es/types/Interface/api/revive/PostRevive.js.map +1 -0
- package/es/types/Interface/api/rule/Query.d.ts +9 -0
- package/es/types/Interface/api/rule/Query.d.ts.map +1 -0
- package/es/types/Interface/api/rule/Query.js +31 -0
- package/es/types/Interface/api/rule/Query.js.map +1 -0
- package/es/types/Interface/api/rule/Read.d.ts +6 -0
- package/es/types/Interface/api/rule/Read.d.ts.map +1 -0
- package/es/types/Interface/api/rule/Read.js +2 -0
- package/es/types/Interface/api/rule/Read.js.map +1 -0
- package/es/types/Interface/api/vatRegimeHistory/QueryVatRegimeHistory.d.ts +5 -0
- package/es/types/Interface/api/vatRegimeHistory/QueryVatRegimeHistory.d.ts.map +1 -0
- package/es/types/Interface/api/vatRegimeHistory/QueryVatRegimeHistory.js +31 -0
- package/es/types/Interface/api/vatRegimeHistory/QueryVatRegimeHistory.js.map +1 -0
- package/es/types/Interface/models/ICustomerSignature.d.ts +3 -3
- package/es/types/Interface/models/ICustomerSignature.d.ts.map +1 -1
- package/es/types/Interface/models/ICustomerSignature.js.map +1 -1
- package/es/types/Interface/models/IMailAuto.d.ts +1 -1
- package/es/types/Interface/models/IMailAuto.d.ts.map +1 -1
- package/es/types/Interface/models/IMailAuto.js.map +1 -1
- package/es/types/Interface/models/IVatRegimeHistory.d.ts +18 -0
- package/es/types/Interface/models/IVatRegimeHistory.d.ts.map +1 -0
- package/es/types/Interface/models/IVatRegimeHistory.js +2 -0
- package/es/types/Interface/models/IVatRegimeHistory.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 +12 -0
- package/es/utils/brands.d.ts.map +1 -1
- package/es/utils/brands.js.map +1 -1
- package/es/utils/prestation.d.ts +2 -1
- package/es/utils/prestation.d.ts.map +1 -1
- package/es/utils/prestation.js +7 -2
- package/es/utils/prestation.js.map +1 -1
- package/js/api/resources/Rule.js +26 -0
- package/js/api/resources/Rule.js.map +1 -0
- package/js/api/resources/VatRegimeHistory.js +33 -0
- package/js/api/resources/VatRegimeHistory.js.map +1 -0
- package/js/api/resources/shareCapital.js +4 -0
- package/js/api/resources/shareCapital.js.map +1 -1
- package/js/api/resources.js +7 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/ConstitutionState.js +22 -22
- package/js/types/Enum/ConstitutionState.js.map +1 -1
- package/js/types/Enum/MailAuto.js +4 -0
- package/js/types/Enum/MailAuto.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +1 -1
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Interface/api/revive/PostRevive.js +27 -0
- package/js/types/Interface/api/revive/PostRevive.js.map +1 -0
- package/js/types/Interface/api/rule/Query.js +37 -0
- package/js/types/Interface/api/rule/Query.js.map +1 -0
- package/js/types/Interface/api/rule/Read.js +6 -0
- package/js/types/Interface/api/rule/Read.js.map +1 -0
- package/js/types/Interface/api/vatRegimeHistory/QueryVatRegimeHistory.js +39 -0
- package/js/types/Interface/api/vatRegimeHistory/QueryVatRegimeHistory.js.map +1 -0
- package/js/types/Interface/models/IVatRegimeHistory.js +6 -0
- package/js/types/Interface/models/IVatRegimeHistory.js.map +1 -0
- package/js/types/index.js +48 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/brands.js.map +1 -1
- package/js/utils/prestation.js +8 -1
- package/js/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Rule.ts +14 -0
- package/ts/api/resources/VatRegimeHistory.ts +24 -0
- package/ts/api/resources/shareCapital.ts +4 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/ConstitutionState.ts +32 -23
- package/ts/types/Enum/MailAuto.ts +4 -0
- package/ts/types/Enum/RoleDetail.ts +1 -1
- package/ts/types/Interface/api/revive/PostRevive.ts +6 -0
- package/ts/types/Interface/api/rule/Query.ts +17 -0
- package/ts/types/Interface/api/rule/Read.ts +5 -0
- package/ts/types/Interface/api/vatRegimeHistory/QueryVatRegimeHistory.ts +19 -0
- package/ts/types/Interface/models/ICustomerSignature.ts +3 -3
- package/ts/types/Interface/models/IMailAuto.ts +1 -1
- package/ts/types/Interface/models/IVatRegimeHistory.ts +20 -0
- package/ts/types/index.ts +4 -0
- package/ts/utils/brands.ts +13 -1
- package/ts/utils/prestation.ts +8 -2
|
@@ -1 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AAD,IAAiB,CAAC,CAACnB,+BAAeY,iBAAhB,EAAmCJ,QAAnC,CAA4CW,IAA5C,CAA1C,EAA6FE,MAA5J;;AAEA,MAAMK,UAAU,GAAI3B,gBAAD,IAAwCA,gBAAgB,CAACS,QAAjB,CAA0BR,+BAAe2B,gBAAzC,CAA3D;;AAEA,MAAMC,SAAS,GAAI7B,gBAAD,IAAqC;EACrD,MAAM8B,sBAAsB,GAAGC,MAAM,CAACC,MAAP,CAAcC,gCAAd,CAA/B;EACA,MAAMC,UAAU,GAAGJ,sBAAsB,CAACK,IAAvB,CAA6BC,EAAD,IAAYA,EAAE,CAACC,EAAH,KAAUrC,gBAAlD,CAAnB;EACA,OAAO,CAAC,CAACkC,UAAU,CAACI,MAApB;AACD,CAJD;;QAOEvC,yB,GAAAA,yB;QAA2BW,wB,GAAAA,wB;QAA0BM,kB,GAAAA,kB;QAAoBF,oB,GAAAA,oB;QAAsBI,W,GAAAA,W;QAAaK,Y,GAAAA,Y;QAAcG,a,GAAAA,a;QAAeC,U,GAAAA,U;QAAYE,S,GAAAA,S","names":["isOtherAccountingMissions","idPrestationList","PrestationType","PREVISIONNEL","BILAN_INTERMEDIAIRE","AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE","AUTRE_MISSION_COMPTABLE","TVS","ETUDE_FISCALE","BILAN_PREVISIONNEL","includes","isOtherJuridicalMissions","isJuridique","isCatalog","GESTION_JURIDIQUE","isOtherSocialMission","AUTRE_MISSION_SOCIALE_HORS_PAIE","isAdditionalPresta","hidden","isOnlyPrevi","filter","idPL","PV_AG","length","isOnlySocial","FRUCTUPAIE","SOCIAL","isOnlyJuridic","isCreation","CREATION_SOCIETE","isExpress","prestationDetailValues","Object","values","PrestationDetail","prestaList","find","pr","id","isBack"],"sourceRoot":"","sources":["../../ts/utils/prestation.ts"],"sourcesContent":["import { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';\n\nconst isOtherAccountingMissions = (idPrestationList: number): boolean => [\n PrestationType.PREVISIONNEL,\n PrestationType.BILAN_INTERMEDIAIRE,\n PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,\n PrestationType.AUTRE_MISSION_COMPTABLE,\n PrestationType.TVS,\n PrestationType.ETUDE_FISCALE,\n PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList);\n\nconst isOtherJuridicalMissions = (isJuridique:boolean, isCatalog:boolean, idPrestationList: number): boolean => idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;\n\nconst isOtherSocialMission = (idPrestationList: number): boolean => idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;\n\nconst isAdditionalPresta = (hidden:boolean, isCatalog:boolean): boolean => !hidden && isCatalog;\n\nconst isOnlyPrevi = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL)).length;\n\nconst isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;\n\nconst isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;\n\nconst isCreation = (idPrestationList: number[]):boolean => idPrestationList.includes(PrestationType.CREATION_SOCIETE);\n\nconst isExpress = (idPrestationList: number):boolean => {\n const prestationDetailValues = Object.values(PrestationDetail) as any;\n const prestaList = prestationDetailValues.find((pr:any) => pr.id === idPrestationList);\n return !!prestaList.isBack;\n};\n\nexport {\n isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isExpress,\n};"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.103",
|
|
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",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BasePaginate } from '../../types';
|
|
2
|
+
import { QueryRule, QueryMostFrequent } from '../../types/Interface/api/rule/Query';
|
|
3
|
+
import { ReadMostFrequentOccurence } from '../../types/Interface/api/rule/Read';
|
|
4
|
+
import { Resource } from '../Resource';
|
|
5
|
+
|
|
6
|
+
export class Rule extends Resource {
|
|
7
|
+
getAll(params: QueryRule): Promise<BasePaginate<Rule>> {
|
|
8
|
+
return this.axios.$get('rules', { params });
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
getMostFrequent(params: QueryMostFrequent): Promise<ReadMostFrequentOccurence[]> {
|
|
12
|
+
return this.axios.$get('rules/most-frequent', { params });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import {
|
|
3
|
+
IVatRegimeHistory, QueryVatRegimeHistory,
|
|
4
|
+
} from '../../types';
|
|
5
|
+
|
|
6
|
+
export class VatRegimeHistory extends Resource {
|
|
7
|
+
/**
|
|
8
|
+
* Créer un enregistrement dans la table VatRegimeHistory
|
|
9
|
+
* @param { IVatRegimeHistory } payload
|
|
10
|
+
* @returns { IVatRegimeHistory }
|
|
11
|
+
*/
|
|
12
|
+
public create(payload: IVatRegimeHistory): Promise<IVatRegimeHistory> {
|
|
13
|
+
return this.axios.$post('/vat/regime/history', payload);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Retourne les enregistrement de la table VatRegimeHistory
|
|
18
|
+
* @param { QueryVatRegimeHistory } params
|
|
19
|
+
* @returns { Array<IVatRegimeHistory> }
|
|
20
|
+
*/
|
|
21
|
+
public getAll(payload: QueryVatRegimeHistory): Promise<Array<IVatRegimeHistory>> {
|
|
22
|
+
return this.axios.$get(`/vat/regime/history/${payload.idSociety}/${payload.idExercice}/all`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -34,4 +34,8 @@ export class ShareCapital extends Resource {
|
|
|
34
34
|
create(idExercice: number, payload: CreateShareCapital): Promise<ResultCreateShareCapital> {
|
|
35
35
|
return this.axios.$post(`/balance-sheets/exercices/${idExercice}/share-capitals`, payload);
|
|
36
36
|
}
|
|
37
|
+
|
|
38
|
+
delete(idExercice: number): Promise<number> {
|
|
39
|
+
return this.axios.$delete(`/balance-sheets/exercices/${idExercice}/share-capitals`);
|
|
40
|
+
}
|
|
37
41
|
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -111,6 +111,8 @@ import { Commercial } from './resources/Commercial';
|
|
|
111
111
|
import { Facturation } from './resources/Facturation';
|
|
112
112
|
import { Inpi } from './resources/Inpi';
|
|
113
113
|
import { Prestation } from './resources/prestation';
|
|
114
|
+
import { Rule } from './resources/Rule';
|
|
115
|
+
import { VatRegimeHistory } from './resources/VatRegimeHistory';
|
|
114
116
|
|
|
115
117
|
export const resources = {
|
|
116
118
|
simulation: Simulation,
|
|
@@ -225,5 +227,7 @@ export const resources = {
|
|
|
225
227
|
slowDetection: SlowDetection,
|
|
226
228
|
inpi: Inpi,
|
|
227
229
|
prestation: Prestation,
|
|
230
|
+
vatRegimeHistory: VatRegimeHistory,
|
|
228
231
|
sources: Sources,
|
|
232
|
+
rule: Rule,
|
|
229
233
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export enum ConstitutionState {
|
|
2
2
|
TO_CONTACT = 1,
|
|
3
|
-
|
|
3
|
+
BEING_ABANDONED = 2,
|
|
4
4
|
FINISHED = 3,
|
|
5
5
|
WAITING_INFORMATION_SHEET = 4,
|
|
6
6
|
WAITING_DEPOSIT_CERTIFICATE = 5,
|
|
@@ -10,55 +10,64 @@ export enum ConstitutionState {
|
|
|
10
10
|
INVOICING_TO_D0 = 9,
|
|
11
11
|
ABANDONED_CASE = 10,
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
export type ConstitutionStateType = {
|
|
15
|
+
[key: string]: {
|
|
16
|
+
value: ConstitutionState,
|
|
17
|
+
text: string,
|
|
18
|
+
color: string,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const ConstitutionStateDetail: ConstitutionStateType = {
|
|
14
23
|
TO_CONTACT: {
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
value: ConstitutionState.TO_CONTACT,
|
|
25
|
+
text: 'À contacter',
|
|
17
26
|
color: 'grey lighten-4',
|
|
18
27
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
BEING_ABANDONED: {
|
|
29
|
+
value: ConstitutionState.BEING_ABANDONED,
|
|
30
|
+
text: 'Dossier en cours d\'abandon',
|
|
22
31
|
color: 'primary',
|
|
23
32
|
},
|
|
24
33
|
FINISHED: {
|
|
25
|
-
|
|
26
|
-
|
|
34
|
+
value: ConstitutionState.FINISHED,
|
|
35
|
+
text: 'Dossier terminé',
|
|
27
36
|
color: 'success',
|
|
28
37
|
},
|
|
29
38
|
WAITING_INFORMATION_SHEET: {
|
|
30
|
-
|
|
31
|
-
|
|
39
|
+
value: ConstitutionState.WAITING_INFORMATION_SHEET,
|
|
40
|
+
text: 'Attente fiche de renseignement',
|
|
32
41
|
color: 'blue lighten-4',
|
|
33
42
|
},
|
|
34
43
|
WAITING_DEPOSIT_CERTIFICATE: {
|
|
35
|
-
|
|
36
|
-
|
|
44
|
+
value: ConstitutionState.WAITING_DEPOSIT_CERTIFICATE,
|
|
45
|
+
text: 'Attente certificat de dépôt',
|
|
37
46
|
color: 'blue',
|
|
38
47
|
},
|
|
39
48
|
WAITING_SIGNED_DOCS_OR_AL_PAYMENT_OR_COURT_FEES: {
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
value: ConstitutionState.WAITING_SIGNED_DOCS_OR_AL_PAYMENT_OR_COURT_FEES,
|
|
50
|
+
text: 'Attente doc signés / paiement AL / frais de Greffe',
|
|
42
51
|
color: 'blue lighten-4',
|
|
43
52
|
},
|
|
44
53
|
WAITING_KBIS: {
|
|
45
|
-
|
|
46
|
-
|
|
54
|
+
value: ConstitutionState.WAITING_KBIS,
|
|
55
|
+
text: 'Attente KBIS',
|
|
47
56
|
color: 'purple lighten-4',
|
|
48
57
|
},
|
|
49
58
|
WAITING_RIB_OR_SEPA: {
|
|
50
|
-
|
|
51
|
-
|
|
59
|
+
value: ConstitutionState.WAITING_RIB_OR_SEPA,
|
|
60
|
+
text: 'Envoi de KBIS',
|
|
52
61
|
color: 'yellow lighten-4',
|
|
53
62
|
},
|
|
54
63
|
INVOICING_TO_D0: {
|
|
55
|
-
|
|
56
|
-
|
|
64
|
+
value: ConstitutionState.INVOICING_TO_D0,
|
|
65
|
+
text: 'Facturation à faire',
|
|
57
66
|
color: 'primary lighten-2',
|
|
58
67
|
},
|
|
59
68
|
ABANDONED_CASE: {
|
|
60
|
-
|
|
61
|
-
|
|
69
|
+
value: ConstitutionState.ABANDONED_CASE,
|
|
70
|
+
text: 'Dossier en abandon',
|
|
62
71
|
color: 'grey darken-3',
|
|
63
72
|
},
|
|
64
73
|
};
|
|
@@ -112,4 +112,8 @@ export enum MailAuto {
|
|
|
112
112
|
MISSING_ELEMENT_FOR_CHECKLIST = 122,
|
|
113
113
|
CHECKLIST_CONFIRMED = 123,
|
|
114
114
|
MONTHLY_REPORT = 124,
|
|
115
|
+
WELCOME_TO_CLEMENTINE = 134,
|
|
116
|
+
MEETING_WITH_CLEMENTINE = 135,
|
|
117
|
+
DONT_MISS_CLEMENTINE = 136,
|
|
118
|
+
CLEMENTINE_ADVENTURE_DOES_NOT_END = 137,
|
|
115
119
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class QueryRule {
|
|
4
|
+
@ApiProperty()
|
|
5
|
+
limit: number;
|
|
6
|
+
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
page: number;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
search?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class QueryMostFrequent {
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
search?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApiProperty } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class QueryVatRegimeHistory {
|
|
4
|
+
@ApiProperty({
|
|
5
|
+
description: 'society id',
|
|
6
|
+
required: true,
|
|
7
|
+
type: Number,
|
|
8
|
+
example: 1,
|
|
9
|
+
})
|
|
10
|
+
idSociety: number;
|
|
11
|
+
|
|
12
|
+
@ApiProperty({
|
|
13
|
+
description: 'exercice id',
|
|
14
|
+
required: true,
|
|
15
|
+
type: Number,
|
|
16
|
+
example: 1,
|
|
17
|
+
})
|
|
18
|
+
idExercice: number;
|
|
19
|
+
}
|
|
@@ -22,7 +22,7 @@ export interface ICustomerSignature {
|
|
|
22
22
|
updatedAt?: Date | null;
|
|
23
23
|
|
|
24
24
|
// Associations
|
|
25
|
-
user
|
|
26
|
-
statusSignature
|
|
27
|
-
prestation
|
|
25
|
+
user?: IUser;
|
|
26
|
+
statusSignature?: IStatusSignature;
|
|
27
|
+
prestation?: IPrestation;
|
|
28
28
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IVatRegime } from './IVatRegime';
|
|
2
|
+
import { IUser } from './IUser';
|
|
3
|
+
import { ISociety } from './ISociety';
|
|
4
|
+
import { IExercice } from './IExercice';
|
|
5
|
+
|
|
6
|
+
export interface IVatRegimeHistory {
|
|
7
|
+
id?: number,
|
|
8
|
+
idVatRegime: number,
|
|
9
|
+
idUser: number,
|
|
10
|
+
idSociety: number,
|
|
11
|
+
idExercice: number,
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
updatedAt?: Date;
|
|
14
|
+
|
|
15
|
+
// Associations
|
|
16
|
+
vatRegime?: IVatRegime;
|
|
17
|
+
user?: IUser;
|
|
18
|
+
society?: ISociety;
|
|
19
|
+
exercice?: IExercice;
|
|
20
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -321,6 +321,7 @@ export * from './Interface/models/IInvoiceRecurrence';
|
|
|
321
321
|
export * from './Interface/models/ILoanFile';
|
|
322
322
|
export * from './Interface/models/ICommercialMail';
|
|
323
323
|
export * from './Interface/models/IRegistration';
|
|
324
|
+
export * from './Interface/models/IVatRegimeHistory';
|
|
324
325
|
|
|
325
326
|
// Forms
|
|
326
327
|
export * from './Form/FormAuthenticate';
|
|
@@ -623,6 +624,7 @@ export * from './Interface/api/inpiBalance/QueryInpiBalancePaginated';
|
|
|
623
624
|
export * from './Interface/api/inpiBalance/inpiBalanceStatistic';
|
|
624
625
|
export * from './Interface/api/inpiPayment/QueryInpiPaymentStatistic';
|
|
625
626
|
export * from './Interface/api/inpiPayment/QueryInpiPaymentPaginated';
|
|
627
|
+
export * from './Interface/api/vatRegimeHistory/QueryVatRegimeHistory';
|
|
626
628
|
|
|
627
629
|
// export * from './Interface/api/survey/QuerySurvey';
|
|
628
630
|
export * from './Interface/api/survey/ReadSurvey';
|
|
@@ -850,6 +852,8 @@ export * from './Interface/api/gedFile/updateGedFile';
|
|
|
850
852
|
export * from './Interface/api/iDocus/iDocus';
|
|
851
853
|
export * from './Interface/api/iDocus/CreateExport';
|
|
852
854
|
export * from './Interface/api/pdf/ReadPdftkizer';
|
|
855
|
+
export * from './Interface/api/rule/Query';
|
|
856
|
+
export * from './Interface/api/revive/PostRevive';
|
|
853
857
|
|
|
854
858
|
// Enums types
|
|
855
859
|
export * from './Interface/enum/Util';
|
package/ts/utils/brands.ts
CHANGED
|
@@ -6,7 +6,19 @@ import { BrandPourcentage } from '../types/Enum/BrandPourcentage';
|
|
|
6
6
|
|
|
7
7
|
type brand = {
|
|
8
8
|
idTypeBrand: number,
|
|
9
|
-
|
|
9
|
+
colors: {
|
|
10
|
+
primary: string,
|
|
11
|
+
},
|
|
12
|
+
listMails: {
|
|
13
|
+
bonjour: string,
|
|
14
|
+
},
|
|
15
|
+
listPhones: {
|
|
16
|
+
contact: string,
|
|
17
|
+
},
|
|
18
|
+
name: string,
|
|
19
|
+
urlApi1?: string,
|
|
20
|
+
urlClient?: string,
|
|
21
|
+
urlApp?: string,
|
|
10
22
|
};
|
|
11
23
|
|
|
12
24
|
type getBrandConfigParams = {
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PrestationType } from '../types/Enum/PrestationType';
|
|
1
|
+
import { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';
|
|
2
2
|
|
|
3
3
|
const isOtherAccountingMissions = (idPrestationList: number): boolean => [
|
|
4
4
|
PrestationType.PREVISIONNEL,
|
|
@@ -23,6 +23,12 @@ const isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.
|
|
|
23
23
|
|
|
24
24
|
const isCreation = (idPrestationList: number[]):boolean => idPrestationList.includes(PrestationType.CREATION_SOCIETE);
|
|
25
25
|
|
|
26
|
+
const isExpress = (idPrestationList: number):boolean => {
|
|
27
|
+
const prestationDetailValues = Object.values(PrestationDetail) as any;
|
|
28
|
+
const prestaList = prestationDetailValues.find((pr:any) => pr.id === idPrestationList);
|
|
29
|
+
return !!prestaList.isBack;
|
|
30
|
+
};
|
|
31
|
+
|
|
26
32
|
export {
|
|
27
|
-
isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation,
|
|
33
|
+
isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isExpress,
|
|
28
34
|
};
|