@nomalism-com/types 0.15.3 → 0.15.5
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/supply/preSale/interface.d.ts +1 -2
- package/dist/modules/supply/preSale/route.schema.js +0 -1
- package/dist/modules/user/clients/interface.d.ts +1 -1
- package/dist/modules/user/clients/route.schema.js +1 -1
- package/dist/modules/user/commissioner/interface.d.ts +1 -1
- package/dist/modules/user/commissioner/route.schema.js +1 -1
- package/dist/modules/user/providers/interface.d.ts +1 -1
- package/dist/modules/user/providers/route.schema.js +1 -1
- package/dist/shared/entities/user.d.ts +3 -3
- package/package.json +3 -3
|
@@ -44,8 +44,7 @@ interface IRemovePlotOrPreSaleProduct {
|
|
|
44
44
|
}
|
|
45
45
|
export type IRemovePlotOrPreSaleProductRequest = IShared.RequireOnlyOne<IRemovePlotOrPreSaleProduct, 'plot_id' | 'pre_sale_product_id'>;
|
|
46
46
|
export interface ICreateRequest {
|
|
47
|
-
|
|
48
|
-
product?: IPreSaleData;
|
|
47
|
+
product: IPreSaleData;
|
|
49
48
|
created_by?: string;
|
|
50
49
|
updated_by?: string;
|
|
51
50
|
}
|
|
@@ -11,7 +11,6 @@ var schemaTypePlot = joi_1.default.object().keys({
|
|
|
11
11
|
quantity: joi_1.default.number().positive().required(),
|
|
12
12
|
});
|
|
13
13
|
var createBodyKeys = {
|
|
14
|
-
plot: schemaTypePlot,
|
|
15
14
|
product: schemaTypePlot,
|
|
16
15
|
created_by: joi_1.default.string().uuid().optional(),
|
|
17
16
|
updated_by: joi_1.default.string().uuid().optional(),
|
|
@@ -61,7 +61,7 @@ export interface IUpdateRequest {
|
|
|
61
61
|
inactive?: boolean;
|
|
62
62
|
segments_area_id?: string | null;
|
|
63
63
|
exemption_reason_id?: string | null;
|
|
64
|
-
main_persona_id?: string
|
|
64
|
+
main_persona_id?: string;
|
|
65
65
|
default_discount?: number;
|
|
66
66
|
default_payment_method_id?: string | null;
|
|
67
67
|
default_maturity_date_id?: string | null;
|
|
@@ -48,7 +48,7 @@ var createBodyKeys = {
|
|
|
48
48
|
};
|
|
49
49
|
exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
|
|
50
50
|
var updateBodyKeys = {
|
|
51
|
-
main_persona_id: joi_1.default.string().optional()
|
|
51
|
+
main_persona_id: joi_1.default.string().optional(),
|
|
52
52
|
nif: joi_1.default.string().allow(null).optional(),
|
|
53
53
|
country_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
54
54
|
language_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
@@ -39,7 +39,7 @@ export interface ICreateRequest {
|
|
|
39
39
|
export interface IUpdateRequest {
|
|
40
40
|
nif?: string;
|
|
41
41
|
default_percentage?: number;
|
|
42
|
-
main_persona_id?: string
|
|
42
|
+
main_persona_id?: string;
|
|
43
43
|
country_id?: string | null;
|
|
44
44
|
language_id?: string | null;
|
|
45
45
|
default_payment_method_id?: string | null;
|
|
@@ -31,7 +31,7 @@ exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messag
|
|
|
31
31
|
var updateBodyKeys = {
|
|
32
32
|
nif: joi_1.default.string().optional(),
|
|
33
33
|
default_percentage: joi_1.default.number().positive().allow(0).optional(),
|
|
34
|
-
main_persona_id: joi_1.default.string().uuid().
|
|
34
|
+
main_persona_id: joi_1.default.string().uuid().optional(),
|
|
35
35
|
country_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
36
36
|
language_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
37
37
|
default_payment_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
@@ -56,7 +56,7 @@ export interface IUpdateRequest {
|
|
|
56
56
|
nif?: string;
|
|
57
57
|
default_discount?: number;
|
|
58
58
|
exemption_reason_id?: string | null;
|
|
59
|
-
main_persona_id?: string
|
|
59
|
+
main_persona_id?: string;
|
|
60
60
|
country_id?: string;
|
|
61
61
|
language_id?: string;
|
|
62
62
|
support_language_id?: string | null;
|
|
@@ -58,7 +58,7 @@ var updateBodyKeys = {
|
|
|
58
58
|
country_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
59
59
|
language_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
60
60
|
support_language_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
61
|
-
main_persona_id: joi_1.default.string().uuid().
|
|
61
|
+
main_persona_id: joi_1.default.string().uuid().optional(),
|
|
62
62
|
default_payment_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
63
63
|
default_maturity_date_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
64
64
|
default_delivery_method_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
@@ -73,7 +73,7 @@ export type UserPermissions = {
|
|
|
73
73
|
export type Providers = {
|
|
74
74
|
id: string;
|
|
75
75
|
user_id: string;
|
|
76
|
-
main_persona_id: string
|
|
76
|
+
main_persona_id: string;
|
|
77
77
|
number: number;
|
|
78
78
|
nif: string | null;
|
|
79
79
|
country_id: string | null;
|
|
@@ -127,7 +127,7 @@ export type Language = {
|
|
|
127
127
|
export type Clients = {
|
|
128
128
|
id: string;
|
|
129
129
|
user_id: string;
|
|
130
|
-
main_persona_id: string
|
|
130
|
+
main_persona_id: string;
|
|
131
131
|
number: number;
|
|
132
132
|
nif: string | null;
|
|
133
133
|
country_id: string | null;
|
|
@@ -220,7 +220,7 @@ export type SocialMedia = {
|
|
|
220
220
|
export type Commissioner = {
|
|
221
221
|
id: string;
|
|
222
222
|
user_id: string;
|
|
223
|
-
main_persona_id: string
|
|
223
|
+
main_persona_id: string;
|
|
224
224
|
number: number;
|
|
225
225
|
nif: string | null;
|
|
226
226
|
country_id: string | null;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.15.
|
|
12
|
+
"version": "0.15.5",
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"eslint-config-prettier": "^9.1.0",
|
|
48
48
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
49
49
|
"eslint-plugin-import": "^2.29.1",
|
|
50
|
-
"eslint-plugin-prettier": "^5.0
|
|
50
|
+
"eslint-plugin-prettier": "^5.1.0",
|
|
51
51
|
"prettier": "^3.1.1",
|
|
52
|
-
"tsx": "^4.
|
|
52
|
+
"tsx": "^4.7.0",
|
|
53
53
|
"typescript": "^5.3.3"
|
|
54
54
|
}
|
|
55
55
|
}
|