import * as wrapper from './proto/proto-generated';
var ItemsSelectionService = wrapper.wix.items_selection.spi_host.v1.ItemsSelectionService;
/** Returns list of installed app providers for a specific site */
export function listInstalledProviders(payload) {
    var serviceArtifactId = 'com.wixpress.wixos.items-selection-service';
    var serviceProtoClass = ItemsSelectionService;
    var methodName = 'listInstalledProviders';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Returns list of all existing providers */
export function listProviders(payload) {
    var serviceArtifactId = 'com.wixpress.wixos.items-selection-service';
    var serviceProtoClass = ItemsSelectionService;
    var methodName = 'listProviders';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/**
 * Retrieves a list of items that match the specified criteria.
 *
 * Returns:
 * - A list of items that match the search criteria.
 * - Metadata about the search results, such as the total number of items and pagination information.
 */
export function queryItems(payload) {
    var serviceArtifactId = 'com.wixpress.wixos.items-selection-service';
    var serviceProtoClass = ItemsSelectionService;
    var methodName = 'queryItems';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
//# sourceMappingURL=rpc.impl.js.map