"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDurationFromActivityStream = exports.buildAvailableActivities = exports.getActivityStreamDuration = exports.getAPId = void 0;
function getAPId(object) {
    if (typeof object === 'string')
        return object;
    return object.id;
}
exports.getAPId = getAPId;
function getActivityStreamDuration(duration) {
    return 'PT' + duration + 'S';
}
exports.getActivityStreamDuration = getActivityStreamDuration;
function getDurationFromActivityStream(duration) {
    return parseInt(duration.replace(/[^\d]+/, ''));
}
exports.getDurationFromActivityStream = getDurationFromActivityStream;
function buildAvailableActivities() {
    return [
        'Create',
        'Update',
        'Delete',
        'Follow',
        'Accept',
        'Announce',
        'Undo',
        'Like',
        'Reject',
        'View',
        'Dislike',
        'Flag'
    ];
}
exports.buildAvailableActivities = buildAvailableActivities;
//# sourceMappingURL=activity.js.map