@getpara/user-management-client 2.0.0-alpha.70 → 2.0.0-alpha.72
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/dist/cjs/client.js +6 -0
- package/dist/esm/client.js +6 -0
- package/dist/types/client.d.ts +3 -0
- package/package.json +2 -2
package/dist/cjs/client.js
CHANGED
|
@@ -525,6 +525,12 @@ class Client {
|
|
|
525
525
|
const res = yield this.baseRequest.post(`/enclave/jwt/refresh`, { encryptedPayload });
|
|
526
526
|
return res.data;
|
|
527
527
|
});
|
|
528
|
+
this.deleteEnclaveShares = (encryptedPayload) => __async(this, null, function* () {
|
|
529
|
+
const res = yield this.baseRequest.delete(`/enclave/key-shares`, {
|
|
530
|
+
data: { encryptedPayload }
|
|
531
|
+
});
|
|
532
|
+
return res.data;
|
|
533
|
+
});
|
|
528
534
|
this.getUserPreferences = (userId) => __async(this, null, function* () {
|
|
529
535
|
const res = yield this.baseRequest.get(`/users/${userId}/preferences`);
|
|
530
536
|
return res.data;
|
package/dist/esm/client.js
CHANGED
|
@@ -448,6 +448,12 @@ class Client {
|
|
|
448
448
|
const res = yield this.baseRequest.post(`/enclave/jwt/refresh`, { encryptedPayload });
|
|
449
449
|
return res.data;
|
|
450
450
|
});
|
|
451
|
+
this.deleteEnclaveShares = (encryptedPayload) => __async(this, null, function* () {
|
|
452
|
+
const res = yield this.baseRequest.delete(`/enclave/key-shares`, {
|
|
453
|
+
data: { encryptedPayload }
|
|
454
|
+
});
|
|
455
|
+
return res.data;
|
|
456
|
+
});
|
|
451
457
|
this.getUserPreferences = (userId) => __async(this, null, function* () {
|
|
452
458
|
const res = yield this.baseRequest.get(`/users/${userId}/preferences`);
|
|
453
459
|
return res.data;
|
package/dist/types/client.d.ts
CHANGED
|
@@ -478,6 +478,9 @@ declare class Client {
|
|
|
478
478
|
refreshEnclaveJwt: (encryptedPayload: string) => Promise<{
|
|
479
479
|
payload: string;
|
|
480
480
|
}>;
|
|
481
|
+
deleteEnclaveShares: (encryptedPayload: string) => Promise<{
|
|
482
|
+
payload: any;
|
|
483
|
+
}>;
|
|
481
484
|
getUserPreferences: (userId: string) => Promise<{
|
|
482
485
|
preferences: UserPreferences;
|
|
483
486
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/user-management-client",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.72",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@getpara/shared": "1.7.0",
|
|
6
6
|
"axios": "^1.8.4",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dist",
|
|
21
21
|
"package.json"
|
|
22
22
|
],
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "abb7dbb2e789d245750db2206afbb1db10e87ff9",
|
|
24
24
|
"main": "dist/cjs/index.js",
|
|
25
25
|
"module": "dist/esm/index.js",
|
|
26
26
|
"scripts": {
|