@bigbinary/neeto-commons-frontend 2.0.31 → 2.0.32

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.
@@ -17,22 +17,19 @@ type CommonSelectors = {
17
17
  };
18
18
 
19
19
  type MemberSelectors = {
20
- addMember: string;
21
- admin: string;
22
- agent: string;
23
- agents: string;
24
- activeMembersHeading: string;
25
- accountActivatedToastMessage: string;
26
- activateMember: string;
27
- activateMemberAlertMessage: string;
28
- deactivateAccountToastMessage: string;
29
- deactivateMember: string;
30
- deactivateMemberAlertMessage: string;
31
- editMember: string;
32
- memberAddedMessage: string;
33
- members: string;
34
- newHeading: string;
35
- updatedMemberRole: string;
20
+ activatedMembersButton: string;
21
+ columnCheckBox: string;
22
+ continueButton: string;
23
+ deactivatedAgentsButton: string;
24
+ dropDownIcon: string;
25
+ email: string;
26
+ menuBarHeading: string;
27
+ membersTab: string;
28
+ newButton: string;
29
+ role: string;
30
+ roleLabel: (role: string) => string;
31
+ searchTextField: string;
32
+ submitButton: string;
36
33
  };
37
34
 
38
35
  type LoginSelectors = {
@@ -105,6 +102,16 @@ type MemberText = {
105
102
  updatedMemberRole: string;
106
103
  };
107
104
 
105
+ type MemberTableTexts = {
106
+ assignedTickets: string;
107
+ availabilityForDesk: string;
108
+ created: string;
109
+ email: string;
110
+ name: string;
111
+ role: string;
112
+ teams: string;
113
+ };
114
+
108
115
  type SignUpTexts = {
109
116
  email: string;
110
117
  profile: string;
@@ -167,7 +174,7 @@ export function createOrganization(props: {
167
174
 
168
175
  // Utils: validation
169
176
 
170
- function verifyCrossSiteScript(
177
+ export function verifyCrossSiteScript(
171
178
  inputSelector: string,
172
179
  submitSelector: string
173
180
  ): Void;
@@ -199,7 +206,7 @@ function deactivateMember(props: {
199
206
 
200
207
  function deactivateMemberViaRequest(email: string, requestCount: number): Void;
201
208
 
202
- function editMember(props: {
209
+ function updateMemberRole(props: {
203
210
  email: string;
204
211
  role: string;
205
212
  skipSearchRequest: boolean;
@@ -209,27 +216,8 @@ function interceptMemberApi(alias: string, times: number = 1): Void;
209
216
 
210
217
  function navigateToMembersPage(waitForRequest: boolean = true): Void;
211
218
 
212
- function navigateToNewMemberPanel(waitForRequest: boolean = true): Void;
213
-
214
219
  function unCheckColumnCheckBox(fieldSelector: string): Void;
215
220
 
216
- function verifyActivatedMember(props: {
217
- email: string;
218
- skipFetchRequest: boolean;
219
- skipSearchRequest: boolean;
220
- }): Void;
221
-
222
- function verifyActivateAlert(props: {
223
- email: string;
224
- skipSearchRequest: boolean;
225
- }): Void;
226
-
227
- function verifyDeactivatedMember(props: {
228
- email: string;
229
- skipFetchRequest: boolean;
230
- skipSearchRequest: boolean;
231
- }): Void;
232
-
233
221
  function verifyMemberDetails(props: {
234
222
  email: string;
235
223
  role: string;
@@ -247,14 +235,10 @@ export const memberUtils = {
247
235
  checkColumnCheckBox,
248
236
  deactivateMember,
249
237
  deactivateMemberViaRequest,
250
- editMember,
238
+ updateMemberRole,
251
239
  interceptMemberApi,
252
240
  navigateToMembersPage,
253
- navigateToNewMemberPanel,
254
241
  unCheckColumnCheckBox,
255
- verifyActivatedMember,
256
- verifyActivateAlert,
257
- verifyDeactivatedMember,
258
242
  verifyMemberDetails,
259
243
  };
260
244
 
@@ -270,6 +254,7 @@ export declare const signUpSelectors: SignUpSelectors;
270
254
 
271
255
  export declare const commonTexts: CommonTexts;
272
256
  export declare const memberTexts: MemberText;
257
+ export declare const memberTableTexts: MemberTableTexts;
273
258
  export declare const signUpTexts: SignUpTexts;
274
259
  export declare const environment: Environment;
275
260
  export declare const isStagingEnv: Boolean;