@silexpert/core 1.3.184-0 → 1.3.185-0
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/Card.d.ts +23 -1
- package/dist/cjs/api/resources/Card.d.ts.map +1 -1
- package/dist/cjs/api/resources/Card.js +36 -0
- package/dist/cjs/api/resources/Card.js.map +1 -1
- package/dist/cjs/api/resources/InternalInvoicing.d.ts.map +1 -1
- package/dist/cjs/api/resources/InternalInvoicing.js +0 -8
- package/dist/cjs/api/resources/InternalInvoicing.js.map +1 -1
- package/dist/cjs/api/resources/Shine.d.ts +2 -1
- package/dist/cjs/api/resources/Shine.d.ts.map +1 -1
- package/dist/cjs/api/resources/Shine.js +3 -0
- package/dist/cjs/api/resources/Shine.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/AdjustmentType.js +4 -4
- package/dist/cjs/types/Enum/AdjustmentType.js.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js +8 -8
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +7 -1
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +9 -1
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/EntityType.d.ts +2 -2
- package/dist/cjs/types/Enum/EntityType.js +2 -2
- package/dist/cjs/types/Enum/EntityType.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +482 -478
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Enum/Unit.d.ts +2 -1
- package/dist/cjs/types/Enum/Unit.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Unit.js +11 -0
- package/dist/cjs/types/Enum/Unit.js.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +17 -0
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +4 -1
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +6 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/Cron.d.ts +0 -3
- package/dist/cjs/types/Interface/api/card/Cron.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/Cron.js +1 -10
- package/dist/cjs/types/Interface/api/card/Cron.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/ModifyAcceptation.d.ts +9 -0
- package/dist/cjs/types/Interface/api/card/ModifyAcceptation.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/card/ModifyAcceptation.js +43 -0
- package/dist/cjs/types/Interface/api/card/ModifyAcceptation.js.map +1 -0
- package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.d.ts +25 -0
- package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.js +106 -0
- package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.js.map +1 -0
- package/dist/cjs/types/Interface/api/card/ModifyCustomerVat.d.ts +5 -0
- package/dist/cjs/types/Interface/api/card/ModifyCustomerVat.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/card/ModifyCustomerVat.js +29 -0
- package/dist/cjs/types/Interface/api/card/ModifyCustomerVat.js.map +1 -0
- package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts +18 -0
- package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/card/ModifyPlanning.js +79 -0
- package/dist/cjs/types/Interface/api/card/ModifyPlanning.js.map +1 -0
- package/dist/cjs/types/Interface/api/card/Query.d.ts +8 -0
- package/dist/cjs/types/Interface/api/card/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/card/Query.js +37 -0
- package/dist/cjs/types/Interface/api/card/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts +11 -0
- package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/QueryUserCards.js +44 -1
- package/dist/cjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +13 -0
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.js +58 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/cjs/types/Interface/api/shine/Query.d.ts +7 -0
- package/dist/cjs/types/Interface/api/shine/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/shine/{GetConnect.js → Query.js} +9 -2
- package/dist/cjs/types/Interface/api/shine/Query.js.map +1 -0
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts +3 -0
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts +19 -0
- package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICardHistory.d.ts +4 -0
- package/dist/cjs/types/Interface/models/ICardHistory.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICardHistory.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerVat.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerVat.js.map +1 -1
- package/dist/cjs/types/index.d.ts +6 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +6 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Card.d.ts +23 -1
- package/dist/mjs/api/resources/Card.d.ts.map +1 -1
- package/dist/mjs/api/resources/Card.js +45 -0
- package/dist/mjs/api/resources/Card.js.map +1 -1
- package/dist/mjs/api/resources/InternalInvoicing.d.ts.map +1 -1
- package/dist/mjs/api/resources/InternalInvoicing.js +0 -8
- package/dist/mjs/api/resources/InternalInvoicing.js.map +1 -1
- package/dist/mjs/api/resources/Shine.d.ts +2 -1
- package/dist/mjs/api/resources/Shine.d.ts.map +1 -1
- package/dist/mjs/api/resources/Shine.js +3 -0
- package/dist/mjs/api/resources/Shine.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/AdjustmentType.js +4 -4
- package/dist/mjs/types/Enum/AdjustmentType.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +8 -8
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +7 -1
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +9 -1
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/EntityType.d.ts +2 -2
- package/dist/mjs/types/Enum/EntityType.js +2 -2
- package/dist/mjs/types/Enum/EntityType.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +486 -474
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Enum/Unit.d.ts +2 -1
- package/dist/mjs/types/Enum/Unit.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Unit.js +11 -0
- package/dist/mjs/types/Enum/Unit.js.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +17 -0
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +7 -0
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +7 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/Cron.d.ts +0 -3
- package/dist/mjs/types/Interface/api/card/Cron.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/Cron.js +0 -8
- package/dist/mjs/types/Interface/api/card/Cron.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/ModifyAcceptation.d.ts +9 -0
- package/dist/mjs/types/Interface/api/card/ModifyAcceptation.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/card/ModifyAcceptation.js +42 -0
- package/dist/mjs/types/Interface/api/card/ModifyAcceptation.js.map +1 -0
- package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.d.ts +25 -0
- package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.js +115 -0
- package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.js.map +1 -0
- package/dist/mjs/types/Interface/api/card/ModifyCustomerVat.d.ts +5 -0
- package/dist/mjs/types/Interface/api/card/ModifyCustomerVat.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/card/ModifyCustomerVat.js +27 -0
- package/dist/mjs/types/Interface/api/card/ModifyCustomerVat.js.map +1 -0
- package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts +18 -0
- package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/card/ModifyPlanning.js +84 -0
- package/dist/mjs/types/Interface/api/card/ModifyPlanning.js.map +1 -0
- package/dist/mjs/types/Interface/api/card/Query.d.ts +8 -0
- package/dist/mjs/types/Interface/api/card/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/card/Query.js +34 -0
- package/dist/mjs/types/Interface/api/card/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts +11 -0
- package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/QueryUserCards.js +43 -1
- package/dist/mjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +13 -0
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.js +65 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/mjs/types/Interface/api/shine/Query.d.ts +7 -0
- package/dist/mjs/types/Interface/api/shine/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/shine/{GetConnect.js → Query.js} +8 -1
- package/dist/mjs/types/Interface/api/shine/Query.js.map +1 -0
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts +3 -0
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts +19 -0
- package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICardHistory.d.ts +4 -0
- package/dist/mjs/types/Interface/models/ICardHistory.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICardHistory.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerVat.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerVat.js.map +1 -1
- package/dist/mjs/types/index.d.ts +6 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +6 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Card.ts +61 -0
- package/ts/api/resources/InternalInvoicing.ts +0 -8
- package/ts/api/resources/Shine.ts +11 -1
- package/ts/api/resources/Society.ts +5 -0
- package/ts/types/Enum/AdjustmentType.ts +4 -4
- package/ts/types/Enum/BrandPourcentage.ts +8 -8
- package/ts/types/Enum/Card.ts +9 -1
- package/ts/types/Enum/EntityType.ts +2 -2
- package/ts/types/Enum/PriceGridClementine.ts +487 -474
- package/ts/types/Enum/Unit.ts +11 -0
- package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +18 -0
- package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +5 -0
- package/ts/types/Interface/api/card/Cron.ts +1 -8
- package/ts/types/Interface/api/card/ModifyAcceptation.ts +24 -0
- package/ts/types/Interface/api/card/ModifyBalanceSheet.ts +81 -0
- package/ts/types/Interface/api/card/ModifyCustomerVat.ts +13 -0
- package/ts/types/Interface/api/card/ModifyPlanning.ts +52 -0
- package/ts/types/Interface/api/card/Query.ts +19 -0
- package/ts/types/Interface/api/card/QueryUserCards.ts +36 -1
- package/ts/types/Interface/api/card/UpdateCard.ts +50 -2
- package/ts/types/Interface/api/shine/{GetConnect.ts → Query.ts} +5 -0
- package/ts/types/Interface/models/IBalanceSheet.ts +3 -0
- package/ts/types/Interface/models/ICard.ts +20 -0
- package/ts/types/Interface/models/ICardHistory.ts +4 -0
- package/ts/types/Interface/models/ICustomerVat.ts +1 -0
- package/ts/types/index.ts +6 -1
- package/dist/cjs/types/Interface/api/shine/GetConnect.d.ts +0 -4
- package/dist/cjs/types/Interface/api/shine/GetConnect.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/shine/GetConnect.js.map +0 -1
- package/dist/mjs/types/Interface/api/shine/GetConnect.d.ts +0 -4
- package/dist/mjs/types/Interface/api/shine/GetConnect.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/shine/GetConnect.js.map +0 -1
package/ts/types/Enum/Unit.ts
CHANGED
|
@@ -28,6 +28,7 @@ export enum UnitId {
|
|
|
28
28
|
TON = 19,
|
|
29
29
|
HECTARE = 20,
|
|
30
30
|
MINUTE = 21,
|
|
31
|
+
GRAM = 22,
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export type IUnitList = Array<{ name: string; id: number; shortName: string }>;
|
|
@@ -138,6 +139,11 @@ export const Unit: IUnit = {
|
|
|
138
139
|
name: 'Minute',
|
|
139
140
|
shortName: 'min',
|
|
140
141
|
},
|
|
142
|
+
GRAM: {
|
|
143
|
+
id: UnitId.GRAM,
|
|
144
|
+
name: 'Gramme',
|
|
145
|
+
shortName: 'g',
|
|
146
|
+
},
|
|
141
147
|
};
|
|
142
148
|
|
|
143
149
|
export const UnitList = [
|
|
@@ -246,4 +252,9 @@ export const UnitList = [
|
|
|
246
252
|
name: 'Minutre',
|
|
247
253
|
shortname: 'min',
|
|
248
254
|
},
|
|
255
|
+
{
|
|
256
|
+
id: UnitId.GRAM,
|
|
257
|
+
name: 'Gramme',
|
|
258
|
+
shortName: 'g',
|
|
259
|
+
},
|
|
249
260
|
];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Feature } from '../../../Enum/Feature';
|
|
2
|
+
import { PrestationTypeDetail } from '../../../Enum/PrestationType';
|
|
1
3
|
import { IUser } from '../../models/IUser';
|
|
2
4
|
|
|
3
5
|
export class ReadAuthenticateCollaborater {
|
|
@@ -16,3 +18,19 @@ export class ReadByExternalId {
|
|
|
16
18
|
idTypeBrand: number;
|
|
17
19
|
token: string;
|
|
18
20
|
}
|
|
21
|
+
|
|
22
|
+
export type ExerciceFeatures = {
|
|
23
|
+
id: number;
|
|
24
|
+
startDate: Date | string;
|
|
25
|
+
endDate: Date | string;
|
|
26
|
+
isDefault: boolean;
|
|
27
|
+
subscriptionType: PrestationTypeDetail;
|
|
28
|
+
features: Feature[];
|
|
29
|
+
};
|
|
30
|
+
export class ReadFeatureAccess {
|
|
31
|
+
isOwner: boolean;
|
|
32
|
+
/** @returns default features */
|
|
33
|
+
features: Feature[];
|
|
34
|
+
exercices: ExerciceFeatures[];
|
|
35
|
+
isInTrialPeriod: boolean;
|
|
36
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IsNumber, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class AssignAcceptationAutomaticly {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsNumber()
|
|
7
|
+
idTeam: number;
|
|
8
|
+
|
|
9
|
+
@ApiPropertyOptional()
|
|
10
|
+
@IsOptional()
|
|
11
|
+
@IsNumber()
|
|
12
|
+
idSociety?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class AssignAcceptationNewClientAutomatically {
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
@IsNumber()
|
|
18
|
+
idUser: number;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional()
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsNumber()
|
|
23
|
+
idSociety?: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { IsArray, IsBoolean, IsDate, IsEnum, IsInt, IsNumber, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { ComptaType } from '../../../Enum/ComptaType';
|
|
4
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
5
|
+
import { CardType } from '../../../Enum/Card';
|
|
6
|
+
import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
|
|
7
|
+
|
|
8
|
+
export interface OrganizeBalanceSheetsResponse {
|
|
9
|
+
plannedCardsCount: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class OrganizeBalanceSheets {
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsNumber()
|
|
16
|
+
idTeam?: number;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsArray()
|
|
21
|
+
@IsInt({ each: true })
|
|
22
|
+
idAccountants?: number[];
|
|
23
|
+
|
|
24
|
+
@ApiProperty()
|
|
25
|
+
@IsArray()
|
|
26
|
+
@IsEnum(CardType, { each: true })
|
|
27
|
+
cardType: CardType[];
|
|
28
|
+
|
|
29
|
+
@ApiProperty()
|
|
30
|
+
@IsDate()
|
|
31
|
+
exerciceMonthDate: Date;
|
|
32
|
+
|
|
33
|
+
@ApiProperty()
|
|
34
|
+
@IsEnum(ComptaType)
|
|
35
|
+
idComptaType: ComptaType;
|
|
36
|
+
|
|
37
|
+
@ApiProperty()
|
|
38
|
+
@IsArray()
|
|
39
|
+
@IsEnum(LegalFormTypeEnum, { each: true })
|
|
40
|
+
legalForms: LegalFormTypeEnum[];
|
|
41
|
+
|
|
42
|
+
@ApiProperty()
|
|
43
|
+
@IsBoolean()
|
|
44
|
+
@ToBoolean()
|
|
45
|
+
soldeIsOk: boolean;
|
|
46
|
+
|
|
47
|
+
@ApiProperty()
|
|
48
|
+
@IsBoolean()
|
|
49
|
+
@ToBoolean()
|
|
50
|
+
withSocial: boolean;
|
|
51
|
+
|
|
52
|
+
@ApiProperty()
|
|
53
|
+
@IsDate()
|
|
54
|
+
assignDateStart: Date;
|
|
55
|
+
|
|
56
|
+
@ApiPropertyOptional()
|
|
57
|
+
@IsOptional()
|
|
58
|
+
@IsDate()
|
|
59
|
+
assignDateEnd?: Date;
|
|
60
|
+
|
|
61
|
+
@ApiPropertyOptional()
|
|
62
|
+
@IsOptional()
|
|
63
|
+
@IsNumber()
|
|
64
|
+
nbCardByDay?: number;
|
|
65
|
+
|
|
66
|
+
@ApiPropertyOptional()
|
|
67
|
+
@IsOptional()
|
|
68
|
+
@IsNumber()
|
|
69
|
+
idSociety?: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export class AssignBalanceSheet {
|
|
73
|
+
@ApiProperty()
|
|
74
|
+
@IsNumber()
|
|
75
|
+
idTeam: number;
|
|
76
|
+
|
|
77
|
+
@ApiPropertyOptional()
|
|
78
|
+
@IsOptional()
|
|
79
|
+
@IsNumber()
|
|
80
|
+
idSociety?: number;
|
|
81
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsNumber, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class assignCustomerVatAutomatically {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsNumber()
|
|
7
|
+
idUser: number;
|
|
8
|
+
|
|
9
|
+
@ApiPropertyOptional()
|
|
10
|
+
@IsOptional()
|
|
11
|
+
@IsNumber()
|
|
12
|
+
idSociety?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IsDate, IsInt } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class ModifyTeamPlanning {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsInt()
|
|
7
|
+
idUserMissing: number;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsInt({ each: true })
|
|
11
|
+
idUsers: number[];
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
@IsDate()
|
|
15
|
+
startDate: Date;
|
|
16
|
+
|
|
17
|
+
@ApiProperty()
|
|
18
|
+
@IsDate()
|
|
19
|
+
endDate: Date;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class ModifyExercisePlanning {
|
|
23
|
+
@ApiProperty()
|
|
24
|
+
@IsDate()
|
|
25
|
+
exerciseClosingDate: Date;
|
|
26
|
+
|
|
27
|
+
@ApiProperty()
|
|
28
|
+
@IsDate()
|
|
29
|
+
startDate: Date;
|
|
30
|
+
|
|
31
|
+
@ApiProperty()
|
|
32
|
+
@IsDate()
|
|
33
|
+
endDate: Date;
|
|
34
|
+
|
|
35
|
+
@ApiProperty()
|
|
36
|
+
@IsInt({ each: true })
|
|
37
|
+
idUsers: number[];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class AutomaticallyAssignTeamPlanning {
|
|
41
|
+
@ApiProperty()
|
|
42
|
+
@IsInt()
|
|
43
|
+
idTeam: number;
|
|
44
|
+
|
|
45
|
+
@ApiProperty()
|
|
46
|
+
@IsDate()
|
|
47
|
+
startDate: Date;
|
|
48
|
+
|
|
49
|
+
@ApiProperty()
|
|
50
|
+
@IsDate()
|
|
51
|
+
endDate: Date;
|
|
52
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IsDate, IsInt, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryInternalCardsStats {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsInt()
|
|
7
|
+
idTeam: number;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsDate()
|
|
11
|
+
date: Date;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class QueryCronCards {
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsInt()
|
|
18
|
+
declare idSociety?: number;
|
|
19
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsArray, IsBoolean, IsDateString, IsInt, IsOptional, IsString, Min } from 'class-validator';
|
|
1
|
+
import { IsArray, IsBoolean, IsDate, IsDateString, IsEnum, IsInt, IsOptional, IsString, Min } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { CardType, CardState } from '../../../Enum/Card';
|
|
4
4
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
@@ -57,3 +57,38 @@ export class QueryUserCardsPaginated extends QueryUserCards {
|
|
|
57
57
|
@Min(1)
|
|
58
58
|
limit: number;
|
|
59
59
|
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated Use QueryUserCards instead
|
|
63
|
+
*/
|
|
64
|
+
export class QueryUserCardsAdmin {
|
|
65
|
+
@ApiPropertyOptional()
|
|
66
|
+
@IsOptional()
|
|
67
|
+
@IsInt()
|
|
68
|
+
declare idUser?: number;
|
|
69
|
+
|
|
70
|
+
@ApiPropertyOptional()
|
|
71
|
+
@IsOptional()
|
|
72
|
+
@IsDate()
|
|
73
|
+
declare startDate?: Date;
|
|
74
|
+
|
|
75
|
+
@ApiPropertyOptional()
|
|
76
|
+
@IsOptional()
|
|
77
|
+
@IsDate()
|
|
78
|
+
declare endDate?: Date;
|
|
79
|
+
|
|
80
|
+
@ApiPropertyOptional()
|
|
81
|
+
@IsOptional()
|
|
82
|
+
@IsString()
|
|
83
|
+
declare search?: string;
|
|
84
|
+
|
|
85
|
+
@ApiPropertyOptional()
|
|
86
|
+
@IsOptional()
|
|
87
|
+
@IsArray()
|
|
88
|
+
declare types?: CardType[];
|
|
89
|
+
|
|
90
|
+
@ApiPropertyOptional()
|
|
91
|
+
@IsOptional()
|
|
92
|
+
@IsEnum(CardState)
|
|
93
|
+
declare state?: CardState;
|
|
94
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { CardState, CardType, TransactionRangeFilter } from '../../../Enum/Card';
|
|
4
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
5
|
|
|
5
6
|
export class AssignCard {
|
|
6
7
|
@ApiProperty()
|
|
@@ -19,6 +20,10 @@ export class UpdateCardV2 {
|
|
|
19
20
|
@IsEnum(CardState)
|
|
20
21
|
state?: CardState;
|
|
21
22
|
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
plannedAt?: Date | null;
|
|
26
|
+
|
|
22
27
|
@ApiPropertyOptional()
|
|
23
28
|
@IsOptional()
|
|
24
29
|
@IsInt()
|
|
@@ -33,4 +38,47 @@ export class UpdateCardV2 {
|
|
|
33
38
|
@IsOptional()
|
|
34
39
|
@IsInt()
|
|
35
40
|
priority?: number;
|
|
36
|
-
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Use UpdateCardV2 instead
|
|
45
|
+
*/
|
|
46
|
+
export class UpdateCard {
|
|
47
|
+
@ApiPropertyOptional()
|
|
48
|
+
@IsOptional()
|
|
49
|
+
@IsInt()
|
|
50
|
+
@IsEnum(CardType)
|
|
51
|
+
type?: CardType;
|
|
52
|
+
|
|
53
|
+
@ApiPropertyOptional()
|
|
54
|
+
@IsOptional()
|
|
55
|
+
@IsBoolean()
|
|
56
|
+
isManual?: boolean;
|
|
57
|
+
|
|
58
|
+
@ApiPropertyOptional()
|
|
59
|
+
@IsOptional()
|
|
60
|
+
@IsBoolean()
|
|
61
|
+
@ToBoolean()
|
|
62
|
+
isBlocked?: boolean;
|
|
63
|
+
|
|
64
|
+
@ApiPropertyOptional()
|
|
65
|
+
@IsOptional()
|
|
66
|
+
@IsInt()
|
|
67
|
+
@IsEnum(CardState)
|
|
68
|
+
state?: CardState;
|
|
69
|
+
|
|
70
|
+
@ApiPropertyOptional()
|
|
71
|
+
@IsOptional()
|
|
72
|
+
@IsDate()
|
|
73
|
+
plannedAt?: Date | null;
|
|
74
|
+
|
|
75
|
+
@ApiPropertyOptional()
|
|
76
|
+
@IsOptional()
|
|
77
|
+
@IsInt()
|
|
78
|
+
idUser?: number;
|
|
79
|
+
|
|
80
|
+
@ApiPropertyOptional()
|
|
81
|
+
@IsOptional()
|
|
82
|
+
@IsString()
|
|
83
|
+
comment?: string;
|
|
84
|
+
}
|
|
@@ -4,6 +4,7 @@ import { ISupervision } from './ISupervision';
|
|
|
4
4
|
import { IPrestation } from './IPrestation';
|
|
5
5
|
import { IGedFile } from './IGedFile';
|
|
6
6
|
import { IFile } from './IFile';
|
|
7
|
+
import { ICard } from './ICard';
|
|
7
8
|
import { IBalanceSheetHistory } from './IBalanceSheetHistory';
|
|
8
9
|
import { IAdditionalBalance } from './IAdditionalBalance';
|
|
9
10
|
|
|
@@ -23,6 +24,7 @@ export interface IBalanceSheet {
|
|
|
23
24
|
bankCollectingState?: number;
|
|
24
25
|
idExercice?: number;
|
|
25
26
|
idCalendarEvent?: number;
|
|
27
|
+
idCard?: number;
|
|
26
28
|
createdAt?: Date;
|
|
27
29
|
updatedAt?: Date;
|
|
28
30
|
|
|
@@ -33,6 +35,7 @@ export interface IBalanceSheet {
|
|
|
33
35
|
prestations?: IPrestation[];
|
|
34
36
|
gedFiles?: IGedFile[];
|
|
35
37
|
file?: IFile;
|
|
38
|
+
card?: ICard;
|
|
36
39
|
balanceSheetHistories?: IBalanceSheetHistory[];
|
|
37
40
|
additionalBalance?: IAdditionalBalance;
|
|
38
41
|
}
|
|
@@ -6,6 +6,7 @@ import { ICalendarEvent } from './ICalendarEvent';
|
|
|
6
6
|
import { ICustomerVat } from './ICustomerVat';
|
|
7
7
|
import { ICardHistory } from './ICardHistory';
|
|
8
8
|
import { IComment } from './IComment';
|
|
9
|
+
import { ITeam } from './ITeam';
|
|
9
10
|
import { IChecklist } from './IChecklist';
|
|
10
11
|
import { ICustomerIsRegime } from './ICustomerIsRegime';
|
|
11
12
|
import { IExercice } from './IExercice';
|
|
@@ -14,8 +15,12 @@ export interface ICard {
|
|
|
14
15
|
id?: number;
|
|
15
16
|
type: CardType;
|
|
16
17
|
state: CardState;
|
|
18
|
+
isManual: boolean;
|
|
19
|
+
isBlocked: boolean;
|
|
17
20
|
priority?: number | null;
|
|
21
|
+
plannedAt?: Date | null;
|
|
18
22
|
idUser?: number | null;
|
|
23
|
+
idTeam?: number | null;
|
|
19
24
|
idSociety: number;
|
|
20
25
|
idBalanceSheet?: number | null;
|
|
21
26
|
idCustomerVat?: number | null;
|
|
@@ -28,13 +33,28 @@ export interface ICard {
|
|
|
28
33
|
|
|
29
34
|
// Associations
|
|
30
35
|
user?: IUser;
|
|
36
|
+
team?: ITeam;
|
|
31
37
|
society?: ISociety;
|
|
32
38
|
balancesheet?: IBalanceSheet;
|
|
33
39
|
vat?: ICustomerVat;
|
|
34
40
|
customerIsRegime?: ICustomerIsRegime;
|
|
35
41
|
checklist?: IChecklist;
|
|
36
42
|
exercice?: IExercice;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated old relationship with balance sheet
|
|
45
|
+
*/
|
|
46
|
+
balanceSheet?: IBalanceSheet;
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated old relationship with customer vat
|
|
49
|
+
*/
|
|
50
|
+
customerVat?: ICustomerVat;
|
|
37
51
|
events?: ICalendarEvent[];
|
|
38
52
|
history?: ICardHistory[];
|
|
39
53
|
comment?: IComment;
|
|
40
54
|
}
|
|
55
|
+
|
|
56
|
+
export interface CardAnnotedTransaction {
|
|
57
|
+
total: number;
|
|
58
|
+
nbAnnoted: number;
|
|
59
|
+
rate: number;
|
|
60
|
+
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { CardState } from '../../Enum/Card';
|
|
2
2
|
import { IUser } from './IUser';
|
|
3
3
|
import { ICard } from './ICard';
|
|
4
|
+
import { ITeam } from './ITeam';
|
|
4
5
|
|
|
5
6
|
export interface ICardHistory {
|
|
6
7
|
id?: number;
|
|
7
8
|
state: CardState;
|
|
9
|
+
plannedAt: Date;
|
|
8
10
|
idUserWhoChanged: number;
|
|
9
11
|
idUserOrigin?: number;
|
|
12
|
+
idTeamOrigin?: number;
|
|
10
13
|
idCard: number;
|
|
11
14
|
createdAt?: Date;
|
|
12
15
|
updatedAt?: Date;
|
|
@@ -14,5 +17,6 @@ export interface ICardHistory {
|
|
|
14
17
|
// Associations
|
|
15
18
|
userWhoChanged?: Partial<IUser>;
|
|
16
19
|
userOrigin?: Partial<IUser>;
|
|
20
|
+
teamOrigin?: Partial<ITeam>;
|
|
17
21
|
card?: ICard;
|
|
18
22
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -841,7 +841,7 @@ export * from './Interface/api/supervision/Read';
|
|
|
841
841
|
export * from './Interface/api/salariesFile/ReadSalariesFile';
|
|
842
842
|
export * from './Interface/api/salariesFile/CreateSalariesFile';
|
|
843
843
|
export * from './Interface/api/shine/CreateShine';
|
|
844
|
-
export * from './Interface/api/shine/
|
|
844
|
+
export * from './Interface/api/shine/Query';
|
|
845
845
|
export * from './Interface/api/shine/CreateShineAccount';
|
|
846
846
|
export * from './Interface/api/shine/CreateShineTransactions';
|
|
847
847
|
export * from './Interface/api/shine/ConnectResponse';
|
|
@@ -1074,7 +1074,9 @@ export * from './Interface/api/vatControl/QueryVatControl';
|
|
|
1074
1074
|
export * from './Interface/api/terminationList/QueryPaginateTerminationList';
|
|
1075
1075
|
export * from './Interface/api/card/QueryUserCards';
|
|
1076
1076
|
export * from './Interface/api/card/QueryUserCardsStats';
|
|
1077
|
+
export * from './Interface/api/card/Query';
|
|
1077
1078
|
export * from './Interface/api/card/UpdateCard';
|
|
1079
|
+
export * from './Interface/api/card/ModifyPlanning';
|
|
1078
1080
|
export * from './Interface/api/notion/NotionResponse';
|
|
1079
1081
|
export * from './Interface/api/IntermediateManagementRebate';
|
|
1080
1082
|
export * from './Interface/api/equipment/Query';
|
|
@@ -1128,6 +1130,9 @@ export * from './Interface/api/previsionalForm/CreatePrevisionalForm';
|
|
|
1128
1130
|
export * from './Interface/api/toDoExpress/Query';
|
|
1129
1131
|
export * from './Interface/api/toDoExpress/Read';
|
|
1130
1132
|
export * from './Interface/api/config/ConfigType';
|
|
1133
|
+
export * from './Interface/api/card/ModifyBalanceSheet';
|
|
1134
|
+
export * from './Interface/api/card/ModifyAcceptation';
|
|
1135
|
+
export * from './Interface/api/card/ModifyCustomerVat';
|
|
1131
1136
|
export * from './Interface/api/card/Cron';
|
|
1132
1137
|
export * from './Interface/api/user/RegisterProspect';
|
|
1133
1138
|
export * from './Interface/api/user/RegisterWebhook';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetConnect.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/GetConnect.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IAErB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetConnect.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/GetConnect.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgD;AAEhD,MAAa,UAAU;CAGtB;AAHD,gCAGC;AADC;IADC,IAAA,mBAAW,GAAE;;wCACD","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class GetConnect {\n @ApiProperty()\n code: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetConnect.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/GetConnect.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IAErB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetConnect.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/GetConnect.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,UAAU;IAErB,IAAI,CAAS;CACd;AADC;IADC,WAAW,EAAE;;wCACD","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class GetConnect {\n @ApiProperty()\n code: string;\n}\n"]}
|