// SPDX-License-Identifier: Apache-2.0
import { HederaIdPropsFixture } from "../shared/DataFixture";
import { createFixture } from "../config";
export const AddExternalPauseCommandFixture = createFixture((command) => {
    command.securityId.as(() => HederaIdPropsFixture.create().value);
    command.externalPauseAddress.as(() => HederaIdPropsFixture.create().value);
});
export const SetPausedMockCommandFixture = createFixture((command) => {
    command.contractId.as(() => HederaIdPropsFixture.create().value);
    command.paused.faker((faker) => faker.datatype.boolean());
});
export const RemoveExternalPauseCommandFixture = createFixture((command) => {
    command.securityId.as(() => HederaIdPropsFixture.create().value);
    command.externalPauseAddress.as(() => HederaIdPropsFixture.create().value);
});
export const UpdateExternalPausesCommandFixture = createFixture((command) => {
    command.securityId.as(() => HederaIdPropsFixture.create().value);
    command.externalPausesAddresses.as(() => [HederaIdPropsFixture.create().value]);
    command.actives.faker((faker) => [faker.datatype.boolean()]);
});
export const GetExternalPausesCountQueryFixture = createFixture((query) => {
    query.securityId.as(() => HederaIdPropsFixture.create().value);
});
export const GetExternalPausesMembersQueryFixture = createFixture((query) => {
    query.securityId.as(() => HederaIdPropsFixture.create().value);
    query.start.faker((faker) => faker.number.int({ min: 1, max: 10 }));
    query.end.faker((faker) => faker.number.int({ min: 1, max: 10 }));
});
export const IsExternalPauseQueryFixture = createFixture((query) => {
    query.securityId.as(() => HederaIdPropsFixture.create().value);
    query.externalPauseAddress.as(() => HederaIdPropsFixture.create().value);
});
export const IsPausedMockQueryFixture = createFixture((query) => {
    query.contractId.as(() => HederaIdPropsFixture.create().value);
});
export const UpdateExternalPausesRequestFixture = createFixture((request) => {
    request.securityId.as(() => HederaIdPropsFixture.create().value);
    request.externalPausesAddresses.as(() => [HederaIdPropsFixture.create().value]);
    request.actives.faker((faker) => [faker.datatype.boolean()]);
});
export const AddExternalPauseRequestFixture = createFixture((request) => {
    request.securityId.as(() => HederaIdPropsFixture.create().value);
    request.externalPauseAddress.as(() => [HederaIdPropsFixture.create().value]);
});
export const RemoveExternalPauseRequestFixture = createFixture((request) => {
    request.securityId.as(() => HederaIdPropsFixture.create().value);
    request.externalPauseAddress.as(() => [HederaIdPropsFixture.create().value]);
});
export const IsExternalPauseRequestFixture = createFixture((request) => {
    request.securityId.as(() => HederaIdPropsFixture.create().value);
    request.externalPauseAddress.as(() => [HederaIdPropsFixture.create().value]);
});
export const GetExternalPausesCountRequestFixture = createFixture((request) => {
    request.securityId.as(() => HederaIdPropsFixture.create().value);
});
export const GetExternalPausesMembersRequestFixture = createFixture((request) => {
    request.securityId.as(() => HederaIdPropsFixture.create().value);
    request.start.faker((faker) => faker.number.int({ min: 1, max: 10 }));
    request.end.faker((faker) => faker.number.int({ min: 1, max: 10 }));
});
export const SetPausedMockRequestFixture = createFixture((request) => {
    request.contractId.as(() => HederaIdPropsFixture.create().value);
    request.paused.faker((faker) => faker.datatype.boolean());
});
export const IsPausedMockRequestFixture = createFixture((request) => {
    request.contractId.as(() => HederaIdPropsFixture.create().value);
});
