starta.microservice 0.1.13062 → 0.1.13064
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/lib/types/index.d.ts +4 -3
- package/lib/types/index.js.map +1 -1
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export type PermissionsMap = {
|
|
|
3
3
|
[Key: string]: true;
|
|
4
4
|
};
|
|
5
5
|
import { Request, Response } from 'express';
|
|
6
|
+
import type { ValidationRule } from 'co.validation';
|
|
6
7
|
import Account from '../entities/Account';
|
|
7
8
|
import ServiceHandlerBase from '../services/ServiceHandlerBase';
|
|
8
9
|
import ServiceFactoryBase from '../services/ServiceFactoryBase';
|
|
@@ -70,10 +71,10 @@ export type MulterSettings = {
|
|
|
70
71
|
type EndpointContext = 'user' | 'organization' | 'any';
|
|
71
72
|
export interface IServiceDescription {
|
|
72
73
|
getBodyParser?: () => 'raw' | 'json';
|
|
73
|
-
getValidationRules?: (request?: IAuthorizedRequest, requestData?: any) =>
|
|
74
|
+
getValidationRules?: (request?: IAuthorizedRequest, requestData?: any) => Record<string, ValidationRule>;
|
|
74
75
|
getValidationRulesPerContext?: (request?: IAuthorizedRequest) => {
|
|
75
|
-
user:
|
|
76
|
-
organization:
|
|
76
|
+
user: Record<string, ValidationRule>;
|
|
77
|
+
organization: Record<string, ValidationRule>;
|
|
77
78
|
};
|
|
78
79
|
getRequestMethod(): RequestMethod;
|
|
79
80
|
getRequestPathTemplate(): string;
|
package/lib/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;AAQA,wFAAgE;AAGnC,6BAHtB,4BAAkB,CAGsB;AAF/C,wFAAgE;AAEvD,6BAFF,4BAAkB,CAEE;AAoE3B,MAAa,kBAAkB;CAY9B;AAZD,gDAYC"}
|