@silexpert/core 1.2.83 → 1.2.85
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/assets/laposteDistributors.json +1 -0
- package/assets/nationalities.json +1 -0
- package/dist/cjs/types/Enum/MailAuto.d.ts +4 -1
- package/dist/cjs/types/Enum/MailAuto.d.ts.map +1 -1
- package/dist/cjs/types/Enum/MailAuto.js +3 -0
- package/dist/cjs/types/Enum/MailAuto.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +2 -2
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +4 -2
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.d.ts +2 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.js +19 -7
- package/dist/cjs/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/dist/cjs/types/Interface/models/IApiError.d.ts +1 -1
- package/dist/cjs/types/Interface/models/IApiError.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IApiError.js +1 -1
- package/dist/cjs/types/Interface/models/IApiError.js.map +1 -1
- package/dist/mjs/types/Enum/MailAuto.d.ts +4 -1
- package/dist/mjs/types/Enum/MailAuto.d.ts.map +1 -1
- package/dist/mjs/types/Enum/MailAuto.js +3 -0
- package/dist/mjs/types/Enum/MailAuto.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +2 -2
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +4 -2
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.d.ts +2 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.js +23 -9
- package/dist/mjs/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/dist/mjs/types/Interface/models/IApiError.d.ts +1 -1
- package/dist/mjs/types/Interface/models/IApiError.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IApiError.js +1 -1
- package/dist/mjs/types/Interface/models/IApiError.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/MailAuto.ts +3 -0
- package/ts/types/Interface/api/commercialManagement/Create.ts +6 -4
- package/ts/types/Interface/api/commercialManagement/Update.ts +18 -9
- package/ts/types/Interface/models/IApiError.ts +1 -1
|
@@ -8,9 +8,8 @@ import {
|
|
|
8
8
|
IsNumber,
|
|
9
9
|
IsOptional,
|
|
10
10
|
IsString,
|
|
11
|
-
Length,
|
|
12
11
|
} from 'class-validator';
|
|
13
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
14
13
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
15
14
|
import { RecurrenceType } from '../../../Enum/RecurrenceType';
|
|
16
15
|
|
|
@@ -147,29 +146,39 @@ export class UpdateRecurrence {
|
|
|
147
146
|
}
|
|
148
147
|
|
|
149
148
|
export class UpdateReminder2 {
|
|
150
|
-
@
|
|
149
|
+
@ApiProperty()
|
|
151
150
|
@IsString()
|
|
152
|
-
@Length(0, 255)
|
|
153
151
|
@IsOptional()
|
|
154
152
|
email: string | null;
|
|
155
153
|
|
|
156
|
-
@
|
|
154
|
+
@ApiProperty()
|
|
157
155
|
@IsString()
|
|
158
156
|
@IsOptional()
|
|
159
157
|
content: string | null;
|
|
160
158
|
|
|
161
|
-
@
|
|
159
|
+
@ApiProperty()
|
|
162
160
|
@IsString()
|
|
163
|
-
@Length(0, 255)
|
|
164
161
|
@IsOptional()
|
|
165
162
|
subject: string | null;
|
|
166
163
|
|
|
167
|
-
@
|
|
164
|
+
@ApiProperty({ comment: 'ids of file to attach' })
|
|
165
|
+
@IsArray()
|
|
166
|
+
@IsInt({ each: true })
|
|
167
|
+
@IsOptional()
|
|
168
|
+
attachments: number[];
|
|
169
|
+
|
|
170
|
+
@ApiProperty({ comment: 'days between due date and remind' })
|
|
171
|
+
@IsArray()
|
|
172
|
+
@IsOptional()
|
|
173
|
+
@IsInt({ each: true })
|
|
174
|
+
schedules: number[];
|
|
175
|
+
|
|
176
|
+
@ApiProperty()
|
|
168
177
|
@IsInt()
|
|
169
178
|
@IsOptional()
|
|
170
179
|
idEstimateInvoice: number | null;
|
|
171
180
|
|
|
172
|
-
@
|
|
181
|
+
@ApiProperty()
|
|
173
182
|
@IsInt()
|
|
174
183
|
@IsOptional()
|
|
175
184
|
idSaleEmail: number | null;
|
|
@@ -22,6 +22,7 @@ export enum Code {
|
|
|
22
22
|
formatNotAuthorized = 'format_not_authorized',
|
|
23
23
|
CONNECTION_ALREADY_EXIST = 'connection_already_exist',
|
|
24
24
|
firstConnectionFromVpn = 'first_connection_from_vpn',
|
|
25
|
+
ENTITY_ALREADY_EXIST = 'entity_already_exist',
|
|
25
26
|
|
|
26
27
|
// Annotation Error
|
|
27
28
|
failedCheckBalance = 'failed_check_balance',
|
|
@@ -183,7 +184,6 @@ export enum Code {
|
|
|
183
184
|
CHECKLIST_ALREADY_EXIST = 'checklist_already_exist',
|
|
184
185
|
INVALID_BRAND = 'invalid_brand',
|
|
185
186
|
INVALID_DAY = 'invalid_day',
|
|
186
|
-
ENTITY_ALREADY_EXIST = 'entity_already_exist',
|
|
187
187
|
ENTITY_USED = 'entity_used',
|
|
188
188
|
|
|
189
189
|
// Gescom
|