Skip to content

Commit

Permalink
updated order return paginator
Browse files Browse the repository at this point in the history
  • Loading branch information
KostiantynFandeliuk committed Dec 5, 2024
1 parent a258206 commit 483d498
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CustomerOrdersReturnModel } from '../../data/models';

export declare const getCustomerOrdersReturn: (pageSize: number | undefined, currentPage: 1) => Promise<CustomerOrdersReturnModel | null>;
export declare const getCustomerOrdersReturn: (pageSize: number | undefined, currentPage: number) => Promise<CustomerOrdersReturnModel | null>;
//# sourceMappingURL=getCustomerOrdersReturn.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! Copyright 2024 Adobe
All Rights Reserved. */
import{h as o}from"./network-error.js";import{R,P as E,a as s,G as c,O as _,t as n}from"./transform-customer-orders-returns.js";import{f as T}from"./fetch-graphql.js";const g=`
import{h as R}from"./network-error.js";import{R as E,P as _,a as T,G as s,O as c,t as n}from"./transform-customer-orders-returns.js";import{f as o}from"./fetch-graphql.js";const u=`
query GET_CUSTOMER_ORDERS_RETURN($currentPage: Int, $pageSize: Int) {
customer {
returns(currentPage: $currentPage, pageSize: $pageSize) {
Expand All @@ -13,9 +13,9 @@ query GET_CUSTOMER_ORDERS_RETURN($currentPage: Int, $pageSize: Int) {
}
}
}
${R}
${E}
${_}
${T}
${s}
${c}
${_}
`,S=async(e=10,t)=>(console.log("pageSize",e),console.log("///////"),console.log("currentPage",t),await T(g,{method:"GET",cache:"force-cache",variables:{pageSize:e,currentPage:t}}).then(r=>{var a;return console.log("response",r),n((a=r==null?void 0:r.data)==null?void 0:a.customer.returns)}).catch(o));export{S as g};
`,G=async(t=10,a)=>await o(u,{method:"GET",cache:"force-cache",variables:{pageSize:t,currentPage:a}}).then(r=>{var e;return n((e=r==null?void 0:r.data)==null?void 0:e.customer.returns)}).catch(R);export{G as g};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/__dropins__/storefront-order/reload
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"at":1733422740299}
{"at":1733423553744}

0 comments on commit 483d498

Please sign in to comment.