Hierarchy

  • Catalogs

Properties

impersonating: boolean = false

Methods

  • Description

    enables impersonation by calling the subsequent method with the stored impersonation token

    Example

    Catalogs.As().List() // lists Catalogs using the impersonated users' token
    

    Returns Catalogs

  • Create a new catalog. If ID is provided and an object with that ID already exists, a 409 (conflict) error is returned. Check out the docs for more info

    Type Parameters

    • TCatalog extends Catalog<any, TCatalog>

    Parameters

    Returns Promise<RequiredDeep<TCatalog>>

  • Delete a catalog. Check out the docs for more info

    Parameters

    • catalogID: string

      ID of the catalog.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

  • Delete a catalog assignment. Check out the docs for more info

    Parameters

    • catalogID: string

      ID of the catalog.

    • listOptions: {
          buyerID?: string;
      } = {}
      • Optional buyerID?: string

        ID of the buyer.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

  • Delete a catalog bundle assignment. Check out the docs for more info

    Parameters

    • catalogID: string

      ID of the catalog.

    • bundleID: string

      ID of the bundle.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

  • Delete a catalog product assignment. Check out the docs for more info

    Parameters

    • catalogID: string

      ID of the catalog.

    • productID: string

      ID of the product.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

  • Get a list of catalogs. Check out the docs for more info

    Type Parameters

    • TCatalog extends Catalog<any, TCatalog>

    Parameters

    • listOptions: {
          filters?: Filters;
          page?: number;
          pageSize?: number;
          search?: string;
          searchOn?: ("ID" | "Name" | "Description")[];
          sortBy?: ("ID" | "Name" | "!ID" | "!Name" | "OwnerID" | "!OwnerID")[];
      } = {}
      • Optional filters?: Filters

        An object or dictionary representing key/value pairs to apply as filters. Valid keys are top-level properties of the returned model or 'xp.???'

      • Optional page?: number

        Page of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

      • Optional pageSize?: number

        Number of results to return per page. Default: 20, max: 100.

      • Optional search?: string

        Word or phrase to search for.

      • Optional searchOn?: ("ID" | "Name" | "Description")[]

        Comma-delimited list of fields to search on.

      • Optional sortBy?: ("ID" | "Name" | "!ID" | "!Name" | "OwnerID" | "!OwnerID")[]

        Comma-delimited list of fields to sort by.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TCatalog>>>

  • Get a list of catalog assignments. Check out the docs for more info

    Type Parameters

    Parameters

    • listOptions: {
          buyerID?: string;
          catalogID?: string;
          page?: number;
          pageSize?: number;
      } = {}
      • Optional buyerID?: string

        ID of the buyer.

      • Optional catalogID?: string

        ID of the catalog.

      • Optional page?: number

        Page of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

      • Optional pageSize?: number

        Number of results to return per page. Default: 20, max: 100.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TCatalogAssignment>>>

  • Get a list of catalog bundle assignments. Check out the docs for more info

    Type Parameters

    Parameters

    • listOptions: {
          bundleID?: string;
          catalogID?: string;
          page?: number;
          pageSize?: number;
      } = {}
      • Optional bundleID?: string

        ID of the bundle.

      • Optional catalogID?: string

        ID of the catalog.

      • Optional page?: number

        Page of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

      • Optional pageSize?: number

        Number of results to return per page. Default: 20, max: 100.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TBundleCatalogAssignment>>>

  • Get a list of catalog product assignments. Check out the docs for more info

    Type Parameters

    Parameters

    • listOptions: {
          catalogID?: string;
          page?: number;
          pageSize?: number;
          productID?: string;
      } = {}
      • Optional catalogID?: string

        ID of the catalog.

      • Optional page?: number

        Page of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

      • Optional pageSize?: number

        Number of results to return per page. Default: 20, max: 100.

      • Optional productID?: string

        ID of the product.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TProductCatalogAssignment>>>

  • Create or update a catalog. If an object with the same ID already exists, it will be overwritten. Check out the docs for more info

    Type Parameters

    • TCatalog extends Catalog<any, TCatalog>

    Parameters

    • catalogID: string

      ID of the catalog.

    • catalog: Catalog<any>

      Required fields: Name

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredDeep<TCatalog>>

Generated using TypeDoc