@nomalism-com/types 0.43.45 → 0.43.47
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
|
@@ -5553,7 +5553,6 @@ var createBodyKeys61 = {
|
|
|
5553
5553
|
query: joi101.any().optional(),
|
|
5554
5554
|
params: joi101.any().optional()
|
|
5555
5555
|
}),
|
|
5556
|
-
url: joi101.string().required(),
|
|
5557
5556
|
service: joi101.string().required(),
|
|
5558
5557
|
type: joi101.string().valid(...errorTypes).required()
|
|
5559
5558
|
};
|
package/dist/index.js
CHANGED
|
@@ -5553,7 +5553,6 @@ var createBodyKeys61 = {
|
|
|
5553
5553
|
query: joi101.any().optional(),
|
|
5554
5554
|
params: joi101.any().optional()
|
|
5555
5555
|
}),
|
|
5556
|
-
url: joi101.string().required(),
|
|
5557
5556
|
service: joi101.string().required(),
|
|
5558
5557
|
type: joi101.string().valid(...errorTypes).required()
|
|
5559
5558
|
};
|
|
@@ -15,7 +15,6 @@ export declare const errorTypes: string[];
|
|
|
15
15
|
export interface ICreateRequest {
|
|
16
16
|
service: string;
|
|
17
17
|
type: IErrorType;
|
|
18
|
-
url: string;
|
|
19
18
|
error: {
|
|
20
19
|
name: string;
|
|
21
20
|
message: string;
|
|
@@ -27,6 +26,9 @@ export interface ICreateRequest {
|
|
|
27
26
|
params?: unknown;
|
|
28
27
|
};
|
|
29
28
|
}
|
|
30
|
-
export interface
|
|
29
|
+
export interface IController {
|
|
31
30
|
create(data: ICreateRequest): Promise<void>;
|
|
32
31
|
}
|
|
32
|
+
export interface IRepository {
|
|
33
|
+
create(url: string, data: ICreateRequest): Promise<void>;
|
|
34
|
+
}
|
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.
|
|
4
|
+
"version": "0.43.47",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|