@bigbinary/neeto-playwright-commons 1.26.30 → 1.26.31
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/index.cjs.js +9 -9
- package/index.cjs.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +9 -9
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4665,6 +4665,7 @@ type ActionDataMap = {
|
|
|
4665
4665
|
[ACTIONS.updatedName]: UpdatedNameData;
|
|
4666
4666
|
};
|
|
4667
4667
|
type ActionDataKey = keyof ActionDataMap;
|
|
4668
|
+
type MessageBuilders = { [k in ActionDataKey]: (data: ActionDataMap[k]) => string };
|
|
4668
4669
|
interface VerifyAuditLogProps<T extends ActionDataKey> {
|
|
4669
4670
|
action: T;
|
|
4670
4671
|
adminName?: string;
|
|
@@ -4675,7 +4676,7 @@ declare class AuditLogsPage {
|
|
|
4675
4676
|
private neetoPlaywrightUtilities;
|
|
4676
4677
|
private product?;
|
|
4677
4678
|
private readonly currentDate;
|
|
4678
|
-
|
|
4679
|
+
messageBuilders: MessageBuilders;
|
|
4679
4680
|
private admin;
|
|
4680
4681
|
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands, product?: NeetoProducts | undefined);
|
|
4681
4682
|
verifyAuditLogs: <T extends ActionDataKey>({
|
package/index.js
CHANGED
|
@@ -119262,15 +119262,15 @@ class AuditLogsPage {
|
|
|
119262
119262
|
this.verifyAuditLogEntry = async ({}) => { };
|
|
119263
119263
|
this.currentDate = dayjs().tz("Asia/Kolkata").format("MMM D, YYYY");
|
|
119264
119264
|
this.messageBuilders = {
|
|
119265
|
-
[ACTIONS.inviteUsers]: (data) => `${this.admin}
|
|
119266
|
-
[ACTIONS.updatedUser]: (data) => `${this.admin}
|
|
119267
|
-
[ACTIONS.removedUser]: (data) => `${this.admin}
|
|
119268
|
-
[ACTIONS.createdRole]: (data) => `${this.admin} created ${data.roleName} role on Neeto${this.product}
|
|
119269
|
-
[ACTIONS.addedPermission]: (data) => `${this.admin} added ${data.permissions.join(", ").toLowerCase()} permission to ${data.roleName} role on Neeto${this.product}
|
|
119270
|
-
[ACTIONS.removedPermission]: (data) => `${this.admin} removed ${data.permissions.join(", ")} permissions from ${data.roleName} role on Neeto${this.product}
|
|
119271
|
-
[ACTIONS.updatedRole]: (data) => `${this.admin} updated ${data.roleName} role on Neeto${this.product}
|
|
119272
|
-
[ACTIONS.deletedRole]: (data) => `${this.admin} deleted ${data.roleName} role on Neeto${this.product}
|
|
119273
|
-
[ACTIONS.updatedName]: (data) => `${this.admin} updated their first name: from ${data.name} to ${this.admin.split(" ")[0]} on Neeto${this.product}
|
|
119265
|
+
[ACTIONS.inviteUsers]: (data) => `${this.admin} added ${data.emails.join(", ").toLowerCase()} to Neeto${this.product}.`,
|
|
119266
|
+
[ACTIONS.updatedUser]: (data) => `${this.admin} changed ${data.emails[1].toLowerCase()}'s email from ${data.emails[0].toLowerCase()} to ${data.emails[1]} on Neeto${this.product}.`,
|
|
119267
|
+
[ACTIONS.removedUser]: (data) => `${this.admin} changed ${data.emails[0].toLowerCase()}'s active from true to false on Neeto${this.product}.`,
|
|
119268
|
+
[ACTIONS.createdRole]: (data) => `${this.admin} created ${data.roleName} role on Neeto${this.product}.`,
|
|
119269
|
+
[ACTIONS.addedPermission]: (data) => `${this.admin} added ${data.permissions.join(", ").toLowerCase()} permission to ${data.roleName} role on Neeto${this.product}.`,
|
|
119270
|
+
[ACTIONS.removedPermission]: (data) => `${this.admin} removed ${data.permissions.join(", ")} permissions from ${data.roleName} role on Neeto${this.product}.`,
|
|
119271
|
+
[ACTIONS.updatedRole]: (data) => `${this.admin} updated ${data.roleName} role on Neeto${this.product}.`,
|
|
119272
|
+
[ACTIONS.deletedRole]: (data) => `${this.admin} deleted ${data.roleName} role on Neeto${this.product}.`,
|
|
119273
|
+
[ACTIONS.updatedName]: (data) => `${this.admin} updated their first name: from ${data.name} to ${this.admin.split(" ")[0]} on Neeto${this.product}.`,
|
|
119274
119274
|
};
|
|
119275
119275
|
}
|
|
119276
119276
|
}
|