{"version":3,"sources":["../../src/ricos-v1-embeddable-item-ricos-embeddables.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetEmbeddableItemRequest = z.object({\n  embeddableItemId: z\n    .string()\n    .describe('ID of the embeddable item to retrieve.')\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n  itemType: z.enum(['BOOKING', 'EVENT', 'PRODUCT']),\n});\nexport const GetEmbeddableItemResponse = z.intersection(\n  z.object({\n    _id: z\n      .string()\n      .describe('Embeddable item ID.')\n      .regex(\n        /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n        'Must be a valid GUID'\n      )\n      .optional()\n      .nullable(),\n    title: z\n      .string()\n      .describe('Display title of the embeddable item.')\n      .max(300)\n      .optional(),\n    image: z\n      .string()\n      .describe('Image associated with the embeddable item.')\n      .optional(),\n    pageUrl: z\n      .string()\n      .describe('Universal page URL for the embeddable item.')\n      .url()\n      .optional(),\n    pricingData: z\n      .object({\n        minValue: z\n          .string()\n          .describe('Minimum price value. For example, `10.99`.')\n          .optional()\n          .nullable(),\n        maxValue: z\n          .string()\n          .describe('Maximum price value. For example, `19.99`.')\n          .optional()\n          .nullable(),\n        discountedValue: z\n          .string()\n          .describe(\n            'Price value after discount application. For example, `15.99`. Available only during active promotions.'\n          )\n          .optional()\n          .nullable(),\n        currency: z\n          .string()\n          .describe(\n            'Three-letter currency code in @ISO-4217 alphabetic format.'\n          )\n          .optional()\n          .nullable(),\n        pricingPlanId: z\n          .string()\n          .describe('Pricing plan ID.')\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional()\n          .nullable(),\n      })\n      .describe(\n        'Pricing information for the embeddable item. Fields are populated based on business logic - single services show `minValue` only, variable pricing shows ranges, and `discountedValue` only appears during active promotions.'\n      )\n      .optional(),\n    itemType: z\n      .enum(['BOOKING', 'EVENT', 'PRODUCT'])\n      .describe('Type of the app content')\n      .optional(),\n  }),\n  z.xor([\n    z.object({\n      bookingDetails: z.never().optional(),\n      eventDetails: z.never().optional(),\n    }),\n    z.object({\n      eventDetails: z.never().optional(),\n      bookingDetails: z\n        .object({ durations: z.array(z.number().int()).max(50).optional() })\n        .describe(\n          'Booking-specific details. Available only when `itemType` is `BOOKING`.'\n        ),\n    }),\n    z.object({\n      bookingDetails: z.never().optional(),\n      eventDetails: z\n        .object({\n          formattedDateAndTime: z\n            .string()\n            .describe(\n              'Human-readable date and time representation of the event.'\n            )\n            .max(500)\n            .optional()\n            .nullable(),\n          startDate: z\n            .date()\n            .describe('Date and time when the event starts.')\n            .optional()\n            .nullable(),\n          endDate: z\n            .date()\n            .describe('Date and time when the event ends.')\n            .optional()\n            .nullable(),\n          timeZoneId: z\n            .string()\n            .describe('Event time zone ID in @IANA TZ database format.')\n            .max(100)\n            .optional()\n            .nullable(),\n          location: z\n            .string()\n            .describe('Event location name.')\n            .max(50)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Event-specific details. Available only when `itemType` is `EVENT`.'\n        ),\n    }),\n  ])\n);\nexport const ListEmbeddableItemsRequest = z.object({\n  itemType: z.enum(['BOOKING', 'EVENT', 'PRODUCT']),\n  options: z\n    .object({\n      query: z\n        .string()\n        .describe('Search query to filter items by title.')\n        .max(300)\n        .optional()\n        .nullable(),\n      paging: z\n        .object({\n          limit: z\n            .number()\n            .int()\n            .describe('Number of items to load per page.\\n\\nDefault: `50`')\n            .min(0)\n            .max(100)\n            .optional()\n            .nullable(),\n          cursor: z\n            .string()\n            .describe(\n              'Cursor token for pagination. Use the cursor from the previous response to get the next page of results.'\n            )\n            .max(16000)\n            .optional()\n            .nullable(),\n        })\n        .describe('Cursor-based pagination parameters.')\n        .optional(),\n    })\n    .optional(),\n});\nexport const ListEmbeddableItemsResponse = z.object({\n  items: z\n    .array(\n      z.intersection(\n        z.object({\n          _id: z\n            .string()\n            .describe('Embeddable item ID.')\n            .regex(\n              /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n              'Must be a valid GUID'\n            )\n            .optional()\n            .nullable(),\n          title: z\n            .string()\n            .describe('Display title of the embeddable item.')\n            .max(300)\n            .optional(),\n          image: z\n            .string()\n            .describe('Image associated with the embeddable item.')\n            .optional(),\n          pageUrl: z\n            .string()\n            .describe('Universal page URL for the embeddable item.')\n            .url()\n            .optional(),\n          pricingData: z\n            .object({\n              minValue: z\n                .string()\n                .describe('Minimum price value. For example, `10.99`.')\n                .optional()\n                .nullable(),\n              maxValue: z\n                .string()\n                .describe('Maximum price value. For example, `19.99`.')\n                .optional()\n                .nullable(),\n              discountedValue: z\n                .string()\n                .describe(\n                  'Price value after discount application. For example, `15.99`. Available only during active promotions.'\n                )\n                .optional()\n                .nullable(),\n              currency: z\n                .string()\n                .describe(\n                  'Three-letter currency code in @ISO-4217 alphabetic format.'\n                )\n                .optional()\n                .nullable(),\n              pricingPlanId: z\n                .string()\n                .describe('Pricing plan ID.')\n                .regex(\n                  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n                  'Must be a valid GUID'\n                )\n                .optional()\n                .nullable(),\n            })\n            .describe(\n              'Pricing information for the embeddable item. Fields are populated based on business logic - single services show `minValue` only, variable pricing shows ranges, and `discountedValue` only appears during active promotions.'\n            )\n            .optional(),\n          itemType: z\n            .enum(['BOOKING', 'EVENT', 'PRODUCT'])\n            .describe('Type of the app content')\n            .optional(),\n        }),\n        z.xor([\n          z.object({\n            bookingDetails: z.never().optional(),\n            eventDetails: z.never().optional(),\n          }),\n          z.object({\n            eventDetails: z.never().optional(),\n            bookingDetails: z\n              .object({\n                durations: z.array(z.number().int()).max(50).optional(),\n              })\n              .describe(\n                'Booking-specific details. Available only when `itemType` is `BOOKING`.'\n              ),\n          }),\n          z.object({\n            bookingDetails: z.never().optional(),\n            eventDetails: z\n              .object({\n                formattedDateAndTime: z\n                  .string()\n                  .describe(\n                    'Human-readable date and time representation of the event.'\n                  )\n                  .max(500)\n                  .optional()\n                  .nullable(),\n                startDate: z\n                  .date()\n                  .describe('Date and time when the event starts.')\n                  .optional()\n                  .nullable(),\n                endDate: z\n                  .date()\n                  .describe('Date and time when the event ends.')\n                  .optional()\n                  .nullable(),\n                timeZoneId: z\n                  .string()\n                  .describe('Event time zone ID in @IANA TZ database format.')\n                  .max(100)\n                  .optional()\n                  .nullable(),\n                location: z\n                  .string()\n                  .describe('Event location name.')\n                  .max(50)\n                  .optional()\n                  .nullable(),\n              })\n              .describe(\n                'Event-specific details. Available only when `itemType` is `EVENT`.'\n              ),\n          }),\n        ])\n      )\n    )\n    .optional(),\n  pagingMetadata: z\n    .object({\n      count: z\n        .number()\n        .int()\n        .describe('Number of items returned in the current response.')\n        .optional()\n        .nullable(),\n      cursors: z\n        .object({\n          next: z\n            .string()\n            .describe('Cursor for retrieving the next page of results.')\n            .max(16000)\n            .optional()\n            .nullable(),\n          prev: z\n            .string()\n            .describe('Cursor for retrieving the previous page of results.')\n            .max(16000)\n            .optional()\n            .nullable(),\n        })\n        .describe('Navigation cursors for moving between result pages.')\n        .optional(),\n    })\n    .describe('Pagination metadata for navigating through results.')\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,2BAA6B,SAAO;AAAA,EAC/C,kBACG,SAAO,EACP,SAAS,wCAAwC,EACjD;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,UAAY,OAAK,CAAC,WAAW,SAAS,SAAS,CAAC;AAClD,CAAC;AACM,IAAM,4BAA8B;AAAA,EACvC,SAAO;A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