@nomalism-com/types 0.15.4 → 0.15.6

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.
@@ -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
- plot?: IPreSaleData;
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(),
@@ -18,6 +18,7 @@ export interface ICreateRequest {
18
18
  country_id: string | null;
19
19
  telephone: string | null;
20
20
  email: string | null;
21
+ observations: string | null;
21
22
  provider_id: string | null;
22
23
  client_id: string | null;
23
24
  commissioner_id: string | null;
@@ -32,6 +33,7 @@ export interface IUpdateRequest {
32
33
  country_id?: string | null;
33
34
  telephone?: string | null;
34
35
  email?: string | null;
36
+ observations?: string | null;
35
37
  main?: boolean;
36
38
  }
37
39
  export interface IBasicSearchRequest extends IShared.IPaginationRequest {
@@ -19,6 +19,7 @@ var createBodyKeys = {
19
19
  .email({ tlds: { allow: false } })
20
20
  .allow(null, '')
21
21
  .optional(),
22
+ observations: joi_1.default.string().allow(null, '').optional(),
22
23
  provider_id: joi_1.default.string().allow(null, ''),
23
24
  client_id: joi_1.default.string().allow(null, ''),
24
25
  commissioner_id: joi_1.default.string().allow(null, ''),
@@ -42,6 +43,7 @@ var updateBodyKeys = {
42
43
  .email({ tlds: { allow: false } })
43
44
  .allow(null, '')
44
45
  .optional(),
46
+ observations: joi_1.default.string().allow(null, '').optional(),
45
47
  main: joi_1.default.boolean().optional(),
46
48
  };
47
49
  exports.updateBody = joi_1.default.object().keys(updateBodyKeys).messages(messages_1.messages);
@@ -387,6 +387,7 @@ export type Persona = {
387
387
  nif: string | null;
388
388
  telephone: string | null;
389
389
  email: string | null;
390
+ observations: string | null;
390
391
  street: string | null;
391
392
  postal_code: string | null;
392
393
  locality: string | null;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.15.4",
12
+ "version": "0.15.6",
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.1",
50
+ "eslint-plugin-prettier": "^5.1.0",
51
51
  "prettier": "^3.1.1",
52
- "tsx": "^4.6.2",
52
+ "tsx": "^4.7.0",
53
53
  "typescript": "^5.3.3"
54
54
  }
55
55
  }