Repository URL to install this package:
|
Version:
2.0.2 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const get_1 = require("@skava/modules/___dist/composition/get");
exports.transformList = response => {
const { float, array, string } = get_1.getTyped(response);
const listResponse = {
// saveforlater: saveForLaterItems,
type: string('type', 'getlists'),
count: float('properties.state.count'),
flags: array('properties.iteminfo.flags'),
lists: array('children.lists').map(list => {
return {
identifier: list.identifier,
additionalInfo: list.properties.iteminfo.additionalinfo,
};
}),
};
return listResponse;
};
//# sourceMappingURL=transform.js.map