@silexpert/core 1.1.63 → 1.1.64
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/Society.d.ts +1 -0
- package/es/api/resources/Society.d.ts.map +1 -1
- package/es/api/resources/Society.js +3 -0
- package/es/api/resources/Society.js.map +1 -1
- package/es/api/resources/User.d.ts +8 -1
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +9 -0
- package/es/api/resources/User.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts +38 -3
- package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheet.js +42 -2
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/BankCollectingState.d.ts +4 -1
- package/es/types/Enum/BankCollectingState.d.ts.map +1 -1
- package/es/types/Enum/BankCollectingState.js +16 -1
- package/es/types/Enum/BankCollectingState.js.map +1 -1
- package/es/types/Enum/Supervision.d.ts +8 -1
- package/es/types/Enum/Supervision.d.ts.map +1 -1
- package/es/types/Enum/Supervision.js +51 -0
- package/es/types/Enum/Supervision.js.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.d.ts +2 -0
- package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -1
- package/es/types/Interface/api/user/QuerySocieties.d.ts +4 -0
- package/es/types/Interface/api/user/QuerySocieties.d.ts.map +1 -1
- package/es/types/Interface/api/user/QuerySocieties.js +10 -0
- package/es/types/Interface/api/user/QuerySocieties.js.map +1 -1
- package/js/api/resources/Society.js +3 -0
- package/js/api/resources/Society.js.map +1 -1
- package/js/api/resources/User.js +11 -0
- package/js/api/resources/User.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +37 -2
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/BankCollectingState.js +18 -4
- package/js/types/Enum/BankCollectingState.js.map +1 -1
- package/js/types/Enum/Supervision.js +42 -0
- package/js/types/Enum/Supervision.js.map +1 -1
- package/js/types/Interface/api/statistic/ExitRequest.js.map +1 -1
- package/js/types/Interface/api/user/QuerySocieties.js +6 -1
- package/js/types/Interface/api/user/QuerySocieties.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Society.ts +4 -0
- package/ts/api/resources/User.ts +13 -1
- package/ts/types/Enum/BalanceSheet.ts +42 -2
- package/ts/types/Enum/BankCollectingState.ts +17 -1
- package/ts/types/Enum/Supervision.ts +53 -1
- package/ts/types/Interface/api/statistic/ExitRequest.ts +3 -1
- package/ts/types/Interface/api/user/QuerySocieties.ts +9 -0
|
@@ -12,5 +12,47 @@ var Supervision = exports.Supervision = undefined;
|
|
|
12
12
|
Supervision[Supervision["ATTEST_REFUSED"] = 8] = "ATTEST_REFUSED";
|
|
13
13
|
Supervision[Supervision["ATTEST_WITH_OBSERVATIONS"] = 9] = "ATTEST_WITH_OBSERVATIONS";
|
|
14
14
|
Supervision[Supervision["TO_REVIEW"] = 10] = "TO_REVIEW";
|
|
15
|
+
Supervision[Supervision["SUPERVISION_WAITING"] = 11] = "SUPERVISION_WAITING";
|
|
15
16
|
})(Supervision || (exports.Supervision = Supervision = {}));
|
|
17
|
+
const SupervisionStateList = exports.SupervisionStateList = [{
|
|
18
|
+
id: Supervision.WAITING,
|
|
19
|
+
label: 'En attente',
|
|
20
|
+
color: 'grey',
|
|
21
|
+
textColor: 'grey--text'
|
|
22
|
+
}, {
|
|
23
|
+
id: Supervision.SIGNED,
|
|
24
|
+
label: 'Signé',
|
|
25
|
+
color: 'green darken-1',
|
|
26
|
+
textColor: 'green--text text--darken-1'
|
|
27
|
+
}, {
|
|
28
|
+
id: Supervision.TO_ATTEST,
|
|
29
|
+
label: 'A attesté',
|
|
30
|
+
color: 'yellow darken-3',
|
|
31
|
+
textColor: 'yellow--text text--darken-1'
|
|
32
|
+
}, {
|
|
33
|
+
id: Supervision.ATTESTED,
|
|
34
|
+
label: 'Attesté',
|
|
35
|
+
color: 'green darken-1',
|
|
36
|
+
textColor: 'green--text text--darken-1'
|
|
37
|
+
}, {
|
|
38
|
+
id: Supervision.ATTEST_REFUSED,
|
|
39
|
+
label: 'Attesté avec refus',
|
|
40
|
+
color: 'green darken-1',
|
|
41
|
+
textColor: 'green--text text--darken-1'
|
|
42
|
+
}, {
|
|
43
|
+
id: Supervision.ATTEST_WITH_OBSERVATIONS,
|
|
44
|
+
label: 'Attesté avec observations',
|
|
45
|
+
color: 'green darken-1',
|
|
46
|
+
textColor: 'green--text text--darken-1'
|
|
47
|
+
}, {
|
|
48
|
+
id: Supervision.TO_REVIEW,
|
|
49
|
+
label: 'A revoir',
|
|
50
|
+
color: 'red lighten-2',
|
|
51
|
+
textColor: 'red--text red--lighten-3'
|
|
52
|
+
}, {
|
|
53
|
+
id: Supervision.SUPERVISION_WAITING,
|
|
54
|
+
label: 'En cours de supervision',
|
|
55
|
+
color: 'yellow darken-3',
|
|
56
|
+
textColor: 'yellow--text text--darken-1'
|
|
57
|
+
}];
|
|
16
58
|
//# sourceMappingURL=Supervision.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Supervision.js","names":["Supervision","exports","undefined"],"sources":["../../../ts/types/Enum/Supervision.ts"],"sourcesContent":["export enum Supervision {\n WAITING = 1,\n SIGNED = 3,\n TO_ATTEST = 6,\n ATTESTED = 7,\n ATTEST_REFUSED = 8,\n ATTEST_WITH_OBSERVATIONS = 9,\n TO_REVIEW = 10,\n}"],"mappings":";;;;;AAAA,IAAYA,
|
|
1
|
+
{"version":3,"file":"Supervision.js","names":["Supervision","exports","undefined","SupervisionStateList","id","WAITING","label","color","textColor","SIGNED","TO_ATTEST","ATTESTED","ATTEST_REFUSED","ATTEST_WITH_OBSERVATIONS","TO_REVIEW","SUPERVISION_WAITING"],"sources":["../../../ts/types/Enum/Supervision.ts"],"sourcesContent":["export enum Supervision {\n WAITING = 1,\n SIGNED = 3,\n TO_ATTEST = 6,\n ATTESTED = 7,\n ATTEST_REFUSED = 8,\n ATTEST_WITH_OBSERVATIONS = 9,\n TO_REVIEW = 10,\n SUPERVISION_WAITING = 11,\n}\n\nexport const SupervisionStateList = [\n {\n id: Supervision.WAITING,\n label: 'En attente',\n color: 'grey',\n textColor: 'grey--text',\n },\n {\n id: Supervision.SIGNED,\n label: 'Signé',\n color: 'green darken-1',\n textColor: 'green--text text--darken-1',\n },\n {\n id: Supervision.TO_ATTEST,\n label: 'A attesté',\n color: 'yellow darken-3',\n textColor: 'yellow--text text--darken-1',\n },\n {\n id: Supervision.ATTESTED,\n label: 'Attesté',\n color: 'green darken-1',\n textColor: 'green--text text--darken-1',\n },\n {\n id: Supervision.ATTEST_REFUSED,\n label: 'Attesté avec refus',\n color: 'green darken-1',\n textColor: 'green--text text--darken-1',\n },\n {\n id: Supervision.ATTEST_WITH_OBSERVATIONS,\n label: 'Attesté avec observations',\n color: 'green darken-1',\n textColor: 'green--text text--darken-1',\n },\n {\n id: Supervision.TO_REVIEW,\n label: 'A revoir',\n color: 'red lighten-2',\n textColor: 'red--text red--lighten-3',\n },\n {\n id: Supervision.SUPERVISION_WAITING,\n label: 'En cours de supervision',\n color: 'yellow darken-3',\n textColor: 'yellow--text text--darken-1',\n },\n];"],"mappings":";;;;;AAAA,IAAYA,WASX,GAAAC,OAAA,CATWD,WASX,GAAAE,SAAA;AATD,WAAYF,WAAW;EACrBA,WAAA,CAAAA,WAAA,4BAAW;EACXA,WAAA,CAAAA,WAAA,0BAAU;EACVA,WAAA,CAAAA,WAAA,gCAAa;EACbA,WAAA,CAAAA,WAAA,8BAAY;EACZA,WAAA,CAAAA,WAAA,0CAAkB;EAClBA,WAAA,CAAAA,WAAA,8DAA4B;EAC5BA,WAAA,CAAAA,WAAA,iCAAc;EACdA,WAAA,CAAAA,WAAA,qDAAwB;AAC1B,CAAC,EATWA,WAAW,KAAAC,OAAA,CAAXD,WASX,GATWA,WAAW;AAWhB,MAAMG,oBAAoB,GAAAF,OAAA,CAApBE,oBAAoB,GAAG,CAClC;EACEC,EAAE,EAAEJ,WAAW,CAACK,OAAO;EACvBC,KAAK,EAAE,YAAY;EACnBC,KAAK,EAAE,MAAM;EACbC,SAAS,EAAE;CACZ,EACD;EACEJ,EAAE,EAAEJ,WAAW,CAACS,MAAM;EACtBH,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE,gBAAgB;EACvBC,SAAS,EAAE;CACZ,EACD;EACEJ,EAAE,EAAEJ,WAAW,CAACU,SAAS;EACzBJ,KAAK,EAAE,WAAW;EAClBC,KAAK,EAAE,iBAAiB;EACxBC,SAAS,EAAE;CACZ,EACD;EACEJ,EAAE,EAAEJ,WAAW,CAACW,QAAQ;EACxBL,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE,gBAAgB;EACvBC,SAAS,EAAE;CACZ,EACD;EACEJ,EAAE,EAAEJ,WAAW,CAACY,cAAc;EAC9BN,KAAK,EAAE,oBAAoB;EAC3BC,KAAK,EAAE,gBAAgB;EACvBC,SAAS,EAAE;CACZ,EACD;EACEJ,EAAE,EAAEJ,WAAW,CAACa,wBAAwB;EACxCP,KAAK,EAAE,2BAA2B;EAClCC,KAAK,EAAE,gBAAgB;EACvBC,SAAS,EAAE;CACZ,EACD;EACEJ,EAAE,EAAEJ,WAAW,CAACc,SAAS;EACzBR,KAAK,EAAE,UAAU;EACjBC,KAAK,EAAE,eAAe;EACtBC,SAAS,EAAE;CACZ,EACD;EACEJ,EAAE,EAAEJ,WAAW,CAACe,mBAAmB;EACnCT,KAAK,EAAE,yBAAyB;EAChCC,KAAK,EAAE,iBAAiB;EACxBC,SAAS,EAAE;CACZ,CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExitRequest.js","names":[],"sources":["../../../../../ts/types/Interface/api/statistic/ExitRequest.ts"],"sourcesContent":["import { ISociety } from '../../models/ISociety';\n\nexport interface CountLateToDoDone {\n late: string[],\n toDo: string[],\n done: string[]
|
|
1
|
+
{"version":3,"file":"ExitRequest.js","names":[],"sources":["../../../../../ts/types/Interface/api/statistic/ExitRequest.ts"],"sourcesContent":["import { ISociety } from '../../models/ISociety';\n\nexport interface CountLateToDoDone {\n late: string[],\n toDo: string[],\n done: string[],\n doneByDefault?: string[],\n}\n\nexport interface Count {\n count: number,\n societiesList: string[]\n}\n\nexport interface CountIsIr {\n IS: string[],\n IR: string[],\n}\n\nexport interface CountVat {\n monthly: string[],\n quarterly: string[],\n simplified: string[],\n none: string[],\n}\n\nexport interface AnnotatedSocieties {\n annotated: string[],\n noAnnotated: string[],\n}\n\nexport interface CountComplementaryPrestation {\n waitingClient: string[],\n waitingDirection: string[],\n acceptedDirection: string[],\n refusedDirection: string[],\n}\n\ninterface TotalAverage {\n total: number,\n average: string[],\n}\n\nexport interface TotalAverageProfit {\n factured: TotalAverage,\n payed: TotalAverage\n}\n\nexport interface StatsLabBySocieties {\n late: string[],\n toDo: string[],\n done: string[]\n}\nexport interface StatsMailsBySocieties {\n late: string[],\n toDo: string[],\n done: string[]\n}\n\nexport interface StatsCallsBySocieties {\n late: string[],\n toDo: string[],\n done: string[]\n}\n\nexport interface StatsReportsBySocieties {\n late: string[],\n toDo: string[],\n done: string[]\n}\n\nexport interface ExitApplication {\n done: {\n count: number,\n societies: string[],\n },\n undone: {\n count: number,\n societies: string[],\n }\n}\n\nexport interface StatisticBalanceSheetDetail {\n goodToAttested: string[],\n attested: string[],\n attestedRefused: string[],\n attestedObserved: string[],\n toReview: string[],\n toRevised: string[],\n toSupervised: string[],\n acceptedSIE: string[],\n acceptedSIEByDefault: string[],\n ARCAttested: string[],\n ARCNoAttested: string[],\n}\n\nexport interface ReturnListType {\n societies?: ISociety[],\n active?: ISociety[],\n unpayed?: string[],\n terminated?: string[],\n archived?: string[],\n labWaiting?: string[],\n labDetail?: CountLateToDoDone,\n labDetailExpert?: CountLateToDoDone,\n balanceSheet?: CountLateToDoDone,\n balanceSheetDetailed?: StatisticBalanceSheetDetail,\n additionnalSell?: CountComplementaryPrestation,\n tva?: CountLateToDoDone,\n checklist?: CountLateToDoDone,\n checklistReinforced?: CountLateToDoDone,\n revision?: Count,\n annotate?: AnnotatedSocieties,\n isIr?: CountIsIr,\n vatType?: CountVat,\n task?: StatsLabBySocieties,\n mail?: StatsMailsBySocieties,\n call?: StatsCallsBySocieties,\n report?: StatsReportsBySocieties,\n profitability?: TotalAverageProfit,\n synchronised?: string[],\n applicationJustified?: ExitApplication,\n applicationSynchronised?: ExitApplication,\n}"],"mappings":""}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.QuerySocieties = undefined;
|
|
6
|
+
exports.QueryUserSociety = exports.QuerySocieties = undefined;
|
|
7
|
+
var _classValidator = require("class-validator");
|
|
7
8
|
var _utils = require("../../../../utils");
|
|
9
|
+
var _SubscriptionType = require("../../../Enum/SubscriptionType");
|
|
8
10
|
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
9
11
|
var c = arguments.length,
|
|
10
12
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -28,4 +30,7 @@ __decorate([(0, _utils.ApiPropertyOptional)({
|
|
|
28
30
|
type: Number,
|
|
29
31
|
example: 100
|
|
30
32
|
}), __metadata("design:type", Number)], QuerySocieties.prototype, "idTypeSubscription", void 0);
|
|
33
|
+
class QueryUserSociety {}
|
|
34
|
+
exports.QueryUserSociety = QueryUserSociety;
|
|
35
|
+
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsNumber)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Number)], QueryUserSociety.prototype, "idSubscriptionType", void 0);
|
|
31
36
|
//# sourceMappingURL=QuerySocieties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuerySocieties.js","names":["
|
|
1
|
+
{"version":3,"file":"QuerySocieties.js","names":["_classValidator","require","_utils","_SubscriptionType","QuerySocieties","exports","__decorate","ApiProperty","description","required","type","Number","example","ApiPropertyOptional","QueryUserSociety","IsNumber","IsOptional"],"sources":["../../../../../ts/types/Interface/api/user/QuerySocieties.ts"],"sourcesContent":["import { IsNumber, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { SubscriptionType } from '../../../Enum/SubscriptionType';\n\nexport class QuerySocieties {\n @ApiProperty({\n description: 'id of the specified user',\n required: true,\n type: Number,\n example: 100,\n })\n id: number;\n\n @ApiPropertyOptional({\n description: 'the id of the scubscription type',\n type: Number,\n example: 100,\n })\n idTypeSubscription: number;\n}\n\nexport class QueryUserSociety {\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSubscriptionType?: SubscriptionType;\n}"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;;;;;;;;;;;AAEM,MAAOG,cAAc;AAe1BC,OAAA,CAfYD,cAAc,GAAdA,cAAc;AACzBE,UAAA,EAAC,IAAAC,kBAAW,EAAC;EACXC,WAAW,EAAE,0BAA0B;EACvCC,QAAQ,EAAE,IAAI;EACdC,IAAI,EAAEC,MAAM;EACZC,OAAO,EAAE;CACV,CAAC,E,2EACS;AAEXN,UAAA,EAAC,IAAAO,0BAAmB,EAAC;EACnBL,WAAW,EAAE,kCAAkC;EAC/CE,IAAI,EAAEC,MAAM;EACZC,OAAO,EAAE;CACV,CAAC,E,2FACyB;AAGvB,MAAOE,gBAAgB;AAK5BT,OAAA,CALYS,gBAAgB,GAAhBA,gBAAgB;AAC3BR,UAAA,EAAC,IAAAO,0BAAmB,GAAE,EACrB,IAAAE,wBAAQ,GAAE,EACV,IAAAC,0BAAU,GAAE,E,6FACyB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.64",
|
|
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",
|
|
@@ -95,4 +95,8 @@ export class Society extends Resource {
|
|
|
95
95
|
getAllMissingInformations(id: number): Promise<ReadInvalidFieldState[]> {
|
|
96
96
|
return this.axios.$get(`/society/${id}/informations-statements`);
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
getOwner(id: number): Promise<IUser> {
|
|
100
|
+
return this.axios.$get(`/societies/${id}/owner`);
|
|
101
|
+
}
|
|
98
102
|
}
|
package/ts/api/resources/User.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, QuerySocieties, ISociety, Role, TimeCounterType, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles,
|
|
3
|
+
IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, QuerySocieties, ISociety, Role, TimeCounterType, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryUserSociety,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class User extends Resource {
|
|
@@ -56,13 +56,25 @@ export class User extends Resource {
|
|
|
56
56
|
calendarSelectableTeammates(): Promise<IUser[]> {
|
|
57
57
|
return this.axios.$get('user/calendar-selectable-teammates');
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated not securised ! please use getAllSocieties()
|
|
61
|
+
*/
|
|
59
62
|
societies(params: QuerySocieties): Promise<ISociety[]> {
|
|
60
63
|
return this.axios.$get('user/societies', { params });
|
|
61
64
|
}
|
|
65
|
+
|
|
66
|
+
getAllSocieties(id: number, params: QueryUserSociety): Promise<ISociety[]> {
|
|
67
|
+
return this.axios.$get(`/users/${id}/societies`, { params });
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated not securised ! please use society.getOwner()
|
|
72
|
+
*/
|
|
62
73
|
ownerSociety(idSociety: number): Promise<IUser> {
|
|
63
74
|
// TODO: Revoir l'endpoint non conventionnel
|
|
64
75
|
return this.axios.$get(`user/${idSociety}/owner`);
|
|
65
76
|
}
|
|
77
|
+
|
|
66
78
|
update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {
|
|
67
79
|
return this.axios.$put(`user/${id}`, params);
|
|
68
80
|
}
|
|
@@ -21,6 +21,11 @@ export enum BalanceSheetState {
|
|
|
21
21
|
INVOICING_IN_PROGRESS = 16,
|
|
22
22
|
INVOICING_REFUSED = 17,
|
|
23
23
|
REFUSED_BY_CLIENT = 18,
|
|
24
|
+
ACCEPTED_BY_CLIENT_DEFAULT = 19,
|
|
25
|
+
ACCEPTED_BY_SIE_DEFAULT = 20,
|
|
26
|
+
REFUSED_BY_SIE_DEFAULT = 21,
|
|
27
|
+
SENDED_TO_SIE_DEFAULT = 22,
|
|
28
|
+
FIX_IN_PROGRESS = 23,
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
export const BalanceSheetDetails = [
|
|
@@ -137,7 +142,7 @@ export const BalanceSheetDetails = [
|
|
|
137
142
|
text: 'Impayé',
|
|
138
143
|
value: BalanceSheetState.UNPAID,
|
|
139
144
|
color: 'error darken-2',
|
|
140
|
-
|
|
145
|
+
textColor: 'error--text text--darken-2',
|
|
141
146
|
key: 'unpaid',
|
|
142
147
|
forRoles: [['front_office', 'manager'], ['front_office_express', 'manager'], ['customer_success'], ['facturation']],
|
|
143
148
|
},
|
|
@@ -159,9 +164,44 @@ export const BalanceSheetDetails = [
|
|
|
159
164
|
text: 'Facturation refusée',
|
|
160
165
|
value: BalanceSheetState.INVOICING_REFUSED,
|
|
161
166
|
color: 'error darken-2',
|
|
162
|
-
|
|
167
|
+
textColor: 'error--text text--darken-2',
|
|
163
168
|
forRoles: [['facturation']],
|
|
164
169
|
},
|
|
170
|
+
{
|
|
171
|
+
text: 'Accepté client par défaut',
|
|
172
|
+
value: BalanceSheetState.ACCEPTED_BY_CLIENT_DEFAULT,
|
|
173
|
+
color: 'green darken-2',
|
|
174
|
+
textColor: 'green--text',
|
|
175
|
+
forRoles: [['front_office'], ['front_office_express'], ['expert']],
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
text: 'Accepté SIE par défaut',
|
|
179
|
+
value: BalanceSheetState.ACCEPTED_BY_SIE_DEFAULT,
|
|
180
|
+
color: 'green darken-2',
|
|
181
|
+
colorText: 'green--text',
|
|
182
|
+
forRoles: [['front_office'], ['front_office_express'], ['expert']],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
text: 'Envoyé SIE par défaut',
|
|
186
|
+
value: BalanceSheetState.SENDED_TO_SIE_DEFAULT,
|
|
187
|
+
color: 'blue lighten-3',
|
|
188
|
+
textColor: 'blue--text text--lighten-3',
|
|
189
|
+
forRoles: [['front_office'], ['front_office_express'], ['expert']],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
text: 'Refus SIE par défaut',
|
|
193
|
+
value: BalanceSheetState.REFUSED_BY_SIE_DEFAULT,
|
|
194
|
+
color: 'error darken-2',
|
|
195
|
+
colorText: 'error--text text--darken-2',
|
|
196
|
+
forRoles: [['front_office'], ['front_office_express'], ['expert']],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
text: 'Correctif en cours',
|
|
200
|
+
value: BalanceSheetState.FIX_IN_PROGRESS,
|
|
201
|
+
color: 'blue darken-4',
|
|
202
|
+
textColor: 'blue--text',
|
|
203
|
+
forRoles: [['front_office'], ['front_office_express'], ['expert']],
|
|
204
|
+
},
|
|
165
205
|
] as const;
|
|
166
206
|
|
|
167
207
|
export type BalanceSheetType = 'active' | 'passive';
|
|
@@ -3,22 +3,38 @@ export enum BankCollectingState {
|
|
|
3
3
|
PENDING_COLLECTION = 2,
|
|
4
4
|
INVOICED = 3,
|
|
5
5
|
REFUSED_INVOICE = 4,
|
|
6
|
+
UNPAID = 5,
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export const BankCollectingStateList = [
|
|
9
10
|
{
|
|
10
11
|
id: BankCollectingState.INVOICE_IN_PROGRESS,
|
|
11
12
|
label: 'Facturation en cours',
|
|
13
|
+
color: 'yellow darken-3',
|
|
14
|
+
textColor: 'yellow--text text--darken-1',
|
|
12
15
|
},
|
|
13
16
|
{
|
|
14
17
|
id: BankCollectingState.PENDING_COLLECTION,
|
|
15
18
|
label: 'Encaissement en att.',
|
|
19
|
+
color: 'yellow darken-3',
|
|
20
|
+
textColor: 'yellow--text text--darken-1',
|
|
16
21
|
},
|
|
17
22
|
{
|
|
18
23
|
id: BankCollectingState.INVOICED,
|
|
19
24
|
label: 'Facturé et encaissé',
|
|
25
|
+
color: 'green darken-4',
|
|
26
|
+
textColor: 'green--text ',
|
|
20
27
|
},
|
|
21
28
|
{
|
|
22
29
|
id: BankCollectingState.REFUSED_INVOICE,
|
|
23
30
|
label: 'Facturation refusée',
|
|
24
|
-
|
|
31
|
+
color: 'red lighten-2',
|
|
32
|
+
textColor: 'red--text red--lighten-3',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: BankCollectingState.UNPAID,
|
|
36
|
+
label: 'Impayé',
|
|
37
|
+
color: 'red lighten-2',
|
|
38
|
+
textColor: 'red--text red--lighten-3',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
@@ -6,4 +6,56 @@ export enum Supervision {
|
|
|
6
6
|
ATTEST_REFUSED = 8,
|
|
7
7
|
ATTEST_WITH_OBSERVATIONS = 9,
|
|
8
8
|
TO_REVIEW = 10,
|
|
9
|
-
|
|
9
|
+
SUPERVISION_WAITING = 11,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const SupervisionStateList = [
|
|
13
|
+
{
|
|
14
|
+
id: Supervision.WAITING,
|
|
15
|
+
label: 'En attente',
|
|
16
|
+
color: 'grey',
|
|
17
|
+
textColor: 'grey--text',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: Supervision.SIGNED,
|
|
21
|
+
label: 'Signé',
|
|
22
|
+
color: 'green darken-1',
|
|
23
|
+
textColor: 'green--text text--darken-1',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: Supervision.TO_ATTEST,
|
|
27
|
+
label: 'A attesté',
|
|
28
|
+
color: 'yellow darken-3',
|
|
29
|
+
textColor: 'yellow--text text--darken-1',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: Supervision.ATTESTED,
|
|
33
|
+
label: 'Attesté',
|
|
34
|
+
color: 'green darken-1',
|
|
35
|
+
textColor: 'green--text text--darken-1',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: Supervision.ATTEST_REFUSED,
|
|
39
|
+
label: 'Attesté avec refus',
|
|
40
|
+
color: 'green darken-1',
|
|
41
|
+
textColor: 'green--text text--darken-1',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: Supervision.ATTEST_WITH_OBSERVATIONS,
|
|
45
|
+
label: 'Attesté avec observations',
|
|
46
|
+
color: 'green darken-1',
|
|
47
|
+
textColor: 'green--text text--darken-1',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: Supervision.TO_REVIEW,
|
|
51
|
+
label: 'A revoir',
|
|
52
|
+
color: 'red lighten-2',
|
|
53
|
+
textColor: 'red--text red--lighten-3',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: Supervision.SUPERVISION_WAITING,
|
|
57
|
+
label: 'En cours de supervision',
|
|
58
|
+
color: 'yellow darken-3',
|
|
59
|
+
textColor: 'yellow--text text--darken-1',
|
|
60
|
+
},
|
|
61
|
+
];
|
|
@@ -3,7 +3,8 @@ import { ISociety } from '../../models/ISociety';
|
|
|
3
3
|
export interface CountLateToDoDone {
|
|
4
4
|
late: string[],
|
|
5
5
|
toDo: string[],
|
|
6
|
-
done: string[]
|
|
6
|
+
done: string[],
|
|
7
|
+
doneByDefault?: string[],
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export interface Count {
|
|
@@ -88,6 +89,7 @@ export interface StatisticBalanceSheetDetail {
|
|
|
88
89
|
toRevised: string[],
|
|
89
90
|
toSupervised: string[],
|
|
90
91
|
acceptedSIE: string[],
|
|
92
|
+
acceptedSIEByDefault: string[],
|
|
91
93
|
ARCAttested: string[],
|
|
92
94
|
ARCNoAttested: string[],
|
|
93
95
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { IsNumber, IsOptional } from 'class-validator';
|
|
1
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { SubscriptionType } from '../../../Enum/SubscriptionType';
|
|
2
4
|
|
|
3
5
|
export class QuerySocieties {
|
|
4
6
|
@ApiProperty({
|
|
@@ -15,4 +17,11 @@ export class QuerySocieties {
|
|
|
15
17
|
example: 100,
|
|
16
18
|
})
|
|
17
19
|
idTypeSubscription: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class QueryUserSociety {
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsNumber()
|
|
25
|
+
@IsOptional()
|
|
26
|
+
idSubscriptionType?: SubscriptionType;
|
|
18
27
|
}
|