@nomalism-com/types 0.43.51 → 0.43.53

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
@@ -5545,6 +5545,7 @@ __export(route_schema_exports100, {
5545
5545
  });
5546
5546
  import joi101 from "joi";
5547
5547
  var createBodyKeys61 = {
5548
+ url: joi101.string().optional(),
5548
5549
  error: joi101.object({
5549
5550
  name: joi101.string().required(),
5550
5551
  message: joi101.string().required(),
package/dist/index.js CHANGED
@@ -5545,6 +5545,7 @@ __export(route_schema_exports100, {
5545
5545
  });
5546
5546
  import joi101 from "joi";
5547
5547
  var createBodyKeys61 = {
5548
+ url: joi101.string().optional(),
5548
5549
  error: joi101.object({
5549
5550
  name: joi101.string().required(),
5550
5551
  message: joi101.string().required(),
@@ -13,6 +13,7 @@ export declare const IErrorTypeEnum: {
13
13
  export type IErrorType = (typeof IErrorTypeEnum)[keyof typeof IErrorTypeEnum];
14
14
  export declare const errorTypes: string[];
15
15
  export interface ICreateRequest {
16
+ url: string;
16
17
  service: string;
17
18
  type: IErrorType;
18
19
  error: {
@@ -30,5 +31,5 @@ export interface IController {
30
31
  create(data: ICreateRequest): Promise<void>;
31
32
  }
32
33
  export interface IRepository {
33
- create(url: string, data: ICreateRequest): Promise<void>;
34
+ create(data: ICreateRequest): Promise<void>;
34
35
  }
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.43.51",
4
+ "version": "0.43.53",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",