Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/graphql / dist / endpoints / list / transform.js
Size: Mime:
"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