"use strict";
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetCorporateActionsByTypeQueryFixture = exports.GetCorporateActionsByTypeRequestFixture = exports.GetCorporateActionsResponseFixture = exports.GetCorporateActionsQueryFixture = exports.GetCorporateActionsRequestFixture = exports.GetCorporateActionResponseFixture = exports.GetCorporateActionQueryFixture = exports.GetCorporateActionRequestFixture = exports.ActionContentHashExistsRequestFixture = exports.ActionContentHashExistsQueryFixture = void 0;
const DataFixture_1 = require("../shared/DataFixture");
const config_1 = require("../config");
exports.ActionContentHashExistsQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.contentHash.faker((faker) => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`);
});
exports.ActionContentHashExistsRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.contentHash.faker((faker) => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`);
});
exports.GetCorporateActionRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.corporateActionId.faker((faker) => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`);
});
exports.GetCorporateActionQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.corporateActionId.faker((faker) => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`);
});
exports.GetCorporateActionResponseFixture = (0, config_1.createFixture)((response) => {
    response.actionType.faker((faker) => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`);
    response.actionTypeId.faker((faker) => faker.number.int({ min: 1, max: 100 }));
    response.data.faker((faker) => `0x${faker.string.hexadecimal({ length: 128, prefix: "" })}`);
    response.isDisabled.faker((faker) => faker.datatype.boolean());
});
exports.GetCorporateActionsRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.start.faker((faker) => faker.number.int({ min: 0, max: 10 }));
    request.end.faker((faker) => faker.number.int({ min: 1, max: 100 }));
});
exports.GetCorporateActionsQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.start.faker((faker) => faker.number.int({ min: 0, max: 10 }));
    query.end.faker((faker) => faker.number.int({ min: 1, max: 100 }));
});
exports.GetCorporateActionsResponseFixture = (0, config_1.createFixture)((response) => {
    response.actionTypes.faker((faker) => Array.from({ length: faker.number.int({ min: 1, max: 5 }) }, () => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`));
    response.actionTypeIds.faker((faker) => Array.from({ length: faker.number.int({ min: 1, max: 5 }) }, () => faker.number.int({ min: 1, max: 100 })));
    response.datas.faker((faker) => Array.from({ length: faker.number.int({ min: 1, max: 5 }) }, () => `0x${faker.string.hexadecimal({ length: 128, prefix: "" })}`));
    response.isDisabled.faker((faker) => Array.from({ length: faker.number.int({ min: 1, max: 5 }) }, () => faker.datatype.boolean()));
});
exports.GetCorporateActionsByTypeRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.actionType.faker((faker) => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`);
    request.start.faker((faker) => faker.number.int({ min: 0, max: 10 }));
    request.end.faker((faker) => faker.number.int({ min: 1, max: 100 }));
});
exports.GetCorporateActionsByTypeQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.actionType.faker((faker) => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`);
    query.start.faker((faker) => faker.number.int({ min: 0, max: 10 }));
    query.end.faker((faker) => faker.number.int({ min: 1, max: 100 }));
});
