chore(types,js-sdk,medusa): Add TSDocs for store and auth's JS SDK + small type fixes (#9657)
* added jsdocs * more tsdocs * added for cart completion * finish up the store tsdocs
This commit is contained in:
@@ -21,7 +21,6 @@ export const StoreGetCollectionsParams = createFindParams({
|
||||
handle: z.union([z.string(), z.array(z.string())]).optional(),
|
||||
created_at: createOperatorMap().optional(),
|
||||
updated_at: createOperatorMap().optional(),
|
||||
deleted_at: createOperatorMap().optional(),
|
||||
$and: z.lazy(() => StoreGetCollectionsParams.array()).optional(),
|
||||
$or: z.lazy(() => StoreGetCollectionsParams.array()).optional(),
|
||||
})
|
||||
|
||||
@@ -3,12 +3,11 @@ import {
|
||||
AuthenticatedMedusaRequest,
|
||||
MedusaResponse,
|
||||
} from "@medusajs/framework/http"
|
||||
import { StoreCreatePaymentSessionType } from "../../validators"
|
||||
import { refetchPaymentCollection } from "../../helpers"
|
||||
import { HttpTypes } from "@medusajs/framework/types"
|
||||
|
||||
export const POST = async (
|
||||
req: AuthenticatedMedusaRequest<StoreCreatePaymentSessionType>,
|
||||
req: AuthenticatedMedusaRequest<HttpTypes.StoreInitializePaymentSession>,
|
||||
res: MedusaResponse<HttpTypes.StorePaymentCollectionResponse>
|
||||
) => {
|
||||
const collectionId = req.params.id
|
||||
|
||||
Reference in New Issue
Block a user