"use strict";
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsPausedMockRequestFixture = exports.SetPausedMockRequestFixture = exports.GetExternalPausesMembersRequestFixture = exports.GetExternalPausesCountRequestFixture = exports.IsExternalPauseRequestFixture = exports.RemoveExternalPauseRequestFixture = exports.AddExternalPauseRequestFixture = exports.UpdateExternalPausesRequestFixture = exports.IsPausedMockQueryFixture = exports.IsExternalPauseQueryFixture = exports.GetExternalPausesMembersQueryFixture = exports.GetExternalPausesCountQueryFixture = exports.UpdateExternalPausesCommandFixture = exports.RemoveExternalPauseCommandFixture = exports.SetPausedMockCommandFixture = exports.AddExternalPauseCommandFixture = void 0;
const DataFixture_1 = require("../shared/DataFixture");
const config_1 = require("../config");
exports.AddExternalPauseCommandFixture = (0, config_1.createFixture)((command) => {
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.externalPauseAddress.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.SetPausedMockCommandFixture = (0, config_1.createFixture)((command) => {
    command.contractId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.paused.faker((faker) => faker.datatype.boolean());
});
exports.RemoveExternalPauseCommandFixture = (0, config_1.createFixture)((command) => {
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.externalPauseAddress.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.UpdateExternalPausesCommandFixture = (0, config_1.createFixture)((command) => {
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.externalPausesAddresses.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    command.actives.faker((faker) => [faker.datatype.boolean()]);
});
exports.GetExternalPausesCountQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.GetExternalPausesMembersQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.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 }));
});
exports.IsExternalPauseQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.externalPauseAddress.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.IsPausedMockQueryFixture = (0, config_1.createFixture)((query) => {
    query.contractId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.UpdateExternalPausesRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.externalPausesAddresses.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    request.actives.faker((faker) => [faker.datatype.boolean()]);
});
exports.AddExternalPauseRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.externalPauseAddress.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
});
exports.RemoveExternalPauseRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.externalPauseAddress.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
});
exports.IsExternalPauseRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.externalPauseAddress.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
});
exports.GetExternalPausesCountRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.GetExternalPausesMembersRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.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 }));
});
exports.SetPausedMockRequestFixture = (0, config_1.createFixture)((request) => {
    request.contractId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.paused.faker((faker) => faker.datatype.boolean());
});
exports.IsPausedMockRequestFixture = (0, config_1.createFixture)((request) => {
    request.contractId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
