@silexpert/core 1.1.81 → 1.1.82
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/LeadsToPartners.d.ts +8 -0
- package/es/api/resources/LeadsToPartners.d.ts.map +1 -0
- package/es/api/resources/LeadsToPartners.js +13 -0
- package/es/api/resources/LeadsToPartners.js.map +1 -0
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/MailAuto.d.ts +2 -1
- package/es/types/Enum/MailAuto.d.ts.map +1 -1
- package/es/types/Enum/MailAuto.js +1 -0
- package/es/types/Enum/MailAuto.js.map +1 -1
- package/es/types/Enum/Partners.d.ts +86 -0
- package/es/types/Enum/Partners.d.ts.map +1 -0
- package/es/types/Enum/Partners.js +86 -0
- package/es/types/Enum/Partners.js.map +1 -0
- package/es/types/Enum/PrestationType.d.ts +2 -1
- package/es/types/Enum/PrestationType.d.ts.map +1 -1
- package/es/types/Enum/PrestationType.js +18 -0
- package/es/types/Enum/PrestationType.js.map +1 -1
- package/es/types/Interface/api/partners/PartnerStatisticType.d.ts +19 -0
- package/es/types/Interface/api/partners/PartnerStatisticType.d.ts.map +1 -0
- package/es/types/Interface/api/partners/PartnerStatisticType.js +5 -0
- package/es/types/Interface/api/partners/PartnerStatisticType.js.map +1 -0
- package/es/types/Interface/api/partners/QueryPartnerAll.d.ts +6 -0
- package/es/types/Interface/api/partners/QueryPartnerAll.d.ts.map +1 -0
- package/es/types/Interface/api/partners/QueryPartnerAll.js +37 -0
- package/es/types/Interface/api/partners/QueryPartnerAll.js.map +1 -0
- package/es/types/Interface/api/partners/QueryPartnerStatistic.d.ts +6 -0
- package/es/types/Interface/api/partners/QueryPartnerStatistic.d.ts.map +1 -0
- package/es/types/Interface/api/partners/QueryPartnerStatistic.js +37 -0
- package/es/types/Interface/api/partners/QueryPartnerStatistic.js.map +1 -0
- package/es/types/Interface/models/ILeadsToPartners.d.ts +13 -0
- package/es/types/Interface/models/ILeadsToPartners.d.ts.map +1 -0
- package/es/types/Interface/models/ILeadsToPartners.js +2 -0
- package/es/types/Interface/models/ILeadsToPartners.js.map +1 -0
- package/es/types/index.d.ts +5 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +5 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/LeadsToPartners.js +24 -0
- package/js/api/resources/LeadsToPartners.js.map +1 -0
- package/js/api/resources.js +3 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/MailAuto.js +1 -0
- package/js/types/Enum/MailAuto.js.map +1 -1
- package/js/types/Enum/Partners.js +91 -0
- package/js/types/Enum/Partners.js.map +1 -0
- package/js/types/Enum/PrestationType.js +18 -0
- package/js/types/Enum/PrestationType.js.map +1 -1
- package/js/types/Interface/api/partners/PartnerStatisticType.js +9 -0
- package/js/types/Interface/api/partners/PartnerStatisticType.js.map +1 -0
- package/js/types/Interface/api/partners/QueryPartnerAll.js +35 -0
- package/js/types/Interface/api/partners/QueryPartnerAll.js.map +1 -0
- package/js/types/Interface/api/partners/QueryPartnerStatistic.js +35 -0
- package/js/types/Interface/api/partners/QueryPartnerStatistic.js.map +1 -0
- package/js/types/Interface/models/ILeadsToPartners.js +6 -0
- package/js/types/Interface/models/ILeadsToPartners.js.map +1 -0
- package/js/types/index.js +50 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/LeadsToPartners.ts +16 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/MailAuto.ts +1 -0
- package/ts/types/Enum/Partners.ts +86 -0
- package/ts/types/Enum/PrestationType.ts +18 -0
- package/ts/types/Interface/api/partners/PartnerStatisticType.ts +19 -0
- package/ts/types/Interface/api/partners/QueryPartnerAll.ts +24 -0
- package/ts/types/Interface/api/partners/QueryPartnerStatistic.ts +24 -0
- package/ts/types/Interface/models/ILeadsToPartners.ts +15 -0
- package/ts/types/index.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.82",
|
|
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,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ILeadsToPartners, PartnerStatisticType, QueryPartnerAll, QueryPartnerStatistic,
|
|
3
|
+
} from '../../types';
|
|
4
|
+
import { Resource } from '../Resource';
|
|
5
|
+
|
|
6
|
+
export class LeadsToPartners extends Resource {
|
|
7
|
+
create(params: ILeadsToPartners): Promise<ILeadsToPartners> {
|
|
8
|
+
return this.axios.$post('partner', params);
|
|
9
|
+
}
|
|
10
|
+
getAll(params: QueryPartnerAll): Promise<ILeadsToPartners[]> {
|
|
11
|
+
return this.axios.$get('partner/all', { params });
|
|
12
|
+
}
|
|
13
|
+
getStatistic(params: QueryPartnerStatistic): Promise<PartnerStatisticType[]> {
|
|
14
|
+
return this.axios.$get('partner/statistic', { params });
|
|
15
|
+
}
|
|
16
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -130,6 +130,7 @@ import { AccountsSector } from './resources/AccountsSectors';
|
|
|
130
130
|
import { BusinessSector } from './resources/BusinessSector';
|
|
131
131
|
import { VisualizedInformation } from './resources/VisualizedInformation';
|
|
132
132
|
import { Fusion } from './resources/Fusion';
|
|
133
|
+
import { LeadsToPartners } from './resources/LeadsToPartners';
|
|
133
134
|
|
|
134
135
|
export const resources = {
|
|
135
136
|
simulation: Simulation,
|
|
@@ -264,4 +265,5 @@ export const resources = {
|
|
|
264
265
|
businessSector: BusinessSector,
|
|
265
266
|
visualizedInformation: VisualizedInformation,
|
|
266
267
|
fusion: Fusion,
|
|
268
|
+
leadsToPartners: LeadsToPartners,
|
|
267
269
|
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export const PartnerTypesDetail = {
|
|
2
|
+
WEBSITE: {
|
|
3
|
+
name: 'Site Internet',
|
|
4
|
+
color: 'green',
|
|
5
|
+
id: 1,
|
|
6
|
+
},
|
|
7
|
+
ACCOUNTANT_LOGICIEL: {
|
|
8
|
+
name: 'Logiciel comptable',
|
|
9
|
+
color: 'blue',
|
|
10
|
+
id: 2,
|
|
11
|
+
},
|
|
12
|
+
EXPERT_ACCOUNTANT: {
|
|
13
|
+
name: 'Expert-comptable en ligne',
|
|
14
|
+
color: 'orange',
|
|
15
|
+
id: 3,
|
|
16
|
+
},
|
|
17
|
+
INSURANCE: {
|
|
18
|
+
name: 'Assurance',
|
|
19
|
+
color: 'red',
|
|
20
|
+
id: 4,
|
|
21
|
+
},
|
|
22
|
+
DOMICILIATION: {
|
|
23
|
+
name: 'Domiciliation',
|
|
24
|
+
color: 'yellow',
|
|
25
|
+
id: 5,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const Partners = {
|
|
30
|
+
NATIVE: {
|
|
31
|
+
id: 1,
|
|
32
|
+
idType: PartnerTypesDetail.INSURANCE.id,
|
|
33
|
+
name: 'Native',
|
|
34
|
+
excludeBrand: [],
|
|
35
|
+
disabled: false,
|
|
36
|
+
},
|
|
37
|
+
POURCENTAGE: {
|
|
38
|
+
id: 2,
|
|
39
|
+
idType: PartnerTypesDetail.EXPERT_ACCOUNTANT.id,
|
|
40
|
+
name: 'Pourcentage',
|
|
41
|
+
excludeBrand: ['Pourcentage'],
|
|
42
|
+
disabled: false,
|
|
43
|
+
},
|
|
44
|
+
CLEMENTINE: {
|
|
45
|
+
id: 3,
|
|
46
|
+
idType: PartnerTypesDetail.EXPERT_ACCOUNTANT.id,
|
|
47
|
+
name: 'Clementine',
|
|
48
|
+
excludeBrand: ['Clementine'],
|
|
49
|
+
disabled: false,
|
|
50
|
+
},
|
|
51
|
+
COMPTALIB: {
|
|
52
|
+
id: 4,
|
|
53
|
+
idType: PartnerTypesDetail.ACCOUNTANT_LOGICIEL.id,
|
|
54
|
+
name: 'Comptalib',
|
|
55
|
+
excludeBrand: ['Comptalib'],
|
|
56
|
+
disabled: false,
|
|
57
|
+
},
|
|
58
|
+
ALEO: {
|
|
59
|
+
id: 5,
|
|
60
|
+
idType: PartnerTypesDetail.WEBSITE.id,
|
|
61
|
+
name: 'Aleo',
|
|
62
|
+
excludeBrand: [],
|
|
63
|
+
disabled: false,
|
|
64
|
+
},
|
|
65
|
+
TRICOLORES: {
|
|
66
|
+
id: 6,
|
|
67
|
+
idType: PartnerTypesDetail.DOMICILIATION.id,
|
|
68
|
+
name: 'Tricolores',
|
|
69
|
+
excludeBrand: [],
|
|
70
|
+
disabled: false,
|
|
71
|
+
},
|
|
72
|
+
QONTO: {
|
|
73
|
+
id: 7,
|
|
74
|
+
idType: null,
|
|
75
|
+
name: 'Qonto',
|
|
76
|
+
excludeBrand: [],
|
|
77
|
+
disabled: true,
|
|
78
|
+
},
|
|
79
|
+
SHINE: {
|
|
80
|
+
id: 8,
|
|
81
|
+
idType: null,
|
|
82
|
+
name: 'Shine',
|
|
83
|
+
excludeBrand: [],
|
|
84
|
+
disabled: true,
|
|
85
|
+
},
|
|
86
|
+
};
|
|
@@ -169,6 +169,7 @@ export enum PrestationType {
|
|
|
169
169
|
STATUTS_FREE = 212,
|
|
170
170
|
STATUTS_OPTION_1 = 213,
|
|
171
171
|
STATUTS_OPTION_2 = 214,
|
|
172
|
+
STATUTS_OPTION_AE = 215,
|
|
172
173
|
}
|
|
173
174
|
|
|
174
175
|
export interface PrestationDetailEnum {
|
|
@@ -3032,4 +3033,21 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3032
3033
|
signaturePage: null,
|
|
3033
3034
|
point: 0,
|
|
3034
3035
|
},
|
|
3036
|
+
STATUTS_OPTION_AE: {
|
|
3037
|
+
id: PrestationType.STATUTS_OPTION_AE,
|
|
3038
|
+
name: 'Statuts - Auto\'Créa',
|
|
3039
|
+
isComptable: true,
|
|
3040
|
+
isJuridique: true,
|
|
3041
|
+
isSocial: false,
|
|
3042
|
+
isAttestation: false,
|
|
3043
|
+
inAverageCart: false,
|
|
3044
|
+
isBack: false,
|
|
3045
|
+
price: 118.8,
|
|
3046
|
+
isCatalog: true,
|
|
3047
|
+
hidden: false,
|
|
3048
|
+
isComplementary: false,
|
|
3049
|
+
signaturePosition: '',
|
|
3050
|
+
signaturePage: null,
|
|
3051
|
+
point: 0,
|
|
3052
|
+
},
|
|
3035
3053
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ISociety } from '../../models/ISociety';
|
|
2
|
+
|
|
3
|
+
export class PartnerStatisticType {
|
|
4
|
+
id: number;
|
|
5
|
+
fullname: string;
|
|
6
|
+
Native?: partnerCount;
|
|
7
|
+
Pourcentage?: partnerCount;
|
|
8
|
+
Clementine?: partnerCount;
|
|
9
|
+
Comptalib?:partnerCount;
|
|
10
|
+
Aleo?: partnerCount;
|
|
11
|
+
Tricolores?: partnerCount;
|
|
12
|
+
Qonto?: partnerCount;
|
|
13
|
+
Shine?: partnerCount;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class partnerCount {
|
|
17
|
+
number: number;
|
|
18
|
+
societies: Partial<ISociety>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class QueryPartnerAll {
|
|
4
|
+
@ApiPropertyOptional({
|
|
5
|
+
description: 'society id',
|
|
6
|
+
required: false,
|
|
7
|
+
type: Number,
|
|
8
|
+
})
|
|
9
|
+
idSociety?: number;
|
|
10
|
+
|
|
11
|
+
@ApiPropertyOptional({
|
|
12
|
+
description: 'user id',
|
|
13
|
+
required: false,
|
|
14
|
+
type: Number,
|
|
15
|
+
})
|
|
16
|
+
idUser?: number;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional({
|
|
19
|
+
description: 'partner id',
|
|
20
|
+
required: false,
|
|
21
|
+
type: String,
|
|
22
|
+
})
|
|
23
|
+
idPartner?: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class QueryPartnerStatistic {
|
|
4
|
+
@ApiPropertyOptional({
|
|
5
|
+
description: 'Commercial',
|
|
6
|
+
required: false,
|
|
7
|
+
type: Number,
|
|
8
|
+
})
|
|
9
|
+
idCommercial?: number;
|
|
10
|
+
|
|
11
|
+
@ApiPropertyOptional({
|
|
12
|
+
description: 'Mois',
|
|
13
|
+
required: false,
|
|
14
|
+
type: Number,
|
|
15
|
+
})
|
|
16
|
+
month?: number;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional({
|
|
19
|
+
description: 'Année',
|
|
20
|
+
required: false,
|
|
21
|
+
type: Number,
|
|
22
|
+
})
|
|
23
|
+
year?: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IUser } from './IUser';
|
|
2
|
+
import { ISociety } from './ISociety';
|
|
3
|
+
|
|
4
|
+
export interface ILeadsToPartners {
|
|
5
|
+
id?: number,
|
|
6
|
+
idPartner: number,
|
|
7
|
+
idSociety: number,
|
|
8
|
+
idUser: number,
|
|
9
|
+
createdAt?: Date;
|
|
10
|
+
updatedAt?: Date;
|
|
11
|
+
|
|
12
|
+
// Associations
|
|
13
|
+
society?: ISociety;
|
|
14
|
+
user?: IUser;
|
|
15
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -90,6 +90,7 @@ export * from './Interface/models/IProductInvoice';
|
|
|
90
90
|
export * from './Interface/models/IImmobilization';
|
|
91
91
|
export * from './Interface/models/IKilometricAllowanceScale';
|
|
92
92
|
export * from './Interface/models/ILabelPaymentWaiting';
|
|
93
|
+
export * from './Interface/models/ILeadsToPartners';
|
|
93
94
|
export * from './Interface/models/ILegalForm';
|
|
94
95
|
export * from './Interface/models/ILegalNotice';
|
|
95
96
|
export * from './Interface/models/ILettering';
|
|
@@ -364,6 +365,7 @@ export * from './Enum/PartnerType';
|
|
|
364
365
|
export * from './Enum/ThirdPartyType';
|
|
365
366
|
export * from './Enum/FecFileDelimiter';
|
|
366
367
|
export * from './Enum/IncomeStatement';
|
|
368
|
+
export * from './Enum/Partners';
|
|
367
369
|
export * from './Enum/PartnerTransactionType';
|
|
368
370
|
export * from './Enum/Vehicle';
|
|
369
371
|
export * from './Enum/VehicleType';
|
|
@@ -948,4 +950,7 @@ export * from './Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony';
|
|
|
948
950
|
export * from './Interface/api/affectedPatrimony/ReadAffectedPatrimony';
|
|
949
951
|
export * from './Interface/api/notificationSetting/CreateNotificationSetting';
|
|
950
952
|
export * from './Interface/api/notificationSetting/UpdateNotificationSetting';
|
|
951
|
-
export * from './Interface/api/appNotification/Update';
|
|
953
|
+
export * from './Interface/api/appNotification/Update';
|
|
954
|
+
export * from './Interface/api/partners/QueryPartnerAll';
|
|
955
|
+
export * from './Interface/api/partners/QueryPartnerStatistic';
|
|
956
|
+
export * from './Interface/api/partners/PartnerStatisticType';
|