@pagamio/frontend-commons-lib 0.8.191 → 0.8.192
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.
|
@@ -254,6 +254,8 @@ export interface CommerceAppAuthConfig extends CustomAuthConfig {
|
|
|
254
254
|
id: string;
|
|
255
255
|
/** Username used for authentication */
|
|
256
256
|
userName: string;
|
|
257
|
+
/** Array of role identifiers assigned to the user */
|
|
258
|
+
roles: string[];
|
|
257
259
|
/** Current onboarding step */
|
|
258
260
|
onboardingStep?: string | null;
|
|
259
261
|
/** Secondary user identifier */
|
|
@@ -273,8 +275,7 @@ export interface CommerceAppAuthConfig extends CustomAuthConfig {
|
|
|
273
275
|
/** Login credentials structure */
|
|
274
276
|
Credentials: {
|
|
275
277
|
/** Username or email for authentication */
|
|
276
|
-
username
|
|
277
|
-
email?: string;
|
|
278
|
+
username: string;
|
|
278
279
|
/** User's password */
|
|
279
280
|
password: string;
|
|
280
281
|
};
|
|
@@ -291,6 +291,7 @@ export class CommerceAppResponseTransformer {
|
|
|
291
291
|
user: {
|
|
292
292
|
id: data.user.id,
|
|
293
293
|
userName: data.user.userName,
|
|
294
|
+
roles: data.user.roles || [],
|
|
294
295
|
onboardingStep: data.user.onboardingStep,
|
|
295
296
|
userId: data.user.id,
|
|
296
297
|
userType: data.user.userType || 'customer',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagamio/frontend-commons-lib",
|
|
3
3
|
"description": "Pagamio library for Frontend reusable components like the form engine and table container",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.192",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"provenance": false
|