@nomalism-com/types 0.37.1 → 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
@@ -3491,11 +3491,13 @@ __export(route_schema_exports56, {
3491
3491
  import joi57 from "joi";
3492
3492
  var createBodyKeys42 = {
3493
3493
  name: joi57.string().required(),
3494
+ saft_code: joi57.string().required(),
3494
3495
  external_id: joi57.string().allow(null).optional()
3495
3496
  };
3496
3497
  var createBody43 = joi57.object().keys(createBodyKeys42).messages(messages);
3497
3498
  var updateBodyKeys36 = {
3498
3499
  name: joi57.string().optional(),
3500
+ saft_code: joi57.string().optional(),
3499
3501
  external_id: joi57.string().allow(null).optional()
3500
3502
  };
3501
3503
  var updateBody36 = joi57.object().keys(updateBodyKeys36).messages(messages);
@@ -3554,6 +3556,7 @@ var createBodyKeys43 = {
3554
3556
  value: joi59.number().positive().required(),
3555
3557
  vat_tax_id: joi59.string().uuid().required(),
3556
3558
  country_id: joi59.string().uuid().required(),
3559
+ saft_code: joi59.string().required(),
3557
3560
  external_id: joi59.string().required()
3558
3561
  };
3559
3562
  var createBody44 = joi59.object().keys(createBodyKeys43).messages(messages);
@@ -3562,6 +3565,7 @@ var updateBodyKeys37 = {
3562
3565
  value: joi59.number().positive().optional(),
3563
3566
  vat_tax_id: joi59.string().uuid().optional(),
3564
3567
  country_id: joi59.string().uuid().optional(),
3568
+ saft_code: joi59.string().optional(),
3565
3569
  external_id: joi59.string().optional()
3566
3570
  };
3567
3571
  var updateBody37 = joi59.object().keys(updateBodyKeys37).messages(messages);
package/dist/index.js CHANGED
@@ -3491,11 +3491,13 @@ __export(route_schema_exports56, {
3491
3491
  import joi57 from "joi";
3492
3492
  var createBodyKeys42 = {
3493
3493
  name: joi57.string().required(),
3494
+ saft_code: joi57.string().required(),
3494
3495
  external_id: joi57.string().allow(null).optional()
3495
3496
  };
3496
3497
  var createBody43 = joi57.object().keys(createBodyKeys42).messages(messages);
3497
3498
  var updateBodyKeys36 = {
3498
3499
  name: joi57.string().optional(),
3500
+ saft_code: joi57.string().optional(),
3499
3501
  external_id: joi57.string().allow(null).optional()
3500
3502
  };
3501
3503
  var updateBody36 = joi57.object().keys(updateBodyKeys36).messages(messages);
@@ -3554,6 +3556,7 @@ var createBodyKeys43 = {
3554
3556
  value: joi59.number().positive().required(),
3555
3557
  vat_tax_id: joi59.string().uuid().required(),
3556
3558
  country_id: joi59.string().uuid().required(),
3559
+ saft_code: joi59.string().required(),
3557
3560
  external_id: joi59.string().required()
3558
3561
  };
3559
3562
  var createBody44 = joi59.object().keys(createBodyKeys43).messages(messages);
@@ -3562,6 +3565,7 @@ var updateBodyKeys37 = {
3562
3565
  value: joi59.number().positive().optional(),
3563
3566
  vat_tax_id: joi59.string().uuid().optional(),
3564
3567
  country_id: joi59.string().uuid().optional(),
3568
+ saft_code: joi59.string().optional(),
3565
3569
  external_id: joi59.string().optional()
3566
3570
  };
3567
3571
  var updateBody37 = joi59.object().keys(updateBodyKeys37).messages(messages);
@@ -14,10 +14,12 @@ export interface IFindPaginatedRequest extends IFindRequest, IShared.IPagination
14
14
  export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
15
15
  export interface ICreateRequest {
16
16
  name: string;
17
+ saft_code: string;
17
18
  external_id?: string | null;
18
19
  }
19
20
  export interface IUpdateRequest {
20
21
  name?: string;
22
+ saft_code?: string;
21
23
  external_id?: string | null;
22
24
  }
23
25
  export interface IRepository {
@@ -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.1",
4
+ "version": "0.37.3",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",