diff --git a/apps/backend/src/api/openapi/vendor/order.ts b/apps/backend/src/api/openapi/vendor/order.ts index 5c6b1736..92529cff 100644 --- a/apps/backend/src/api/openapi/vendor/order.ts +++ b/apps/backend/src/api/openapi/vendor/order.ts @@ -333,7 +333,6 @@ * format: date-time * title: updated_at * description: The date the sales channel was updated. - * deleted_at: */ /** diff --git a/apps/backend/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.ts b/apps/backend/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.ts index e0ac7f6f..b0bf3209 100644 --- a/apps/backend/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.ts +++ b/apps/backend/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.ts @@ -18,7 +18,7 @@ import { VendorUpdateInventoryLevel } from '../../../validators' * schema: * type: string * - in: path - * name: locationId + * name: location_id * required: true * description: The ID of the Stock Location. * schema: @@ -85,7 +85,7 @@ export const POST = async ( * schema: * type: string * - in: path - * name: locationId + * name: location_id * required: true * description: The ID of the Stock Location. * schema: diff --git a/apps/backend/src/api/vendor/inventory-items/[id]/location-levels/route.ts b/apps/backend/src/api/vendor/inventory-items/[id]/location-levels/route.ts index 4c82fe24..8b0a1150 100644 --- a/apps/backend/src/api/vendor/inventory-items/[id]/location-levels/route.ts +++ b/apps/backend/src/api/vendor/inventory-items/[id]/location-levels/route.ts @@ -46,7 +46,7 @@ export const GET = async ( } /** - * @oas [post] /vendor/inventory-items/{id}/location-levels/{locationId} + * @oas [post] /vendor/inventory-items/{id}/location-levels * operationId: "VendorCreateInventoryLevel" * summary: "Create inventory level" * description: "Creates inventory level of the InventoryItem in the specified location" diff --git a/apps/backend/src/api/vendor/inventory-items/[id]/route.ts b/apps/backend/src/api/vendor/inventory-items/[id]/route.ts index cc963fa6..980ae133 100644 --- a/apps/backend/src/api/vendor/inventory-items/[id]/route.ts +++ b/apps/backend/src/api/vendor/inventory-items/[id]/route.ts @@ -60,12 +60,6 @@ export const GET = async ( * description: The ID of the InventoryItem. * schema: * type: string - * - in: path - * name: locationId - * required: true - * description: The ID of the Stock Location. - * schema: - * type: string * requestBody: * content: * application/json: diff --git a/apps/vendor/src/app/router/ui/app-router.tsx b/apps/vendor/src/app/router/ui/app-router.tsx index 1fa3479d..d47bd846 100644 --- a/apps/vendor/src/app/router/ui/app-router.tsx +++ b/apps/vendor/src/app/router/ui/app-router.tsx @@ -2,9 +2,9 @@ import { Redirect, Route, Switch } from 'wouter' import { ProtectedRoute } from './protected-route' import { RegisterPageAsync } from '@/pages/register' import { LoginPageAsync } from '@/pages/login' -import { Suspense } from 'react' -import { SidebarTrigger } from '@/shared/ui' +import { PropsWithChildren, Suspense } from 'react' import { AppSidebarAsync } from '@/widgets/app-sidebar' +import { OrdersPageAsync } from '@/pages/orders' export const AppRouter = () => { return ( @@ -23,17 +23,16 @@ export const AppRouter = () => { {/* Protected dashboard routes */} - Loading...}> - - - - - - - - - 404, Not Found! - + + + + Loading...}> + + + + 404, Not Found! + + {/* Root redirect */} @@ -47,10 +46,15 @@ export const AppRouter = () => { ) } -const Orders = () => { - return
Orders
-} - -const OrderDetails = () => { - return
OrderDetails
+const Shell = ({ children }: PropsWithChildren) => { + return ( +
+ Loading...
}> + + +
+ {children} +
+ + ) } diff --git a/apps/vendor/src/entities/auth/index.ts b/apps/vendor/src/entities/auth/index.ts index 3318fdbc..116e6686 100644 --- a/apps/vendor/src/entities/auth/index.ts +++ b/apps/vendor/src/entities/auth/index.ts @@ -1 +1 @@ -export * from './api' +export * from './model' diff --git a/apps/vendor/src/entities/auth/api.ts b/apps/vendor/src/entities/auth/model.ts similarity index 100% rename from apps/vendor/src/entities/auth/api.ts rename to apps/vendor/src/entities/auth/model.ts diff --git a/apps/vendor/src/entities/order/index.ts b/apps/vendor/src/entities/order/index.ts new file mode 100644 index 00000000..ed584959 --- /dev/null +++ b/apps/vendor/src/entities/order/index.ts @@ -0,0 +1 @@ +export * from './ui' diff --git a/apps/vendor/src/entities/order/model.ts b/apps/vendor/src/entities/order/model.ts new file mode 100644 index 00000000..66fe5b0b --- /dev/null +++ b/apps/vendor/src/entities/order/model.ts @@ -0,0 +1,15 @@ +import { queryKeysFactory } from '@/shared/lib' +import { useQuery } from '@tanstack/react-query' + +const ORDER_QUERY_KEY = 'order' +export const orderQueryKeys = queryKeysFactory(ORDER_QUERY_KEY) + +export const useOrders = () => { + const { data, ...other } = useQuery({ + queryKey: orderQueryKeys.details(), + queryFn: () => vendorGetOrd().then((res) => res.data), + retry: false + }) + + return { ...data, ...other } +} diff --git a/apps/vendor/src/entities/order/ui/index.ts b/apps/vendor/src/entities/order/ui/index.ts new file mode 100644 index 00000000..ab883a21 --- /dev/null +++ b/apps/vendor/src/entities/order/ui/index.ts @@ -0,0 +1 @@ +export * from './order-table' diff --git a/apps/vendor/src/entities/order/ui/order-table.tsx b/apps/vendor/src/entities/order/ui/order-table.tsx new file mode 100644 index 00000000..eb736bcd --- /dev/null +++ b/apps/vendor/src/entities/order/ui/order-table.tsx @@ -0,0 +1,72 @@ +import { + Table, + TableBody, + TableCell, + TableHead, + TableHeader, + TableRow +} from '@/shared/ui' + +const orders = [ + { + display_id: 123, + customer: 'John Doe', + products: ['Product 1', 'Product 2', 'Product 3'], + status: 'active', + date: new Date(), + revenue: 250 + }, + { + display_id: 123, + customer: 'John Doe', + products: ['Product 1', 'Product 2', 'Product 3'], + status: 'active', + date: new Date(), + revenue: 250 + }, + { + display_id: 123, + customer: 'John Doe', + products: ['Product 1', 'Product 2', 'Product 3'], + status: 'active', + date: new Date(), + revenue: 250 + }, + { + display_id: 123, + customer: 'John Doe', + products: ['Product 1', 'Product 2', 'Product 3'], + status: 'active', + date: new Date(), + revenue: 250 + } +] + +export const OrderTable = () => { + return ( + + + + # + Customer + Products + Status + Date + Revenue + + + + {orders.map((order) => ( + + {order.display_id} + {order.customer} + {order.products.join(', ')} + {order.status} + {order.date.toLocaleDateString()} + {order.revenue} + + ))} + +
+ ) +} diff --git a/apps/vendor/src/entities/seller/index.ts b/apps/vendor/src/entities/seller/index.ts index 3318fdbc..116e6686 100644 --- a/apps/vendor/src/entities/seller/index.ts +++ b/apps/vendor/src/entities/seller/index.ts @@ -1 +1 @@ -export * from './api' +export * from './model' diff --git a/apps/vendor/src/entities/seller/api.ts b/apps/vendor/src/entities/seller/model.ts similarity index 100% rename from apps/vendor/src/entities/seller/api.ts rename to apps/vendor/src/entities/seller/model.ts diff --git a/apps/vendor/src/pages/login/ui.tsx b/apps/vendor/src/pages/login/ui.tsx index 0d210660..97dd8609 100644 --- a/apps/vendor/src/pages/login/ui.tsx +++ b/apps/vendor/src/pages/login/ui.tsx @@ -41,10 +41,19 @@ const LoginPage = () => { }) async function onSubmit({ email, password }: z.infer) { - const { token } = await login({ - email, - password - }) + const { token } = await login( + { + email, + password + }, + { + onError: (error) => { + toast.error('Error occurred while logging in', { + description: error.message + }) + } + } + ) await createSession( { token }, diff --git a/apps/vendor/src/pages/orders/index.ts b/apps/vendor/src/pages/orders/index.ts new file mode 100644 index 00000000..fab0122c --- /dev/null +++ b/apps/vendor/src/pages/orders/index.ts @@ -0,0 +1 @@ +export * from './ui.async' diff --git a/apps/vendor/src/pages/orders/ui.async.ts b/apps/vendor/src/pages/orders/ui.async.ts new file mode 100644 index 00000000..a94f2649 --- /dev/null +++ b/apps/vendor/src/pages/orders/ui.async.ts @@ -0,0 +1,3 @@ +import { lazy } from 'react' + +export const OrdersPageAsync = lazy(() => import('./ui')) diff --git a/apps/vendor/src/pages/orders/ui.tsx b/apps/vendor/src/pages/orders/ui.tsx new file mode 100644 index 00000000..2030a655 --- /dev/null +++ b/apps/vendor/src/pages/orders/ui.tsx @@ -0,0 +1,13 @@ +import { OrderTable } from '@/entities/order' +import { Text } from '@/shared/ui' + +export default function OrdersPage() { + return ( + <> + + Orders + + + + ) +} diff --git a/apps/vendor/src/shared/ui/text.tsx b/apps/vendor/src/shared/ui/text.tsx index 7f6a8653..dabf9a57 100644 --- a/apps/vendor/src/shared/ui/text.tsx +++ b/apps/vendor/src/shared/ui/text.tsx @@ -10,7 +10,8 @@ const textVariants = cva({ small: 'text-sm', base: 'text-base', large: 'text-lg', - xlarge: 'text-xl' + xlarge: 'text-xl', + '2xlarge': 'text-2xl' }, weight: { regular: 'font-normal', diff --git a/packages/http-client/codegen/index.ts b/packages/http-client/codegen/index.ts index d3d7a11e..c25b436f 100644 --- a/packages/http-client/codegen/index.ts +++ b/packages/http-client/codegen/index.ts @@ -537,9 +537,9 @@ import type { AdminWorkflowExecutionResponse, AuthResponse, AuthStoreSessionResponse, - PostSellerTypeAuthProvider200, - PostSellerTypeAuthProviderBody, - PostSellerTypeAuthProviderRegisterBody, + PostActorTypeAuthProvider200, + PostActorTypeAuthProviderBody, + PostVendorTypeAuthProviderRegisterBody, RefundReasonResponse, StoreAcceptOrderTransfer, StoreAddCartLineItem, @@ -625,6 +625,8 @@ import type { StorePostOrdersIdTransferRequestParams, StorePostPaymentCollectionsIdPaymentSessionsParams, StorePostPaymentCollectionsParams, + StorePostShippingOptionsIdCalculateBody, + StorePostShippingOptionsIdCalculateParams, StoreProductCategoryListResponse, StoreProductCategoryResponse, StoreProductResponse, @@ -632,11 +634,16 @@ import type { StoreReturnReasonResponse, StoreReturnResponse, StoreShippingOptionListResponse, + StoreShippingOptionResponse, StoreUpdateCartLineItem, StoreUpdateCustomer, VendorAcceptInvite200, VendorAcceptMemberInvite, VendorCreateInvite201, + VendorCreateOnboarding, + VendorCreateOnboarding200, + VendorCreatePayoutAccount, + VendorCreatePayoutAccount201, VendorCreateProduct, VendorCreateProduct201, VendorCreateSeller, @@ -658,9 +665,11 @@ import type { VendorDeleteShippingOptionById200, VendorGetMemberById200, VendorGetMemberMe200, + VendorGetPayoutAccount200, + VendorGetPayoutAccountParams, VendorGetProductById200, VendorGetProductByIdParams, - VendorGetSellerMe200, + VendorGetSellerById200, VendorGetShippingOptionById200, VendorGetStockLocation200, VendorGetStockLocationParams, @@ -680,7 +689,7 @@ import type { VendorUpdateProductById200, VendorUpdateProductByIdParams, VendorUpdateSeller, - VendorUpdateSellerMe200, + VendorUpdateSellerById200, VendorUpdateServiceZone, VendorUpdateServiceZoneById200, VendorUpdateShippingOption, @@ -14039,65 +14048,105 @@ export const storeGetShippingOptions = async (params: StoreGetShippingOptionsPar /** - * Authenticate a seller and receive the JWT token to be used in the header of subsequent requests. + * Calculate the price of a shipping option in a cart. + * @summary Calculate Shipping Option Price + */ +export type storePostShippingOptionsIdCalculateResponse = { + data: StoreShippingOptionResponse; + status: number; + headers: Headers; +} + +export const getStorePostShippingOptionsIdCalculateUrl = (id: string, + params?: StorePostShippingOptionsIdCalculateParams,) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()) + } + }); + + return normalizedParams.size ? `http://localhost:9000/store/shipping-options/${id}/calculate?${normalizedParams.toString()}` : `http://localhost:9000/store/shipping-options/${id}/calculate` +} + +export const storePostShippingOptionsIdCalculate = async (id: string, + storePostShippingOptionsIdCalculateBody: StorePostShippingOptionsIdCalculateBody, + params?: StorePostShippingOptionsIdCalculateParams, options?: RequestInit): Promise => { + + return customFetch>(getStorePostShippingOptionsIdCalculateUrl(id,params), + { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify( + storePostShippingOptionsIdCalculateBody,) + } +);} + + + +/** + * Authenticate a vendor and receive the JWT token to be used in the header of subsequent requests. When used with a third-party provider, such as Google, the request returns a `location` property. You redirect to the specified URL in your frontend to continue authentication with the third-party service. - * @summary Authenticate Seller + * @summary Authenticate Vendor */ -export type postSellerTypeAuthProviderResponse = { - data: PostSellerTypeAuthProvider200; +export type postActorTypeAuthProviderResponse = { + data: PostActorTypeAuthProvider200; status: number; headers: Headers; } -export const getPostSellerTypeAuthProviderUrl = (authProvider: string,) => { +export const getPostActorTypeAuthProviderUrl = (authProvider: string,) => { - return `http://localhost:9000/auth/seller/${authProvider}` + return `http://localhost:9000/auth/vendor/${authProvider}` } -export const postSellerTypeAuthProvider = async (authProvider: string, - postSellerTypeAuthProviderBody: PostSellerTypeAuthProviderBody, options?: RequestInit): Promise => { +export const postActorTypeAuthProvider = async (authProvider: string, + postActorTypeAuthProviderBody: PostActorTypeAuthProviderBody, options?: RequestInit): Promise => { - return customFetch>(getPostSellerTypeAuthProviderUrl(authProvider), + return customFetch>(getPostActorTypeAuthProviderUrl(authProvider), { ...options, method: 'POST', headers: { 'Content-Type': 'application/json', ...options?.headers }, body: JSON.stringify( - postSellerTypeAuthProviderBody,) + postActorTypeAuthProviderBody,) } );} /** - * This API route retrieves a registration JWT token of a seller that hasn't been registered yet. The token is used in the header of requests that create a seller, such as the Accept Invite API route. + * This API route retrieves a registration JWT token of a vendor that hasn't been registered yet. The token is used in the header of requests that create a vendor, such as the Accept Invite API route. * @summary Retrieve Registration JWT Token */ -export type postSellerTypeAuthProviderRegisterResponse = { +export type postVendorTypeAuthProviderRegisterResponse = { data: AuthResponse; status: number; headers: Headers; } -export const getPostSellerTypeAuthProviderRegisterUrl = (authProvider: string,) => { +export const getPostVendorTypeAuthProviderRegisterUrl = (authProvider: string,) => { - return `http://localhost:9000/auth/seller/${authProvider}/register` + return `http://localhost:9000/auth/vendor/${authProvider}/register` } -export const postSellerTypeAuthProviderRegister = async (authProvider: string, - postSellerTypeAuthProviderRegisterBody: PostSellerTypeAuthProviderRegisterBody, options?: RequestInit): Promise => { +export const postVendorTypeAuthProviderRegister = async (authProvider: string, + postVendorTypeAuthProviderRegisterBody: PostVendorTypeAuthProviderRegisterBody, options?: RequestInit): Promise => { - return customFetch>(getPostSellerTypeAuthProviderRegisterUrl(authProvider), + return customFetch>(getPostVendorTypeAuthProviderRegisterUrl(authProvider), { ...options, method: 'POST', headers: { 'Content-Type': 'application/json', ...options?.headers }, body: JSON.stringify( - postSellerTypeAuthProviderRegisterBody,) + postVendorTypeAuthProviderRegisterBody,) } );} @@ -14478,6 +14527,102 @@ export const vendorDeleteMemberById = async (id: string, options?: RequestInit): +/** + * Retrieves the payout account for the authenticated vendor. + * @summary Get Payout Account + */ +export type vendorGetPayoutAccountResponse = { + data: VendorGetPayoutAccount200; + status: number; + headers: Headers; +} + +export const getVendorGetPayoutAccountUrl = (params?: VendorGetPayoutAccountParams,) => { + const normalizedParams = new URLSearchParams(); + + Object.entries(params || {}).forEach(([key, value]) => { + + if (value !== undefined) { + normalizedParams.append(key, value === null ? 'null' : value.toString()) + } + }); + + return normalizedParams.size ? `http://localhost:9000/vendor/payout-account?${normalizedParams.toString()}` : `http://localhost:9000/vendor/payout-account` +} + +export const vendorGetPayoutAccount = async (params?: VendorGetPayoutAccountParams, options?: RequestInit): Promise => { + + return customFetch>(getVendorGetPayoutAccountUrl(params), + { + ...options, + method: 'GET' + + + } +);} + + + +/** + * Creates a payout account for the authenticated vendor. + * @summary Create Payout Account + */ +export type vendorCreatePayoutAccountResponse = { + data: VendorCreatePayoutAccount201; + status: number; + headers: Headers; +} + +export const getVendorCreatePayoutAccountUrl = () => { + + + return `http://localhost:9000/vendor/payout-account` +} + +export const vendorCreatePayoutAccount = async (vendorCreatePayoutAccount: VendorCreatePayoutAccount, options?: RequestInit): Promise => { + + return customFetch>(getVendorCreatePayoutAccountUrl(), + { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify( + vendorCreatePayoutAccount,) + } +);} + + + +/** + * Creates an onboarding for the authenticated vendor's payout account. + * @summary Create Onboarding + */ +export type vendorCreateOnboardingResponse = { + data: VendorCreateOnboarding200; + status: number; + headers: Headers; +} + +export const getVendorCreateOnboardingUrl = () => { + + + return `http://localhost:9000/vendor/payout-account/onboarding` +} + +export const vendorCreateOnboarding = async (vendorCreateOnboarding: VendorCreateOnboarding, options?: RequestInit): Promise => { + + return customFetch>(getVendorCreateOnboardingUrl(), + { + ...options, + method: 'POST', + headers: { 'Content-Type': 'application/json', ...options?.headers }, + body: JSON.stringify( + vendorCreateOnboarding,) + } +);} + + + /** * Retrieves a list of products for the authenticated vendor. * @summary List Products @@ -14685,21 +14830,21 @@ export const vendorCreateSeller = async (vendorCreateSeller: VendorCreateSeller, * Retrieves the seller associated with the authenticated user. * @summary Get Current Seller */ -export type vendorGetSellerMeResponse = { - data: VendorGetSellerMe200; +export type vendorGetSellerByIdResponse = { + data: VendorGetSellerById200; status: number; headers: Headers; } -export const getVendorGetSellerMeUrl = () => { +export const getVendorGetSellerByIdUrl = () => { return `http://localhost:9000/vendor/sellers/me` } -export const vendorGetSellerMe = async ( options?: RequestInit): Promise => { +export const vendorGetSellerById = async ( options?: RequestInit): Promise => { - return customFetch>(getVendorGetSellerMeUrl(), + return customFetch>(getVendorGetSellerByIdUrl(), { ...options, method: 'GET' @@ -14714,21 +14859,21 @@ export const vendorGetSellerMe = async ( options?: RequestInit): Promise { +export const getVendorUpdateSellerByIdUrl = () => { return `http://localhost:9000/vendor/sellers/me` } -export const vendorUpdateSellerMe = async (vendorUpdateSeller: VendorUpdateSeller, options?: RequestInit): Promise => { +export const vendorUpdateSellerById = async (vendorUpdateSeller: VendorUpdateSeller, options?: RequestInit): Promise => { - return customFetch>(getVendorUpdateSellerMeUrl(), + return customFetch>(getVendorUpdateSellerByIdUrl(), { ...options, method: 'POST', diff --git a/packages/http-client/codegen/types/adminApplicationMethod.ts b/packages/http-client/codegen/types/adminApplicationMethod.ts index 67c42808..4026499d 100644 --- a/packages/http-client/codegen/types/adminApplicationMethod.ts +++ b/packages/http-client/codegen/types/adminApplicationMethod.ts @@ -6,7 +6,7 @@ */ import type { AdminApplicationMethodAllocation } from './adminApplicationMethodAllocation'; import type { AdminPromotionRule } from './adminPromotionRule'; -import type { AdminPromotion } from './adminPromotion'; +import type { AdminApplicationMethodPromotion } from './adminApplicationMethodPromotion'; import type { AdminApplicationMethodTargetType } from './adminApplicationMethodTargetType'; import type { AdminApplicationMethodType } from './adminApplicationMethodType'; @@ -28,7 +28,7 @@ export interface AdminApplicationMethod { id: string; /** The max quantity allowed in the cart for the associated promotion to be applied. */ max_quantity?: number; - promotion?: AdminPromotion; + promotion?: AdminApplicationMethodPromotion; /** The application method's target rules. */ target_rules?: AdminPromotionRule[]; /** Which item does the promotion apply to. `items` mean the promotion applies to the cart's items; `shipping_methods` means the promotion applies to the cart's shipping methods; `order` means the promotion applies on the entire order. */ diff --git a/packages/http-client/codegen/types/adminPromotionApplicationMethod.ts b/packages/http-client/codegen/types/adminApplicationMethodPromotion.ts similarity index 65% rename from packages/http-client/codegen/types/adminPromotionApplicationMethod.ts rename to packages/http-client/codegen/types/adminApplicationMethodPromotion.ts index 11ca67d0..31549a53 100644 --- a/packages/http-client/codegen/types/adminPromotionApplicationMethod.ts +++ b/packages/http-client/codegen/types/adminApplicationMethodPromotion.ts @@ -5,4 +5,4 @@ * OpenAPI spec version: 1.0.0 */ -export type AdminPromotionApplicationMethod = { [key: string]: unknown }; +export type AdminApplicationMethodPromotion = { [key: string]: unknown }; diff --git a/packages/http-client/codegen/types/adminPromotion.ts b/packages/http-client/codegen/types/adminPromotion.ts index 4898da4d..2c2006ea 100644 --- a/packages/http-client/codegen/types/adminPromotion.ts +++ b/packages/http-client/codegen/types/adminPromotion.ts @@ -4,7 +4,7 @@ * Medusa API * OpenAPI spec version: 1.0.0 */ -import type { AdminPromotionApplicationMethod } from './adminPromotionApplicationMethod'; +import type { AdminApplicationMethod } from './adminApplicationMethod'; import type { AdminCampaign } from './adminCampaign'; import type { AdminPromotionRule } from './adminPromotionRule'; import type { AdminPromotionType } from './adminPromotionType'; @@ -13,7 +13,7 @@ import type { AdminPromotionType } from './adminPromotionType'; * The promotion's details. */ export interface AdminPromotion { - application_method?: AdminPromotionApplicationMethod; + application_method?: AdminApplicationMethod; campaign?: AdminCampaign; /** The ID of the campaign this promotion belongs to. */ campaign_id?: string; diff --git a/packages/http-client/codegen/types/index.ts b/packages/http-client/codegen/types/index.ts index 6b7a5d23..bb4fe722 100644 --- a/packages/http-client/codegen/types/index.ts +++ b/packages/http-client/codegen/types/index.ts @@ -10,6 +10,7 @@ export * from './adminApiKeyResponse'; export * from './adminApiKeyType'; export * from './adminApplicationMethod'; export * from './adminApplicationMethodAllocation'; +export * from './adminApplicationMethodPromotion'; export * from './adminApplicationMethodTargetType'; export * from './adminApplicationMethodType'; export * from './adminBatchProductRequest'; @@ -1894,7 +1895,6 @@ export * from './adminProductVariantMetadata'; export * from './adminProductVariantProduct'; export * from './adminProductVariantResponse'; export * from './adminPromotion'; -export * from './adminPromotionApplicationMethod'; export * from './adminPromotionResponse'; export * from './adminPromotionRule'; export * from './adminPromotionRuleOperator'; @@ -2261,9 +2261,9 @@ export * from './orderTransaction'; export * from './orderTransactionMetadata'; export * from './orderTransactionOrder'; export * from './orderTransactionReference'; -export * from './postSellerTypeAuthProvider200'; -export * from './postSellerTypeAuthProviderBody'; -export * from './postSellerTypeAuthProviderRegisterBody'; +export * from './postActorTypeAuthProvider200'; +export * from './postActorTypeAuthProviderBody'; +export * from './postVendorTypeAuthProviderRegisterBody'; export * from './refundReason'; export * from './refundReasonMetadata'; export * from './refundReasonResponse'; @@ -2778,6 +2778,9 @@ export * from './storePostOrdersIdTransferDeclineParams'; export * from './storePostOrdersIdTransferRequestParams'; export * from './storePostPaymentCollectionsIdPaymentSessionsParams'; export * from './storePostPaymentCollectionsParams'; +export * from './storePostShippingOptionsIdCalculateBody'; +export * from './storePostShippingOptionsIdCalculateBodyData'; +export * from './storePostShippingOptionsIdCalculateParams'; export * from './storePrice'; export * from './storePriceRule'; export * from './storePriceRuleOperator'; @@ -2822,6 +2825,7 @@ export * from './storeShippingOptionData'; export * from './storeShippingOptionListResponse'; export * from './storeShippingOptionMetadata'; export * from './storeShippingOptionPriceType'; +export * from './storeShippingOptionResponse'; export * from './storeShippingOptionType'; export * from './storeUpdateCartLineItem'; export * from './storeUpdateCartLineItemMetadata'; @@ -2844,6 +2848,12 @@ export * from './upsertStockLocationAddress'; export * from './vendorAcceptInvite200'; export * from './vendorAcceptMemberInvite'; export * from './vendorCreateInvite201'; +export * from './vendorCreateOnboarding'; +export * from './vendorCreateOnboarding200'; +export * from './vendorCreateOnboardingContext'; +export * from './vendorCreatePayoutAccount'; +export * from './vendorCreatePayoutAccount201'; +export * from './vendorCreatePayoutAccountContext'; export * from './vendorCreateProduct'; export * from './vendorCreateProduct201'; export * from './vendorCreateProductCategoriesItem'; @@ -2878,10 +2888,11 @@ export * from './vendorGeoZonePostalExpression'; export * from './vendorGeoZoneType'; export * from './vendorGetMemberById200'; export * from './vendorGetMemberMe200'; -export * from './vendorGetMemberParams'; +export * from './vendorGetPayoutAccount200'; +export * from './vendorGetPayoutAccountParams'; export * from './vendorGetProductById200'; export * from './vendorGetProductByIdParams'; -export * from './vendorGetSellerMe200'; +export * from './vendorGetSellerById200'; export * from './vendorGetShippingOptionById200'; export * from './vendorGetStockLocation200'; export * from './vendorGetStockLocationParams'; @@ -2900,7 +2911,16 @@ export * from './vendorMember'; export * from './vendorMemberInvite'; export * from './vendorMemberInviteRole'; export * from './vendorMemberRole'; +export * from './vendorOnboarding'; +export * from './vendorOnboardingContext'; +export * from './vendorOnboardingData'; export * from './vendorOrderSet'; +export * from './vendorPayout'; +export * from './vendorPayoutAccount'; +export * from './vendorPayoutAccountContext'; +export * from './vendorPayoutAccountData'; +export * from './vendorPayoutAccountStatus'; +export * from './vendorPayoutData'; export * from './vendorProduct'; export * from './vendorProductCategory'; export * from './vendorProductCategoryMetadata'; @@ -2941,7 +2961,7 @@ export * from './vendorUpdateProductSalesChannelsItem'; export * from './vendorUpdateProductStatus'; export * from './vendorUpdateProductTagsItem'; export * from './vendorUpdateSeller'; -export * from './vendorUpdateSellerMe200'; +export * from './vendorUpdateSellerById200'; export * from './vendorUpdateServiceZone'; export * from './vendorUpdateServiceZoneById200'; export * from './vendorUpdateServiceZoneGeoZonesItem'; diff --git a/packages/http-client/codegen/types/postSellerTypeAuthProvider200.ts b/packages/http-client/codegen/types/postActorTypeAuthProvider200.ts similarity index 74% rename from packages/http-client/codegen/types/postSellerTypeAuthProvider200.ts rename to packages/http-client/codegen/types/postActorTypeAuthProvider200.ts index c77a276b..8e039c54 100644 --- a/packages/http-client/codegen/types/postSellerTypeAuthProvider200.ts +++ b/packages/http-client/codegen/types/postActorTypeAuthProvider200.ts @@ -7,4 +7,4 @@ import type { AuthResponse } from './authResponse'; import type { AuthCallbackResponse } from './authCallbackResponse'; -export type PostSellerTypeAuthProvider200 = AuthResponse | AuthCallbackResponse; +export type PostActorTypeAuthProvider200 = AuthResponse | AuthCallbackResponse; diff --git a/packages/http-client/codegen/types/postSellerTypeAuthProviderBody.ts b/packages/http-client/codegen/types/postActorTypeAuthProviderBody.ts similarity index 77% rename from packages/http-client/codegen/types/postSellerTypeAuthProviderBody.ts rename to packages/http-client/codegen/types/postActorTypeAuthProviderBody.ts index b2e47250..5ed834e9 100644 --- a/packages/http-client/codegen/types/postSellerTypeAuthProviderBody.ts +++ b/packages/http-client/codegen/types/postActorTypeAuthProviderBody.ts @@ -8,4 +8,4 @@ /** * The input data necessary for authentication. For example, for email-pass authentication, pass `email` and `password` properties. */ -export type PostSellerTypeAuthProviderBody = { [key: string]: unknown }; +export type PostActorTypeAuthProviderBody = { [key: string]: unknown }; diff --git a/packages/http-client/codegen/types/postSellerTypeAuthProviderRegisterBody.ts b/packages/http-client/codegen/types/postVendorTypeAuthProviderRegisterBody.ts similarity index 80% rename from packages/http-client/codegen/types/postSellerTypeAuthProviderRegisterBody.ts rename to packages/http-client/codegen/types/postVendorTypeAuthProviderRegisterBody.ts index 8fad7ffb..9d334e31 100644 --- a/packages/http-client/codegen/types/postSellerTypeAuthProviderRegisterBody.ts +++ b/packages/http-client/codegen/types/postVendorTypeAuthProviderRegisterBody.ts @@ -8,4 +8,4 @@ /** * The input data necessary for authentication. For example, for email-pass authentication, pass `email` and `password` properties. */ -export type PostSellerTypeAuthProviderRegisterBody = { [key: string]: unknown }; +export type PostVendorTypeAuthProviderRegisterBody = { [key: string]: unknown }; diff --git a/packages/http-client/codegen/types/storePostShippingOptionsIdCalculateBody.ts b/packages/http-client/codegen/types/storePostShippingOptionsIdCalculateBody.ts new file mode 100644 index 00000000..a9d927a8 --- /dev/null +++ b/packages/http-client/codegen/types/storePostShippingOptionsIdCalculateBody.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ +import type { StorePostShippingOptionsIdCalculateBodyData } from './storePostShippingOptionsIdCalculateBodyData'; + +/** + * The calculation's details. + */ +export type StorePostShippingOptionsIdCalculateBody = { + /** The ID of the cart the shipping option is used in. */ + cart_id: string; + /** Custom data that's useful for the fulfillment provider to calculate the price. */ + data?: StorePostShippingOptionsIdCalculateBodyData; +}; diff --git a/packages/http-client/codegen/types/storePostShippingOptionsIdCalculateBodyData.ts b/packages/http-client/codegen/types/storePostShippingOptionsIdCalculateBodyData.ts new file mode 100644 index 00000000..e3290678 --- /dev/null +++ b/packages/http-client/codegen/types/storePostShippingOptionsIdCalculateBodyData.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ + +/** + * Custom data that's useful for the fulfillment provider to calculate the price. + */ +export type StorePostShippingOptionsIdCalculateBodyData = { [key: string]: unknown }; diff --git a/packages/http-client/codegen/types/storePostShippingOptionsIdCalculateParams.ts b/packages/http-client/codegen/types/storePostShippingOptionsIdCalculateParams.ts new file mode 100644 index 00000000..9d93b15a --- /dev/null +++ b/packages/http-client/codegen/types/storePostShippingOptionsIdCalculateParams.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ + +export type StorePostShippingOptionsIdCalculateParams = { +/** + * Comma-separated fields that should be included in the returned data. +if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. +without prefix it will replace the entire default fields. + */ +fields?: string; +}; diff --git a/packages/http-client/codegen/types/storeShippingOptionResponse.ts b/packages/http-client/codegen/types/storeShippingOptionResponse.ts new file mode 100644 index 00000000..12094a4d --- /dev/null +++ b/packages/http-client/codegen/types/storeShippingOptionResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ +import type { StoreCartShippingOption } from './storeCartShippingOption'; + +/** + * The shipping option's details. + */ +export interface StoreShippingOptionResponse { + shipping_option: StoreCartShippingOption; +} diff --git a/packages/http-client/codegen/types/vendorCreateOnboarding.ts b/packages/http-client/codegen/types/vendorCreateOnboarding.ts new file mode 100644 index 00000000..2b87cbd9 --- /dev/null +++ b/packages/http-client/codegen/types/vendorCreateOnboarding.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ +import type { VendorCreateOnboardingContext } from './vendorCreateOnboardingContext'; + +export interface VendorCreateOnboarding { + /** + * Additional data needed by the payment provider to create onboarding. + * @nullable + */ + context?: VendorCreateOnboardingContext; +} diff --git a/packages/http-client/codegen/types/vendorCreateOnboarding200.ts b/packages/http-client/codegen/types/vendorCreateOnboarding200.ts new file mode 100644 index 00000000..49c57580 --- /dev/null +++ b/packages/http-client/codegen/types/vendorCreateOnboarding200.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ +import type { VendorPayoutAccount } from './vendorPayoutAccount'; + +export type VendorCreateOnboarding200 = { + payout_account?: VendorPayoutAccount; +}; diff --git a/packages/http-client/codegen/types/vendorCreateOnboardingContext.ts b/packages/http-client/codegen/types/vendorCreateOnboardingContext.ts new file mode 100644 index 00000000..e9c6cb8e --- /dev/null +++ b/packages/http-client/codegen/types/vendorCreateOnboardingContext.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ + +/** + * Additional data needed by the payment provider to create onboarding. + * @nullable + */ +export type VendorCreateOnboardingContext = { [key: string]: unknown } | null; diff --git a/packages/http-client/codegen/types/vendorCreatePayoutAccount.ts b/packages/http-client/codegen/types/vendorCreatePayoutAccount.ts new file mode 100644 index 00000000..6c6745e9 --- /dev/null +++ b/packages/http-client/codegen/types/vendorCreatePayoutAccount.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ +import type { VendorCreatePayoutAccountContext } from './vendorCreatePayoutAccountContext'; + +export interface VendorCreatePayoutAccount { + /** + * Additional data needed by the payment provider to create a payment account. + * @nullable + */ + context?: VendorCreatePayoutAccountContext; +} diff --git a/packages/http-client/codegen/types/vendorCreatePayoutAccount201.ts b/packages/http-client/codegen/types/vendorCreatePayoutAccount201.ts new file mode 100644 index 00000000..54de6a15 --- /dev/null +++ b/packages/http-client/codegen/types/vendorCreatePayoutAccount201.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ +import type { VendorPayoutAccount } from './vendorPayoutAccount'; + +export type VendorCreatePayoutAccount201 = { + payout_account?: VendorPayoutAccount; +}; diff --git a/packages/http-client/codegen/types/vendorCreatePayoutAccountContext.ts b/packages/http-client/codegen/types/vendorCreatePayoutAccountContext.ts new file mode 100644 index 00000000..f2e787ee --- /dev/null +++ b/packages/http-client/codegen/types/vendorCreatePayoutAccountContext.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ + +/** + * Additional data needed by the payment provider to create a payment account. + * @nullable + */ +export type VendorCreatePayoutAccountContext = { [key: string]: unknown } | null; diff --git a/packages/http-client/codegen/types/vendorGetMemberParams.ts b/packages/http-client/codegen/types/vendorGetMemberParams.ts deleted file mode 100644 index ae89dc41..00000000 --- a/packages/http-client/codegen/types/vendorGetMemberParams.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Generated by orval v7.3.0 🍺 - * Do not edit manually. - * Medusa API - * OpenAPI spec version: 1.0.0 - */ - -export interface VendorGetMemberParams { - /** Comma-separated relations that should be expanded in the returned data. */ - expand?: string; - /** Comma-separated fields that should be included in the returned data. */ - fields?: string; - /** The number of items to return. Default 50. */ - limit?: number; - /** The number of items to skip before starting the response. Default 0. */ - offset?: number; - /** Field used to order the results. */ - order?: string; -} diff --git a/packages/http-client/codegen/types/vendorGetPayoutAccount200.ts b/packages/http-client/codegen/types/vendorGetPayoutAccount200.ts new file mode 100644 index 00000000..3f2760c5 --- /dev/null +++ b/packages/http-client/codegen/types/vendorGetPayoutAccount200.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ +import type { VendorPayoutAccount } from './vendorPayoutAccount'; + +export type VendorGetPayoutAccount200 = { + payout_account?: VendorPayoutAccount; +}; diff --git a/packages/http-client/codegen/types/vendorGetPayoutAccountParams.ts b/packages/http-client/codegen/types/vendorGetPayoutAccountParams.ts new file mode 100644 index 00000000..6e7e22d6 --- /dev/null +++ b/packages/http-client/codegen/types/vendorGetPayoutAccountParams.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ + +export type VendorGetPayoutAccountParams = { +/** + * Comma-separated fields that should be included in the returned data. + */ +fields?: string; +}; diff --git a/packages/http-client/codegen/types/vendorGetSellerMe200.ts b/packages/http-client/codegen/types/vendorGetSellerById200.ts similarity index 83% rename from packages/http-client/codegen/types/vendorGetSellerMe200.ts rename to packages/http-client/codegen/types/vendorGetSellerById200.ts index 99fcaa3a..15c3d0b9 100644 --- a/packages/http-client/codegen/types/vendorGetSellerMe200.ts +++ b/packages/http-client/codegen/types/vendorGetSellerById200.ts @@ -6,6 +6,6 @@ */ import type { VendorSeller } from './vendorSeller'; -export type VendorGetSellerMe200 = { +export type VendorGetSellerById200 = { seller?: VendorSeller; }; diff --git a/packages/http-client/codegen/types/vendorOnboarding.ts b/packages/http-client/codegen/types/vendorOnboarding.ts new file mode 100644 index 00000000..5a09b44a --- /dev/null +++ b/packages/http-client/codegen/types/vendorOnboarding.ts @@ -0,0 +1,33 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ +import type { VendorOnboardingContext } from './vendorOnboardingContext'; +import type { VendorOnboardingData } from './vendorOnboardingData'; +import type { VendorPayoutAccount } from './vendorPayoutAccount'; + +/** + * An onboarding object with its properties + */ +export interface VendorOnboarding { + /** + * Additional context stored with the onboarding. + * @nullable + */ + context?: VendorOnboardingContext; + /** The date with timezone at which the resource was created. */ + created_at?: string; + /** + * Additional data stored with the onboarding. + * @nullable + */ + data?: VendorOnboardingData; + /** The unique identifier of the onboarding. */ + id: string; + /** The payout account this onboarding belongs to. */ + payout_account?: VendorPayoutAccount; + /** The date with timezone at which the resource was last updated. */ + updated_at?: string; +} diff --git a/packages/http-client/codegen/types/vendorOnboardingContext.ts b/packages/http-client/codegen/types/vendorOnboardingContext.ts new file mode 100644 index 00000000..b33e044f --- /dev/null +++ b/packages/http-client/codegen/types/vendorOnboardingContext.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ + +/** + * Additional context stored with the onboarding. + * @nullable + */ +export type VendorOnboardingContext = { [key: string]: unknown } | null; diff --git a/packages/http-client/codegen/types/vendorOnboardingData.ts b/packages/http-client/codegen/types/vendorOnboardingData.ts new file mode 100644 index 00000000..349e2e40 --- /dev/null +++ b/packages/http-client/codegen/types/vendorOnboardingData.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ + +/** + * Additional data stored with the onboarding. + * @nullable + */ +export type VendorOnboardingData = { [key: string]: unknown } | null; diff --git a/packages/http-client/codegen/types/vendorPayout.ts b/packages/http-client/codegen/types/vendorPayout.ts new file mode 100644 index 00000000..8fc27497 --- /dev/null +++ b/packages/http-client/codegen/types/vendorPayout.ts @@ -0,0 +1,31 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ +import type { VendorPayoutData } from './vendorPayoutData'; +import type { VendorPayoutAccount } from './vendorPayoutAccount'; + +/** + * A payout object with its properties + */ +export interface VendorPayout { + /** The amount of the payout. */ + amount: number; + /** The date with timezone at which the resource was created. */ + created_at?: string; + /** The currency code of the payout. */ + currency_code: string; + /** + * Additional data stored with the payout. + * @nullable + */ + data?: VendorPayoutData; + /** The unique identifier of the payout. */ + id: string; + /** The payout account this payout belongs to. */ + payout_account?: VendorPayoutAccount; + /** The date with timezone at which the resource was last updated. */ + updated_at?: string; +} diff --git a/packages/http-client/codegen/types/vendorPayoutAccount.ts b/packages/http-client/codegen/types/vendorPayoutAccount.ts new file mode 100644 index 00000000..4b5460b5 --- /dev/null +++ b/packages/http-client/codegen/types/vendorPayoutAccount.ts @@ -0,0 +1,41 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ +import type { VendorPayoutAccountContext } from './vendorPayoutAccountContext'; +import type { VendorPayoutAccountData } from './vendorPayoutAccountData'; +import type { VendorOnboarding } from './vendorOnboarding'; +import type { VendorPayout } from './vendorPayout'; +import type { VendorPayoutAccountStatus } from './vendorPayoutAccountStatus'; + +/** + * A payout account object with its properties + */ +export interface VendorPayoutAccount { + /** + * Context data stored with the payout account. + * @nullable + */ + context?: VendorPayoutAccountContext; + /** The date with timezone at which the resource was created. */ + created_at?: string; + /** Additional data stored with the payout account. */ + data: VendorPayoutAccountData; + /** The unique identifier of the payout account. */ + id: string; + /** + * The onboarding associated with the payout account. + * @nullable + */ + onboarding?: VendorOnboarding; + /** The payouts associated with this account. */ + payouts?: VendorPayout[]; + /** Reference ID used by the payment processor. */ + reference_id: string; + /** The status of the payout account. */ + status: VendorPayoutAccountStatus; + /** The date with timezone at which the resource was last updated. */ + updated_at?: string; +} diff --git a/packages/http-client/codegen/types/vendorPayoutAccountContext.ts b/packages/http-client/codegen/types/vendorPayoutAccountContext.ts new file mode 100644 index 00000000..7422c0d9 --- /dev/null +++ b/packages/http-client/codegen/types/vendorPayoutAccountContext.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ + +/** + * Context data stored with the payout account. + * @nullable + */ +export type VendorPayoutAccountContext = { [key: string]: unknown } | null; diff --git a/packages/http-client/codegen/types/vendorPayoutAccountData.ts b/packages/http-client/codegen/types/vendorPayoutAccountData.ts new file mode 100644 index 00000000..09426f05 --- /dev/null +++ b/packages/http-client/codegen/types/vendorPayoutAccountData.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ + +/** + * Additional data stored with the payout account. + */ +export type VendorPayoutAccountData = { [key: string]: unknown }; diff --git a/packages/http-client/codegen/types/vendorPayoutAccountStatus.ts b/packages/http-client/codegen/types/vendorPayoutAccountStatus.ts new file mode 100644 index 00000000..21afada7 --- /dev/null +++ b/packages/http-client/codegen/types/vendorPayoutAccountStatus.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ + +/** + * The status of the payout account. + */ +export type VendorPayoutAccountStatus = typeof VendorPayoutAccountStatus[keyof typeof VendorPayoutAccountStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const VendorPayoutAccountStatus = { + pending: 'pending', + active: 'active', + disabled: 'disabled', +} as const; diff --git a/packages/http-client/codegen/types/vendorPayoutData.ts b/packages/http-client/codegen/types/vendorPayoutData.ts new file mode 100644 index 00000000..398e9fc4 --- /dev/null +++ b/packages/http-client/codegen/types/vendorPayoutData.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v7.3.0 🍺 + * Do not edit manually. + * Medusa API + * OpenAPI spec version: 1.0.0 + */ + +/** + * Additional data stored with the payout. + * @nullable + */ +export type VendorPayoutData = { [key: string]: unknown } | null; diff --git a/packages/http-client/codegen/types/vendorUpdateSellerMe200.ts b/packages/http-client/codegen/types/vendorUpdateSellerById200.ts similarity index 82% rename from packages/http-client/codegen/types/vendorUpdateSellerMe200.ts rename to packages/http-client/codegen/types/vendorUpdateSellerById200.ts index 5bc97592..d3c8702a 100644 --- a/packages/http-client/codegen/types/vendorUpdateSellerMe200.ts +++ b/packages/http-client/codegen/types/vendorUpdateSellerById200.ts @@ -6,6 +6,6 @@ */ import type { VendorSeller } from './vendorSeller'; -export type VendorUpdateSellerMe200 = { +export type VendorUpdateSellerById200 = { seller?: VendorSeller; };