packageDocumentation module import { AesPkcs5 , Fetcher , Primitive } from "nestia-fetcher" ; import type { IConnection } from "nestia-fetcher" ; import type { ISaleInquiry } from "./../../../../structures/sales/articles/ISaleInquiry" ; import type { ISaleArticle } from "./../../../../structures/sales/articles/ISaleArticle" ; import type { IPage } from "./../../../../structures/common/IPage" ; param connection param request param section param saleId param input return throw throw nestia controller path export function store ( connection , section , saleId , input ) { return Fetcher . fetch ( connection , store . ENCRYPTED , store . METHOD , store . path ( section , saleId ) , input ) ; } export namespace store { export type Input = Primitive < ISaleInquiry . IStore > ; export type Output = Primitive < ISaleInquiry < ISaleArticle . IContent > > ; export const METHOD = "POST" as const ; export const PATH = "/consumers/:section/sales/:saleId/questions" ; export const ENCRYPTED = { request : true , response : true , } ; export function path ( section , saleId ) { return `/consumers/${ section }/sales/${ saleId }/questions` ; } } param connection param request param section param saleId param id param input return throw throw throw nestia controller path export function update ( connection , section , saleId , id , input ) { return Fetcher . fetch ( connection , update . ENCRYPTED , update . METHOD , update . path ( section , saleId , id ) , input ) ; } export namespace update { export type Input = Primitive < ISaleInquiry . IStore > ; export type Output = Primitive < ISaleInquiry < ISaleArticle . IContent > > ; export const METHOD = "POST" as const ; export const PATH = "/consumers/:section/sales/:saleId/questions/:id" ; export const ENCRYPTED = { request : true , response : true , } ; export function path ( section , saleId , id ) { return `/consumers/${ section }/sales/${ saleId }/questions/${ id }` ; } } param connection param request param section param saleId param id return throw throw throw nestia controller path export function remove ( connection , section , saleId , id ) { return Fetcher . fetch ( connection , remove . ENCRYPTED , remove . METHOD , remove . path ( section , saleId , id ) ) ; } export namespace remove { export const METHOD = "DELETE" as const ; export const PATH = "/consumers/:section/sales/:saleId/questions/:id" ; export const ENCRYPTED = { request : false , response : false , } ; export function path ( section , saleId , id ) { return `/consumers/${ section }/sales/${ saleId }/questions/${ id }` ; } } param connection param section param saleId param input return throw throw nestia controller path export function index ( connection , section , saleId , input ) { return Fetcher . fetch ( connection , index . ENCRYPTED , index . METHOD , index . path ( section , saleId , input ) ) ; } export namespace index { export type Query = Primitive < ISaleInquiry . IRequest > ; export type Output = Primitive < IPage < ISaleInquiry . ISummary > > ; export const METHOD = "GET" as const ; export const PATH = "/consumers/:section/sales/:saleId/questions" ; export const ENCRYPTED = { request : false , response : true , } ; export function path ( section , saleId , input ) { return `/consumers/${ section }/sales/${ saleId }/questions?${ new URLSearchParams ( input as any ) . toString ( ) }` ; } } param connection param section param saleId param id return throw throw nestia controller path export function at ( connection , section , saleId , id ) { return Fetcher . fetch ( connection , at . ENCRYPTED , at . METHOD , at . path ( section , saleId , id ) ) ; } export namespace at { export type Output = Primitive < ISaleInquiry < ISaleArticle . IContent > > ; export const METHOD = "GET" as const ; export const PATH = "/consumers/:section/sales/:saleId/questions/:id" ; export const ENCRYPTED = { request : false , response : true , } ; export function path ( section , saleId , id ) { return `/consumers/${ section }/sales/${ saleId }/questions/${ id }` ; } } AesPkcs5 ; Fetcher ; Primitive ;