mirror of
https://github.com/vercel/commerce.git
synced 2025-07-04 04:01:21 +00:00
Remove framework imports
This commit is contained in:
parent
07bc16b9a7
commit
d2b45da873
@ -1,7 +1,8 @@
|
|||||||
import type { OrdercloudConfig, Provider } from '../index'
|
|
||||||
import type { OperationContext } from '@commerce/api/operations'
|
import type { OperationContext } from '@commerce/api/operations'
|
||||||
import type { GetAllProductPathsOperation } from '@commerce/types/product'
|
import type { GetAllProductPathsOperation } from '@commerce/types/product'
|
||||||
import { RawProduct } from '@framework/types/product'
|
|
||||||
|
import type { RawProduct } from '../../types/product'
|
||||||
|
import type { OrdercloudConfig, Provider } from '../index'
|
||||||
|
|
||||||
export type GetAllProductPathsResult = {
|
export type GetAllProductPathsResult = {
|
||||||
products: Array<{ path: string }>
|
products: Array<{ path: string }>
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
import type { GetAllProductsOperation } from '@commerce/types/product'
|
import type { GetAllProductsOperation } from '@commerce/types/product'
|
||||||
import type { OperationContext } from '@commerce/api/operations'
|
import type { OperationContext } from '@commerce/api/operations'
|
||||||
import type { RawProduct } from '@framework/types/product'
|
|
||||||
|
import type { RawProduct } from '../../types/product'
|
||||||
import type { OrdercloudConfig, Provider } from '../index'
|
import type { OrdercloudConfig, Provider } from '../index'
|
||||||
|
|
||||||
import { normalize as normalizeProduct } from '@framework/utils/product'
|
import { normalize as normalizeProduct } from '../../utils/product'
|
||||||
|
|
||||||
export default function getAllProductsOperation({
|
export default function getAllProductsOperation({
|
||||||
commerce,
|
commerce,
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
import type { OperationContext } from '@commerce/api/operations'
|
import type { OperationContext } from '@commerce/api/operations'
|
||||||
import type { RawProduct } from '@framework/types/product'
|
|
||||||
import type { GetProductOperation } from '@commerce/types/product'
|
import type { GetProductOperation } from '@commerce/types/product'
|
||||||
|
|
||||||
|
import type { RawProduct } from '../../types/product'
|
||||||
import type { OrdercloudConfig, Provider } from '../index'
|
import type { OrdercloudConfig, Provider } from '../index'
|
||||||
|
|
||||||
import { normalize as normalizeProduct } from '@framework/utils/product'
|
import { normalize as normalizeProduct } from '../../utils/product'
|
||||||
|
|
||||||
export default function getProductOperation({
|
export default function getProductOperation({
|
||||||
commerce,
|
commerce,
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import type { RawProduct } from '@framework/types/product'
|
|
||||||
import type { Product } from '@commerce/types/product'
|
import type { Product } from '@commerce/types/product'
|
||||||
|
|
||||||
|
import type { RawProduct } from '../types/product'
|
||||||
|
|
||||||
export function normalize(product: RawProduct): Product {
|
export function normalize(product: RawProduct): Product {
|
||||||
return {
|
return {
|
||||||
id: product.ID,
|
id: product.ID,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user