| 1 |
export const FIRST_KEY_INDEX = 1; |
| 2 |
|
| 3 |
export const IS_READ_ONLY = true; |
| 4 |
|
| 5 |
export function transformArguments(key: string): Array<string> { |
| 6 |
return ['CMS.INFO', key]; |
| 7 |
} |
| 8 |
|
| 9 |
export type InfoRawReply = [ |
| 10 |
_: string, |
| 11 |
width: number, |
| 12 |
_: string, |
| 13 |
depth: number, |
| 14 |
_: string, |
| 15 |
count: number |
| 16 |
]; |
| 17 |
|
| 18 |
export interface InfoReply { |
| 19 |
width: number; |
| 20 |
depth: number; |
| 21 |
count: number; |
| 22 |
} |
| 23 |
|
| 24 |
export function transformReply(reply: InfoRawReply): InfoReply { |
| 25 |
return { |
| 26 |
width: reply[1], |
| 27 |
depth: reply[3], |
| 28 |
count: reply[5] |
| 29 |
}; |
| 30 |
} |