-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
- Loading branch information
Showing
13 changed files
with
259 additions
and
24 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
compat/std/loaders/vtex/intelligentSearch/productDetailsPage.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { ProductDetailsPage } from "../../../../../commerce/types.ts"; | ||
import { | ||
Props, | ||
} from "../../../../../vtex/loaders/intelligentSearch/productDetailsPage.ts"; | ||
import { VTEXContext } from "../../../mod.ts"; | ||
|
||
/** | ||
* @title VTEX Integration - Intelligent Search | ||
* @description Product Details Page loader | ||
* @deprecated true | ||
*/ | ||
const loader = async ( | ||
props: Props, | ||
_req: Request, | ||
ctx: VTEXContext, | ||
): Promise<ProductDetailsPage | null> => { | ||
return await ctx.invoke.vtex.loaders.intelligentSearch.productDetailsPage(props); | ||
}; | ||
|
||
export default loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { Product } from "../../../../../commerce/types.ts"; | ||
import { | ||
Props, | ||
} from "../../../../../vtex/loaders/intelligentSearch/productList.ts"; | ||
import { VTEXContext } from "../../../mod.ts"; | ||
|
||
/** | ||
* @title VTEX Integration - Intelligent Search | ||
* @description Product List loader | ||
* @deprecated true | ||
*/ | ||
const loader = async ( | ||
props: Props, | ||
_req: Request, | ||
ctx: VTEXContext, | ||
): Promise<Product[] | null> => { | ||
return await ctx.invoke.vtex.loaders.intelligentSearch.productList(props); | ||
}; | ||
|
||
export default loader; |
22 changes: 22 additions & 0 deletions
22
compat/std/loaders/vtex/intelligentSearch/productListingPage.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { ProductListingPage } from "../../../../../commerce/types.ts"; | ||
import { | ||
Props, | ||
} from "../../../../../vtex/loaders/intelligentSearch/productListingPage.ts"; | ||
import { VTEXContext } from "../../../mod.ts"; | ||
|
||
/** | ||
* @title VTEX Integration - Intelligent Search | ||
* @description Product Listing Page loader | ||
* @deprecated true | ||
*/ | ||
const loader = async ( | ||
props: Props, | ||
_req: Request, | ||
ctx: VTEXContext, | ||
): Promise<ProductListingPage | null> => { | ||
return await ctx.invoke.vtex.loaders.intelligentSearch.productListingPage( | ||
props, | ||
); | ||
}; | ||
|
||
export default loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { Suggestion } from "../../../../../commerce/types.ts"; | ||
import { | ||
Props, | ||
} from "../../../../../vtex/loaders/intelligentSearch/suggestions.ts"; | ||
import { VTEXContext } from "../../../mod.ts"; | ||
|
||
/** | ||
* @title VTEX Integration - Intelligent Search | ||
* @description Product Suggestion loader | ||
* @deprecated true | ||
*/ | ||
const loader = async ( | ||
props: Props, | ||
_req: Request, | ||
ctx: VTEXContext, | ||
): Promise<Suggestion | null> => { | ||
return await ctx.invoke.vtex.loaders.intelligentSearch.suggestions( | ||
props, | ||
); | ||
}; | ||
|
||
export default loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { ProductDetailsPage } from "../../../../../commerce/types.ts"; | ||
import { | ||
Props, | ||
} from "../../../../../vtex/loaders/legacy/productDetailsPage.ts"; | ||
import { VTEXContext } from "../../../mod.ts"; | ||
|
||
/** | ||
* @title VTEX Integration - Legacy Search | ||
* @description Product Details Page loader | ||
* @deprecated true | ||
*/ | ||
const loader = async ( | ||
props: Props, | ||
_req: Request, | ||
ctx: VTEXContext, | ||
): Promise<ProductDetailsPage | null> => { | ||
return await ctx.invoke.vtex.loaders.legacy.productDetailsPage(props); | ||
}; | ||
|
||
export default loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { Product } from "../../../../../commerce/types.ts"; | ||
import { | ||
Props, | ||
} from "../../../../../vtex/loaders/legacy/productList.ts"; | ||
import { VTEXContext } from "../../../mod.ts"; | ||
|
||
/** | ||
* @title VTEX Integration - Legacy Search | ||
* @description Product List loader | ||
* @deprecated true | ||
*/ | ||
const loader = async ( | ||
props: Props, | ||
_req: Request, | ||
ctx: VTEXContext, | ||
): Promise<Product[] | null> => { | ||
return await ctx.invoke.vtex.loaders.legacy.productList(props); | ||
}; | ||
|
||
export default loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { ProductListingPage } from "../../../../../commerce/types.ts"; | ||
import { | ||
Props, | ||
} from "../../../../../vtex/loaders/legacy/productListingPage.ts"; | ||
import { VTEXContext } from "../../../mod.ts"; | ||
|
||
/** | ||
* @title VTEX Integration - Legacy Search | ||
* @description Product Listing Page loader | ||
* @deprecated true | ||
*/ | ||
const loader = async ( | ||
props: Props, | ||
_req: Request, | ||
ctx: VTEXContext, | ||
): Promise<ProductListingPage | null> => { | ||
return await ctx.invoke.vtex.loaders.legacy.productListingPage( | ||
props, | ||
); | ||
}; | ||
|
||
export default loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { Product } from "../../../../../commerce/types.ts"; | ||
import { | ||
Props, | ||
} from "../../../../../vtex/loaders/legacy/relatedProductsLoader.ts"; | ||
import { VTEXContext } from "../../../mod.ts"; | ||
|
||
/** | ||
* @title VTEX Integration - Related Products | ||
* @description Related Products loader | ||
* @deprecated true | ||
*/ | ||
const loader = async ( | ||
props: Props, | ||
_req: Request, | ||
ctx: VTEXContext, | ||
): Promise<Product[] | null> => { | ||
return await ctx.invoke.vtex.loaders.legacy.relatedProductsLoader( | ||
props, | ||
); | ||
}; | ||
|
||
export default loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type { Suggestion } from "../../../../../commerce/types.ts"; | ||
import { | ||
Props, | ||
} from "../../../../../vtex/loaders/legacy/suggestions.ts"; | ||
import { VTEXContext } from "../../../mod.ts"; | ||
|
||
/** | ||
* @title Suggestions - VTEX Legacy | ||
* @deprecated true | ||
*/ | ||
const loader = async ( | ||
props: Props, | ||
_req: Request, | ||
ctx: VTEXContext, | ||
): Promise<Suggestion | null> => { | ||
return await ctx.invoke.vtex.loaders.legacy.suggestions( | ||
props, | ||
); | ||
}; | ||
|
||
export default loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type { Navbar } from "../../../../commerce/types.ts"; | ||
import { | ||
Props, | ||
} from "../../../../vtex/loaders/navbar.ts"; | ||
import { VTEXContext } from "../../mod.ts"; | ||
|
||
/** | ||
* @title Navbar | ||
* @deprecated true | ||
*/ | ||
const loader = async ( | ||
props: Props, | ||
_req: Request, | ||
ctx: VTEXContext, | ||
): Promise<Navbar[] | null> => { | ||
return await ctx.invoke.vtex.loaders.navbar(props); | ||
}; | ||
|
||
export default loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Props } from "../../../../vtex/loaders/proxy.ts"; | ||
import { Route } from "../../../../website/flags/audience.ts"; | ||
import { VTEXContext } from "../../mod.ts"; | ||
|
||
/** | ||
* @title VTEX Proxy Routes | ||
* @deprecated true | ||
*/ | ||
const loader = async ( | ||
props: Props, | ||
_req: Request, | ||
ctx: VTEXContext, | ||
): Promise<Route[]> => { | ||
return await ctx.invoke.vtex.loaders.proxy(props); | ||
}; | ||
|
||
export default loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters