Hierarchy

  • Bundles

Properties

impersonating: boolean = false

Methods

  • Description

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

    Example

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

    Returns Bundles

  • Create a new bundle. 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

    • TBundle extends Bundle<any, TBundle>

    Parameters

    Returns Promise<RequiredDeep<TBundle>>

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

    Parameters

    • bundleID: string

      ID of the bundle.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

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

    Parameters

    • bundleID: string

      ID of the bundle.

    • buyerID: string

      ID of the buyer.

    • listOptions: {
          sellerID?: string;
          userGroupID?: string;
          userID?: string;
      } = {}
      • Optional sellerID?: string

        ID of the seller.

      • Optional userGroupID?: string

        ID of the user group.

      • Optional userID?: string

        ID of the user.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

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

    Parameters

    • bundleID: string

      ID of the bundle.

    • productID: string

      ID of the product.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

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

    Type Parameters

    • TBundle extends Bundle<any, TBundle>

    Parameters

    • listOptions: {
          catalogID?: string;
          categoryID?: string;
          filters?: Filters;
          page?: number;
          pageSize?: number;
          search?: string;
          searchOn?: string[];
          searchType?: SearchType;
          sortBy?: string[];
          supplierID?: string;
      } = {}
      • Optional catalogID?: string

        ID of the catalog.

      • Optional categoryID?: string

        ID of the category.

      • 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?: string[]

        Comma-delimited list of fields to search on.

      • Optional searchType?: SearchType

        Type of search to perform. Possible values: AnyTerm (default), AllTermsAnyField, AllTermsSameField, ExactPhrase, ExactPhrasePrefix.

      • Optional sortBy?: string[]

        Comma-delimited list of fields to sort by.

      • Optional supplierID?: string

        ID of the supplier.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPageWithFacets<TBundle, any>>>

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

    Type Parameters

    Parameters

    • listOptions: {
          bundleID?: string;
          buyerID?: string;
          level?: PartyType;
          page?: number;
          pageSize?: number;
          userGroupID?: string;
          userID?: string;
      } = {}
      • Optional bundleID?: string

        ID of the bundle.

      • Optional buyerID?: string

        ID of the buyer.

      • Optional level?: PartyType

        Level of the bundle assignment. Possible values: User, Group, Company.

      • 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 userGroupID?: string

        ID of the user group.

      • Optional userID?: string

        ID of the user.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TBundleAssignment>>>

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

    Type Parameters

    Parameters

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

        ID of the bundle.

      • 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<TBundleProductAssignment>>>

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

    Type Parameters

    • TBundle extends Bundle<any, TBundle>

    Parameters

    • bundleID: string

      ID of the bundle.

    • bundle: Bundle<any>

      Required fields: Name

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredDeep<TBundle>>

Generated using TypeDoc