@silexpert/core 1.1.377 → 1.1.378
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/Employee.d.ts +1 -1
- package/dist/cjs/api/resources/Employee.d.ts.map +1 -1
- package/dist/cjs/api/resources/Employee.js.map +1 -1
- package/dist/cjs/api/resources/NafCode.d.ts +3 -2
- package/dist/cjs/api/resources/NafCode.d.ts.map +1 -1
- package/dist/cjs/api/resources/NafCode.js.map +1 -1
- package/dist/cjs/api/resources/SheetMonthSchedule.d.ts +1 -1
- package/dist/cjs/api/resources/SheetMonthSchedule.d.ts.map +1 -1
- package/dist/cjs/api/resources/SheetMonthSchedule.js.map +1 -1
- package/dist/cjs/api/resources/Society.d.ts +2 -1
- package/dist/cjs/api/resources/Society.d.ts.map +1 -1
- package/dist/cjs/api/resources/Society.js +3 -0
- package/dist/cjs/api/resources/Society.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +1 -1
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.js +6 -0
- package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/State.d.ts +14 -0
- package/dist/cjs/types/Interface/api/society/State.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/society/State.js +3 -0
- package/dist/cjs/types/Interface/api/society/State.js.map +1 -0
- 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/bankAccount.js +1 -1
- package/dist/cjs/utils/bankAccount.js.map +1 -1
- package/dist/mjs/api/resources/Employee.d.ts +1 -1
- package/dist/mjs/api/resources/Employee.d.ts.map +1 -1
- package/dist/mjs/api/resources/Employee.js.map +1 -1
- package/dist/mjs/api/resources/NafCode.d.ts +3 -2
- package/dist/mjs/api/resources/NafCode.d.ts.map +1 -1
- package/dist/mjs/api/resources/NafCode.js.map +1 -1
- package/dist/mjs/api/resources/SheetMonthSchedule.d.ts +1 -1
- package/dist/mjs/api/resources/SheetMonthSchedule.d.ts.map +1 -1
- package/dist/mjs/api/resources/SheetMonthSchedule.js.map +1 -1
- package/dist/mjs/api/resources/Society.d.ts +2 -1
- package/dist/mjs/api/resources/Society.d.ts.map +1 -1
- package/dist/mjs/api/resources/Society.js +3 -0
- package/dist/mjs/api/resources/Society.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +1 -1
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.js +6 -0
- package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/State.d.ts +14 -0
- package/dist/mjs/types/Interface/api/society/State.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/society/State.js +2 -0
- package/dist/mjs/types/Interface/api/society/State.js.map +1 -0
- 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/bankAccount.js +1 -1
- package/dist/mjs/utils/bankAccount.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Employee.ts +1 -1
- package/ts/api/resources/NafCode.ts +3 -2
- package/ts/api/resources/SheetMonthSchedule.ts +1 -1
- package/ts/api/resources/Society.ts +5 -0
- package/ts/types/Enum/Ged.ts +1 -1
- package/ts/types/Enum/ReasonTerminationType.ts +6 -0
- package/ts/types/Interface/api/society/State.ts +14 -0
- package/ts/types/index.ts +1 -0
- package/ts/utils/bankAccount.ts +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { INafCode } from '../../types';
|
|
1
2
|
import { Resource } from '../Resource';
|
|
2
3
|
|
|
3
4
|
export class NafCode extends Resource {
|
|
4
|
-
getAll(): Promise<
|
|
5
|
+
getAll(): Promise<INafCode[]> {
|
|
5
6
|
return this.axios.$get('/naf-codes');
|
|
6
7
|
}
|
|
7
|
-
get(id: number): Promise<
|
|
8
|
+
get(id: number): Promise<INafCode> {
|
|
8
9
|
return this.axios.$get(`/naf-codes/${id}`);
|
|
9
10
|
}
|
|
10
11
|
}
|
|
@@ -38,7 +38,7 @@ export class SheetMonthSchedule extends Resource {
|
|
|
38
38
|
params: QuerySheetMonthSchedule,
|
|
39
39
|
cancelToken?: CancelToken,
|
|
40
40
|
signal?: AbortSignal,
|
|
41
|
-
): Promise<BasePaginate<
|
|
41
|
+
): Promise<BasePaginate<ISheetMonthSchedule>> {
|
|
42
42
|
return this.axios.$get('/sheet-month-schedules', {
|
|
43
43
|
...(cancelToken ? { cancelToken } : {}),
|
|
44
44
|
...(signal ? { signal } : {}),
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
QueryArchivedSociety,
|
|
25
25
|
QueryExportSociety,
|
|
26
26
|
QueryAccountingExport,
|
|
27
|
+
GetSocietyState,
|
|
27
28
|
} from '../../types';
|
|
28
29
|
import { CancelToken } from 'axios';
|
|
29
30
|
|
|
@@ -146,4 +147,8 @@ export class Society extends Resource {
|
|
|
146
147
|
},
|
|
147
148
|
});
|
|
148
149
|
}
|
|
150
|
+
|
|
151
|
+
getState(idSociety: number): Promise<GetSocietyState> {
|
|
152
|
+
return this.axios.$get(`/societies/${idSociety}/states`);
|
|
153
|
+
}
|
|
149
154
|
}
|
package/ts/types/Enum/Ged.ts
CHANGED
|
@@ -20,6 +20,7 @@ export enum ReasonTerminationType {
|
|
|
20
20
|
SERVICE_DELAYS = 19,
|
|
21
21
|
LACK_OF_ADVICE = 20,
|
|
22
22
|
NA = 21,
|
|
23
|
+
LACK_OF_COMMUNICATION = 22,
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
export const ReasonTerminationTypeDetail = [
|
|
@@ -123,6 +124,11 @@ export const ReasonTerminationTypeDetail = [
|
|
|
123
124
|
label: 'Manque de conseil',
|
|
124
125
|
active: true,
|
|
125
126
|
},
|
|
127
|
+
{
|
|
128
|
+
id:ReasonTerminationType.LACK_OF_COMMUNICATION,
|
|
129
|
+
label: 'Manque de communication',
|
|
130
|
+
active: true,
|
|
131
|
+
},
|
|
126
132
|
{
|
|
127
133
|
id:ReasonTerminationType.NA,
|
|
128
134
|
label: 'Non précisé',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TerminationListState, TerminationListType } from '../../../Enum/TerminationList';
|
|
2
|
+
import { ITerminationList } from '../../models/ITerminationList';
|
|
3
|
+
|
|
4
|
+
interface SocietyStateTerminationInfo {
|
|
5
|
+
effectiveDate: Date;
|
|
6
|
+
idTerminationState: TerminationListState;
|
|
7
|
+
idTerminationType: TerminationListType;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface GetSocietyState {
|
|
11
|
+
isUniquelySocial: boolean;
|
|
12
|
+
terminationInfos: SocietyStateTerminationInfo | null;
|
|
13
|
+
terminations: ITerminationList[]
|
|
14
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -1045,6 +1045,7 @@ export * from './Interface/api/authentification/ReadAuthenticateCollaborater';
|
|
|
1045
1045
|
export * from './Interface/api/authentification/ResetPassword';
|
|
1046
1046
|
export * from './Interface/api/authentification/ForgotPassword';
|
|
1047
1047
|
export * from './Interface/api/society/Export';
|
|
1048
|
+
export * from './Interface/api/society/State';
|
|
1048
1049
|
export * from './Interface/api/businessSector/Create';
|
|
1049
1050
|
export * from './Interface/api/businessSector/Query';
|
|
1050
1051
|
export * from './Interface/api/businessSector/Delete';
|
package/ts/utils/bankAccount.ts
CHANGED
|
@@ -18,7 +18,7 @@ export function getSynchronizationState(params: IBankAccount, dateOfTermination?
|
|
|
18
18
|
* Ou si lastupdate = inProgressImport et lastupdate est après lastTryImport
|
|
19
19
|
*/
|
|
20
20
|
if (params.idPartnerType && params.lastUpdate &&
|
|
21
|
-
[PartnerTransactionType.QONTO, PartnerTransactionType.SHINE, PartnerTransactionType.BUDGET_INSIGHT].includes(params.idPartnerType)
|
|
21
|
+
[PartnerTransactionType.QONTO, PartnerTransactionType.SHINE, PartnerTransactionType.BUDGET_INSIGHT, PartnerTransactionType.STRIPE].includes(params.idPartnerType)
|
|
22
22
|
&&
|
|
23
23
|
(
|
|
24
24
|
(dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ) || // si lastUpdate = date du jour OU
|