(command: APICommand<APICommandFlags>)
| 27 | } |
| 28 | |
| 29 | export const customPreferences = async (command: APICommand<APICommandFlags>): Promise<DevicePreference[]> => { |
| 30 | return (await command.client.devicePreferences.list()) |
| 31 | .filter(preference => preference.preferenceId.split('.').length > 1) |
| 32 | } |
| 33 | |
| 34 | export async function preferencesForAllOrganizations(command: APICommand<APICommandFlags>): Promise<DevicePreference[]> { |
| 35 | return forAllOrganizations(command.client, (orgClient, org) => { |