admin/store.ts

medusa · packages/core/js-sdk/src/admin/store.ts · typescript · MIT
integration

SDK client for retrieving, listing, and updating stores via Medusa admin API.

// Source: https://github.com/medusajs/medusa | License: MIT | Copyright 2021 Medusajs
// Provided via justclaw.it.com; keep this notice with the code.
import { HttpTypes, SelectParams } from "@medusajs/types"
import { Client } from "../client.js"
import { ClientHeaders } from "../types.js"

export class Store {
  /**
   * @ignore
   */
  private client: Client
  /**
   * @ignore
   */
  constructor(client: Client) {
    this.client = client
  }

  /**
   * This method retrieves a store by its ID. It sends a request to the
   * [Get Store](https://docs.medusajs.com/api/admin/stores/get-a-store)
   * API route.
   * 
   * @param id - The ID of the store to retrieve.
   * @param query - Configure the fields and relations to retrieve in the store.
   * @param headers - Headers to pass in the 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key