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.
@@ -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 (`pkg/validator.go`):
4
- * min 8 chars, ≥1 uppercase, ≥1 lowercase, ≥1 digit, ≥1 special char.
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
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "2.0.964";
5
+ export declare const VERSION = "2.0.966";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.964",
3
+ "version": "2.0.966",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"