import { MarketplaceCatalogAssignmentRequest } from '../models/MarketplaceCatalogAssignmentRequest'; import { ListPage } from '../models/ListPage'; import { MarketplaceCatalog } from '../models/MarketplaceCatalog'; import { MarketplaceCatalogAssignment } from '../models/MarketplaceCatalogAssignment'; import { RequiredDeep } from '../models/RequiredDeep'; import { ListArgs } from '../models/ListArgs'; export default class Catalogs { private impersonating; /** * @ignore * not part of public api, don't include in generated docs */ constructor(); /** * @param buyerID ID of the buyer. * @param locationID ID of the location. * @param marketplaceCatalogAssignmentRequest * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ SetAssignments(buyerID: string, locationID: string, marketplaceCatalogAssignmentRequest: MarketplaceCatalogAssignmentRequest, accessToken?: string): Promise; /** * @param buyerID ID of the buyer. * @param options.search Word or phrase to search for. * @param options.searchOn Comma-delimited list of fields to search on. * @param options.sortBy Comma-delimited list of fields to sort by. * @param options.page Page of results to return. Default: 1 * @param options.pageSize Number of results to return per page. Default: 20, max: 100. * @param options.filters An object whose keys match the model, and the values are the values to filter by * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ List(buyerID: string, options?: ListArgs, accessToken?: string): Promise>>; /** * @param buyerID ID of the buyer. * @param marketplaceCatalog Required fields: Name * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ Post(buyerID: string, marketplaceCatalog: MarketplaceCatalog, accessToken?: string): Promise>; /** * @param buyerID ID of the buyer. * @param catalogID ID of the catalog. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ Get(buyerID: string, catalogID: string, accessToken?: string): Promise>; /** * @param buyerID ID of the buyer. * @param catalogID ID of the catalog. * @param marketplaceCatalog Required fields: Name * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ Put(buyerID: string, catalogID: string, marketplaceCatalog: MarketplaceCatalog, accessToken?: string): Promise>; /** * @param buyerID ID of the buyer. * @param catalogID ID of the catalog. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ Delete(buyerID: string, catalogID: string, accessToken?: string): Promise; /** * @param buyerID ID of the buyer. * @param options.catalogID ID of the catalog. * @param options.locationID ID of the location. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ GetAssignments(buyerID: string, options?: ListArgs, accessToken?: string): Promise>>; /** * @param buyerID ID of the buyer. * @param userID ID of the user. * @param locationID ID of the location. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ SyncOnAddToLocation(buyerID: string, userID: string, locationID: string, accessToken?: string): Promise; /** * @param buyerID ID of the buyer. * @param userID ID of the user. * @param locationID ID of the location. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ SyncOnRemoveFromLocation(buyerID: string, userID: string, locationID: string, accessToken?: string): Promise; /** * @description * enables impersonation by calling the subsequent method with the stored impersonation token * * @example * Catalogs.As().List() // lists Catalogs using the impersonated users' token */ As(): this; }