@nomalism-com/types 0.17.54 → 0.17.56
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.
|
@@ -157,6 +157,7 @@ exports.printLabelQuery = joi_1.default
|
|
|
157
157
|
.keys(printLabelQueryKeys)
|
|
158
158
|
.messages(messages_1.messages);
|
|
159
159
|
var duplicateProductBodyKeys = {
|
|
160
|
+
designation: joi_1.default.string().required(),
|
|
160
161
|
provider_ref: joi_1.default.string().required(),
|
|
161
162
|
color_id: joi_1.default
|
|
162
163
|
.array()
|
|
@@ -28,7 +28,8 @@ export interface IFindByDocumentLineStateResponse {
|
|
|
28
28
|
document_number: string;
|
|
29
29
|
identifier: string;
|
|
30
30
|
created_at: Date;
|
|
31
|
-
who_handles: string;
|
|
31
|
+
who_handles: string | null;
|
|
32
|
+
tags: string | null;
|
|
32
33
|
url: string;
|
|
33
34
|
}
|
|
34
35
|
export interface IBasicSearchRequest extends IShared.IPaginationRequest {
|
|
@@ -146,8 +147,6 @@ export interface ICreateFromHeaderRequest {
|
|
|
146
147
|
return_reason?: string;
|
|
147
148
|
provider_ref?: string;
|
|
148
149
|
global_discount?: number;
|
|
149
|
-
who_handles?: string;
|
|
150
|
-
tags?: string;
|
|
151
150
|
}
|
|
152
151
|
export interface IUpdateRequest {
|
|
153
152
|
external_data?: unknown;
|
|
@@ -205,8 +204,8 @@ export interface IUpdateRequest {
|
|
|
205
204
|
commission_paid?: boolean;
|
|
206
205
|
is_archived?: boolean;
|
|
207
206
|
is_void?: boolean;
|
|
208
|
-
who_handles?: string;
|
|
209
|
-
tags?: string;
|
|
207
|
+
who_handles?: string | null;
|
|
208
|
+
tags?: string | null;
|
|
210
209
|
created_by?: string;
|
|
211
210
|
}
|
|
212
211
|
export interface IGetActionsResponse {
|
|
@@ -163,8 +163,6 @@ var createFromHeaderBodyKeys = {
|
|
|
163
163
|
return_reason: joi_1.default.string().optional(),
|
|
164
164
|
provider_ref: joi_1.default.string().optional(),
|
|
165
165
|
global_discount: joi_1.default.number().min(0).max(100).optional(),
|
|
166
|
-
who_handles: joi_1.default.string().optional(),
|
|
167
|
-
tags: joi_1.default.string().optional(),
|
|
168
166
|
};
|
|
169
167
|
exports.createFromHeaderBody = joi_1.default
|
|
170
168
|
.object()
|
|
@@ -301,8 +299,8 @@ var updateBodyKeys = {
|
|
|
301
299
|
commission_paid: joi_1.default.boolean().optional(),
|
|
302
300
|
is_archived: joi_1.default.boolean().optional(),
|
|
303
301
|
is_void: joi_1.default.boolean().optional(),
|
|
304
|
-
who_handles: joi_1.default.string().optional(),
|
|
305
|
-
tags: joi_1.default.string().optional(),
|
|
302
|
+
who_handles: joi_1.default.string().allow(null).optional(),
|
|
303
|
+
tags: joi_1.default.string().allow(null, '').optional(),
|
|
306
304
|
created_by: joi_1.default.string().uuid().allow(null).optional(),
|
|
307
305
|
};
|
|
308
306
|
exports.updateBody = joi_1.default
|