valtech-components 2.0.998 → 2.0.999
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/components/organisms/organization-view/organization-view.component.mjs +1 -76
- package/esm2022/lib/components/organisms/organization-view/organization-view.i18n.mjs +1 -5
- package/esm2022/lib/components/organisms/permissions-view/permissions-view.component.mjs +14 -9
- package/esm2022/lib/components/organisms/permissions-view/permissions-view.i18n.mjs +3 -1
- package/esm2022/lib/services/auth/auth.service.mjs +1 -14
- package/esm2022/lib/services/auth/types.mjs +1 -1
- package/esm2022/lib/services/org/org.service.mjs +1 -8
- package/esm2022/lib/services/org/permission-catalog.service.mjs +1 -1
- package/esm2022/lib/services/org/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +1 -4
- package/fesm2022/valtech-components.mjs +57 -990
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/organization-view/organization-view.component.d.ts +0 -5
- package/lib/services/auth/auth.service.d.ts +1 -7
- package/lib/services/auth/types.d.ts +0 -23
- package/lib/services/org/org.service.d.ts +1 -6
- package/lib/services/org/permission-catalog.service.d.ts +1 -1
- package/lib/services/org/types.d.ts +0 -30
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -5
- package/esm2022/lib/components/organisms/api-keys-modal/api-keys-modal.component.mjs +0 -385
- package/esm2022/lib/components/organisms/api-keys-modal/api-keys-modal.i18n.mjs +0 -63
- package/esm2022/lib/components/organisms/member-import-modal/member-import-modal.component.mjs +0 -313
- package/esm2022/lib/components/organisms/member-import-modal/member-import-modal.i18n.mjs +0 -63
- package/esm2022/lib/services/apikeys/api-keys.service.mjs +0 -46
- package/esm2022/lib/services/apikeys/types.mjs +0 -7
- package/lib/components/organisms/api-keys-modal/api-keys-modal.component.d.ts +0 -44
- package/lib/components/organisms/api-keys-modal/api-keys-modal.i18n.d.ts +0 -6
- package/lib/components/organisms/member-import-modal/member-import-modal.component.d.ts +0 -47
- package/lib/components/organisms/member-import-modal/member-import-modal.i18n.d.ts +0 -6
- package/lib/services/apikeys/api-keys.service.d.ts +0 -25
- package/lib/services/apikeys/types.d.ts +0 -46
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ImportMembersResponse, ImportOnConflict, ImportRowResult } from '../../../services/org/types';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* `val-member-import-modal` — panel de carga masiva de miembros (ADR-023 fase 6).
|
|
6
|
-
*
|
|
7
|
-
* El admin pega un CSV (`email,nombre,rol`); el modal lo parsea a filas y llama
|
|
8
|
-
* `OrgService.importMembers`. Muestra el resultado por-fila (partial success):
|
|
9
|
-
* `created` / `assigned` / `skipped` / `error`. Header canónico (Regla #5).
|
|
10
|
-
*
|
|
11
|
-
* Auto-registra defaults i18n (es/en) en `Settings.ImportModal`.
|
|
12
|
-
*/
|
|
13
|
-
export declare class MemberImportModalComponent implements OnInit {
|
|
14
|
-
private i18n;
|
|
15
|
-
private orgService;
|
|
16
|
-
/** Org destino del import. */
|
|
17
|
-
orgId: string;
|
|
18
|
-
/** Nombres de roles disponibles (para el hint). Opcional. */
|
|
19
|
-
availableRoles: string[];
|
|
20
|
-
/** Callback tras una importación exitosa (≥1 fila procesada) — refresca la lista. */
|
|
21
|
-
onSuccess?: () => void;
|
|
22
|
-
/** Inyectado por `ModalService.open`. */
|
|
23
|
-
_modalRef?: {
|
|
24
|
-
dismiss: (data?: unknown, role?: string) => void;
|
|
25
|
-
};
|
|
26
|
-
/** Namespace i18n. */
|
|
27
|
-
i18nNamespace: string;
|
|
28
|
-
csv: string;
|
|
29
|
-
onConflict: ImportOnConflict;
|
|
30
|
-
sendActivation: boolean;
|
|
31
|
-
readonly submitting: import("@angular/core").WritableSignal<boolean>;
|
|
32
|
-
readonly errorMsg: import("@angular/core").WritableSignal<string>;
|
|
33
|
-
readonly results: import("@angular/core").WritableSignal<ImportMembersResponse>;
|
|
34
|
-
readonly rolesHint: import("@angular/core").Signal<string>;
|
|
35
|
-
readonly summaryLabel: import("@angular/core").Signal<string>;
|
|
36
|
-
constructor();
|
|
37
|
-
ngOnInit(): void;
|
|
38
|
-
/** Parsea el CSV pegado a filas {email,name,roleName}. Tolera header. */
|
|
39
|
-
private parseCsv;
|
|
40
|
-
submit(): void;
|
|
41
|
-
statusLabel(r: ImportRowResult): string;
|
|
42
|
-
reset(): void;
|
|
43
|
-
dismiss(): void;
|
|
44
|
-
t(key: string): string;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MemberImportModalComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MemberImportModalComponent, "val-member-import-modal", never, { "orgId": { "alias": "orgId"; "required": false; }; "availableRoles": { "alias": "availableRoles"; "required": false; }; "onSuccess": { "alias": "onSuccess"; "required": false; }; "_modalRef": { "alias": "_modalRef"; "required": false; }; "i18nNamespace": { "alias": "i18nNamespace"; "required": false; }; }, {}, never, never, true, never>;
|
|
47
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LanguagesContent } from '../../../services/i18n/types';
|
|
2
|
-
/**
|
|
3
|
-
* Defaults i18n (es/en) embebidos en `val-member-import-modal` (ADR-023).
|
|
4
|
-
* Auto-registrados si el consumer no proveyó el namespace `Settings.ImportModal`.
|
|
5
|
-
*/
|
|
6
|
-
export declare const MEMBER_IMPORT_MODAL_I18N: LanguagesContent;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ValtechAuthConfig } from '../auth/types';
|
|
4
|
-
import { ClientApiKey, CreateApiKeyRequest, CreateApiKeyResponse, RevokeApiKeyResponse } from './types';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Cliente HTTP de Client API Keys org-scopeadas (ADR-023). La org activa se
|
|
8
|
-
* resuelve en backend desde el JWT, así que el path no la incluye.
|
|
9
|
-
*/
|
|
10
|
-
export declare class ApiKeyService {
|
|
11
|
-
private config;
|
|
12
|
-
private http;
|
|
13
|
-
constructor(config: ValtechAuthConfig, http: HttpClient);
|
|
14
|
-
private get baseUrl();
|
|
15
|
-
/** Lista las API keys de la org activa. */
|
|
16
|
-
list(): Observable<ClientApiKey[]>;
|
|
17
|
-
/** Crea una API key. La respuesta incluye el secreto (se muestra UNA vez). */
|
|
18
|
-
create(req: CreateApiKeyRequest): Observable<CreateApiKeyResponse>;
|
|
19
|
-
/** Revoca (elimina) una API key por id. */
|
|
20
|
-
revoke(keyId: string): Observable<RevokeApiKeyResponse>;
|
|
21
|
-
/** Catálogo de permisos asignables a una key. */
|
|
22
|
-
availablePermissions(): Observable<string[]>;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ApiKeyService, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ApiKeyService>;
|
|
25
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tipos de Client API Keys org-scopeadas (ADR-023). Contrato espejo de
|
|
3
|
-
* `lambdas/org` `/org/api-keys/*`. El orgID se resuelve del JWT (ActiveOrgID),
|
|
4
|
-
* no va en el path.
|
|
5
|
-
*/
|
|
6
|
-
export interface ClientApiKey {
|
|
7
|
-
keyId: string;
|
|
8
|
-
name: string;
|
|
9
|
-
organizationId: string;
|
|
10
|
-
status: string;
|
|
11
|
-
permissions: string[];
|
|
12
|
-
rateLimit?: number;
|
|
13
|
-
expiresAt?: string;
|
|
14
|
-
allowedIps?: string[];
|
|
15
|
-
createdBy: string;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
lastUsedAt?: string;
|
|
18
|
-
}
|
|
19
|
-
/** Solo en la respuesta de creación: el secreto se muestra UNA vez. */
|
|
20
|
-
export interface ClientApiKeyWithSecret extends ClientApiKey {
|
|
21
|
-
secret: string;
|
|
22
|
-
}
|
|
23
|
-
export interface CreateApiKeyRequest {
|
|
24
|
-
name: string;
|
|
25
|
-
permissions: string[];
|
|
26
|
-
rateLimit?: number;
|
|
27
|
-
expiresInDays?: number;
|
|
28
|
-
allowedIps?: string[];
|
|
29
|
-
}
|
|
30
|
-
export interface CreateApiKeyResponse {
|
|
31
|
-
operationId: string;
|
|
32
|
-
key: ClientApiKeyWithSecret;
|
|
33
|
-
}
|
|
34
|
-
export interface ListApiKeysResponse {
|
|
35
|
-
operationId: string;
|
|
36
|
-
keys: ClientApiKey[];
|
|
37
|
-
nextToken?: string;
|
|
38
|
-
}
|
|
39
|
-
export interface AvailablePermissionsResponse {
|
|
40
|
-
operationId: string;
|
|
41
|
-
permissions: string[];
|
|
42
|
-
}
|
|
43
|
-
export interface RevokeApiKeyResponse {
|
|
44
|
-
operationId: string;
|
|
45
|
-
message: string;
|
|
46
|
-
}
|