@nomalism-com/types 0.9.544 → 0.9.546
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/modules/user/clients/interface.d.ts +0 -2
- package/dist/modules/user/clients/responseCreate.schema.js +0 -1
- package/dist/modules/user/clients/route.schema.js +0 -2
- package/dist/modules/user/providers/interface.d.ts +0 -2
- package/dist/modules/user/providers/responseCreate.schema.js +0 -1
- package/dist/modules/user/providers/route.schema.js +4 -3
- package/dist/shared/entities/user.d.ts +0 -2
- package/package.json +1 -1
|
@@ -59,7 +59,6 @@ export interface ICreateRequest {
|
|
|
59
59
|
default_maturity_date_id?: string | null;
|
|
60
60
|
default_delivery_method_id?: string | null;
|
|
61
61
|
default_vehicle_id?: string | null;
|
|
62
|
-
external_id?: string | null;
|
|
63
62
|
}
|
|
64
63
|
export interface IUpdateRequest {
|
|
65
64
|
nif?: string | null;
|
|
@@ -72,7 +71,6 @@ export interface IUpdateRequest {
|
|
|
72
71
|
exemption_reason_id?: string | null;
|
|
73
72
|
preferential_contact_id?: string | null;
|
|
74
73
|
default_discount?: number;
|
|
75
|
-
external_id?: string;
|
|
76
74
|
default_payment_method_id?: string | null;
|
|
77
75
|
default_maturity_date_id?: string | null;
|
|
78
76
|
default_delivery_method_id?: string | null;
|
|
@@ -53,7 +53,6 @@ var createUpdateDeleteBodyResponseKeys = {
|
|
|
53
53
|
inactive: joi_1.default.boolean().allow(null),
|
|
54
54
|
segments_area_id: joi_1.default.string().uuid().required(),
|
|
55
55
|
exemption_reason_id: joi_1.default.string().uuid().allow(null),
|
|
56
|
-
external_id: joi_1.default.string().required().allow(null),
|
|
57
56
|
default_discount: joi_1.default.number().positive().required(),
|
|
58
57
|
default_payment_method_id: joi_1.default.string().uuid().required(),
|
|
59
58
|
default_maturity_date_id: joi_1.default.string().uuid().required(),
|
|
@@ -49,7 +49,6 @@ var createBodyKeys = {
|
|
|
49
49
|
default_maturity_date_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
50
50
|
default_delivery_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
51
51
|
default_vehicle_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
52
|
-
external_id: joi_1.default.string().allow(null).optional(),
|
|
53
52
|
};
|
|
54
53
|
exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
|
|
55
54
|
var updateBodyKeys = {
|
|
@@ -63,7 +62,6 @@ var updateBodyKeys = {
|
|
|
63
62
|
segments_area_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
64
63
|
exemption_reason_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
65
64
|
default_discount: joi_1.default.number().positive().allow(0).max(99).optional(),
|
|
66
|
-
external_id: joi_1.default.string().allow(null).optional(),
|
|
67
65
|
default_payment_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
68
66
|
default_maturity_date_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
69
67
|
default_delivery_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
@@ -52,7 +52,6 @@ export interface ICreateRequest {
|
|
|
52
52
|
default_maturity_date_id?: string | null;
|
|
53
53
|
default_delivery_method_id?: string | null;
|
|
54
54
|
default_vehicle_id?: string | null;
|
|
55
|
-
external_id?: string | null;
|
|
56
55
|
}
|
|
57
56
|
export interface IUpdateRequest {
|
|
58
57
|
manufacturer?: boolean;
|
|
@@ -69,7 +68,6 @@ export interface IUpdateRequest {
|
|
|
69
68
|
default_maturity_date_id?: string;
|
|
70
69
|
default_delivery_method_id?: string;
|
|
71
70
|
default_vehicle_id?: string | null;
|
|
72
|
-
external_id?: string;
|
|
73
71
|
}
|
|
74
72
|
export interface IRepository {
|
|
75
73
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
@@ -58,7 +58,6 @@ var createUpdateDeleteBodyResponseKeys = {
|
|
|
58
58
|
default_delivery_method_id: joi_1.default.string().uuid().required(),
|
|
59
59
|
default_vehicle_id: joi_1.default.string().uuid().allow(null).required(),
|
|
60
60
|
origin_id: joi_1.default.string().allow(null).required(),
|
|
61
|
-
external_id: joi_1.default.string().allow(null).required(),
|
|
62
61
|
default_discount: joi_1.default.number().positive().allow(0).max(100).required(),
|
|
63
62
|
};
|
|
64
63
|
exports.createUpdateDeleteBodyResponse = joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps));
|
|
@@ -37,7 +37,6 @@ var createBodyKeys = {
|
|
|
37
37
|
default_maturity_date_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
38
38
|
default_delivery_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
39
39
|
default_vehicle_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
40
|
-
external_id: joi_1.default.string().allow(null).optional(),
|
|
41
40
|
};
|
|
42
41
|
exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
|
|
43
42
|
var updateBodyKeys = {
|
|
@@ -55,11 +54,13 @@ var updateBodyKeys = {
|
|
|
55
54
|
default_maturity_date_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
56
55
|
default_delivery_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
57
56
|
default_vehicle_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
58
|
-
external_id: joi_1.default.string().allow(null).optional(),
|
|
59
57
|
};
|
|
60
58
|
exports.updateBody = joi_1.default.object().keys(updateBodyKeys).messages(messages_1.messages);
|
|
61
59
|
var findQueryKeys = {
|
|
62
|
-
number: joi_1.default
|
|
60
|
+
number: joi_1.default
|
|
61
|
+
.array()
|
|
62
|
+
.items(joi_1.default.number().positive().allow(0).required())
|
|
63
|
+
.optional(),
|
|
63
64
|
id: joi_1.default.array().items(joi_1.default.string().uuid().required()).optional(),
|
|
64
65
|
};
|
|
65
66
|
exports.findQuery = joi_1.default.object().keys(findQueryKeys).messages(messages_1.messages);
|
|
@@ -88,7 +88,6 @@ export type Providers = {
|
|
|
88
88
|
default_delivery_method_id: string | null;
|
|
89
89
|
default_vehicle_id: string | null;
|
|
90
90
|
default_discount: number;
|
|
91
|
-
external_id: string | null;
|
|
92
91
|
created_at: Date;
|
|
93
92
|
updated_at: Date;
|
|
94
93
|
created_by: string;
|
|
@@ -143,7 +142,6 @@ export type Clients = {
|
|
|
143
142
|
default_maturity_date_id: string | null;
|
|
144
143
|
default_delivery_method_id: string | null;
|
|
145
144
|
default_vehicle_id: string | null;
|
|
146
|
-
external_id: string | null;
|
|
147
145
|
deferred_payment: boolean;
|
|
148
146
|
origin_id: string | null;
|
|
149
147
|
created_at: Date;
|