@chevre/domain
Version:
Chevre Domain Library for Node.js
28 lines (27 loc) • 1.01 kB
TypeScript
import * as factory from '../factory';
import type { ActionRepo } from '../repo/action';
import type { AssetTransactionRepo } from '../repo/assetTransaction';
import type { ProductRepo } from '../repo/product';
import type { ProjectRepo } from '../repo/project';
import type { TransactionNumberRepo } from '../repo/transactionNumber';
/**
* 特典付与
*/
declare function givePointAward(params: factory.task.IData<factory.taskName.GivePointAward>): (repos: {
action: ActionRepo;
assetTransaction: AssetTransactionRepo;
product: ProductRepo;
project: ProjectRepo;
transactionNumber: TransactionNumberRepo;
}) => Promise<void>;
/**
* 特典返却
*/
declare function returnPointAward(params: factory.task.IData<factory.taskName.ReturnPointAward>): (repos: {
action: ActionRepo;
assetTransaction: AssetTransactionRepo;
product: ProductRepo;
project: ProjectRepo;
transactionNumber: TransactionNumberRepo;
}) => Promise<void>;
export { givePointAward, returnPointAward };