forked from Dashlane/dashlane-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeactivateDevices.ts
32 lines (28 loc) · 897 Bytes
/
deactivateDevices.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { requestUserApi } from '../requestApi.js';
import { LocalConfiguration } from '../types.js';
interface DeactivateDevicesParams {
localConfiguration: LocalConfiguration;
login: string;
/**
* List of deviceIds to deactivate
*/
deviceIds?: string[];
/**
* List of pairingGroupIds to deactivate
*/
pairingGroupIds?: string[];
}
export interface DeactivateDevicesOutput {}
export const deactivateDevices = (params: DeactivateDevicesParams) =>
requestUserApi<DeactivateDevicesOutput>({
path: 'devices/DeactivateDevices',
payload: {
deviceIds: params.deviceIds,
pairingGroupIds: params.pairingGroupIds,
},
login: params.login,
deviceKeys: {
accessKey: params.localConfiguration.accessKey,
secretKey: params.localConfiguration.secretKey,
},
});