@nomalism-com/types 0.37.1 → 0.37.2

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);
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);
@@ -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 {
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.2",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",