@peektravel/app-utilities 0.9.1 → 0.9.2

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/llms.txt CHANGED
@@ -139,6 +139,11 @@ final authority and may still reject the request.
139
139
  `makePayment(input)`, `refund(input)`, `createInvoiceLink(id)`,
140
140
  `listAddons(id)`, `addAddon(id, {addonOptionId, quantity})`,
141
141
  `removeAddon(id, {addonOptionId, quantity})`, `create(input)`
142
+ - `getReviewService()` — `getReviews(productId, reviewCount?, reviewOffset?)`
143
+ (single newest-first page of `Review`s, count 1–50, offset ≥ 0);
144
+ `getAllReviewSummaries()` → `ProductReviewSummary[]` (one per activity:
145
+ `avgRating` — decimal, `null` when no ratings — plus `countTotal` and per-star
146
+ `countOneStar`…`countFiveStar`). No PII; unaffected by `fullCustomerAccess`.
142
147
 
143
148
  ## Sibling accessors (CNG, ACME — REST, not GraphQL)
144
149
 
@@ -190,6 +195,11 @@ stay internal.
190
195
  additionally enforces that every required (non-per-guest) custom question is
191
196
  answered — validation runs even when `customQuestionAnswers` is empty/omitted,
192
197
  and an unanswered required question fails creation before the quote.
198
+ `CreateBookingInput.acceptAllCustomQuestionIds?: boolean` (default `false`)
199
+ relaxes the id check: a `cq_…` id not in the activity's question list is
200
+ accepted as a plain text answer instead of failing creation (by-name answers
201
+ still must match). When every answer is by id (and no required check runs) the
202
+ questions fetch is skipped entirely.
193
203
 
194
204
  ## Errors
195
205
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peektravel/app-utilities",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "GraphQL JS mapping utilities extracted from the Peek Pro Autopilot connector.",
5
5
  "license": "MIT",
6
6
  "repository": {