@silexpert/core 1.2.64 → 1.2.66
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/Commercial.d.ts +2 -1
- package/dist/cjs/api/resources/Commercial.d.ts.map +1 -1
- package/dist/cjs/api/resources/Commercial.js +3 -0
- package/dist/cjs/api/resources/Commercial.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercial/Query.d.ts +5 -0
- package/dist/cjs/types/Interface/api/commercial/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/commercial/Query.js +30 -0
- package/dist/cjs/types/Interface/api/commercial/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +7 -2
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +20 -10
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/jeDeclare/Util.d.ts +2 -0
- package/dist/cjs/types/Interface/api/jeDeclare/Util.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/jeDeclare/Util.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/QueryReports.d.ts +1 -0
- package/dist/cjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/QueryReports.js +9 -0
- package/dist/cjs/types/Interface/api/report/QueryReports.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +1 -0
- package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.js +6 -0
- package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts +4 -0
- package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyGescom.js.map +1 -1
- 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/mjs/api/resources/Commercial.d.ts +2 -1
- package/dist/mjs/api/resources/Commercial.d.ts.map +1 -1
- package/dist/mjs/api/resources/Commercial.js +6 -0
- package/dist/mjs/api/resources/Commercial.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercial/Query.d.ts +5 -0
- package/dist/mjs/types/Interface/api/commercial/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/commercial/Query.js +28 -0
- package/dist/mjs/types/Interface/api/commercial/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +7 -2
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +22 -10
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/jeDeclare/Util.d.ts +2 -0
- package/dist/mjs/types/Interface/api/jeDeclare/Util.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/jeDeclare/Util.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/QueryReports.d.ts +1 -0
- package/dist/mjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/QueryReports.js +10 -0
- package/dist/mjs/types/Interface/api/report/QueryReports.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +1 -0
- package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.js +7 -0
- package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts +4 -0
- package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyGescom.js.map +1 -1
- 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/package.json +1 -1
- package/ts/api/resources/Commercial.ts +7 -0
- package/ts/types/Interface/api/commercial/Query.ts +14 -0
- package/ts/types/Interface/api/commercialManagement/Create.ts +20 -10
- package/ts/types/Interface/api/jeDeclare/Util.ts +2 -0
- package/ts/types/Interface/api/report/QueryReports.ts +8 -0
- package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +5 -0
- package/ts/types/Interface/models/ISocietyGescom.ts +4 -0
- package/ts/types/index.ts +1 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { IsDate, IsOptional } from 'class-validator';
|
|
11
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
|
+
export class QueryGetLeadByUser {
|
|
13
|
+
startDate;
|
|
14
|
+
endDate;
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
ApiPropertyOptional(),
|
|
18
|
+
IsOptional(),
|
|
19
|
+
IsDate(),
|
|
20
|
+
__metadata("design:type", Date)
|
|
21
|
+
], QueryGetLeadByUser.prototype, "startDate", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
ApiPropertyOptional(),
|
|
24
|
+
IsOptional(),
|
|
25
|
+
IsDate(),
|
|
26
|
+
__metadata("design:type", Date)
|
|
27
|
+
], QueryGetLeadByUser.prototype, "endDate", void 0);
|
|
28
|
+
//# sourceMappingURL=Query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercial/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,OAAO,kBAAkB;IAI7B,SAAS,CAAQ;IAKjB,OAAO,CAAQ;CAChB;AANC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,EAAE;8BACG,IAAI;qDAAC;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,EAAE;8BACC,IAAI;mDAAC","sourcesContent":["import { IsDate, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryGetLeadByUser {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n endDate?: Date;\n}\n"]}
|
|
@@ -60,9 +60,11 @@ export declare class CreateCommercialSetting {
|
|
|
60
60
|
externalBorderThickness?: number;
|
|
61
61
|
externalBorderType?: string;
|
|
62
62
|
externalBorderColor?: string;
|
|
63
|
+
reminderCustomizedDayDiff?: number | null;
|
|
63
64
|
idRibFile?: number | null;
|
|
64
65
|
idSignatureFile?: number | null;
|
|
65
66
|
idGeneralConditionOfSale?: number | null;
|
|
67
|
+
idReminderSaleEmail?: number | null;
|
|
66
68
|
logoUrl?: string;
|
|
67
69
|
paymentType?: string;
|
|
68
70
|
bonPour?: boolean;
|
|
@@ -134,7 +136,7 @@ export declare class CreateInvoiceDocument extends CommercialDocumentInputs {
|
|
|
134
136
|
assetMarginVatIds?: number[];
|
|
135
137
|
advanceProducts?: ReadProductEditing[];
|
|
136
138
|
language?: InvoiceLanguage;
|
|
137
|
-
reminder?:
|
|
139
|
+
reminder?: CreateReminderForTemplate | null;
|
|
138
140
|
recurrence?: CreateRecurrence | null;
|
|
139
141
|
}
|
|
140
142
|
export declare class CreateCgv {
|
|
@@ -150,9 +152,12 @@ export declare class CreateReminder {
|
|
|
150
152
|
subject?: string;
|
|
151
153
|
message?: string;
|
|
152
154
|
customizedDate?: Date;
|
|
153
|
-
customizedDayDiff?: number;
|
|
154
155
|
idFiles?: number[];
|
|
155
156
|
}
|
|
157
|
+
export declare class CreateReminderForTemplate extends CreateReminder {
|
|
158
|
+
idSaleEmail?: number | null;
|
|
159
|
+
customizedDayDiff?: number | null;
|
|
160
|
+
}
|
|
156
161
|
export declare class CreateRecurrence {
|
|
157
162
|
type: number;
|
|
158
163
|
startDate: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":"AAcA,OAAO,
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":"AAcA,OAAO,EAAkB,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGrE,OAAO,EACL,oBAAoB,EAEpB,OAAO,EACP,eAAe,EACf,aAAa,EACd,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CA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,EAAE,eAAe,CAAC;IAI1B,IAAI,EAAE,MAAM,CAAC;IAIb,QAAQ,EAAE,qBAAqB,GAAG,qBAAqB,CAAC;IAIxD,qBAAqB,EAAE,mBAAmB,CAAC;IAK3C,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,0BAA0B;IAIrC,QAAQ,CAAC,EAAE,eAAe,CAAC;IAK3B,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,QAAQ,CAAC,EAAE,qBAAqB,GAAG,qBAAqB,CAAC;IAKzD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAM/B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -8,6 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsArray, IsBoolean, IsDate, IsDateString, IsEnum, IsIn, IsInt, IsNumber, IsObject, IsOptional, IsString, Min, } from 'class-validator';
|
|
11
|
+
import { BorderLineType } from '../../..';
|
|
11
12
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
13
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
13
14
|
import { AccountingCategoryId, EmailType, InvoiceLanguage, } from '../../../Enum/CommercialManagement';
|
|
@@ -66,9 +67,11 @@ export class CreateCommercialSetting {
|
|
|
66
67
|
externalBorderThickness;
|
|
67
68
|
externalBorderType;
|
|
68
69
|
externalBorderColor;
|
|
70
|
+
reminderCustomizedDayDiff;
|
|
69
71
|
idRibFile;
|
|
70
72
|
idSignatureFile;
|
|
71
73
|
idGeneralConditionOfSale;
|
|
74
|
+
idReminderSaleEmail;
|
|
72
75
|
logoUrl;
|
|
73
76
|
paymentType;
|
|
74
77
|
bonPour;
|
|
@@ -357,7 +360,7 @@ __decorate([
|
|
|
357
360
|
__decorate([
|
|
358
361
|
ApiPropertyOptional(),
|
|
359
362
|
IsOptional(),
|
|
360
|
-
|
|
363
|
+
IsEnum(BorderLineType),
|
|
361
364
|
__metadata("design:type", String)
|
|
362
365
|
], CreateCommercialSetting.prototype, "lineSeparationType", void 0);
|
|
363
366
|
__decorate([
|
|
@@ -375,7 +378,7 @@ __decorate([
|
|
|
375
378
|
__decorate([
|
|
376
379
|
ApiPropertyOptional(),
|
|
377
380
|
IsOptional(),
|
|
378
|
-
|
|
381
|
+
IsEnum(BorderLineType),
|
|
379
382
|
__metadata("design:type", String)
|
|
380
383
|
], CreateCommercialSetting.prototype, "columnSeparationType", void 0);
|
|
381
384
|
__decorate([
|
|
@@ -393,7 +396,7 @@ __decorate([
|
|
|
393
396
|
__decorate([
|
|
394
397
|
ApiPropertyOptional(),
|
|
395
398
|
IsOptional(),
|
|
396
|
-
|
|
399
|
+
IsEnum(BorderLineType),
|
|
397
400
|
__metadata("design:type", String)
|
|
398
401
|
], CreateCommercialSetting.prototype, "externalBorderType", void 0);
|
|
399
402
|
__decorate([
|
|
@@ -402,6 +405,12 @@ __decorate([
|
|
|
402
405
|
IsString(),
|
|
403
406
|
__metadata("design:type", String)
|
|
404
407
|
], CreateCommercialSetting.prototype, "externalBorderColor", void 0);
|
|
408
|
+
__decorate([
|
|
409
|
+
ApiPropertyOptional(),
|
|
410
|
+
IsOptional(),
|
|
411
|
+
IsNumber(),
|
|
412
|
+
__metadata("design:type", Object)
|
|
413
|
+
], CreateCommercialSetting.prototype, "reminderCustomizedDayDiff", void 0);
|
|
405
414
|
__decorate([
|
|
406
415
|
ApiPropertyOptional(),
|
|
407
416
|
IsOptional(),
|
|
@@ -420,6 +429,12 @@ __decorate([
|
|
|
420
429
|
IsInt(),
|
|
421
430
|
__metadata("design:type", Object)
|
|
422
431
|
], CreateCommercialSetting.prototype, "idGeneralConditionOfSale", void 0);
|
|
432
|
+
__decorate([
|
|
433
|
+
ApiPropertyOptional(),
|
|
434
|
+
IsOptional(),
|
|
435
|
+
IsInt(),
|
|
436
|
+
__metadata("design:type", Object)
|
|
437
|
+
], CreateCommercialSetting.prototype, "idReminderSaleEmail", void 0);
|
|
423
438
|
__decorate([
|
|
424
439
|
ApiPropertyOptional(),
|
|
425
440
|
IsOptional(),
|
|
@@ -731,7 +746,6 @@ export class CreateReminder {
|
|
|
731
746
|
subject;
|
|
732
747
|
message;
|
|
733
748
|
customizedDate;
|
|
734
|
-
customizedDayDiff;
|
|
735
749
|
idFiles;
|
|
736
750
|
}
|
|
737
751
|
__decorate([
|
|
@@ -787,18 +801,16 @@ __decorate([
|
|
|
787
801
|
IsOptional(),
|
|
788
802
|
__metadata("design:type", Date)
|
|
789
803
|
], CreateReminder.prototype, "customizedDate", void 0);
|
|
790
|
-
__decorate([
|
|
791
|
-
ApiPropertyOptional(),
|
|
792
|
-
IsNumber(),
|
|
793
|
-
IsOptional(),
|
|
794
|
-
__metadata("design:type", Number)
|
|
795
|
-
], CreateReminder.prototype, "customizedDayDiff", void 0);
|
|
796
804
|
__decorate([
|
|
797
805
|
ApiPropertyOptional(),
|
|
798
806
|
IsArray(),
|
|
799
807
|
IsInt({ each: true }),
|
|
800
808
|
__metadata("design:type", Array)
|
|
801
809
|
], CreateReminder.prototype, "idFiles", void 0);
|
|
810
|
+
export class CreateReminderForTemplate extends CreateReminder {
|
|
811
|
+
idSaleEmail;
|
|
812
|
+
customizedDayDiff;
|
|
813
|
+
}
|
|
802
814
|
export class CreateRecurrence {
|
|
803
815
|
type;
|
|
804
816
|
startDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EACP,SAAS,EACT,MAAM,EACN,YAAY,EACZ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,GAAG,GACJ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,WAAW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;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;6DACO;AAGrB,MAAM,OAAO,0BAA0B;IAIrC,QAAQ,CAAmB;IAK3B,IAAI,CAAU;IAKd,QAAQ,CAAiD;IAKzD,qBAAqB,CAAU;IAM/B,SAAS,CAAW;CACrB;AAtBC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;;4DACV;AAK3B;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;wDACG;AAKd;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;4DAC8C;AAKzD;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,mBAAmB,CAAC;;yEACG;AAM/B;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;6DACQ","sourcesContent":["import {\n IsArray,\n IsBoolean,\n IsDate,\n IsDateString,\n IsEnum,\n IsIn,\n IsInt,\n IsNumber,\n IsObject,\n IsOptional,\n IsString,\n Min,\n} from 'class-validator';\nimport { IFile, ReadProductEditing } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport {\n AccountingCategoryId,\n EmailType,\n FontIds,\n InvoiceLanguage,\n LogoAlignment,\n} from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n dayOfValidity?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fontColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areExternalBordersHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n accountingCategory?: AccountingCategoryId;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideEmailHeader?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideBrandName?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n customerBlockBorderThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n customerBlockBorderColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n lineSeparationThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n lineSeparationType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n lineSeparationColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n columnSeparationThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n columnSeparationType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n columnSeparationColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n externalBorderThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n externalBorderType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n externalBorderColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idRibFile?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSignatureFile?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idGeneralConditionOfSale?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoUrl?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n paymentType?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n bonPour?: boolean;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n\n @ApiProperty()\n @IsString()\n recaptcha: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(EmailType)\n type?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n addSignatureToMail?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldSaveToCustomTemplate?: boolean;\n}\n\nexport class CreateCommercialMailWithMultipleFiles extends CreateCommercialMail {\n idsFile: number[];\n}\n\nexport class CommercialDocumentInputs {\n @ApiProperty()\n legalForm: string | null;\n\n @ApiProperty()\n capital: number | null;\n\n @ApiProperty()\n siren: string | null;\n\n @ApiProperty()\n rcs: string | null;\n\n @ApiProperty()\n vatCode: string | null;\n\n @ApiProperty()\n nafCode: string | null;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n thirdParty: IThirdParty;\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string;\n\n @ApiProperty()\n @IsDateString()\n dueDate: string;\n\n @ApiProperty({ description: \"Date d'expiration pour la facture d'acompte\" })\n expirationDate: string | null;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n termsOfPayment: string | null;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n discount: string | null;\n\n @ApiProperty()\n comment: string | null;\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null;\n\n @ApiPropertyOptional({ description: 'Remise globale' })\n generalDiscount2: number | null;\n\n @ApiProperty({ description: 'Indemnité forfaitaire' })\n compensation: string | null;\n\n @ApiProperty()\n vatMention: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiProperty()\n title: string | null;\n\n @ApiProperty({ description: 'Commercial name of seller' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Commercial number address of seller' })\n number?: string | null;\n\n @ApiProperty({ description: 'Commercial street address of seller' })\n street: string | null;\n\n @ApiProperty({ description: 'Commercial zip code address of seller' })\n zipCode: string | null;\n\n @ApiProperty({ description: 'Commercial city address of seller' })\n city: string | null;\n\n @ApiProperty()\n settings: ISocietyGescom;\n\n @ApiProperty()\n cgv: string | null;\n\n @ApiProperty()\n logoUrl: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDraft: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n accountingCategory: AccountingCategoryId;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional({ description: 'Moyen de paiement' })\n paymentType?: string | null;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n advanceProducts?: [];\n language?: InvoiceLanguage;\n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n advanceProducts?: ReadProductEditing[]; // Laisser vide côté front, utilisé pour l'affichage des bases TVA sur les acomptes\n language?: InvoiceLanguage;\n reminder?: CreateReminder | null;\n recurrence?: CreateRecurrence | null;\n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n withSignature: boolean;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n customizedDate?: Date;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n customizedDayDiff?: number;\n\n @ApiPropertyOptional()\n @IsArray()\n @IsInt({ each: true })\n idFiles?: number[];\n}\n\nexport class CreateRecurrence {\n @ApiProperty()\n @IsEnum(RecurrenceType)\n type: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n isActive: boolean;\n}\n\nexport class CreateRegenerateDocument {\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n @IsString()\n title: string;\n}\n\nexport type CreateMailHeader = {\n payload: {\n reference: string;\n dueDate: Date | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n file?: IFile;\n language: InvoiceLanguage;\n };\n logoUrl: string | null;\n companyName: string;\n fileUrl: string | null;\n hostS3: string;\n hasVat: boolean;\n};\n\nexport class CreateSaleEmail {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n\n @ApiProperty()\n @IsEnum(EmailType)\n type: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDefault?: boolean;\n}\n\nexport class UpdateSaleEmail {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n name?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n content?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(EmailType)\n type?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDefault?: boolean;\n}\n\nexport class CreateGeneralConditionOfSale {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDefault: boolean;\n}\n\nexport class UpdateGeneralConditionOfSale {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n name?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n content?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDefault?: boolean;\n}\n\nexport class CreateSaleDocumentTemplate {\n @ApiProperty()\n @IsIn(Object.values(InvoiceLanguage))\n language: InvoiceLanguage;\n\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsObject()\n template: CreateInvoiceDocument | CreatePreSaleDocument;\n\n @ApiProperty()\n @IsEnum(EstimateInvoiceType)\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDefault: boolean;\n}\n\nexport class UpdateSaleDocumentTemplate {\n @ApiPropertyOptional()\n @IsOptional()\n @IsIn(Object.values(InvoiceLanguage))\n language?: InvoiceLanguage;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n name?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n template?: CreateInvoiceDocument | CreatePreSaleDocument;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(EstimateInvoiceType)\n idEstimateInvoiceType?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDefault?: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":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n} from 'class-validator';\nimport { BorderLineType, IFile, ReadProductEditing } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport {\n AccountingCategoryId,\n EmailType,\n FontIds,\n InvoiceLanguage,\n LogoAlignment,\n} from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n dayOfValidity?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fontColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areExternalBordersHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n accountingCategory?: AccountingCategoryId;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideEmailHeader?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideBrandName?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n customerBlockBorderThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n customerBlockBorderColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n lineSeparationThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(BorderLineType)\n lineSeparationType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n lineSeparationColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n columnSeparationThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(BorderLineType)\n columnSeparationType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n columnSeparationColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n externalBorderThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(BorderLineType)\n externalBorderType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n externalBorderColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n reminderCustomizedDayDiff?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idRibFile?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSignatureFile?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idGeneralConditionOfSale?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idReminderSaleEmail?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoUrl?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n paymentType?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n bonPour?: boolean;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n\n @ApiProperty()\n @IsString()\n recaptcha: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(EmailType)\n type?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n addSignatureToMail?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldSaveToCustomTemplate?: boolean;\n}\n\nexport class CreateCommercialMailWithMultipleFiles extends CreateCommercialMail {\n idsFile: number[];\n}\n\nexport class CommercialDocumentInputs {\n @ApiProperty()\n legalForm: string | null;\n\n @ApiProperty()\n capital: number | null;\n\n @ApiProperty()\n siren: string | null;\n\n @ApiProperty()\n rcs: string | null;\n\n @ApiProperty()\n vatCode: string | null;\n\n @ApiProperty()\n nafCode: string | null;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n thirdParty: IThirdParty;\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string;\n\n @ApiProperty()\n @IsDateString()\n dueDate: string;\n\n @ApiProperty({ description: \"Date d'expiration pour la facture d'acompte\" })\n expirationDate: string | null;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n termsOfPayment: string | null;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n discount: string | null;\n\n @ApiProperty()\n comment: string | null;\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null;\n\n @ApiPropertyOptional({ description: 'Remise globale' })\n generalDiscount2: number | null;\n\n @ApiProperty({ description: 'Indemnité forfaitaire' })\n compensation: string | null;\n\n @ApiProperty()\n vatMention: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiProperty()\n title: string | null;\n\n @ApiProperty({ description: 'Commercial name of seller' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Commercial number address of seller' })\n number?: string | null;\n\n @ApiProperty({ description: 'Commercial street address of seller' })\n street: string | null;\n\n @ApiProperty({ description: 'Commercial zip code address of seller' })\n zipCode: string | null;\n\n @ApiProperty({ description: 'Commercial city address of seller' })\n city: string | null;\n\n @ApiProperty()\n settings: ISocietyGescom;\n\n @ApiProperty()\n cgv: string | null;\n\n @ApiProperty()\n logoUrl: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDraft: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n accountingCategory: AccountingCategoryId;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional({ description: 'Moyen de paiement' })\n paymentType?: string | null;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n advanceProducts?: [];\n language?: InvoiceLanguage;\n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n advanceProducts?: ReadProductEditing[]; // Laisser vide côté front, utilisé pour l'affichage des bases TVA sur les acomptes\n language?: InvoiceLanguage;\n reminder?: CreateReminderForTemplate | null;\n recurrence?: CreateRecurrence | null;\n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n withSignature: boolean;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n customizedDate?: Date;\n\n @ApiPropertyOptional()\n @IsArray()\n @IsInt({ each: true })\n idFiles?: number[];\n}\n\nexport class CreateReminderForTemplate extends CreateReminder {\n idSaleEmail?: number | null;\n customizedDayDiff?: number | null;\n}\n\nexport class CreateRecurrence {\n @ApiProperty()\n @IsEnum(RecurrenceType)\n type: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n isActive: boolean;\n}\n\nexport class CreateRegenerateDocument {\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n @IsString()\n title: string;\n}\n\nexport type CreateMailHeader = {\n payload: {\n reference: string;\n dueDate: Date | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n file?: IFile;\n language: InvoiceLanguage;\n };\n logoUrl: string | null;\n companyName: string;\n fileUrl: string | null;\n hostS3: string;\n hasVat: boolean;\n};\n\nexport class CreateSaleEmail {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n\n @ApiProperty()\n @IsEnum(EmailType)\n type: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDefault?: boolean;\n}\n\nexport class UpdateSaleEmail {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n name?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n content?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(EmailType)\n type?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDefault?: boolean;\n}\n\nexport class CreateGeneralConditionOfSale {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDefault: boolean;\n}\n\nexport class UpdateGeneralConditionOfSale {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n name?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n content?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDefault?: boolean;\n}\n\nexport class CreateSaleDocumentTemplate {\n @ApiProperty()\n @IsIn(Object.values(InvoiceLanguage))\n language: InvoiceLanguage;\n\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsObject()\n template: CreateInvoiceDocument | CreatePreSaleDocument;\n\n @ApiProperty()\n @IsEnum(EstimateInvoiceType)\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDefault: boolean;\n}\n\nexport class UpdateSaleDocumentTemplate {\n @ApiPropertyOptional()\n @IsOptional()\n @IsIn(Object.values(InvoiceLanguage))\n language?: InvoiceLanguage;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n name?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n template?: CreateInvoiceDocument | CreatePreSaleDocument;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(EstimateInvoiceType)\n idEstimateInvoiceType?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDefault?: boolean;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Util.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/jeDeclare/Util.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,EAAE,CAAC;AAE9D,MAAM,MAAM,oBAAoB,GAAG;IAC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M,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Util.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/jeDeclare/Util.ts"],"names":[],"mappings":"","sourcesContent":["type WSDLJeDeClare = {\n url: string;\n};\n\nexport type AccessKeysJeDeclare = {\n login: string;\n password: string;\n editor: string;\n software: string;\n wsdl: WSDLJeDeClare;\n};\n\nexport type GetDocumentParams = {\n itemStatus: string;\n procedureType: string;\n listType: string;\n forceTestMode?: boolean;\n};\n\nexport type ListDocumentAvailability = DocumentAvailability[];\n\nexport type DocumentAvailability = {\n 'ns2:numero': string[];\n 'ns2:statut': string[];\n 'ns2:typeDePiece': string[];\n};\n\nexport type BankStatementCFONBStructure = {\n previous: { [key: string]: string | null } | null;\n transactions: LineStructure[];\n last: { [key: string]: string | null } | null;\n};\n\nexport type LineStructureUnknowProperty = { [key: string]: string | null } | null;\nexport type LineStructure = LineStructureUnknowProperty & {\n detail: { [key: string]: string | null } | null;\n};\n\nexport type AmountType = 'credit' | 'debit' | 'neutral' | 'unknown';\n\ntype UsableBankStatementTransaction = {\n dateValue?: string;\n id?: number;\n label: string | null;\n debit: number;\n credit: number;\n idCurrency: number | null;\n complementaryLabel: string | null;\n};\n\ntype BankStatementData = {\n balance: number;\n dateBalance: string;\n};\n\nexport type UsableBankStatement = {\n iban: string | null;\n previous: BankStatementData;\n next: BankStatementData;\n name: string | null;\n transactions: UsableBankStatementTransaction[];\n};\n\nexport type GetDocumentsParams = {\n itemStatus: string;\n procedureType: string;\n listType: string;\n forceTestMode?: boolean;\n accessName: string;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Util.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/jeDeclare/Util.ts"],"names":[],"mappings":"","sourcesContent":["type WSDLJeDeClare = {\n url: string;\n};\n\nexport type AccessKeysJeDeclare = {\n login: string;\n password: string;\n editor: string;\n software: string;\n wsdl: WSDLJeDeClare;\n};\n\nexport type GetDocumentParams = {\n itemStatus: string;\n procedureType: string;\n listType: string;\n forceTestMode?: boolean;\n};\n\nexport type ListDocumentAvailability = DocumentAvailability[];\n\nexport type DocumentAvailability = {\n 'ns2:numero': string[];\n 'ns2:statut': string[];\n 'ns2:typeDePiece': string[];\n};\n\nexport type BankStatementCFONBStructure = {\n previous: { [key: string]: string | null } | null;\n transactions: LineStructure[];\n last: { [key: string]: string | null } | null;\n};\n\nexport type LineStructureUnknowProperty = { [key: string]: string | null } | null;\nexport type LineStructure = LineStructureUnknowProperty & {\n detail: { [key: string]: string | null } | null;\n};\n\nexport type AmountType = 'credit' | 'debit' | 'neutral' | 'unknown';\n\ntype UsableBankStatementTransaction = {\n dateValue?: string;\n id?: number;\n label: string | null;\n debit: number;\n credit: number;\n idCurrency: number | null;\n complementaryLabel: string | null;\n};\n\ntype BankStatementData = {\n balance: number;\n dateBalance: string;\n};\n\nexport type UsableBankStatement = {\n iban: string | null;\n previous: BankStatementData;\n next: BankStatementData;\n name: string | null;\n transactions: UsableBankStatementTransaction[];\n};\n\nexport type GetDocumentsParams = {\n itemStatus: string;\n procedureType: string;\n listType: string;\n forceTestMode?: boolean;\n accessName: string;\n startDate: string;\n endDate: string;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryReports.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/QueryReports.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QueryReports.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/QueryReports.ts"],"names":[],"mappings":"AAIA,qBAAa,YAAY;IAEvB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,EAAE,CAAC,EAAE,MAAM,CAAC;IAGZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAM3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -7,7 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
+
import { IsBoolean, IsOptional } from 'class-validator';
|
|
10
11
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
11
13
|
export class QueryReports {
|
|
12
14
|
idReportType;
|
|
13
15
|
idSociety;
|
|
@@ -18,6 +20,7 @@ export class QueryReports {
|
|
|
18
20
|
year;
|
|
19
21
|
state;
|
|
20
22
|
idUser;
|
|
23
|
+
onlyClient;
|
|
21
24
|
}
|
|
22
25
|
__decorate([
|
|
23
26
|
ApiPropertyOptional(),
|
|
@@ -55,4 +58,11 @@ __decorate([
|
|
|
55
58
|
ApiPropertyOptional(),
|
|
56
59
|
__metadata("design:type", Object)
|
|
57
60
|
], QueryReports.prototype, "idUser", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
ApiPropertyOptional(),
|
|
63
|
+
IsOptional(),
|
|
64
|
+
IsBoolean(),
|
|
65
|
+
ToBoolean(),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], QueryReports.prototype, "onlyClient", void 0);
|
|
58
68
|
//# sourceMappingURL=QueryReports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryReports.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/QueryReports.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"QueryReports.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/QueryReports.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,YAAY;IAEvB,YAAY,CAAU;IAGtB,SAAS,CAAU;IAGnB,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,EAAE,CAAU;IAGZ,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,MAAM,CAAqB;IAM3B,UAAU,CAAW;CACtB;AA/BC;IADC,mBAAmB,EAAE;;kDACA;AAGtB;IADC,mBAAmB,EAAE;;+CACH;AAGnB;IADC,mBAAmB,EAAE;;+CACH;AAGnB;IADC,mBAAmB,EAAE;;wDACM;AAG5B;IADC,mBAAmB,EAAE;;wCACV;AAGZ;IADC,mBAAmB,EAAE;;4CACN;AAGhB;IADC,mBAAmB,EAAE;;0CACR;AAGd;IADC,mBAAmB,EAAE;;2CACP;AAGf;IADC,mBAAmB,EAAE;;4CACK;AAM3B;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;gDACS","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryReports {\n @ApiPropertyOptional()\n idReportType?: number;\n\n @ApiPropertyOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n idService?: number;\n\n @ApiPropertyOptional()\n idServiceConcerned?: number;\n\n @ApiPropertyOptional()\n id?: number;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n year?: number;\n\n @ApiPropertyOptional()\n state?: number;\n\n @ApiPropertyOptional()\n idUser?: number | number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n onlyClient?: boolean;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParamsGetAllCollaborators.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/ParamsGetAllCollaborators.ts"],"names":[],"mappings":"AAGA,qBAAa,yBAAyB;IAMpC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAKtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAKnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"ParamsGetAllCollaborators.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/ParamsGetAllCollaborators.ts"],"names":[],"mappings":"AAGA,qBAAa,yBAAyB;IAMpC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAKtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAKnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAKlB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAQpB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB"}
|
|
@@ -14,6 +14,7 @@ export class ParamsGetAllCollaborators {
|
|
|
14
14
|
search;
|
|
15
15
|
idRoles;
|
|
16
16
|
idUser;
|
|
17
|
+
idOffice;
|
|
17
18
|
include;
|
|
18
19
|
}
|
|
19
20
|
__decorate([
|
|
@@ -42,6 +43,12 @@ __decorate([
|
|
|
42
43
|
IsNumber(),
|
|
43
44
|
__metadata("design:type", Array)
|
|
44
45
|
], ParamsGetAllCollaborators.prototype, "idUser", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
ApiPropertyOptional(),
|
|
48
|
+
IsOptional(),
|
|
49
|
+
IsNumber(),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], ParamsGetAllCollaborators.prototype, "idOffice", void 0);
|
|
45
52
|
__decorate([
|
|
46
53
|
ApiPropertyOptional(),
|
|
47
54
|
IsOptional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParamsGetAllCollaborators.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/ParamsGetAllCollaborators.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,OAAO,yBAAyB;IAMpC,UAAU,CAAY;IAKtB,MAAM,CAAU;IAKhB,OAAO,CAAY;IAKnB,MAAM,CAAY;
|
|
1
|
+
{"version":3,"file":"ParamsGetAllCollaborators.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/ParamsGetAllCollaborators.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,OAAO,yBAAyB;IAMpC,UAAU,CAAY;IAKtB,MAAM,CAAU;IAKhB,OAAO,CAAY;IAKnB,MAAM,CAAY;IAKlB,QAAQ,CAAY;IAQpB,OAAO,CAAY;CACpB;AA7BC;IALC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,CAAC;QACR,IAAI,EAAE,IAAI;KACX,CAAC;;6DACoB;AAKtB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;yDACK;AAKhB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;0DACQ;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;yDACO;AAKlB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACS;AAQpB;IANC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,CAAC;QACR,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,eAAe,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;0DACxC","sourcesContent":["import { IsIn, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class ParamsGetAllCollaborators {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n attributes?: string[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idRoles?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idUser?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idOffice?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(['avatar', 'teams', 'businessLines'], { each: true })\n include?: string[];\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AccountingCategoryId, FontIds, LogoAlignment } from '../../Enum/CommercialManagement';
|
|
2
2
|
import { IFile } from './IFile';
|
|
3
|
+
import { ISaleEmail } from './ISaleEmail';
|
|
3
4
|
export interface ISocietyGescom {
|
|
4
5
|
id?: number;
|
|
5
6
|
capital?: number | null;
|
|
@@ -60,11 +61,14 @@ export interface ISocietyGescom {
|
|
|
60
61
|
externalBorderThickness?: number | null;
|
|
61
62
|
externalBorderType?: string | null;
|
|
62
63
|
externalBorderColor?: string | null;
|
|
64
|
+
reminderCustomizedDayDiff?: number | null;
|
|
63
65
|
idRibFile?: number | null;
|
|
64
66
|
idSignatureFile?: number | null;
|
|
65
67
|
idGeneralConditionOfSale?: number | null;
|
|
68
|
+
idReminderSaleEmail?: number | null;
|
|
66
69
|
ribFile?: IFile;
|
|
67
70
|
signatureFile?: IFile;
|
|
71
|
+
defaultReminderSaleEmail?: ISaleEmail;
|
|
68
72
|
createdAt?: Date | null;
|
|
69
73
|
updatedAt?: Date | null;
|
|
70
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISocietyGescom.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISocietyGescom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ISocietyGescom.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISocietyGescom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,IAA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E,MAAM,GAAG,IAAI,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,wBAAwB,CAAC,EAAE,UAAU,CAAC;IACtC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISocietyGescom.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISocietyGescom.ts"],"names":[],"mappings":"","sourcesContent":["import { AccountingCategoryId, FontIds, LogoAlignment } from '../../Enum/CommercialManagement';\nimport { IFile } from './IFile';\n\n// societyGescom\nexport interface ISocietyGescom {\n id?: number;\n capital?: number | null;\n tvaCode?: string | null;\n rcs?: string | null;\n numberTradeDirectory?: string | null;\n bank?: string | null;\n iban?: string | null;\n bic?: string | null;\n mailContact?: string | null;\n phoneContact?: string | null;\n website?: string | null;\n penalties?: string | null;\n discount?: string | null;\n recoveryCost?: string | null;\n vatMention?: string | null;\n generatedBy?: boolean | null;\n bonPour?: boolean | null;\n acceptCheque?: boolean | null;\n mentionAutoent?: boolean | null;\n startInvoice?: number | null;\n startEstimate?: number | null;\n paymentsAccepted?: boolean | null;\n stripePaymentByDefault?: boolean;\n displayLogo?: boolean | null;\n cgv?: string | null;\n invoiceCgv?: boolean | null;\n template?: number | null;\n dayOfValidity?: number | null;\n color?: string | null;\n commercialName?: string | null;\n freeInvoiceText?: string | null;\n freeEstimateText?: string | null;\n accountingCategory?: AccountingCategoryId | null;\n shouldPayTaxAfterDebit?: boolean;\n logoAlignment?: LogoAlignment | null;\n isEdgingDisplayed?: boolean;\n edgingColor?: string;\n fontColor?: string;\n isCoordinatesFrameDisplayed?: boolean;\n areLinesSeparationHidden?: boolean;\n areColumnsSeparationHidden?: boolean;\n areExternalBordersHidden?: boolean;\n paymentType?: string | null;\n idFont?: FontIds | null;\n idSociety?: number | null;\n idTvaMargin?: number | null;\n shouldHideBrandName?: boolean;\n shouldHideEmailHeader?: boolean;\n customerBlockBorderThickness?: number | null;\n customerBlockBorderColor?: string | null;\n lineSeparationThickness?: number | null;\n lineSeparationType?: string | null;\n lineSeparationColor?: string | null;\n columnSeparationThickness?: number | null;\n columnSeparationType?: string | null;\n columnSeparationColor?: string | null;\n externalBorderThickness?: number | null;\n externalBorderType?: string | null;\n externalBorderColor?: string | null;\n idRibFile?: number | null;\n idSignatureFile?: number | null;\n idGeneralConditionOfSale?: number | null;\n ribFile?: IFile;\n signatureFile?: IFile;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ISocietyGescom.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISocietyGescom.ts"],"names":[],"mappings":"","sourcesContent":["import { AccountingCategoryId, FontIds, LogoAlignment } from '../../Enum/CommercialManagement';\nimport { IFile } from './IFile';\nimport { ISaleEmail } from './ISaleEmail';\n\n// societyGescom\nexport interface ISocietyGescom {\n id?: number;\n capital?: number | null;\n tvaCode?: string | null;\n rcs?: string | null;\n numberTradeDirectory?: string | null;\n bank?: string | null;\n iban?: string | null;\n bic?: string | null;\n mailContact?: string | null;\n phoneContact?: string | null;\n website?: string | null;\n penalties?: string | null;\n discount?: string | null;\n recoveryCost?: string | null;\n vatMention?: string | null;\n generatedBy?: boolean | null;\n bonPour?: boolean | null;\n acceptCheque?: boolean | null;\n mentionAutoent?: boolean | null;\n startInvoice?: number | null;\n startEstimate?: number | null;\n paymentsAccepted?: boolean | null;\n stripePaymentByDefault?: boolean;\n displayLogo?: boolean | null;\n cgv?: string | null;\n invoiceCgv?: boolean | null;\n template?: number | null;\n dayOfValidity?: number | null;\n color?: string | null;\n commercialName?: string | null;\n freeInvoiceText?: string | null;\n freeEstimateText?: string | null;\n accountingCategory?: AccountingCategoryId | null;\n shouldPayTaxAfterDebit?: boolean;\n logoAlignment?: LogoAlignment | null;\n isEdgingDisplayed?: boolean;\n edgingColor?: string;\n fontColor?: string;\n isCoordinatesFrameDisplayed?: boolean;\n areLinesSeparationHidden?: boolean;\n areColumnsSeparationHidden?: boolean;\n areExternalBordersHidden?: boolean;\n paymentType?: string | null;\n idFont?: FontIds | null;\n idSociety?: number | null;\n idTvaMargin?: number | null;\n shouldHideBrandName?: boolean;\n shouldHideEmailHeader?: boolean;\n customerBlockBorderThickness?: number | null;\n customerBlockBorderColor?: string | null;\n lineSeparationThickness?: number | null;\n lineSeparationType?: string | null;\n lineSeparationColor?: string | null;\n columnSeparationThickness?: number | null;\n columnSeparationType?: string | null;\n columnSeparationColor?: string | null;\n externalBorderThickness?: number | null;\n externalBorderType?: string | null;\n externalBorderColor?: string | null;\n reminderCustomizedDayDiff?: number | null;\n idRibFile?: number | null;\n idSignatureFile?: number | null;\n idGeneralConditionOfSale?: number | null;\n idReminderSaleEmail?: number | null;\n ribFile?: IFile;\n signatureFile?: IFile;\n defaultReminderSaleEmail?: ISaleEmail;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}\n"]}
|
|
@@ -654,6 +654,7 @@ export * from './Interface/api/facturation/CreateRebilling';
|
|
|
654
654
|
export * from './Interface/api/facturation/GoToFacturation';
|
|
655
655
|
export * from './Interface/api/facturation/ReadRecommanded';
|
|
656
656
|
export * from './Interface/api/OnBoarding';
|
|
657
|
+
export * from './Interface/api/commercial/Query';
|
|
657
658
|
export * from './Interface/api/commercial/QueryGetStats';
|
|
658
659
|
export * from './Interface/api/commercial/QueryGetStatsHistory';
|
|
659
660
|
export * from './Interface/api/commercial/RequiredDocsTypeParams';
|