/**
 * This module provides utility functions for working with Triples in TypeScript.
 *
 * @since 0.0.6
 */
/**
 * Generates op for creating a new Triple.
 *
 * @example
 * ```ts
 * const op = Triple.make({
 *   attributeId: 'attribute-id',
 *   entityId: 'entity-id',
 *   value: {
 *     type: 'TEXT',
 *     value: 'value',
 *   },
 * });
 * ```
 * @param args – {@link CreateTripleParams}
 * @returns – {@link SetTripleOp}
 */
export function make(args) {
    return {
        type: 'SET_TRIPLE',
        triple: {
            attribute: args.attributeId,
            entity: args.entityId,
            value: args.value,
        },
    };
}
/**
 * Generates op for deleting a Triple.
 *
 * @example
 * ```ts
 * const op = Triple.remove({
 *   attributeId: 'attribute-id',
 *   entityId: 'entity-id',
 * });
 * ```
 *
 * @param args – {@link DeleteTripleParams}
 * @returns – {@link DeleteTripleOp}
 */
export function remove(args) {
    return {
        type: 'DELETE_TRIPLE',
        triple: {
            attribute: args.attributeId,
            entity: args.entityId,
        },
    };
}
//# sourceMappingURL=triple.js.map