valtech-components 2.0.887 → 2.0.889

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
  /**
2
2
  * Idiomas soportados por el sistema i18n
3
3
  */
4
- export type I18nLang = 'es' | 'en' | 'pt' | 'fr' | 'de';
4
+ export type I18nLang = 'es' | 'en' | 'fr' | 'de';
5
5
  /**
6
6
  * Contenido de traducciones para un namespace
7
7
  *
@@ -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 { Organization, CreateOrgRequest, UpdateOrgRequest, InviteUserRequest, InviteUserResponse, LeaveOrgResponse } from './types';
4
+ import { Organization, CreateOrgRequest, UpdateOrgRequest, InviteUserRequest, InviteUserResponse, LeaveOrgResponse, ListOrgMembersResponse } from './types';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class OrgService {
7
7
  private config;
@@ -18,6 +18,10 @@ export declare class OrgService {
18
18
  }>;
19
19
  inviteUser(orgId: string, req: InviteUserRequest): Observable<InviteUserResponse>;
20
20
  leaveOrg(orgId: string): Observable<LeaveOrgResponse>;
21
+ getOrgMembers(orgId: string, params?: {
22
+ limit?: number;
23
+ nextToken?: string;
24
+ }): Observable<ListOrgMembersResponse>;
21
25
  transferOwnership(orgId: string, newOwnerId: string): Observable<Organization>;
22
26
  static ɵfac: i0.ɵɵFactoryDeclaration<OrgService, never>;
23
27
  static ɵprov: i0.ɵɵInjectableDeclaration<OrgService>;
@@ -45,3 +45,16 @@ export interface LeaveOrgResponse {
45
45
  message: string;
46
46
  leftAt: string;
47
47
  }
48
+ export interface OrgMember {
49
+ userId: string;
50
+ email?: string;
51
+ name?: string;
52
+ roles: string[];
53
+ assignedAt?: string;
54
+ }
55
+ export interface ListOrgMembersResponse {
56
+ operationId: string;
57
+ members: OrgMember[];
58
+ nextToken?: string;
59
+ count: number;
60
+ }
@@ -4,7 +4,7 @@
4
4
  * Cliente NUNCA escribe directo — todas las mutaciones via PUT /v2/auth/preferences.
5
5
  */
6
6
  export type PreferencesTheme = 'light' | 'dark' | 'auto';
7
- export type PreferencesLanguage = 'es' | 'en' | 'pt';
7
+ export type PreferencesLanguage = 'es' | 'en';
8
8
  /** Forma del doc tal como lo escribe el backend (Admin SDK). */
9
9
  export interface PreferencesDocument {
10
10
  theme?: PreferencesTheme;
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.887";
5
+ export declare const VERSION = "2.0.890";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.887",
3
+ "version": "2.0.889",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
package/public-api.d.ts CHANGED
@@ -284,7 +284,7 @@ export * from './lib/services/legal-link/legal-link.service';
284
284
  export * from './lib/services/firebase';
285
285
  export * from './lib/services/auth';
286
286
  export { OrgService } from './lib/services/org/org.service';
287
- export type { Organization, OrgType, OrgPlan, CreateOrgRequest, UpdateOrgRequest, InviteUserRequest, InviteUserResponse, LeaveOrgResponse, ListMyOrgsResponse, OrgResponse, } from './lib/services/org/types';
287
+ export type { Organization, OrgType, OrgPlan, CreateOrgRequest, UpdateOrgRequest, InviteUserRequest, InviteUserResponse, LeaveOrgResponse, ListMyOrgsResponse, OrgResponse, OrgMember, ListOrgMembersResponse, } from './lib/services/org/types';
288
288
  export * from './lib/services/i18n';
289
289
  export * from './lib/services/preferences';
290
290
  export * from './lib/services/network-status';