@silexpert/core 1.2.80 → 1.2.81
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/Reminder.d.ts +17 -2
- package/dist/cjs/api/resources/Reminder.d.ts.map +1 -1
- package/dist/cjs/api/resources/Reminder.js +31 -2
- package/dist/cjs/api/resources/Reminder.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +17 -7
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +66 -11
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.d.ts +7 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.js +36 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/dist/cjs/types/Interface/models/IEstimateInvoice.d.ts +3 -0
- package/dist/cjs/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/dist/cjs/types/Interface/models/IInvoiceReminder.d.ts +3 -0
- package/dist/cjs/types/Interface/models/IInvoiceReminder.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IInvoiceReminder.js.map +1 -1
- package/dist/cjs/types/Interface/models/IReminder.d.ts +18 -0
- package/dist/cjs/types/Interface/models/IReminder.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IReminder.js +3 -0
- package/dist/cjs/types/Interface/models/IReminder.js.map +1 -0
- package/dist/cjs/types/Interface/models/IReminderAttachment.d.ts +12 -0
- package/dist/cjs/types/Interface/models/IReminderAttachment.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IReminderAttachment.js +3 -0
- package/dist/cjs/types/Interface/models/IReminderAttachment.js.map +1 -0
- package/dist/cjs/types/Interface/models/IScheduledReminder.d.ts +8 -0
- package/dist/cjs/types/Interface/models/IScheduledReminder.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IScheduledReminder.js +3 -0
- package/dist/cjs/types/Interface/models/IScheduledReminder.js.map +1 -0
- package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts +3 -3
- 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 +3 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Reminder.d.ts +17 -2
- package/dist/mjs/api/resources/Reminder.d.ts.map +1 -1
- package/dist/mjs/api/resources/Reminder.js +31 -2
- package/dist/mjs/api/resources/Reminder.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +17 -7
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +73 -14
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.d.ts +7 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.js +40 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/dist/mjs/types/Interface/models/IEstimateInvoice.d.ts +3 -0
- package/dist/mjs/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/dist/mjs/types/Interface/models/IInvoiceReminder.d.ts +3 -0
- package/dist/mjs/types/Interface/models/IInvoiceReminder.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IInvoiceReminder.js.map +1 -1
- package/dist/mjs/types/Interface/models/IReminder.d.ts +18 -0
- package/dist/mjs/types/Interface/models/IReminder.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IReminder.js +2 -0
- package/dist/mjs/types/Interface/models/IReminder.js.map +1 -0
- package/dist/mjs/types/Interface/models/IReminderAttachment.d.ts +12 -0
- package/dist/mjs/types/Interface/models/IReminderAttachment.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IReminderAttachment.js +2 -0
- package/dist/mjs/types/Interface/models/IReminderAttachment.js.map +1 -0
- package/dist/mjs/types/Interface/models/IScheduledReminder.d.ts +8 -0
- package/dist/mjs/types/Interface/models/IScheduledReminder.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IScheduledReminder.js +2 -0
- package/dist/mjs/types/Interface/models/IScheduledReminder.js.map +1 -0
- package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts +3 -3
- 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 +3 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +3 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Reminder.ts +51 -5
- package/ts/types/Interface/api/commercialManagement/Create.ts +55 -12
- package/ts/types/Interface/api/commercialManagement/Update.ts +30 -0
- package/ts/types/Interface/models/IEstimateInvoice.ts +3 -0
- package/ts/types/Interface/models/IInvoiceReminder.ts +3 -0
- package/ts/types/Interface/models/IReminder.ts +20 -0
- package/ts/types/Interface/models/IReminderAttachment.ts +14 -0
- package/ts/types/Interface/models/IScheduledReminder.ts +7 -0
- package/ts/types/Interface/models/ISocietyGescom.ts +3 -3
- package/ts/types/index.ts +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reminder.js","sourceRoot":"","sources":["../../../../ts/api/resources/Reminder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAA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U,EAAE,UAAkB;QAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oCAAoC,UAAU,gBAAgB,EAAE,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,YAAY;IAEZ,cAAc,CAAC,UAAkB,EAAE,OAA+B;QAChE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oCAAoC,UAAU,YAAY,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;IAED,cAAc,CAAC,EAAU,EAAE,UAAkB;QAC3C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oCAAoC,UAAU,cAAc,EAAE,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateReminder,\n CreateReminder2,\n CreateReminderAttachment,\n CreateScheduleReminder,\n IInvoiceReminder,\n IReminder,\n IReminderAttachment,\n IScheduledReminder,\n UpdateReminder,\n UpdateReminder2,\n} from '../../types';\n\nexport class Reminder extends Resource {\n /**\n * @deprecated\n */\n create(idEstimateInvoice: number, payload: CreateReminder): Promise<IInvoiceReminder> {\n return this.axios.$post(`/commercial-management/documents/${idEstimateInvoice}/reminders`, payload);\n }\n\n /**\n * @deprecated\n */\n update(id: number, idEstimateInvoice: number, payload: UpdateReminder): Promise<IInvoiceReminder> {\n return this.axios.$put(`/commercial-management/documents/${idEstimateInvoice}/reminders/${id}`, payload);\n }\n\n /**\n * @deprecated\n */\n delete(id: number, idEstimateInvoice: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${idEstimateInvoice}/reminders/${id}`);\n }\n\n createReminder(payload: CreateReminder2): Promise<IReminder> {\n return this.axios.$post('/commercial-management/reminders', payload);\n }\n\n updateReminder(id: number, payload: UpdateReminder2): Promise<IReminder> {\n return this.axios.$put(`/commercial-management/reminders/${id}`, payload);\n }\n\n deleteReminder(id: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/reminders/${id}`);\n }\n\n // ATTACHMENTS\n\n createAttachment(idReminder: number, payload: CreateReminderAttachment): Promise<IReminderAttachment> {\n return this.axios.$post(`/commercial-management/reminders/${idReminder}/attachments`, payload);\n }\n\n deleteAttachment(id: number, idReminder: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/reminders/${idReminder}/attachments/${id}`);\n }\n\n // SCHEDULES\n\n createSchedule(idReminder: number, payload: CreateScheduleReminder): Promise<IScheduledReminder> {\n return this.axios.$post(`/commercial-management/reminders/${idReminder}/schedules`, payload);\n }\n\n deleteSchedule(id: number, idReminder: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/reminders/${idReminder}/schedules/${id}`);\n }\n}\n"]}
|
|
@@ -60,11 +60,10 @@ export declare class CreateCommercialSetting {
|
|
|
60
60
|
externalBorderThickness?: number;
|
|
61
61
|
externalBorderType?: string;
|
|
62
62
|
externalBorderColor?: string;
|
|
63
|
-
reminderCustomizedDayDiff?: number | null;
|
|
64
63
|
idRibFile?: number | null;
|
|
65
64
|
idSignatureFile?: number | null;
|
|
66
65
|
idGeneralConditionOfSale?: number | null;
|
|
67
|
-
|
|
66
|
+
idReminder?: number | null;
|
|
68
67
|
logoUrl?: string;
|
|
69
68
|
paymentType?: string;
|
|
70
69
|
bonPour?: boolean;
|
|
@@ -136,7 +135,7 @@ export declare class CreateInvoiceDocument extends CommercialDocumentInputs {
|
|
|
136
135
|
assetMarginVatIds?: number[];
|
|
137
136
|
advanceProducts?: ReadProductEditing[];
|
|
138
137
|
language?: InvoiceLanguage;
|
|
139
|
-
reminder?:
|
|
138
|
+
reminder?: CreateReminder2 | null;
|
|
140
139
|
recurrence?: CreateRecurrence | null;
|
|
141
140
|
}
|
|
142
141
|
export declare class CreateCgv {
|
|
@@ -154,10 +153,6 @@ export declare class CreateReminder {
|
|
|
154
153
|
customizedDate?: Date;
|
|
155
154
|
idFiles?: number[];
|
|
156
155
|
}
|
|
157
|
-
export declare class CreateReminderForTemplate extends CreateReminder {
|
|
158
|
-
idSaleEmail?: number | null;
|
|
159
|
-
customizedDayDiff?: number | null;
|
|
160
|
-
}
|
|
161
156
|
export declare class CreateRecurrence {
|
|
162
157
|
type: number;
|
|
163
158
|
startDate: string;
|
|
@@ -225,4 +220,19 @@ export declare class UpdateSaleDocumentTemplate {
|
|
|
225
220
|
idEstimateInvoiceType?: number;
|
|
226
221
|
isDefault?: boolean;
|
|
227
222
|
}
|
|
223
|
+
export declare class CreateReminder2 {
|
|
224
|
+
email: string | null;
|
|
225
|
+
content: string | null;
|
|
226
|
+
subject: string | null;
|
|
227
|
+
attachments: number[];
|
|
228
|
+
schedules: number[];
|
|
229
|
+
idEstimateInvoice: number | null;
|
|
230
|
+
idSaleEmail: number | null;
|
|
231
|
+
}
|
|
232
|
+
export declare class CreateReminderAttachment {
|
|
233
|
+
idFile: number;
|
|
234
|
+
}
|
|
235
|
+
export declare class CreateScheduleReminder {
|
|
236
|
+
day: number;
|
|
237
|
+
}
|
|
228
238
|
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":"AAeA,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,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IAAE,IAA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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;AAED,qBAAa,eAAe;IAK1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAMvB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAMvB,WAAW,EAAE,MAAM,EAAE,CAAC;IAKtB,SAAS,EAAE,MAAM,EAAE,CAAC;IAKpB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAKjC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,qBAAa,wBAAwB;IAGnC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,sBAAsB;IAGjC,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -7,7 +7,7 @@ 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 { IsArray, IsBoolean, IsDate, IsDateString, IsEnum, IsIn, IsInt, IsNumber, IsObject, IsOptional, IsString, Min, } from 'class-validator';
|
|
10
|
+
import { IsArray, IsBoolean, IsDate, IsDateString, IsEnum, IsIn, IsInt, IsNumber, IsObject, IsOptional, IsString, Length, Min, } from 'class-validator';
|
|
11
11
|
import { BorderLineType } from '../../..';
|
|
12
12
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
13
13
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
@@ -67,11 +67,10 @@ export class CreateCommercialSetting {
|
|
|
67
67
|
externalBorderThickness;
|
|
68
68
|
externalBorderType;
|
|
69
69
|
externalBorderColor;
|
|
70
|
-
reminderCustomizedDayDiff;
|
|
71
70
|
idRibFile;
|
|
72
71
|
idSignatureFile;
|
|
73
72
|
idGeneralConditionOfSale;
|
|
74
|
-
|
|
73
|
+
idReminder;
|
|
75
74
|
logoUrl;
|
|
76
75
|
paymentType;
|
|
77
76
|
bonPour;
|
|
@@ -405,12 +404,6 @@ __decorate([
|
|
|
405
404
|
IsString(),
|
|
406
405
|
__metadata("design:type", String)
|
|
407
406
|
], CreateCommercialSetting.prototype, "externalBorderColor", void 0);
|
|
408
|
-
__decorate([
|
|
409
|
-
ApiPropertyOptional(),
|
|
410
|
-
IsOptional(),
|
|
411
|
-
IsNumber(),
|
|
412
|
-
__metadata("design:type", Object)
|
|
413
|
-
], CreateCommercialSetting.prototype, "reminderCustomizedDayDiff", void 0);
|
|
414
407
|
__decorate([
|
|
415
408
|
ApiPropertyOptional(),
|
|
416
409
|
IsOptional(),
|
|
@@ -434,7 +427,7 @@ __decorate([
|
|
|
434
427
|
IsOptional(),
|
|
435
428
|
IsInt(),
|
|
436
429
|
__metadata("design:type", Object)
|
|
437
|
-
], CreateCommercialSetting.prototype, "
|
|
430
|
+
], CreateCommercialSetting.prototype, "idReminder", void 0);
|
|
438
431
|
__decorate([
|
|
439
432
|
ApiPropertyOptional(),
|
|
440
433
|
IsOptional(),
|
|
@@ -808,10 +801,6 @@ __decorate([
|
|
|
808
801
|
IsInt({ each: true }),
|
|
809
802
|
__metadata("design:type", Array)
|
|
810
803
|
], CreateReminder.prototype, "idFiles", void 0);
|
|
811
|
-
export class CreateReminderForTemplate extends CreateReminder {
|
|
812
|
-
idSaleEmail;
|
|
813
|
-
customizedDayDiff;
|
|
814
|
-
}
|
|
815
804
|
export class CreateRecurrence {
|
|
816
805
|
type;
|
|
817
806
|
startDate;
|
|
@@ -1061,4 +1050,74 @@ __decorate([
|
|
|
1061
1050
|
ToBoolean(),
|
|
1062
1051
|
__metadata("design:type", Boolean)
|
|
1063
1052
|
], UpdateSaleDocumentTemplate.prototype, "isDefault", void 0);
|
|
1053
|
+
export class CreateReminder2 {
|
|
1054
|
+
email;
|
|
1055
|
+
content;
|
|
1056
|
+
subject;
|
|
1057
|
+
attachments;
|
|
1058
|
+
schedules;
|
|
1059
|
+
idEstimateInvoice;
|
|
1060
|
+
idSaleEmail;
|
|
1061
|
+
}
|
|
1062
|
+
__decorate([
|
|
1063
|
+
ApiPropertyOptional(),
|
|
1064
|
+
IsString(),
|
|
1065
|
+
Length(0, 255),
|
|
1066
|
+
IsOptional(),
|
|
1067
|
+
__metadata("design:type", Object)
|
|
1068
|
+
], CreateReminder2.prototype, "email", void 0);
|
|
1069
|
+
__decorate([
|
|
1070
|
+
ApiPropertyOptional(),
|
|
1071
|
+
IsString(),
|
|
1072
|
+
IsOptional(),
|
|
1073
|
+
__metadata("design:type", Object)
|
|
1074
|
+
], CreateReminder2.prototype, "content", void 0);
|
|
1075
|
+
__decorate([
|
|
1076
|
+
ApiPropertyOptional(),
|
|
1077
|
+
IsString(),
|
|
1078
|
+
Length(0, 255),
|
|
1079
|
+
IsOptional(),
|
|
1080
|
+
__metadata("design:type", Object)
|
|
1081
|
+
], CreateReminder2.prototype, "subject", void 0);
|
|
1082
|
+
__decorate([
|
|
1083
|
+
ApiPropertyOptional({ comment: 'ids of file to attach' }),
|
|
1084
|
+
IsArray(),
|
|
1085
|
+
IsInt({ each: true }),
|
|
1086
|
+
IsOptional(),
|
|
1087
|
+
__metadata("design:type", Array)
|
|
1088
|
+
], CreateReminder2.prototype, "attachments", void 0);
|
|
1089
|
+
__decorate([
|
|
1090
|
+
ApiProperty({ comment: 'days between due date and remind' }),
|
|
1091
|
+
IsArray(),
|
|
1092
|
+
IsInt({ each: true }),
|
|
1093
|
+
__metadata("design:type", Array)
|
|
1094
|
+
], CreateReminder2.prototype, "schedules", void 0);
|
|
1095
|
+
__decorate([
|
|
1096
|
+
ApiPropertyOptional(),
|
|
1097
|
+
IsInt(),
|
|
1098
|
+
IsOptional(),
|
|
1099
|
+
__metadata("design:type", Object)
|
|
1100
|
+
], CreateReminder2.prototype, "idEstimateInvoice", void 0);
|
|
1101
|
+
__decorate([
|
|
1102
|
+
ApiPropertyOptional(),
|
|
1103
|
+
IsInt(),
|
|
1104
|
+
IsOptional(),
|
|
1105
|
+
__metadata("design:type", Object)
|
|
1106
|
+
], CreateReminder2.prototype, "idSaleEmail", void 0);
|
|
1107
|
+
export class CreateReminderAttachment {
|
|
1108
|
+
idFile;
|
|
1109
|
+
}
|
|
1110
|
+
__decorate([
|
|
1111
|
+
ApiProperty(),
|
|
1112
|
+
IsInt(),
|
|
1113
|
+
__metadata("design:type", Number)
|
|
1114
|
+
], CreateReminderAttachment.prototype, "idFile", void 0);
|
|
1115
|
+
export class CreateScheduleReminder {
|
|
1116
|
+
day;
|
|
1117
|
+
}
|
|
1118
|
+
__decorate([
|
|
1119
|
+
ApiProperty(),
|
|
1120
|
+
IsInt(),
|
|
1121
|
+
__metadata("design:type", Number)
|
|
1122
|
+
], CreateScheduleReminder.prototype, "day", void 0);
|
|
1064
1123
|
//# sourceMappingURL=Create.js.map
|
|
@@ -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;AACzB,OAAO,EAAE,cAAc,EAA6B,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EACL,oBAAoB,EACpB,SAAS,EAET,eAAe,GAEhB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,m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,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;;4DACX;AAI1B;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;wDACE;AAIb;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;4DAC6C;AAIxD;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,mBAAmB,CAAC;;yEACe;AAK3C;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 { 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 @IsOptional()\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 @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n shouldSendEmailOnCreation: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSaleEmail?: number;\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":[],"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,MAAM,EACN,GAAG,GACJ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAA6B,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EACL,oBAAoB,EACpB,SAAS,EAET,eAAe,GAEhB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAO9D,MAAM,OAAO,uBAAuB;IAOlC,OAAO,CAAiB;IAKxB,OAAO,CAAiB;IAKxB,GAAG,CAAiB;IAKpB,oBAAoB,CAAiB;IAKrC,IAAI,CAAiB;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pB;IAHC,mBAAmB,EAAE;IACrB,KAAK,EAAE;IACP,UAAU,EAAE;;0DACoB;AAKjC;IAHC,mBAAmB,EAAE;IACrB,KAAK,EAAE;IACP,UAAU,EAAE;;oDACc;AAG7B,MAAM,OAAO,wBAAwB;IAGnC,MAAM,CAAS;CAChB;AADC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;wDACO;AAGjB,MAAM,OAAO,sBAAsB;IAGjC,GAAG,CAAS;CACb;AADC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;mDACI","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 Length,\n Min,\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 @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 idReminder?: 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?: CreateReminder2 | 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 @IsOptional()\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 @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n shouldSendEmailOnCreation: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSaleEmail?: number;\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\nexport class CreateReminder2 {\n @ApiPropertyOptional()\n @IsString()\n @Length(0, 255)\n @IsOptional()\n email: string | null;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n content: string | null;\n\n @ApiPropertyOptional()\n @IsString()\n @Length(0, 255)\n @IsOptional()\n subject: string | null;\n\n @ApiPropertyOptional({ comment: 'ids of file to attach' })\n @IsArray()\n @IsInt({ each: true })\n @IsOptional()\n attachments: number[];\n\n @ApiProperty({ comment: 'days between due date and remind' })\n @IsArray()\n @IsInt({ each: true })\n schedules: number[];\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idEstimateInvoice: number | null;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSaleEmail: number | null;\n}\n\nexport class CreateReminderAttachment {\n @ApiProperty()\n @IsInt()\n idFile: number;\n}\n\nexport class CreateScheduleReminder {\n @ApiProperty()\n @IsInt()\n day: number;\n}\n"]}
|
|
@@ -27,4 +27,11 @@ export declare class UpdateRecurrence {
|
|
|
27
27
|
shouldSendEmailOnCreation?: boolean;
|
|
28
28
|
idSaleEmail?: number;
|
|
29
29
|
}
|
|
30
|
+
export declare class UpdateReminder2 {
|
|
31
|
+
email: string | null;
|
|
32
|
+
content: string | null;
|
|
33
|
+
subject: string | null;
|
|
34
|
+
idEstimateInvoice: number | null;
|
|
35
|
+
idSaleEmail: number | null;
|
|
36
|
+
}
|
|
30
37
|
//# sourceMappingURL=Update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Update.ts"],"names":[],"mappings":"AAgBA,qBAAa,wBAAwB;IAKnC,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,eAAe,CAAC,EAAE,IAAI,CAAC;IAMvB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB;AAED,qBAAa,cAAc;IAKzB,WAAW,EAAE,OAAO,CAAC;IAMrB,OAAO,EAAE,OAAO,CAAC;IAMjB,UAAU,EAAE,OAAO,CAAC;IAMpB,UAAU,EAAE,OAAO,CAAC;IAMpB,aAAa,CAAC,EAAE,OAAO,CAAC;IAKxB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,cAAc,CAAC,EAAE,IAAI,CAAC;IAKtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAM3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,qBAAa,gBAAgB;IAI3B,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAKnB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAKpC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,eAAe;IAK1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAMvB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAKvB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAKjC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B"}
|
|
@@ -7,7 +7,7 @@ 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 { IsArray, IsBoolean, IsDate, IsDateString, IsEnum, IsInt, IsNumber, IsOptional, IsString, } from 'class-validator';
|
|
10
|
+
import { IsArray, IsBoolean, IsDate, IsDateString, IsEnum, IsInt, IsNumber, IsOptional, IsString, Length, } from 'class-validator';
|
|
11
11
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
13
13
|
import { RecurrenceType } from '../../../Enum/RecurrenceType';
|
|
@@ -189,4 +189,43 @@ __decorate([
|
|
|
189
189
|
IsOptional(),
|
|
190
190
|
__metadata("design:type", Number)
|
|
191
191
|
], UpdateRecurrence.prototype, "idSaleEmail", void 0);
|
|
192
|
+
export class UpdateReminder2 {
|
|
193
|
+
email;
|
|
194
|
+
content;
|
|
195
|
+
subject;
|
|
196
|
+
idEstimateInvoice;
|
|
197
|
+
idSaleEmail;
|
|
198
|
+
}
|
|
199
|
+
__decorate([
|
|
200
|
+
ApiPropertyOptional(),
|
|
201
|
+
IsString(),
|
|
202
|
+
Length(0, 255),
|
|
203
|
+
IsOptional(),
|
|
204
|
+
__metadata("design:type", Object)
|
|
205
|
+
], UpdateReminder2.prototype, "email", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
ApiPropertyOptional(),
|
|
208
|
+
IsString(),
|
|
209
|
+
IsOptional(),
|
|
210
|
+
__metadata("design:type", Object)
|
|
211
|
+
], UpdateReminder2.prototype, "content", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
ApiPropertyOptional(),
|
|
214
|
+
IsString(),
|
|
215
|
+
Length(0, 255),
|
|
216
|
+
IsOptional(),
|
|
217
|
+
__metadata("design:type", Object)
|
|
218
|
+
], UpdateReminder2.prototype, "subject", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
ApiPropertyOptional(),
|
|
221
|
+
IsInt(),
|
|
222
|
+
IsOptional(),
|
|
223
|
+
__metadata("design:type", Object)
|
|
224
|
+
], UpdateReminder2.prototype, "idEstimateInvoice", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
ApiPropertyOptional(),
|
|
227
|
+
IsInt(),
|
|
228
|
+
IsOptional(),
|
|
229
|
+
__metadata("design:type", Object)
|
|
230
|
+
], UpdateReminder2.prototype, "idSaleEmail", void 0);
|
|
192
231
|
//# sourceMappingURL=Update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Update.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EACP,SAAS,EACT,MAAM,EACN,YAAY,EACZ,MAAM,EACN,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,
|
|
1
|
+
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Update.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EACP,SAAS,EACT,MAAM,EACN,YAAY,EACZ,MAAM,EACN,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,MAAM,GACP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,OAAO,wBAAwB;IAKnC,UAAU,CAAW;IAKrB,eAAe,CAAQ;IAMvB,SAAS,CAAW;IAMpB,MAAM,CAAW;IAMjB,MAAM,CAAW;IAKjB,QAAQ,CAAe;CACxB;AA7BC;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;4DACQ;AAKrB;IAHC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACK,IAAI;iEAAC;AAMvB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;2DACO;AAMpB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;wDACI;AAMjB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS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ray,\n IsBoolean,\n IsDate,\n IsDateString,\n IsEnum,\n IsInt,\n IsNumber,\n IsOptional,\n IsString,\n Length,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\n\nexport class UpdateCommercialDocument {\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isCanceled?: boolean;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n acceptationDate?: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isRefused?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isPaid?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isUsed?: boolean;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n mailSent?: Date | null;\n}\n\nexport class UpdateReminder {\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n beforeThree: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n dueDate: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n afterThree: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withSignature?: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n email?: 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 @IsOptional()\n @IsArray()\n @IsInt({ each: true })\n idFiles?: number[];\n}\n\nexport class UpdateRecurrence {\n @ApiPropertyOptional()\n @IsEnum(RecurrenceType)\n @IsOptional()\n type?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n @ToBoolean()\n @IsBoolean()\n @IsOptional()\n isActive?: boolean;\n\n @ApiPropertyOptional()\n @ToBoolean()\n @IsOptional()\n shouldSendEmailOnCreation?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSaleEmail?: number;\n}\n\nexport class UpdateReminder2 {\n @ApiPropertyOptional()\n @IsString()\n @Length(0, 255)\n @IsOptional()\n email: string | null;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n content: string | null;\n\n @ApiPropertyOptional()\n @IsString()\n @Length(0, 255)\n @IsOptional()\n subject: string | null;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idEstimateInvoice: number | null;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSaleEmail: number | null;\n}\n"]}
|
|
@@ -9,6 +9,7 @@ import { IFile } from './IFile';
|
|
|
9
9
|
import { IInvoiceRecurrence } from './IInvoiceRecurrence';
|
|
10
10
|
import { ReadEstimateInvoiceStatus } from '../api/commercialManagement/Read';
|
|
11
11
|
import { AccountingCategoryId, InvoiceLanguage } from '../../Enum/CommercialManagement';
|
|
12
|
+
import { IReminder } from './IReminder';
|
|
12
13
|
export interface IEstimateInvoice {
|
|
13
14
|
id?: number;
|
|
14
15
|
label: string | null;
|
|
@@ -62,7 +63,9 @@ export interface IEstimateInvoice {
|
|
|
62
63
|
assetRelatedToThisEstimateInvoice?: IEstimateInvoice;
|
|
63
64
|
estimateInvoiceForThisAsset?: IEstimateInvoice;
|
|
64
65
|
estimateInvoiceForThisRepeat?: IEstimateInvoice;
|
|
66
|
+
/** @deprecated use reminder2 */
|
|
65
67
|
reminder?: IInvoiceReminder;
|
|
68
|
+
reminder2?: IReminder | null;
|
|
66
69
|
relatedInvoice?: IEstimateInvoice;
|
|
67
70
|
recurrence?: IInvoiceRecurrence;
|
|
68
71
|
file?: IFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEstimateInvoice.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IEstimateInvoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"IEstimateInvoice.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IEstimateInvoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,oBAAoB,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,EAAE,gBAAgB,CAAC;IAChD,gCAAgC;IAChC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,IAAI,CAAC,EAAE,KAAK,CAAC;CACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEstimateInvoice.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IEstimateInvoice.ts"],"names":[],"mappings":"","sourcesContent":["import { IProductInvoice } from './IProductInvoice';\nimport { IPaymentExpectationCustomer } from './IPaymentExpectationCustomer';\nimport { IThirdParty } from './IThirdParty';\nimport { IFrequency } from './IFrequency';\nimport { IEstimateInvoiceType } from './IEstimateInvoiceType';\nimport { ISociety } from './ISociety';\nimport { IInvoiceReminder } from './IInvoiceReminder';\nimport { IFile } from './IFile';\nimport { IInvoiceRecurrence } from './IInvoiceRecurrence';\nimport { ReadEstimateInvoiceStatus } from '../api/commercialManagement/Read';\nimport { AccountingCategoryId, InvoiceLanguage } from '../../Enum/CommercialManagement';\n\n// estimatesInvoices\nexport interface IEstimateInvoice {\n id?: number;\n label: string | null;\n payment: string | null;\n reference: string | null;\n depositAmount: number;\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n isDraft: boolean;\n dueDate: Date | null;\n expirationDate: Date | null;\n emissionDate: Date | null;\n acceptationDate: Date | null;\n mailSent: Date | null;\n isPaid?: boolean;\n isUsed: boolean;\n isStripe: boolean;\n lastTryRepeat: Date | null;\n penalties: string | null;\n discount: string | null;\n recoveryCost: string | null;\n vatMention: string | null;\n freeText: string | null;\n greetings: boolean;\n paymentType: string | null;\n generalComment: string | null;\n generalDiscount2: number | null;\n lastRelanceDate: Date | null;\n isRefused: boolean;\n isCanceled: boolean;\n status?: ReadEstimateInvoiceStatus;\n accountingCategory: AccountingCategoryId;\n shouldPayTaxAfterDebit: boolean;\n language: InvoiceLanguage;\n idFile?: number | null;\n idRelatedInvoice: number | null;\n idEstimateInvoiceType: number | number[];\n idFrequency: number | null;\n idSociety: number;\n idThirdParty: number;\n idEstimateInvoiceForThisRepeat: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n products?: IProductInvoice[];\n thirdParty?: IThirdParty;\n frequency?: IFrequency;\n type?: IEstimateInvoiceType;\n customerPayment?: IPaymentExpectationCustomer;\n society?: ISociety;\n assetRelatedToThisEstimateInvoice?: IEstimateInvoice;\n estimateInvoiceForThisAsset?: IEstimateInvoice;\n estimateInvoiceForThisRepeat?: IEstimateInvoice;\n reminder?: IInvoiceReminder;\n relatedInvoice?: IEstimateInvoice;\n recurrence?: IInvoiceRecurrence;\n file?: IFile;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IEstimateInvoice.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IEstimateInvoice.ts"],"names":[],"mappings":"","sourcesContent":["import { IProductInvoice } from './IProductInvoice';\nimport { IPaymentExpectationCustomer } from './IPaymentExpectationCustomer';\nimport { IThirdParty } from './IThirdParty';\nimport { IFrequency } from './IFrequency';\nimport { IEstimateInvoiceType } from './IEstimateInvoiceType';\nimport { ISociety } from './ISociety';\nimport { IInvoiceReminder } from './IInvoiceReminder';\nimport { IFile } from './IFile';\nimport { IInvoiceRecurrence } from './IInvoiceRecurrence';\nimport { ReadEstimateInvoiceStatus } from '../api/commercialManagement/Read';\nimport { AccountingCategoryId, InvoiceLanguage } from '../../Enum/CommercialManagement';\nimport { IReminder } from './IReminder';\n\n// estimatesInvoices\nexport interface IEstimateInvoice {\n id?: number;\n label: string | null;\n payment: string | null;\n reference: string | null;\n depositAmount: number;\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n isDraft: boolean;\n dueDate: Date | null;\n expirationDate: Date | null;\n emissionDate: Date | null;\n acceptationDate: Date | null;\n mailSent: Date | null;\n isPaid?: boolean;\n isUsed: boolean;\n isStripe: boolean;\n lastTryRepeat: Date | null;\n penalties: string | null;\n discount: string | null;\n recoveryCost: string | null;\n vatMention: string | null;\n freeText: string | null;\n greetings: boolean;\n paymentType: string | null;\n generalComment: string | null;\n generalDiscount2: number | null;\n lastRelanceDate: Date | null;\n isRefused: boolean;\n isCanceled: boolean;\n status?: ReadEstimateInvoiceStatus;\n accountingCategory: AccountingCategoryId;\n shouldPayTaxAfterDebit: boolean;\n language: InvoiceLanguage;\n idFile?: number | null;\n idRelatedInvoice: number | null;\n idEstimateInvoiceType: number | number[];\n idFrequency: number | null;\n idSociety: number;\n idThirdParty: number;\n idEstimateInvoiceForThisRepeat: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n products?: IProductInvoice[];\n thirdParty?: IThirdParty;\n frequency?: IFrequency;\n type?: IEstimateInvoiceType;\n customerPayment?: IPaymentExpectationCustomer;\n society?: ISociety;\n assetRelatedToThisEstimateInvoice?: IEstimateInvoice;\n estimateInvoiceForThisAsset?: IEstimateInvoice;\n estimateInvoiceForThisRepeat?: IEstimateInvoice;\n /** @deprecated use reminder2 */\n reminder?: IInvoiceReminder;\n reminder2?: IReminder | null;\n relatedInvoice?: IEstimateInvoice;\n recurrence?: IInvoiceRecurrence;\n file?: IFile;\n}\n"]}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ISociety } from './ISociety';
|
|
2
2
|
import { IEstimateInvoice } from './IEstimateInvoice';
|
|
3
3
|
import { IInvoiceReminderAttachment } from './IInvoiceReminderAttachment';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated use IReminder
|
|
6
|
+
*/
|
|
4
7
|
export interface IInvoiceReminder {
|
|
5
8
|
id?: number;
|
|
6
9
|
beforeThree: boolean | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IInvoiceReminder.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IInvoiceReminder.ts"],"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AC;AAG1E;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,WAAW,CAAC,EAAE,0BAA0B,EAAE,CAAC;CAC5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IInvoiceReminder.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IInvoiceReminder.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from './ISociety';\nimport { IEstimateInvoice } from './IEstimateInvoice';\nimport { IInvoiceReminderAttachment } from './IInvoiceReminderAttachment';\n\n// societyRelance\nexport interface IInvoiceReminder {\n id?: number;\n beforeThree: boolean | null;\n dueDate: boolean | null;\n afterThree: boolean | null;\n afterSeven: boolean | null;\n lastReminder: Date | null;\n subject?: string | null;\n message?: string | null;\n email: string | null;\n customizedDate?: Date | null;\n withSignature?: boolean;\n idSociety: number;\n idEstimateInvoice: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n estimateInvoice?: IEstimateInvoice;\n attachments?: IInvoiceReminderAttachment[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IInvoiceReminder.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IInvoiceReminder.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from './ISociety';\nimport { IEstimateInvoice } from './IEstimateInvoice';\nimport { IInvoiceReminderAttachment } from './IInvoiceReminderAttachment';\n\n// societyRelance\n/**\n * @deprecated use IReminder\n */\nexport interface IInvoiceReminder {\n id?: number;\n beforeThree: boolean | null;\n dueDate: boolean | null;\n afterThree: boolean | null;\n afterSeven: boolean | null;\n lastReminder: Date | null;\n subject?: string | null;\n message?: string | null;\n email: string | null;\n customizedDate?: Date | null;\n withSignature?: boolean;\n idSociety: number;\n idEstimateInvoice: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n estimateInvoice?: IEstimateInvoice;\n attachments?: IInvoiceReminderAttachment[];\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IReminderAttachment } from './IReminderAttachment';
|
|
2
|
+
import { IScheduledReminder } from './IScheduledReminder';
|
|
3
|
+
import { ISociety } from './ISociety';
|
|
4
|
+
export interface IReminder {
|
|
5
|
+
id?: number;
|
|
6
|
+
email: string | null;
|
|
7
|
+
subject: string | null;
|
|
8
|
+
content: string | null;
|
|
9
|
+
idSaleEmail: number | null;
|
|
10
|
+
idEstimateInvoice: number | null;
|
|
11
|
+
idSociety: number;
|
|
12
|
+
attachments?: IReminderAttachment[];
|
|
13
|
+
schedules?: IScheduledReminder[];
|
|
14
|
+
society?: ISociety;
|
|
15
|
+
createdAt?: Date;
|
|
16
|
+
updatedAt?: Date;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=IReminder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IReminder.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReminder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,SAAS;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACjC,OAAO,CAAC,EAAE,QAAQ,CAAC;IAEnB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IReminder.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReminder.ts"],"names":[],"mappings":"","sourcesContent":["import { IReminderAttachment } from './IReminderAttachment';\nimport { IScheduledReminder } from './IScheduledReminder';\nimport { ISociety } from './ISociety';\n\nexport interface IReminder {\n id?: number;\n email: string | null;\n subject: string | null;\n content: string | null;\n idSaleEmail: number | null;\n idEstimateInvoice: number | null;\n idSociety: number;\n\n attachments?: IReminderAttachment[];\n schedules?: IScheduledReminder[];\n society?: ISociety;\n\n createdAt?: Date;\n updatedAt?: Date;\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IFile } from './IFile';
|
|
2
|
+
import { IReminder } from './IReminder';
|
|
3
|
+
export interface IReminderAttachment {
|
|
4
|
+
id?: number;
|
|
5
|
+
idFile: number;
|
|
6
|
+
idReminder: number;
|
|
7
|
+
file?: IFile;
|
|
8
|
+
reminder?: IReminder;
|
|
9
|
+
createdAt?: Date;
|
|
10
|
+
updatedAt?: Date;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=IReminderAttachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IReminderAttachment.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReminderAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IReminderAttachment.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReminderAttachment.ts"],"names":[],"mappings":"","sourcesContent":["import { IFile } from './IFile';\nimport { IReminder } from './IReminder';\n\nexport interface IReminderAttachment {\n id?: number;\n idFile: number;\n idReminder: number;\n\n file?: IFile;\n reminder?: IReminder;\n\n createdAt?: Date;\n updatedAt?: Date;\n}\n"]}
|