@nomalism-com/types 0.15.3 → 0.15.4

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.
@@ -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 | null;
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().allow(null),
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 | null;
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().allow(null).optional(),
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 | null;
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().allow(null).optional(),
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 | null;
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 | null;
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 | null;
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.3",
12
+ "version": "0.15.4",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [