addigy 2.10.4 → 2.10.5
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/lib/users/users.d.ts +2 -2
- package/lib/users/users.js +2 -1
- package/package.json +14 -14
package/lib/users/users.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IAddigyInternalAuthObject } from '../auth/auth.types';
|
|
2
|
-
import { UserRoles } from './user.types';
|
|
2
|
+
import { User, UserRoles } from './user.types';
|
|
3
3
|
export declare class Users {
|
|
4
4
|
private readonly http;
|
|
5
5
|
createUser(authObject: IAddigyInternalAuthObject, email: string, name: string, policies: string[] | undefined, role: UserRoles | string, phone?: string): Promise<object[]>;
|
|
6
6
|
updateUser(authObject: IAddigyInternalAuthObject, email: string, name: string, policies: string[] | undefined, role: string, phone?: string): Promise<object[]>;
|
|
7
7
|
deleteUser(authObject: IAddigyInternalAuthObject, email: string): Promise<object[]>;
|
|
8
|
-
getUsers(authObject: IAddigyInternalAuthObject): Promise<
|
|
8
|
+
getUsers(authObject: IAddigyInternalAuthObject): Promise<User[]>;
|
|
9
9
|
}
|
package/lib/users/users.js
CHANGED
|
@@ -87,6 +87,7 @@ class Users {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
async getUsers(authObject) {
|
|
90
|
+
var _a, _b;
|
|
90
91
|
try {
|
|
91
92
|
let res = await this.http.get('https://app-prod.addigy.com/api/account', {
|
|
92
93
|
headers: {
|
|
@@ -94,7 +95,7 @@ class Users {
|
|
|
94
95
|
},
|
|
95
96
|
method: 'GET',
|
|
96
97
|
});
|
|
97
|
-
return res.data.users;
|
|
98
|
+
return (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.users) !== null && _b !== void 0 ? _b : [];
|
|
98
99
|
}
|
|
99
100
|
catch (err) {
|
|
100
101
|
throw err;
|
package/package.json
CHANGED
|
@@ -6,29 +6,29 @@
|
|
|
6
6
|
}
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@expo/plist": "0.
|
|
10
|
-
"axios": "1.
|
|
11
|
-
"http-cookie-agent": "6.0.
|
|
12
|
-
"tough-cookie": "
|
|
13
|
-
"uuid": "
|
|
9
|
+
"@expo/plist": "0.2.2",
|
|
10
|
+
"axios": "1.8.1",
|
|
11
|
+
"http-cookie-agent": "6.0.8",
|
|
12
|
+
"tough-cookie": "5.1.2",
|
|
13
|
+
"uuid": "11.1.0"
|
|
14
14
|
},
|
|
15
15
|
"description": "",
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@pliancy/eslint-config-ts": "1.1.1",
|
|
18
18
|
"@pliancy/semantic-release-config-npm": "2.2.0",
|
|
19
|
-
"@types/jest": "29.5.
|
|
20
|
-
"@types/node": "
|
|
19
|
+
"@types/jest": "29.5.14",
|
|
20
|
+
"@types/node": "22.13.9",
|
|
21
21
|
"@types/tough-cookie": "4.0.5",
|
|
22
|
-
"@types/uuid": "
|
|
23
|
-
"commitizen": "4.3.
|
|
24
|
-
"concurrently": "
|
|
22
|
+
"@types/uuid": "10.0.0",
|
|
23
|
+
"commitizen": "4.3.1",
|
|
24
|
+
"concurrently": "9.1.2",
|
|
25
25
|
"cpy-cli": "5.0.0",
|
|
26
26
|
"cz-conventional-changelog": "3.3.0",
|
|
27
|
-
"husky": "9.
|
|
27
|
+
"husky": "9.1.7",
|
|
28
28
|
"jest": "29.7.0",
|
|
29
29
|
"open": "10.1.0",
|
|
30
30
|
"pinst": "3.0.0",
|
|
31
|
-
"rimraf": "
|
|
31
|
+
"rimraf": "6.0.1",
|
|
32
32
|
"ts-jest": "29.1.4",
|
|
33
33
|
"typescript": "5.4.5"
|
|
34
34
|
},
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"tsc": "tsc -p tsconfig.build.json"
|
|
59
59
|
},
|
|
60
60
|
"types": "index.d.ts",
|
|
61
|
-
"version": "2.10.
|
|
61
|
+
"version": "2.10.5",
|
|
62
62
|
"volta": {
|
|
63
|
-
"node": "
|
|
63
|
+
"node": "22.14.0",
|
|
64
64
|
"yarn": "1.22.22"
|
|
65
65
|
}
|
|
66
66
|
}
|