valtech-components 2.0.964 → 2.0.966
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/esm2022/lib/services/requests/request.service.mjs +12 -2
- package/esm2022/lib/services/requests/types.mjs +1 -1
- package/esm2022/lib/shared/utils/validators.mjs +7 -3
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +18 -4
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/services/requests/request.service.d.ts +3 -1
- package/lib/services/requests/types.d.ts +7 -0
- package/lib/shared/utils/validators.d.ts +3 -2
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ValtechAuthConfig } from '../auth/types';
|
|
4
|
-
import { AppRequest, RequestComment, RequestTypeConfig, RequestStatus, CreateRequestPayload, UpdateRequestPayload, TransitionPayload, AddCommentPayload, ListRequestsParams, ListRequestsResponse, ListCommentsResponse, ListRequestTypesResponse, CreateRequestTypePayload } from './types';
|
|
4
|
+
import { AppRequest, RequestComment, RequestTypeConfig, RequestStatus, CreateRequestPayload, UpdateRequestPayload, TransitionPayload, AddCommentPayload, ListRequestsParams, ListRequestsResponse, ListCommentsResponse, ListRequestTypesResponse, CreateRequestTypePayload, UpdateRequestTypePayload } from './types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class RequestService {
|
|
7
7
|
private config;
|
|
@@ -29,6 +29,8 @@ export declare class RequestService {
|
|
|
29
29
|
listRequestTypes(): Observable<ListRequestTypesResponse>;
|
|
30
30
|
getRequestType(typeId: string): Observable<RequestTypeConfig>;
|
|
31
31
|
createRequestType(payload: CreateRequestTypePayload): Observable<RequestTypeConfig>;
|
|
32
|
+
updateRequestType(typeId: string, payload: UpdateRequestTypePayload): Observable<RequestTypeConfig>;
|
|
33
|
+
deleteRequestType(typeId: string): Observable<void>;
|
|
32
34
|
private buildQueryString;
|
|
33
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<RequestService, never>;
|
|
34
36
|
static ɵprov: i0.ɵɵInjectableDeclaration<RequestService>;
|
|
@@ -113,3 +113,10 @@ export interface CreateRequestTypePayload {
|
|
|
113
113
|
allowAnonymous: boolean;
|
|
114
114
|
visibility?: RequestVisibility;
|
|
115
115
|
}
|
|
116
|
+
export interface UpdateRequestTypePayload {
|
|
117
|
+
labelEs: string;
|
|
118
|
+
labelEn: string;
|
|
119
|
+
fieldSchema: FieldSchemaDef[];
|
|
120
|
+
allowAnonymous: boolean;
|
|
121
|
+
visibility?: RequestVisibility;
|
|
122
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ValidatorFn } from '@angular/forms';
|
|
2
2
|
/**
|
|
3
|
-
* Mirrors the backend `authPassword` validator (
|
|
4
|
-
* min 8 chars,
|
|
3
|
+
* Mirrors the backend `authPassword` validator (services/authv2/password.go):
|
|
4
|
+
* min 8 chars, max 72 chars (bcrypt limit), ≥1 uppercase, ≥1 lowercase,
|
|
5
|
+
* ≥1 digit, ≥1 special char.
|
|
5
6
|
*
|
|
6
7
|
* Returns `{ authPassword: true }` on failure so the form can surface the
|
|
7
8
|
* inline error via `errorKeys: { authPassword: 'passwordStrength' }`.
|
package/lib/version.d.ts
CHANGED