@silexpert/core 1.0.73 → 1.0.74
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/Facturation.d.ts +10 -0
- package/es/api/resources/Facturation.d.ts.map +1 -0
- package/es/api/resources/Facturation.js +13 -0
- package/es/api/resources/Facturation.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/TimeCounterType.js +7 -7
- package/es/types/Enum/TimeCounterType.js.map +1 -1
- package/es/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.d.ts +5 -0
- package/es/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.d.ts.map +1 -0
- package/es/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.js +26 -0
- package/es/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.js.map +1 -0
- package/es/types/Interface/api/facturation/CreateRebilling.d.ts +11 -0
- package/es/types/Interface/api/facturation/CreateRebilling.d.ts.map +1 -0
- package/es/types/Interface/api/facturation/CreateRebilling.js +58 -0
- package/es/types/Interface/api/facturation/CreateRebilling.js.map +1 -0
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.d.ts +11 -0
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.d.ts.map +1 -0
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.js +62 -0
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.js.map +1 -0
- package/es/types/Interface/api/society/QuerySociety.d.ts.map +1 -1
- package/es/types/Interface/api/society/QuerySociety.js +3 -1
- package/es/types/Interface/api/society/QuerySociety.js.map +1 -1
- package/es/types/Interface/models/IBillingHistory.d.ts +18 -0
- package/es/types/Interface/models/IBillingHistory.d.ts.map +1 -0
- package/es/types/Interface/models/IBillingHistory.js +2 -0
- package/es/types/Interface/models/IBillingHistory.js.map +1 -0
- package/es/types/Interface/models/IExercice.d.ts +1 -0
- package/es/types/Interface/models/IExercice.d.ts.map +1 -1
- package/es/types/Interface/models/IExercice.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +2 -1
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- 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/js/api/resources/Facturation.js +34 -0
- package/js/api/resources/Facturation.js.map +1 -0
- package/js/api/resources.js +3 -0
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/TimeCounterType.js +7 -7
- package/js/types/Enum/TimeCounterType.js.map +1 -1
- package/js/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.js +35 -0
- package/js/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.js.map +1 -0
- package/js/types/Interface/api/facturation/CreateRebilling.js +45 -0
- package/js/types/Interface/api/facturation/CreateRebilling.js.map +1 -0
- package/js/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.js +47 -0
- package/js/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.js.map +1 -0
- package/js/types/Interface/api/society/QuerySociety.js +2 -2
- package/js/types/Interface/api/society/QuerySociety.js.map +1 -1
- package/js/types/Interface/models/IBillingHistory.js +6 -0
- package/js/types/Interface/models/IBillingHistory.js.map +1 -0
- package/js/types/index.js +48 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Facturation.ts +18 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/TimeCounterType.ts +7 -7
- package/ts/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.ts +16 -0
- package/ts/types/Interface/api/facturation/CreateRebilling.ts +42 -0
- package/ts/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.ts +46 -0
- package/ts/types/Interface/api/society/QuerySociety.ts +3 -1
- package/ts/types/Interface/models/IBillingHistory.ts +21 -0
- package/ts/types/Interface/models/IExercice.ts +1 -0
- package/ts/types/Interface/models/ISociety.ts +2 -1
- package/ts/types/index.ts +4 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsInt, IsOptional, /* IsString, */
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryPaginatedBillingHistory {
|
|
7
|
+
@ApiPropertyOptional({ default: 25 })
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsInt()
|
|
10
|
+
limit?: number;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional({ default: 1 })
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
page?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean, IsInt, IsOptional, IsString,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../..';
|
|
5
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
|
+
|
|
7
|
+
export class CreateRebilling {
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
10
|
+
@IsString()
|
|
11
|
+
comment?: string;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsBoolean()
|
|
16
|
+
@ToBoolean()
|
|
17
|
+
hasToBeAccruals?: string;
|
|
18
|
+
|
|
19
|
+
@ApiProperty()
|
|
20
|
+
@IsString()
|
|
21
|
+
turnoverMax: string;
|
|
22
|
+
|
|
23
|
+
@ApiProperty()
|
|
24
|
+
@IsInt()
|
|
25
|
+
idExercice: number;
|
|
26
|
+
|
|
27
|
+
@ApiProperty()
|
|
28
|
+
@IsInt()
|
|
29
|
+
idSociety: number;
|
|
30
|
+
|
|
31
|
+
@ApiProperty()
|
|
32
|
+
@IsInt()
|
|
33
|
+
idPrestation: number;
|
|
34
|
+
|
|
35
|
+
@ApiProperty()
|
|
36
|
+
@IsInt()
|
|
37
|
+
numberOfMonths: number;
|
|
38
|
+
|
|
39
|
+
@ApiProperty()
|
|
40
|
+
@IsInt()
|
|
41
|
+
totalAmount: number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsInt, IsOptional, IsString,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryPaginatedSocietyWithFacturation {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsString()
|
|
10
|
+
search?: string;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
day?: number;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsInt()
|
|
20
|
+
month?: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsInt()
|
|
25
|
+
year?: number;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
@IsInt()
|
|
30
|
+
idUser?: number;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsInt()
|
|
35
|
+
idBillingState?: number;
|
|
36
|
+
|
|
37
|
+
@ApiPropertyOptional({ default: 20 })
|
|
38
|
+
@IsOptional()
|
|
39
|
+
@IsInt()
|
|
40
|
+
limit?: number;
|
|
41
|
+
|
|
42
|
+
@ApiPropertyOptional({ default: 1 })
|
|
43
|
+
@IsOptional()
|
|
44
|
+
@IsInt()
|
|
45
|
+
page?: number;
|
|
46
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsIn } from 'class-validator';
|
|
1
|
+
import { IsIn, IsOptional } from 'class-validator';
|
|
2
2
|
import { ApiPropertyOptional } from '../../../../utils/decorators';
|
|
3
3
|
|
|
4
4
|
export class QuerySociety {
|
|
@@ -6,9 +6,11 @@ export class QuerySociety {
|
|
|
6
6
|
id?: number;
|
|
7
7
|
|
|
8
8
|
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
9
10
|
attributes?: string[];
|
|
10
11
|
|
|
11
12
|
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
12
14
|
@IsIn(['brandType', 'societyGescom', 'societyBank', 'societyDetails', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'nafCode', 'connector', 'societyCgv', 'societyConfig', 'exercices', 'businessPartners'], { each: true })
|
|
13
15
|
include?: string[];
|
|
14
16
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IUser } from './IUser';
|
|
2
|
+
import { IExercice, ISociety } from '../..';
|
|
3
|
+
|
|
4
|
+
// comments
|
|
5
|
+
export interface IBillingHistory {
|
|
6
|
+
id?: number;
|
|
7
|
+
totalAmount: number;
|
|
8
|
+
numberOfMonths: number;
|
|
9
|
+
comment: string;
|
|
10
|
+
hasToBeAccruals?: boolean;
|
|
11
|
+
idUser?: number | null;
|
|
12
|
+
idSociety?: number | null;
|
|
13
|
+
idExercice?: number | null;
|
|
14
|
+
createdAt?: Date | null;
|
|
15
|
+
updatedAt?: Date | null;
|
|
16
|
+
|
|
17
|
+
// Associations
|
|
18
|
+
user?: IUser;
|
|
19
|
+
society?: ISociety;
|
|
20
|
+
exercice?: IExercice;
|
|
21
|
+
}
|
|
@@ -48,7 +48,7 @@ import { ISms } from './ISms';
|
|
|
48
48
|
import { IUser } from './IUser';
|
|
49
49
|
import { ISocietyEvent } from './ISocietyEvent';
|
|
50
50
|
import {
|
|
51
|
-
ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner,
|
|
51
|
+
ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner, IPaymentSchedule,
|
|
52
52
|
} from '../..';
|
|
53
53
|
import { IBrandType } from './IBrandType';
|
|
54
54
|
|
|
@@ -158,6 +158,7 @@ export interface ISociety {
|
|
|
158
158
|
societiesFollowedQualityMail?: IFollowedQualityMail[];
|
|
159
159
|
societyFollow?: IFollow[];
|
|
160
160
|
paymentsExpectations?: IPaymentExpectation[];
|
|
161
|
+
paymentSchedules?: IPaymentSchedule[];
|
|
161
162
|
legalForm?: ILegalForm;
|
|
162
163
|
oldExpertInfo?: IOldExpertInfo;
|
|
163
164
|
prestationsSocieties?: IPrestation[];
|
package/ts/types/index.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './Interface/models/ICivility';
|
|
|
49
49
|
export * from './Interface/models/IErrorCode';
|
|
50
50
|
export * from './Interface/models/IColor';
|
|
51
51
|
export * from './Interface/models/IComment';
|
|
52
|
+
export * from './Interface/models/IBillingHistory';
|
|
52
53
|
export * from './Interface/models/IConnector';
|
|
53
54
|
export * from './Interface/models/ICotation';
|
|
54
55
|
export * from './Interface/models/ICountry';
|
|
@@ -518,6 +519,9 @@ export * from './Interface/api/society/SocietyWithStatsCaParams';
|
|
|
518
519
|
export * from './Interface/api/society/QuerySociety';
|
|
519
520
|
export * from './Interface/api/society/QueryPaginatedSociety';
|
|
520
521
|
export * from './Interface/api/society/QueryPaginatedSocietyWithStatsCa';
|
|
522
|
+
export * from './Interface/api/society/QueryPaginatedSocietyWithFacturation';
|
|
523
|
+
export * from './Interface/api/billingHistory/QueryPaginatedBillingHistory';
|
|
524
|
+
export * from './Interface/api/facturation/CreateRebilling';
|
|
521
525
|
export * from './Interface/api/commercial/QueryGetStats';
|
|
522
526
|
export * from './Interface/api/commercial/QueryFetchDialogDatasInfosOk';
|
|
523
527
|
export * from './Interface/api/commercial/QueryMovePrestationsToNextMonth';
|