import { Time } from '@pawel-up/data-mock/Time.js';
import { Types } from '@pawel-up/data-mock/Types.js';
import { Internet } from '@pawel-up/data-mock/Internet.js';
export class Urls {
    types;
    internet;
    time;
    constructor(init = {}) {
        this.types = new Types(init.seed);
        this.internet = new Internet(init);
        this.time = new Time(init);
    }
    /**
     * Generates a single ARC URL model item.
     */
    url() {
        const url = this.internet.uri();
        const time = this.types.datetime().getTime();
        const result = {
            time,
            cnt: this.types.number({ min: 100, max: 1000 }),
            _id: url,
            url,
            midnight: this.time.midnight(time),
        };
        return result;
    }
    /**
     * Generates list of ARC URL models.
     *
     * @returns List of datastore entries.
     */
    urls(size = 25) {
        const result = [];
        for (let i = 0; i < size; i++) {
            result.push(this.url());
        }
        return result;
    }
}
//# sourceMappingURL=Urls.js.map