// SPDX-License-Identifier: Apache-2.0
import { HederaIdPropsFixture } from "../shared/DataFixture";
import { createFixture } from "../config";
export const ActionContentHashExistsQueryFixture = createFixture((query) => {
    query.securityId.as(() => HederaIdPropsFixture.create().value);
    query.contentHash.faker((faker) => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`);
});
export const ActionContentHashExistsRequestFixture = createFixture((request) => {
    request.securityId.as(() => HederaIdPropsFixture.create().value);
    request.contentHash.faker((faker) => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`);
});
export const GetCorporateActionRequestFixture = createFixture((request) => {
    request.securityId.as(() => HederaIdPropsFixture.create().value);
    request.corporateActionId.faker((faker) => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`);
});
export const GetCorporateActionQueryFixture = createFixture((query) => {
    query.securityId.as(() => HederaIdPropsFixture.create().value);
    query.corporateActionId.faker((faker) => `0x${faker.string.hexadecimal({ length: 64, prefix: "" })}`);
});
export const GetCorporateActionResponseFixture = 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());
});
export const GetCorporateActionsRequestFixture = createFixture((request) => {
    request.securityId.as(() => 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 }));
});
export const GetCorporateActionsQueryFixture = createFixture((query) => {
    query.securityId.as(() => 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 }));
});
export const GetCorporateActionsResponseFixture = 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()));
});
export const GetCorporateActionsByTypeRequestFixture = createFixture((request) => {
    request.securityId.as(() => 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 }));
});
export const GetCorporateActionsByTypeQueryFixture = createFixture((query) => {
    query.securityId.as(() => 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 }));
});
