@chevre/domain
Version:
Chevre Domain Library for Node.js
50 lines (49 loc) • 1.39 kB
TypeScript
import type { EventRepo } from '../../../repo/event';
import type { OfferRepo } from '../../../repo/offer/unitPriceInCatalog';
import type { OfferCatalogRepo } from '../../../repo/offerCatalog';
import type { ProductRepo } from '../../../repo/product';
interface ISearchOfferCatalogItemAvailabilityResult {
id: string;
isAvailable: boolean;
}
/**
* サブカタログ利用可能性検索
*/
declare function searchOfferCatalogItemAvailability(params: {
event: {
/**
* イベントID
*/
id: string;
};
/**
* どのアプリケーションに対して
*/
availableAtOrFrom: {
id: string;
};
limit: number;
page: number;
options: {
/**
* イベントの利用不可決済方法区分を考慮するかどうか(2024-09-26~)
*/
considerUnacceptedPaymentMethod: boolean;
/**
* 明示的なカタログID指定に対応(2024-10-01~)
*/
includedInDataCatalog?: {
/**
* カタログID
*/
id: string;
};
useIncludeInDataCatalog: boolean;
};
}): (repos: {
event: EventRepo;
offer: OfferRepo;
offerCatalog: OfferCatalogRepo;
product: ProductRepo;
}) => Promise<ISearchOfferCatalogItemAvailabilityResult[]>;
export { searchOfferCatalogItemAvailability };