mcp-prqx-pricer 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +2 -29
- package/package.json +1 -1
- package/src/index.ts +3 -30
    
        package/build/index.js
    CHANGED
    
    | @@ -78,36 +78,9 @@ class PrqxMcpServer { | |
| 78 78 | 
             
                                throw new Error(`API error: ${response.statusText}`);
         | 
| 79 79 | 
             
                            }
         | 
| 80 80 | 
             
                            if (response.data.totalFilteredRecords === 0) {
         | 
| 81 | 
            -
                                return {  | 
| 81 | 
            +
                                return { content: [{ type: "text", text: "No results found" }] };
         | 
| 82 82 | 
             
                            }
         | 
| 83 | 
            -
                            return {
         | 
| 84 | 
            -
                                toolResult: response.data.data?.map(p => ({
         | 
| 85 | 
            -
                                    eventName: p.eventName,
         | 
| 86 | 
            -
                                    productionId: p.productionId,
         | 
| 87 | 
            -
                                    productionLocalTime: p.productionLocalTime,
         | 
| 88 | 
            -
                                    productionDateTimeStatus: p.productionDateTimeStatus,
         | 
| 89 | 
            -
                                    myListing: p.myListing,
         | 
| 90 | 
            -
                                    marketList: p.marketList,
         | 
| 91 | 
            -
                                    myAvgPrice: p.myAvgPrice,
         | 
| 92 | 
            -
                                    marketAveragePrice: p.marketAveragePrice,
         | 
| 93 | 
            -
                                    sold: p.sold,
         | 
| 94 | 
            -
                                    myAverageSoldPrice: p.myAverageSoldPrice,
         | 
| 95 | 
            -
                                    lastSoldPrice: p.lastSoldPrice,
         | 
| 96 | 
            -
                                    ceiling: p.ceiling,
         | 
| 97 | 
            -
                                    floor: p.floor,
         | 
| 98 | 
            -
                                    noPrice: p.noPrice,
         | 
| 99 | 
            -
                                    noComps: p.noComps,
         | 
| 100 | 
            -
                                    pricer: p.pricer,
         | 
| 101 | 
            -
                                    marketplace: p.marketplace,
         | 
| 102 | 
            -
                                    productionDate: p.productionDate,
         | 
| 103 | 
            -
                                    venueCity: p.venueCity,
         | 
| 104 | 
            -
                                    venueState: p.venueState,
         | 
| 105 | 
            -
                                    venueName: p.venueName,
         | 
| 106 | 
            -
                                    venueId: p.venueId,
         | 
| 107 | 
            -
                                    lastModifiedOn: p.lastModifiedOn,
         | 
| 108 | 
            -
                                    ivcProductionKey: p.ivcProductionKey
         | 
| 109 | 
            -
                                }))
         | 
| 110 | 
            -
                            };
         | 
| 83 | 
            +
                            return { content: [{ type: "text", text: JSON.stringify(response.data) }] };
         | 
| 111 84 | 
             
                        }
         | 
| 112 85 | 
             
                        catch (error) {
         | 
| 113 86 | 
             
                            if (error instanceof Error) {
         | 
    
        package/package.json
    CHANGED
    
    
    
        package/src/index.ts
    CHANGED
    
    | @@ -98,37 +98,10 @@ import { PagedProductionResponseDto } from "./types/production"; | |
| 98 98 | 
             
                            }
         | 
| 99 99 |  | 
| 100 100 | 
             
                            if(response.data.totalFilteredRecords === 0) {
         | 
| 101 | 
            -
                                return { | 
| 101 | 
            +
                                return {content: [{type: "text", text: "No results found"}]};
         | 
| 102 102 | 
             
                            }
         | 
| 103 | 
            -
             | 
| 104 | 
            -
                            return {
         | 
| 105 | 
            -
                                toolResult: response.data.data?.map(p => ({
         | 
| 106 | 
            -
                                    eventName: p.eventName,
         | 
| 107 | 
            -
                                    productionId: p.productionId,
         | 
| 108 | 
            -
                                    productionLocalTime: p.productionLocalTime,
         | 
| 109 | 
            -
                                    productionDateTimeStatus: p.productionDateTimeStatus,
         | 
| 110 | 
            -
                                    myListing: p.myListing,
         | 
| 111 | 
            -
                                    marketList: p.marketList,
         | 
| 112 | 
            -
                                    myAvgPrice: p.myAvgPrice,
         | 
| 113 | 
            -
                                    marketAveragePrice: p.marketAveragePrice,
         | 
| 114 | 
            -
                                    sold: p.sold,
         | 
| 115 | 
            -
                                    myAverageSoldPrice: p.myAverageSoldPrice,
         | 
| 116 | 
            -
                                    lastSoldPrice: p.lastSoldPrice,
         | 
| 117 | 
            -
                                    ceiling: p.ceiling,
         | 
| 118 | 
            -
                                    floor: p.floor,
         | 
| 119 | 
            -
                                    noPrice: p.noPrice,
         | 
| 120 | 
            -
                                    noComps: p.noComps,
         | 
| 121 | 
            -
                                    pricer: p.pricer,
         | 
| 122 | 
            -
                                    marketplace: p.marketplace,
         | 
| 123 | 
            -
                                    productionDate: p.productionDate,
         | 
| 124 | 
            -
                                    venueCity: p.venueCity,
         | 
| 125 | 
            -
                                    venueState: p.venueState,
         | 
| 126 | 
            -
                                    venueName: p.venueName,
         | 
| 127 | 
            -
                                    venueId: p.venueId,
         | 
| 128 | 
            -
                                    lastModifiedOn: p.lastModifiedOn,
         | 
| 129 | 
            -
                                    ivcProductionKey: p.ivcProductionKey
         | 
| 130 | 
            -
                                }))
         | 
| 131 | 
            -
                            };
         | 
| 103 | 
            +
                            
         | 
| 104 | 
            +
                            return {content: [{type: "text", text: JSON.stringify(response.data)}]};
         | 
| 132 105 | 
             
                        } catch (error) {
         | 
| 133 106 | 
             
                            if(error instanceof Error) {
         | 
| 134 107 | 
             
                                console.error('Error in Get Productions:', error);
         |