eleven-solutions-common-website-unique-web 20.0.48 → 20.0.49

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.
@@ -56,7 +56,7 @@ const UserForm = ({ url }) => {
56
56
  return;
57
57
  try {
58
58
  if (isEditMode) {
59
- yield updateUserApi(url, id, userName, mobile, address, roleType, gender);
59
+ yield updateUserApi(url, id, userName, email, mobile, address, roleType, gender);
60
60
  alert("User updated successfully");
61
61
  }
62
62
  else {
@@ -4,4 +4,4 @@ export declare const fetchUserByIdApi: (url: string, userId: string) => Promise<
4
4
  export declare const deleteUserApi: (url: string, id: string) => Promise<{
5
5
  id: string;
6
6
  }>;
7
- export declare const updateUserApi: (url: string, id: string, name: string, mobile: string, address: string, roleType: string, gender: string) => Promise<unknown>;
7
+ export declare const updateUserApi: (url: string, id: string, name: string, email: string, mobile: string, address: string, roleType: string, gender: string) => Promise<unknown>;
@@ -85,12 +85,13 @@ export const deleteUserApi = (url, id) => __awaiter(void 0, void 0, void 0, func
85
85
  throw error;
86
86
  }
87
87
  });
88
- export const updateUserApi = (url, id, name, mobile, address, roleType, gender) => __awaiter(void 0, void 0, void 0, function* () {
88
+ export const updateUserApi = (url, id, name, email, mobile, address, roleType, gender) => __awaiter(void 0, void 0, void 0, function* () {
89
89
  const token = cookies.get("authToken");
90
90
  try {
91
91
  const response = yield axios.post(`${url}/login/updateuser`, {
92
- id: id,
93
- name: name,
92
+ Id: id,
93
+ Name: name,
94
+ Email: email,
94
95
  Mobile: mobile,
95
96
  Address: address,
96
97
  RoleType: Number(roleType),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "20.0.48",
3
+ "version": "20.0.49",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -70,6 +70,7 @@ const UserForm = ({ url }: UserFormProps) => {
70
70
  url,
71
71
  id,
72
72
  userName,
73
+ email,
73
74
  mobile,
74
75
  address,
75
76
  roleType,
@@ -100,6 +100,7 @@ export const updateUserApi = async (
100
100
 
101
101
  id: string,
102
102
  name: string,
103
+ email: string,
103
104
  mobile: string,
104
105
  address: string,
105
106
  roleType: string,
@@ -111,8 +112,9 @@ export const updateUserApi = async (
111
112
  const response = await axios.post(
112
113
  `${url}/login/updateuser`,
113
114
  {
114
- id: id,
115
- name: name,
115
+ Id: id,
116
+ Name: name,
117
+ Email: email,
116
118
  Mobile: mobile,
117
119
  Address: address,
118
120
  RoleType: Number(roleType),