@nomalism-com/types 0.37.2 → 0.37.3

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/index.cjs CHANGED
@@ -3556,6 +3556,7 @@ var createBodyKeys43 = {
3556
3556
  value: joi59.number().positive().required(),
3557
3557
  vat_tax_id: joi59.string().uuid().required(),
3558
3558
  country_id: joi59.string().uuid().required(),
3559
+ saft_code: joi59.string().required(),
3559
3560
  external_id: joi59.string().required()
3560
3561
  };
3561
3562
  var createBody44 = joi59.object().keys(createBodyKeys43).messages(messages);
@@ -3564,6 +3565,7 @@ var updateBodyKeys37 = {
3564
3565
  value: joi59.number().positive().optional(),
3565
3566
  vat_tax_id: joi59.string().uuid().optional(),
3566
3567
  country_id: joi59.string().uuid().optional(),
3568
+ saft_code: joi59.string().optional(),
3567
3569
  external_id: joi59.string().optional()
3568
3570
  };
3569
3571
  var updateBody37 = joi59.object().keys(updateBodyKeys37).messages(messages);
package/dist/index.js CHANGED
@@ -3556,6 +3556,7 @@ var createBodyKeys43 = {
3556
3556
  value: joi59.number().positive().required(),
3557
3557
  vat_tax_id: joi59.string().uuid().required(),
3558
3558
  country_id: joi59.string().uuid().required(),
3559
+ saft_code: joi59.string().required(),
3559
3560
  external_id: joi59.string().required()
3560
3561
  };
3561
3562
  var createBody44 = joi59.object().keys(createBodyKeys43).messages(messages);
@@ -3564,6 +3565,7 @@ var updateBodyKeys37 = {
3564
3565
  value: joi59.number().positive().optional(),
3565
3566
  vat_tax_id: joi59.string().uuid().optional(),
3566
3567
  country_id: joi59.string().uuid().optional(),
3568
+ saft_code: joi59.string().optional(),
3567
3569
  external_id: joi59.string().optional()
3568
3570
  };
3569
3571
  var updateBody37 = joi59.object().keys(updateBodyKeys37).messages(messages);
@@ -19,6 +19,7 @@ export interface ICreateRequest {
19
19
  value: number;
20
20
  vat_tax_id: string;
21
21
  country_id: string;
22
+ saft_code: string;
22
23
  external_id: string | null;
23
24
  }
24
25
  export interface IUpdateRequest {
@@ -26,6 +27,7 @@ export interface IUpdateRequest {
26
27
  value?: number;
27
28
  vat_tax_id?: string;
28
29
  country_id?: string;
30
+ saft_code?: string;
29
31
  external_id?: string | null;
30
32
  }
31
33
  export interface IRepository {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/types",
3
3
  "description": "A nomalism package with all necessary types and validations for developing APIs",
4
- "version": "0.37.2",
4
+ "version": "0.37.3",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",