"use strict";
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsOperatorForPartitionQueryFixture = exports.IsOperatorQueryFixture = exports.GetTotalSupplyByPartitionQueryFixture = exports.GetMaxSupplyByPartitionQueryFixture = exports.GetMaxSupplyQueryFixture = exports.CanTransferByPartitionQueryFixture = exports.CanTransferQueryFixture = exports.CanRedeemByPartitionQueryFixture = exports.GetMaxSupplyRequestFixture = exports.SetMaxSupplyRequestFixture = exports.GetAccountBalanceRequestFixture = exports.GetSecurityDetailsRequestFixture = exports.BalanceOfQueryFixture = void 0;
const config_1 = require("../config");
const DataFixture_1 = require("../shared/DataFixture");
const HederaId_1 = require("../../../src/domain/context/shared/HederaId");
exports.BalanceOfQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.targetId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
});
exports.GetSecurityDetailsRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
});
exports.GetAccountBalanceRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    request.targetId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
});
exports.SetMaxSupplyRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    request.maxSupply.faker((faker) => faker.number.int({ min: 1, max: 10 }).toString());
});
exports.GetMaxSupplyRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
});
exports.CanRedeemByPartitionQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.sourceId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.partitionId.as(() => DataFixture_1.PartitionIdFixture.create().value);
    query.amount.faker((faker) => faker.number.int({ min: 1, max: 999 }));
});
exports.CanTransferQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.targetId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.amount.faker((faker) => faker.number.int({ min: 1, max: 999 }));
});
exports.CanTransferByPartitionQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.sourceId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.partitionId.as(() => DataFixture_1.PartitionIdFixture.create().value);
    query.targetId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.amount.faker((faker) => faker.number.int({ min: 1, max: 999 }));
});
exports.GetMaxSupplyQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
});
exports.GetMaxSupplyByPartitionQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.partitionId.as(() => DataFixture_1.PartitionIdFixture.create().value);
});
exports.GetTotalSupplyByPartitionQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.partitionId.as(() => DataFixture_1.PartitionIdFixture.create().value);
});
exports.IsOperatorQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.targetId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.operatorId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
});
exports.IsOperatorForPartitionQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.targetId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.operatorId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
    query.partitionId.as(() => DataFixture_1.PartitionIdFixture.create().value);
});
