Skip to content

Commit

Permalink
test bug? 13
Browse files Browse the repository at this point in the history
  • Loading branch information
KostiantynFandeliuk committed Nov 12, 2024
1 parent f7c39d6 commit fe0d224
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CustomerOrdersReturnModel } from '../../data/models';

export declare const getCustomerOrdersReturn: () => Promise<CustomerOrdersReturnModel | null>;
export declare const getCustomerOrdersReturn: (pageSize?: number) => Promise<CustomerOrdersReturnModel | null>;
//# sourceMappingURL=getCustomerOrdersReturn.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import{h as R}from"./network-error.js";import{f as e,h as E}from"./fetch-graphql.js";import{R as _,P as T,a as o,G as s,O as c,t as u}from"./transform-order-details.js";const h=`
query GET_CUSTOMER_ORDERS_RETURN {
import{h as R}from"./network-error.js";import{f as E,h as _}from"./fetch-graphql.js";import{R as T,P as o,a as s,G as c,O as u,t as h}from"./transform-order-details.js";const n=`
query GET_CUSTOMER_ORDERS_RETURN($pageSize: Int) {
customer {
returns {
returns(pageSize: $pageSize) {
page_info {
page_size
total_pages
Expand All @@ -11,9 +11,9 @@ query GET_CUSTOMER_ORDERS_RETURN {
}
}
}
${_}
${T}
${o}
${s}
${c}
`,A=async()=>await e(h,{method:"GET",cache:"force-cache"}).then(r=>{var t,a;return(t=r.errors)!=null&&t.length?E(r.errors):u((a=r==null?void 0:r.data)==null?void 0:a.customer.returns)}).catch(R);export{A as g};
${u}
`,G=async(e=50)=>await E(n,{method:"GET",cache:"force-cache",variables:{pageSize:e}}).then(r=>{var t,a;return(t=r.errors)!=null&&t.length?_(r.errors):h((a=r==null?void 0:r.data)==null?void 0:a.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.

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

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { OrdersReturnPropsModel } from '../../data/models';
import { UseReturnsListProps } from '../../types';

export declare const useReturnsList: () => {
export declare const useReturnsList: ({ returnPageSize }: UseReturnsListProps) => {
pageInfo: {
totalPages: number;
currentPage: number;
Expand Down
2 changes: 1 addition & 1 deletion scripts/__dropins__/storefront-order/reload
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"at":1731442315052}
{"at":1731445995222}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface ReturnsListProps {
returnOrderItem: OrdersReturnPropsModel;
}>;
};
returnPageSize?: number;
withReturnsListButton?: boolean;
returnsInMinifiedView?: number;
className?: string;
Expand All @@ -38,7 +39,7 @@ export interface ReturnsListProps {
routeProductDetails?: (orderItem?: OrderItemModel) => string;
withThumbnails?: boolean;
}
export interface ReturnsListContentProps extends Omit<ReturnsListProps, 'className'> {
export interface ReturnsListContentProps extends Omit<ReturnsListProps, 'className' | 'returnPageSize'> {
minifiedViewKey: 'minifiedView' | 'fullSizeView';
orderReturns?: OrdersReturnPropsModel[] | [];
translations: Record<string, string>;
Expand All @@ -51,6 +52,7 @@ export interface ReturnsListContentProps extends Omit<ReturnsListProps, 'classNa
loading: boolean;
}
export interface UseReturnsListProps {
returnPageSize?: number;
}
export interface OrderReturnsProps {
slots?: {
Expand Down

0 comments on commit fe0d224

Please sign in to comment.