import { Client } from '../client'; import type { Models } from '../models'; import { ChannelStatus } from '../enums/channel-status'; import { ChannelType } from '../enums/channel-type'; export declare class Channels { client: Client; constructor(client: Client); /** * * @param {number} params.limit - Page size (default 50, max 200). * @param {number} params.offset - Row offset for pagination (default 0). * @param {string} params.order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'. * @throws {RevenexxException} * @returns {Promise<{}>} */ channelsList(params?: { limit?: number; offset?: number; order?: string; }): Promise<{}>; /** * * @param {number} limit - Page size (default 50, max 200). * @param {number} offset - Row offset for pagination (default 0). * @param {string} order - Sort as 'column.asc' | 'column.desc', e.g. 'created_at.desc'. * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ channelsList(limit?: number, offset?: number, order?: string): Promise<{}>; /** * * @param {string} params.code - Stable channel code, unique per tenant (e.g. shop, punchout-acme). * @param {string} params.name - Display name. * @param {boolean} params.isDefault - Mark as the default channel (default false). * @param {object} params.labels - Localized display names keyed by locale. * @param {number} params.position - Sort position (default 0). * @param {ChannelStatus} params.status - Lifecycle status (default 'active'). * @param {ChannelType} params.type - Where business happens (default 'storefront'). * @throws {RevenexxException} * @returns {Promise} */ channelsCreate(params: { code: string; name: string; isDefault?: boolean; labels?: object; position?: number; status?: ChannelStatus; type?: ChannelType; }): Promise; /** * * @param {string} code - Stable channel code, unique per tenant (e.g. shop, punchout-acme). * @param {string} name - Display name. * @param {boolean} isDefault - Mark as the default channel (default false). * @param {object} labels - Localized display names keyed by locale. * @param {number} position - Sort position (default 0). * @param {ChannelStatus} status - Lifecycle status (default 'active'). * @param {ChannelType} type - Where business happens (default 'storefront'). * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ channelsCreate(code: string, name: string, isDefault?: boolean, labels?: object, position?: number, status?: ChannelStatus, type?: ChannelType): Promise; /** * * @throws {RevenexxException} * @returns {Promise} */ channelsDefaults(): Promise; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ channelsDelete(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ channelsDelete(id: string): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise} */ channelsGet(params: { id: string; }): Promise; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ channelsGet(id: string): Promise; /** * * @param {string} params.id - * @param {string} params.code - Stable channel code, unique per tenant (e.g. shop, punchout-acme). * @param {boolean} params.isDefault - Mark as the default channel (default false). * @param {object} params.labels - Localized display names keyed by locale. * @param {string} params.name - Display name. * @param {number} params.position - Sort position (default 0). * @param {ChannelStatus} params.status - Lifecycle status (default 'active'). * @param {ChannelType} params.type - Where business happens (default 'storefront'). * @throws {RevenexxException} * @returns {Promise} */ channelsUpdate(params: { id: string; code?: string; isDefault?: boolean; labels?: object; name?: string; position?: number; status?: ChannelStatus; type?: ChannelType; }): Promise; /** * * @param {string} id - * @param {string} code - Stable channel code, unique per tenant (e.g. shop, punchout-acme). * @param {boolean} isDefault - Mark as the default channel (default false). * @param {object} labels - Localized display names keyed by locale. * @param {string} name - Display name. * @param {number} position - Sort position (default 0). * @param {ChannelStatus} status - Lifecycle status (default 'active'). * @param {ChannelType} type - Where business happens (default 'storefront'). * @throws {RevenexxException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ channelsUpdate(id: string, code?: string, isDefault?: boolean, labels?: object, name?: string, position?: number, status?: ChannelStatus, type?: ChannelType): Promise; }