Skip to content
On this page

stage.ref.product.admin.sales

物販売り上げのリストオペレータです。

メソッド

all() admin

type
Promise<Array<ProductSales>>

全てのリストを取得します。

使用方法

ts
const list = await Hedgehog.stage
  .ref("ステージのUUID")
  .product.admin.sales()
  .all();

first() admin

type
Promise<(ProductSales|undefined)>

リストの最初の要素を取得します。

使用方法

ts
const data = await Hedgehog.stage
  .ref("ステージのUUID")
  .product.admin.sales()
  .first();

page() admin

引数必須内容
limitnumber1 ページ当たりの要素数
pagenumber取得するページ
type
Promise<PagedSalesListData<TicketNumber>>

ページに分けてリストを取得します。

使用方法

ts
const list = await Hedgehog.stage
  .ref("ステージのUUID")
  .product.admin.sales()
  .page(10, 1);

sort() admin

引数必須内容
orderProductSalesListSort / Array<ProductSalesListSort>ソート用データ

取得するリストに対するソートをセットします。