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:
Shahed Nasser
2024-10-21 11:03:33 +03:00
committed by GitHub
parent 7cc599a68c
commit fa15db4538
39 changed files with 2945 additions and 75 deletions
@@ -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