mcp-prqx-pricer 1.0.2 → 1.0.4

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetProductionInventoryTool = void 0;
4
4
  const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
5
5
  class GetProductionInventoryTool {
6
- name = 'Get Production Inventory';
6
+ name = 'GetProductionInventory';
7
7
  description = 'Get all the organization inventory (ticket groups) for a single production';
8
8
  inputSchema = {
9
9
  type: 'object',
@@ -12,7 +12,8 @@ class GetProductionInventoryTool {
12
12
  type: 'number',
13
13
  description: 'ID of the production'
14
14
  }
15
- }
15
+ },
16
+ mandatory: ['productionId']
16
17
  };
17
18
  toolHandler = async (request, httpClient) => {
18
19
  try {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetProductionsTool = void 0;
4
4
  const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
5
5
  class GetProductionsTool {
6
- name = 'Get Productions';
6
+ name = 'GetProductions';
7
7
  description = 'Get productions by production name, venue, performer, city. Within a range of dates (StartDate, EndDate). Only retrieves a maximum of 10 items';
8
8
  inputSchema = {
9
9
  type: 'object',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-prqx-pricer",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -4,7 +4,7 @@ import { McpTool } from "../types/tool";
4
4
  import { GetProductionInventoryResponse } from "../types/productionInventory";
5
5
 
6
6
  export class GetProductionInventoryTool implements McpTool {
7
- name = 'Get Production Inventory';
7
+ name = 'GetProductionInventory';
8
8
  description = 'Get all the organization inventory (ticket groups) for a single production';
9
9
  inputSchema = {
10
10
  type: 'object',
@@ -13,7 +13,8 @@ export class GetProductionInventoryTool implements McpTool {
13
13
  type: 'number',
14
14
  description: 'ID of the production'
15
15
  }
16
- }
16
+ },
17
+ mandatory: ['productionId']
17
18
  };
18
19
  toolHandler = async (request: CallToolRequest, httpClient: AxiosInstance) => {
19
20
  try {
@@ -4,7 +4,7 @@ import { PagedProductionResponseDto } from "../types/production";
4
4
  import axios from "axios";
5
5
 
6
6
  export class GetProductionsTool implements McpTool {
7
- name = 'Get Productions';
7
+ name = 'GetProductions';
8
8
  description = 'Get productions by production name, venue, performer, city. Within a range of dates (StartDate, EndDate). Only retrieves a maximum of 10 items';
9
9
  inputSchema = {
10
10
  type: 'object',
@@ -12,7 +12,7 @@ export type SeatType = 'Consecutive' | 'OddEven' | 'Piggyback' | 'GeneralAdmissi
12
12
  export type SplitRule = 'Default' | 'NoSplit' | 'NeverLeaveOne' | 'AnySplit' | 'Custom';
13
13
  export type InventoryStatus = 'Available' | 'Sold' | 'Held' | 'Deleted';
14
14
 
15
- export interface InventoryResponseDtoV2 {
15
+ export interface InventoryResponseDto {
16
16
  productionId: number;
17
17
  section?: string | null;
18
18
  row?: string | null;
@@ -53,4 +53,4 @@ export interface InventoryResponseDtoV2 {
53
53
  sourceKey?: string | null;
54
54
  }
55
55
 
56
- export type GetProductionInventoryResponse = InventoryResponseDtoV2[];
56
+ export type GetProductionInventoryResponse = InventoryResponseDto[];