valtech-components 2.0.887 → 2.0.890
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/atoms/button/button.component.mjs +4 -4
- package/esm2022/lib/components/atoms/page-waves/page-waves.component.mjs +3 -3
- package/esm2022/lib/components/molecules/language-selector/language-selector.component.mjs +2 -4
- package/esm2022/lib/components/organisms/form/form.component.mjs +3 -3
- package/esm2022/lib/services/i18n/types.mjs +1 -1
- package/esm2022/lib/services/org/org.service.mjs +11 -1
- package/esm2022/lib/services/org/types.mjs +1 -1
- package/esm2022/lib/services/preferences/preferences.types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/valtech-components.mjs +19 -11
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/services/i18n/types.d.ts +1 -1
- package/lib/services/org/org.service.d.ts +5 -1
- package/lib/services/org/types.d.ts +13 -0
- package/lib/services/preferences/preferences.types.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +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 { 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'
|
|
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
package/package.json
CHANGED
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';
|