btrz-api-client 8.30.0 → 8.32.0

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.
Files changed (389) hide show
  1. package/.cursor/rules/jsdoc-endpoints.mdc +1 -1
  2. package/lib/client-standalone-min.js +3 -3
  3. package/lib/client.js +3 -0
  4. package/lib/endpoints/accounts/agencies.js +52 -0
  5. package/lib/endpoints/accounts/application-settings.js +23 -17
  6. package/lib/endpoints/accounts/applications.js +8 -7
  7. package/lib/endpoints/accounts/current-shifts.js +6 -1
  8. package/lib/endpoints/accounts/customers.js +31 -21
  9. package/lib/endpoints/accounts/domains.js +16 -12
  10. package/lib/endpoints/accounts/dynamic-forms.js +17 -5
  11. package/lib/endpoints/accounts/email-settings.js +22 -20
  12. package/lib/endpoints/accounts/email-templates.js +18 -6
  13. package/lib/endpoints/accounts/exchange-rates.js +13 -8
  14. package/lib/endpoints/accounts/exchange-receipts.js +10 -6
  15. package/lib/endpoints/accounts/external-customers.js +50 -0
  16. package/lib/endpoints/accounts/goal-settings.js +8 -7
  17. package/lib/endpoints/accounts/images.js +14 -15
  18. package/lib/endpoints/accounts/interline.js +35 -30
  19. package/lib/endpoints/accounts/journey-prices-settings.js +8 -6
  20. package/lib/endpoints/accounts/lexicons.js +48 -19
  21. package/lib/endpoints/accounts/market-pricing-settings.js +7 -6
  22. package/lib/endpoints/accounts/multiproduct-sales-settings.js +7 -6
  23. package/lib/endpoints/accounts/network.js +29 -17
  24. package/lib/endpoints/accounts/operation-settings.js +8 -7
  25. package/lib/endpoints/accounts/people-lookups.js +39 -21
  26. package/lib/endpoints/accounts/point-to-point-settings.js +6 -6
  27. package/lib/endpoints/accounts/print-settings.js +9 -7
  28. package/lib/endpoints/accounts/print-templates.js +71 -24
  29. package/lib/endpoints/accounts/printers.js +10 -5
  30. package/lib/endpoints/accounts/rms-settings.js +19 -11
  31. package/lib/endpoints/accounts/s3buckets.js +3 -3
  32. package/lib/endpoints/accounts/salesforce-settings.js +8 -7
  33. package/lib/endpoints/accounts/shift-settings.js +7 -7
  34. package/lib/endpoints/accounts/shifts.js +54 -15
  35. package/lib/endpoints/accounts/sms-templates.js +56 -18
  36. package/lib/endpoints/accounts/sub-print-templates.js +5 -3
  37. package/lib/endpoints/accounts/ticket-movement-settings.js +8 -5
  38. package/lib/endpoints/accounts/tokens.js +10 -3
  39. package/lib/endpoints/accounts/transport-regulation-settings.js +2 -2
  40. package/lib/endpoints/accounts/travellers.js +36 -17
  41. package/lib/endpoints/accounts/trusted-machines.js +19 -8
  42. package/lib/endpoints/accounts/twilio-settings.js +8 -6
  43. package/lib/endpoints/accounts/users.js +116 -70
  44. package/lib/endpoints/accounts/verified-emails.js +130 -0
  45. package/lib/endpoints/accounts/websales-config.js +15 -6
  46. package/lib/endpoints/btrzpay/cardpointe.js +5 -5
  47. package/lib/endpoints/btrzpay/customerCards.js +4 -4
  48. package/lib/endpoints/btrzpay/customers.js +3 -3
  49. package/lib/endpoints/btrzpay/datalogic.js +8 -9
  50. package/lib/endpoints/btrzpay/oxxo.js +5 -13
  51. package/lib/endpoints/btrzpay/payment-methods.js +25 -11
  52. package/lib/endpoints/btrzpay/payments.js +2 -2
  53. package/lib/endpoints/btrzpay/prismaTerminals.js +14 -21
  54. package/lib/endpoints/btrzpay/reference-numbers.js +1 -1
  55. package/lib/endpoints/btrzpay/referenced-payments.js +11 -1
  56. package/lib/endpoints/btrzpay/square.js +2 -2
  57. package/lib/endpoints/btrzpay/stripe-terminals.js +5 -5
  58. package/lib/endpoints/btrzpay/terminalPayments.js +15 -5
  59. package/lib/endpoints/coltrane/merged-fare-tables.js +1 -1
  60. package/lib/endpoints/coltrane/paths.js +9 -6
  61. package/lib/endpoints/gps/scanner-app-location.js +3 -2
  62. package/lib/endpoints/inventory/amenities.js +10 -7
  63. package/lib/endpoints/inventory/amenity-groups.js +11 -7
  64. package/lib/endpoints/inventory/banks.js +5 -11
  65. package/lib/endpoints/inventory/bare-routes.js +12 -4
  66. package/lib/endpoints/inventory/brands.js +10 -6
  67. package/lib/endpoints/inventory/bundle-fares.js +4 -2
  68. package/lib/endpoints/inventory/bundles.js +5 -2
  69. package/lib/endpoints/inventory/change-requests.js +23 -9
  70. package/lib/endpoints/inventory/companies.js +5 -2
  71. package/lib/endpoints/inventory/control-classes.js +34 -4
  72. package/lib/endpoints/inventory/countries.js +8 -3
  73. package/lib/endpoints/inventory/custom-content.js +8 -6
  74. package/lib/endpoints/inventory/custom-fields.js +9 -7
  75. package/lib/endpoints/inventory/document-types.js +8 -11
  76. package/lib/endpoints/inventory/external-passes.js +13 -4
  77. package/lib/endpoints/inventory/external-wallets.js +5 -6
  78. package/lib/endpoints/inventory/fallback-codes.js +11 -4
  79. package/lib/endpoints/inventory/fare-classes.js +6 -4
  80. package/lib/endpoints/inventory/fares.js +13 -7
  81. package/lib/endpoints/inventory/fees.js +8 -4
  82. package/lib/endpoints/inventory/filtered-trips-v2.js +1 -1
  83. package/lib/endpoints/inventory/filtered-trips.js +14 -2
  84. package/lib/endpoints/inventory/financing-costs.js +15 -8
  85. package/lib/endpoints/inventory/garages.js +7 -5
  86. package/lib/endpoints/inventory/getnet-terminals.js +12 -4
  87. package/lib/endpoints/inventory/gift-certificate-definitions.js +10 -11
  88. package/lib/endpoints/inventory/insurances.js +10 -7
  89. package/lib/endpoints/inventory/insurancesCost.js +8 -5
  90. package/lib/endpoints/inventory/items.js +22 -4
  91. package/lib/endpoints/inventory/journey-prices.js +36 -7
  92. package/lib/endpoints/inventory/labels.js +6 -5
  93. package/lib/endpoints/inventory/marital-status.js +8 -11
  94. package/lib/endpoints/inventory/marketplace-modifiers.js +16 -7
  95. package/lib/endpoints/inventory/mit-terminal-settings.js +5 -11
  96. package/lib/endpoints/inventory/mit-terminals.js +5 -11
  97. package/lib/endpoints/inventory/operating-companies.js +13 -10
  98. package/lib/endpoints/inventory/operation-messages.js +16 -7
  99. package/lib/endpoints/inventory/operation-reasons.js +11 -9
  100. package/lib/endpoints/inventory/parcel-zones.js +6 -5
  101. package/lib/endpoints/inventory/pay-on-accounts.js +9 -3
  102. package/lib/endpoints/inventory/payment-terminals.js +5 -11
  103. package/lib/endpoints/inventory/prisma-terminals.js +10 -6
  104. package/lib/endpoints/inventory/products.js +31 -7
  105. package/lib/endpoints/inventory/promos.js +29 -11
  106. package/lib/endpoints/inventory/routes.js +50 -31
  107. package/lib/endpoints/inventory/schedule-groups.js +7 -7
  108. package/lib/endpoints/inventory/schedules.js +24 -11
  109. package/lib/endpoints/inventory/seatclasses.js +5 -15
  110. package/lib/endpoints/inventory/seatfees.js +9 -6
  111. package/lib/endpoints/inventory/seatmaps.js +37 -10
  112. package/lib/endpoints/inventory/segments-information-tables.js +5 -4
  113. package/lib/endpoints/inventory/segments-information.js +4 -2
  114. package/lib/endpoints/inventory/service-numbers.js +9 -6
  115. package/lib/endpoints/inventory/service-types.js +5 -11
  116. package/lib/endpoints/inventory/ssrs.js +11 -3
  117. package/lib/endpoints/inventory/station-classes.js +12 -6
  118. package/lib/endpoints/inventory/station-groups.js +4 -3
  119. package/lib/endpoints/inventory/stations-provinces.js +1 -7
  120. package/lib/endpoints/inventory/stations-zones.js +3 -2
  121. package/lib/endpoints/inventory/stations.js +23 -5
  122. package/lib/endpoints/inventory/taxes.js +5 -6
  123. package/lib/endpoints/inventory/travel-routes.js +6 -4
  124. package/lib/endpoints/inventory/traveller-card-providers-types.js +1 -7
  125. package/lib/endpoints/inventory/traveller-card-providers.js +3 -9
  126. package/lib/endpoints/inventory/traveller-card-types.js +7 -6
  127. package/lib/endpoints/inventory/trips.js +2 -8
  128. package/lib/endpoints/inventory/vehicle-types.js +0 -1
  129. package/lib/endpoints/inventory/vehicles.js +17 -2
  130. package/lib/endpoints/inventory/zone-price-overages.js +4 -10
  131. package/lib/endpoints/inventory/zone-prices.js +12 -7
  132. package/lib/endpoints/invoices/dlink.js +3 -2
  133. package/lib/endpoints/invoices/emails.js +1 -7
  134. package/lib/endpoints/invoices/gti.js +2 -2
  135. package/lib/endpoints/invoices/infile.js +2 -2
  136. package/lib/endpoints/invoices/infileJson.js +2 -2
  137. package/lib/endpoints/invoices/invoices.js +14 -10
  138. package/lib/endpoints/invoices/pdfs.js +4 -3
  139. package/lib/endpoints/invoices/providers.js +12 -11
  140. package/lib/endpoints/invoices/providersSequences.js +5 -15
  141. package/lib/endpoints/invoices/system.js +2 -2
  142. package/lib/endpoints/invoices/tax-ids.js +1 -1
  143. package/lib/endpoints/notifications/customers.js +25 -5
  144. package/lib/endpoints/notifications/email.js +8 -3
  145. package/lib/endpoints/notifications/manifest-notifications.js +4 -3
  146. package/lib/endpoints/notifications/notify.js +20 -5
  147. package/lib/endpoints/notifications/orders-rules-validations.js +2 -8
  148. package/lib/endpoints/notifications/pdf-data.js +2 -1
  149. package/lib/endpoints/notifications/pdfs.js +2 -1
  150. package/lib/endpoints/notifications/printed-tickets.js +17 -6
  151. package/lib/endpoints/notifications/twilio.js +1 -7
  152. package/lib/endpoints/operations/accounting_items.js +9 -4
  153. package/lib/endpoints/operations/applied_insurance.js +8 -3
  154. package/lib/endpoints/operations/calendar_entries.js +7 -3
  155. package/lib/endpoints/operations/external-bookings.js +2 -8
  156. package/lib/endpoints/operations/flexpasses.js +1 -1
  157. package/lib/endpoints/operations/loans.js +10 -4
  158. package/lib/endpoints/operations/manifest.js +83 -33
  159. package/lib/endpoints/operations/manifest_leg_for_tickets.js +1 -2
  160. package/lib/endpoints/operations/movements.js +1 -7
  161. package/lib/endpoints/operations/outlook-trips.js +13 -3
  162. package/lib/endpoints/operations/parcels.js +20 -6
  163. package/lib/endpoints/operations/parcels_manifests.js +6 -16
  164. package/lib/endpoints/operations/passenger_check_in_info.js +3 -10
  165. package/lib/endpoints/operations/redemption.js +4 -4
  166. package/lib/endpoints/operations/rms.js +33 -6
  167. package/lib/endpoints/operations/scheduled_notifications.js +4 -11
  168. package/lib/endpoints/operations/segments.js +2 -2
  169. package/lib/endpoints/operations/sold-items-fulfillment.js +4 -3
  170. package/lib/endpoints/operations/sold-items.js +13 -4
  171. package/lib/endpoints/operations/tickets.js +4 -4
  172. package/lib/endpoints/operations/transaction.js +1 -1
  173. package/lib/endpoints/operations/transactions.js +6 -14
  174. package/lib/endpoints/operations/transport_regulations.js +1 -1
  175. package/lib/endpoints/operations/trip_change_info.js +13 -1
  176. package/lib/endpoints/operations/vehicle_assignments.js +10 -5
  177. package/lib/endpoints/operations/vouchers.js +2 -9
  178. package/lib/endpoints/operations/waitlists.js +2 -2
  179. package/lib/endpoints/sales/bundles.js +4 -2
  180. package/lib/endpoints/sales/cancellations.js +2 -2
  181. package/lib/endpoints/sales/cart-promo.js +2 -9
  182. package/lib/endpoints/sales/cart.js +30 -17
  183. package/lib/endpoints/sales/check-in-info.js +1 -7
  184. package/lib/endpoints/sales/custom-fields.js +4 -3
  185. package/lib/endpoints/sales/flexpasses.js +1 -7
  186. package/lib/endpoints/sales/gift-certificates.js +4 -2
  187. package/lib/endpoints/sales/order.js +6 -4
  188. package/lib/endpoints/sales/parcel-quotes.js +1 -1
  189. package/lib/endpoints/sales/payment-providers.js +6 -3
  190. package/lib/endpoints/sales/redeemable-items.js +16 -5
  191. package/lib/endpoints/sales/sync-entry.js +1 -1
  192. package/lib/endpoints/sales/voucher.js +1 -1
  193. package/package.json +1 -1
  194. package/src/client.js +3 -0
  195. package/src/endpoints/accounts/agencies.js +40 -0
  196. package/src/endpoints/accounts/application-settings.js +23 -17
  197. package/src/endpoints/accounts/applications.js +8 -7
  198. package/src/endpoints/accounts/current-shifts.js +6 -1
  199. package/src/endpoints/accounts/customers.js +31 -21
  200. package/src/endpoints/accounts/domains.js +16 -12
  201. package/src/endpoints/accounts/dynamic-forms.js +17 -5
  202. package/src/endpoints/accounts/email-settings.js +22 -20
  203. package/src/endpoints/accounts/email-templates.js +18 -6
  204. package/src/endpoints/accounts/exchange-rates.js +13 -8
  205. package/src/endpoints/accounts/exchange-receipts.js +10 -6
  206. package/src/endpoints/accounts/external-customers.js +37 -0
  207. package/src/endpoints/accounts/goal-settings.js +8 -7
  208. package/src/endpoints/accounts/images.js +14 -15
  209. package/src/endpoints/accounts/interline.js +35 -31
  210. package/src/endpoints/accounts/journey-prices-settings.js +8 -6
  211. package/src/endpoints/accounts/lexicons.js +48 -19
  212. package/src/endpoints/accounts/market-pricing-settings.js +7 -6
  213. package/src/endpoints/accounts/multiproduct-sales-settings.js +7 -6
  214. package/src/endpoints/accounts/network.js +29 -18
  215. package/src/endpoints/accounts/operation-settings.js +8 -7
  216. package/src/endpoints/accounts/people-lookups.js +39 -21
  217. package/src/endpoints/accounts/point-to-point-settings.js +6 -6
  218. package/src/endpoints/accounts/print-settings.js +9 -8
  219. package/src/endpoints/accounts/print-templates.js +65 -22
  220. package/src/endpoints/accounts/printers.js +10 -6
  221. package/src/endpoints/accounts/rms-settings.js +19 -11
  222. package/src/endpoints/accounts/s3buckets.js +3 -3
  223. package/src/endpoints/accounts/salesforce-settings.js +8 -7
  224. package/src/endpoints/accounts/shift-settings.js +7 -7
  225. package/src/endpoints/accounts/shifts.js +54 -15
  226. package/src/endpoints/accounts/sms-templates.js +56 -18
  227. package/src/endpoints/accounts/sub-print-templates.js +5 -3
  228. package/src/endpoints/accounts/ticket-movement-settings.js +8 -5
  229. package/src/endpoints/accounts/tokens.js +10 -3
  230. package/src/endpoints/accounts/transport-regulation-settings.js +2 -2
  231. package/src/endpoints/accounts/travellers.js +36 -17
  232. package/src/endpoints/accounts/trusted-machines.js +19 -8
  233. package/src/endpoints/accounts/twilio-settings.js +8 -6
  234. package/src/endpoints/accounts/users.js +53 -12
  235. package/src/endpoints/accounts/verified-emails.js +100 -0
  236. package/src/endpoints/accounts/websales-config.js +15 -6
  237. package/src/endpoints/btrzpay/cardpointe.js +5 -5
  238. package/src/endpoints/btrzpay/customerCards.js +4 -4
  239. package/src/endpoints/btrzpay/customers.js +3 -3
  240. package/src/endpoints/btrzpay/datalogic.js +8 -9
  241. package/src/endpoints/btrzpay/oxxo.js +5 -13
  242. package/src/endpoints/btrzpay/payment-methods.js +25 -11
  243. package/src/endpoints/btrzpay/payments.js +2 -2
  244. package/src/endpoints/btrzpay/prismaTerminals.js +14 -21
  245. package/src/endpoints/btrzpay/reference-numbers.js +1 -1
  246. package/src/endpoints/btrzpay/referenced-payments.js +10 -2
  247. package/src/endpoints/btrzpay/square.js +2 -2
  248. package/src/endpoints/btrzpay/stripe-terminals.js +5 -5
  249. package/src/endpoints/btrzpay/terminalPayments.js +15 -5
  250. package/src/endpoints/coltrane/merged-fare-tables.js +1 -1
  251. package/src/endpoints/coltrane/paths.js +9 -6
  252. package/src/endpoints/gps/scanner-app-location.js +3 -2
  253. package/src/endpoints/inventory/amenities.js +10 -7
  254. package/src/endpoints/inventory/amenity-groups.js +11 -7
  255. package/src/endpoints/inventory/banks.js +5 -11
  256. package/src/endpoints/inventory/bare-routes.js +12 -4
  257. package/src/endpoints/inventory/brands.js +10 -6
  258. package/src/endpoints/inventory/bundle-fares.js +4 -2
  259. package/src/endpoints/inventory/bundles.js +5 -2
  260. package/src/endpoints/inventory/change-requests.js +23 -9
  261. package/src/endpoints/inventory/companies.js +5 -2
  262. package/src/endpoints/inventory/control-classes.js +34 -4
  263. package/src/endpoints/inventory/countries.js +8 -3
  264. package/src/endpoints/inventory/custom-content.js +8 -6
  265. package/src/endpoints/inventory/custom-fields.js +9 -7
  266. package/src/endpoints/inventory/document-types.js +8 -11
  267. package/src/endpoints/inventory/external-passes.js +13 -4
  268. package/src/endpoints/inventory/external-wallets.js +5 -6
  269. package/src/endpoints/inventory/fallback-codes.js +11 -4
  270. package/src/endpoints/inventory/fare-classes.js +6 -4
  271. package/src/endpoints/inventory/fares.js +13 -7
  272. package/src/endpoints/inventory/fees.js +8 -4
  273. package/src/endpoints/inventory/filtered-trips-v2.js +1 -1
  274. package/src/endpoints/inventory/filtered-trips.js +14 -2
  275. package/src/endpoints/inventory/financing-costs.js +15 -8
  276. package/src/endpoints/inventory/garages.js +7 -5
  277. package/src/endpoints/inventory/getnet-terminals.js +12 -4
  278. package/src/endpoints/inventory/gift-certificate-definitions.js +10 -11
  279. package/src/endpoints/inventory/insurances.js +10 -7
  280. package/src/endpoints/inventory/insurancesCost.js +8 -5
  281. package/src/endpoints/inventory/items.js +22 -4
  282. package/src/endpoints/inventory/journey-prices.js +36 -7
  283. package/src/endpoints/inventory/labels.js +6 -5
  284. package/src/endpoints/inventory/marital-status.js +8 -11
  285. package/src/endpoints/inventory/marketplace-modifiers.js +16 -7
  286. package/src/endpoints/inventory/mit-terminal-settings.js +5 -11
  287. package/src/endpoints/inventory/mit-terminals.js +5 -11
  288. package/src/endpoints/inventory/operating-companies.js +13 -10
  289. package/src/endpoints/inventory/operation-messages.js +16 -7
  290. package/src/endpoints/inventory/operation-reasons.js +11 -9
  291. package/src/endpoints/inventory/parcel-zones.js +6 -5
  292. package/src/endpoints/inventory/pay-on-accounts.js +9 -3
  293. package/src/endpoints/inventory/payment-terminals.js +5 -11
  294. package/src/endpoints/inventory/prisma-terminals.js +10 -6
  295. package/src/endpoints/inventory/products.js +31 -7
  296. package/src/endpoints/inventory/promos.js +29 -11
  297. package/src/endpoints/inventory/routes.js +50 -31
  298. package/src/endpoints/inventory/schedule-groups.js +7 -7
  299. package/src/endpoints/inventory/schedules.js +24 -11
  300. package/src/endpoints/inventory/seatclasses.js +5 -15
  301. package/src/endpoints/inventory/seatfees.js +9 -6
  302. package/src/endpoints/inventory/seatmaps.js +37 -10
  303. package/src/endpoints/inventory/segments-information-tables.js +5 -4
  304. package/src/endpoints/inventory/segments-information.js +4 -2
  305. package/src/endpoints/inventory/service-numbers.js +9 -6
  306. package/src/endpoints/inventory/service-types.js +5 -11
  307. package/src/endpoints/inventory/ssrs.js +11 -3
  308. package/src/endpoints/inventory/station-classes.js +12 -6
  309. package/src/endpoints/inventory/station-groups.js +4 -3
  310. package/src/endpoints/inventory/stations-provinces.js +1 -7
  311. package/src/endpoints/inventory/stations-zones.js +3 -2
  312. package/src/endpoints/inventory/stations.js +23 -5
  313. package/src/endpoints/inventory/taxes.js +5 -6
  314. package/src/endpoints/inventory/travel-routes.js +6 -4
  315. package/src/endpoints/inventory/traveller-card-providers-types.js +1 -7
  316. package/src/endpoints/inventory/traveller-card-providers.js +3 -9
  317. package/src/endpoints/inventory/traveller-card-types.js +7 -6
  318. package/src/endpoints/inventory/trips.js +2 -8
  319. package/src/endpoints/inventory/vehicle-types.js +0 -1
  320. package/src/endpoints/inventory/vehicles.js +17 -2
  321. package/src/endpoints/inventory/zone-price-overages.js +4 -10
  322. package/src/endpoints/inventory/zone-prices.js +12 -7
  323. package/src/endpoints/invoices/dlink.js +3 -2
  324. package/src/endpoints/invoices/emails.js +1 -7
  325. package/src/endpoints/invoices/gti.js +2 -2
  326. package/src/endpoints/invoices/infile.js +2 -2
  327. package/src/endpoints/invoices/infileJson.js +2 -2
  328. package/src/endpoints/invoices/invoices.js +14 -10
  329. package/src/endpoints/invoices/pdfs.js +4 -3
  330. package/src/endpoints/invoices/providers.js +12 -11
  331. package/src/endpoints/invoices/providersSequences.js +5 -15
  332. package/src/endpoints/invoices/system.js +2 -2
  333. package/src/endpoints/invoices/tax-ids.js +1 -1
  334. package/src/endpoints/notifications/customers.js +25 -5
  335. package/src/endpoints/notifications/email.js +8 -3
  336. package/src/endpoints/notifications/manifest-notifications.js +4 -3
  337. package/src/endpoints/notifications/notify.js +20 -5
  338. package/src/endpoints/notifications/orders-rules-validations.js +2 -8
  339. package/src/endpoints/notifications/pdf-data.js +2 -1
  340. package/src/endpoints/notifications/pdfs.js +2 -1
  341. package/src/endpoints/notifications/printed-tickets.js +17 -7
  342. package/src/endpoints/notifications/twilio.js +1 -7
  343. package/src/endpoints/operations/accounting_items.js +9 -4
  344. package/src/endpoints/operations/applied_insurance.js +9 -2
  345. package/src/endpoints/operations/calendar_entries.js +7 -3
  346. package/src/endpoints/operations/external-bookings.js +2 -8
  347. package/src/endpoints/operations/flexpasses.js +1 -1
  348. package/src/endpoints/operations/loans.js +10 -4
  349. package/src/endpoints/operations/manifest.js +83 -33
  350. package/src/endpoints/operations/manifest_leg_for_tickets.js +1 -2
  351. package/src/endpoints/operations/movements.js +1 -7
  352. package/src/endpoints/operations/outlook-trips.js +13 -3
  353. package/src/endpoints/operations/parcels.js +20 -6
  354. package/src/endpoints/operations/parcels_manifests.js +6 -16
  355. package/src/endpoints/operations/passenger_check_in_info.js +3 -10
  356. package/src/endpoints/operations/redemption.js +4 -4
  357. package/src/endpoints/operations/rms.js +33 -6
  358. package/src/endpoints/operations/scheduled_notifications.js +4 -11
  359. package/src/endpoints/operations/segments.js +2 -2
  360. package/src/endpoints/operations/sold-items-fulfillment.js +4 -3
  361. package/src/endpoints/operations/sold-items.js +13 -4
  362. package/src/endpoints/operations/tickets.js +4 -4
  363. package/src/endpoints/operations/transaction.js +1 -1
  364. package/src/endpoints/operations/transactions.js +6 -14
  365. package/src/endpoints/operations/transport_regulations.js +1 -1
  366. package/src/endpoints/operations/trip_change_info.js +13 -1
  367. package/src/endpoints/operations/vehicle_assignments.js +10 -5
  368. package/src/endpoints/operations/vouchers.js +2 -9
  369. package/src/endpoints/operations/waitlists.js +2 -2
  370. package/src/endpoints/sales/bundles.js +4 -2
  371. package/src/endpoints/sales/cancellations.js +2 -2
  372. package/src/endpoints/sales/cart-promo.js +2 -9
  373. package/src/endpoints/sales/cart.js +30 -17
  374. package/src/endpoints/sales/check-in-info.js +1 -7
  375. package/src/endpoints/sales/custom-fields.js +4 -3
  376. package/src/endpoints/sales/flexpasses.js +1 -7
  377. package/src/endpoints/sales/gift-certificates.js +4 -2
  378. package/src/endpoints/sales/order.js +6 -4
  379. package/src/endpoints/sales/parcel-quotes.js +1 -1
  380. package/src/endpoints/sales/payment-providers.js +6 -3
  381. package/src/endpoints/sales/redeemable-items.js +16 -5
  382. package/src/endpoints/sales/sync-entry.js +1 -1
  383. package/src/endpoints/sales/voucher.js +1 -1
  384. package/test/endpoints/accounts/agencies.test.js +58 -0
  385. package/test/endpoints/accounts/external-customers.test.js +62 -0
  386. package/test/endpoints/accounts/users.js +10 -0
  387. package/test/endpoints/accounts/verified-emails.test.js +35 -0
  388. package/types/endpoints/accounts/users.d.ts +2 -1
  389. package/types/endpoints/accounts/verified-emails.d.ts +19 -0
@@ -6,8 +6,22 @@ var _require = require("./../endpoints_helpers.js"),
6
6
  authorizationHeaders = _require.authorizationHeaders;
7
7
 
8
8
  /**
9
- * @typedef {Object} ParcelsQuery
9
+ * Query params for GET /parcels list (btrz-api-operations). See get-parcel-handler getSpec().
10
+ * @typedef {Object} ParcelsListQuery
11
+ * @property {string} [trxId] - Transaction ID
12
+ * @property {string} [transactionId] - Transaction ID (alias)
13
+ * @property {string} [parcelId] - Parcel ID
14
+ * @property {string} [dateFrom] - Filter from date
15
+ * @property {string} [dateTo] - Filter to date
16
+ * @property {string} [originId] - Origin station ID
17
+ * @property {string} [destinationId] - Destination station ID
18
+ * @property {string} [trackingStatus] - Tracking status
19
+ * @property {boolean} [notInManifest] - Exclude parcels already in a manifest
10
20
  * @property {string} [providerId] - Provider account ID (also set via opts.providerId)
21
+ * @property {string} [lookupSearchParams] - Search for lookup
22
+ * @property {number} [page] - Page number
23
+ * @property {number} [recordsPerPage] - Records per page
24
+ * @property {boolean} [assignableToManifest] - Only parcels assignable to manifest
11
25
  */
12
26
 
13
27
  /**
@@ -24,7 +38,7 @@ function parcelFactory(_ref) {
24
38
  internalAuthTokenProvider = _ref.internalAuthTokenProvider;
25
39
 
26
40
  /**
27
- * GET /parcels/:id - get parcel by id.
41
+ * GET /parcels/:id - get parcel by id. API does not accept query params.
28
42
  * @param {Object} opts
29
43
  * @param {string} [opts.token] - API key
30
44
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -49,7 +63,7 @@ function parcelFactory(_ref) {
49
63
  * @param {Object} opts
50
64
  * @param {string} [opts.token] - API key
51
65
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
52
- * @param {ParcelsQuery} [opts.query] - Query params (providerId merged if opts.providerId set)
66
+ * @param {ParcelsListQuery} [opts.query] - Query params (providerId merged if opts.providerId set)
53
67
  * @param {string} [opts.providerId] - Provider id (merged into query)
54
68
  * @param {Object} [opts.headers] - Optional headers
55
69
  * @returns {Promise<import("axios").AxiosResponse>}
@@ -71,7 +85,7 @@ function parcelFactory(_ref) {
71
85
  }
72
86
 
73
87
  /**
74
- * POST /parcels/:id/scans - add scan to parcel.
88
+ * POST /parcels/:id/scans - add scan to parcel. API does not accept query params.
75
89
  * @param {Object} opts
76
90
  * @param {string} [opts.token] - API key
77
91
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -98,7 +112,7 @@ function parcelFactory(_ref) {
98
112
  }
99
113
 
100
114
  /**
101
- * POST /parcels/:id/user-comments - add comment to parcel.
115
+ * POST /parcels/:id/user-comments - add comment to parcel. API does not accept query params.
102
116
  * @param {Object} opts
103
117
  * @param {string} [opts.token] - API key
104
118
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -123,7 +137,7 @@ function parcelFactory(_ref) {
123
137
  }
124
138
 
125
139
  /**
126
- * DELETE /parcels/:id/user-comments/:commentId - delete parcel comment.
140
+ * DELETE /parcels/:id/user-comments/:commentId - delete parcel comment. API does not accept query params.
127
141
  * @param {Object} opts
128
142
  * @param {string} [opts.token] - API key
129
143
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -17,12 +17,6 @@ var _require = require("./../endpoints_helpers.js"),
17
17
  * @property {number} [recordsPerPage] - Records per page (max 100)
18
18
  */
19
19
 
20
- /**
21
- * POST /parcels-manifests, POST .../parcels, POST .../vehicles do not define query params in backend getSpec.
22
- * Use for optional query keys forwarded as-is.
23
- * @typedef {Object} ParcelsManifestsPostQuery
24
- */
25
-
26
20
  /**
27
21
  * Factory for parcels-manifests API (btrz-api-operations).
28
22
  * @param {Object} deps
@@ -59,7 +53,7 @@ function parcelsManifestsFactory(_ref) {
59
53
  }
60
54
 
61
55
  /**
62
- * GET /parcels-manifests/:id - get parcels manifest by id.
56
+ * GET /parcels-manifests/:id - get parcels manifest by id. API does not accept query params.
63
57
  * @param {Object} opts
64
58
  * @param {string} [opts.token] - API key
65
59
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -110,7 +104,7 @@ function parcelsManifestsFactory(_ref) {
110
104
 
111
105
  var parcels = {
112
106
  /**
113
- * DELETE /parcels-manifests/:manifestId/parcels/:parcelId - remove parcel from manifest.
107
+ * DELETE /parcels-manifests/:manifestId/parcels/:parcelId - remove parcel from manifest. API does not accept query params.
114
108
  * @param {Object} opts
115
109
  * @param {string} [opts.token] - API key
116
110
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -134,14 +128,12 @@ function parcelsManifestsFactory(_ref) {
134
128
  },
135
129
 
136
130
  /**
137
- * POST /parcels-manifests/:manifestId/parcels - create parcel on manifest. Body: ParcelsManifestsPostData.
138
- * Backend getSpec does not define query params; query is passed through as-is if provided.
131
+ * POST /parcels-manifests/:manifestId/parcels - create parcel on manifest. API does not accept query params.
139
132
  * @param {Object} opts
140
133
  * @param {string} [opts.token] - API key
141
134
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
142
135
  * @param {string} opts.manifestId - Parcel manifest id (ObjectId)
143
- * @param {ParcelsManifestsPostQuery} [opts.query] - Optional query params (backend getSpec has none; forwarded as-is)
144
- * @param {Object} opts.data - Parcel payload (parcelsmanifests / ParcelsManifestsPostData: parcels, optional overrideOandD)
136
+ * @param {Object} opts.data - Parcel payload (parcels, optional overrideOandD)
145
137
  * @param {Object} [opts.headers] - Optional request headers
146
138
  * @returns {Promise<import("axios").AxiosResponse>} PostParcelsManifestsResponse; 400 WRONG_DATA, 404, 409 CAN_ADD_PARCEL_TO_MANIFEST_BECAUSE_OF_CUTOFF
147
139
  */
@@ -166,14 +158,12 @@ function parcelsManifestsFactory(_ref) {
166
158
 
167
159
  var vehicles = {
168
160
  /**
169
- * POST /parcels-manifests/:manifestId/vehicles - create or update vehicle on manifest. Body: ParcelManifestVehiclePostData.
170
- * Backend getSpec does not define query params; query is passed through as-is if provided.
161
+ * POST /parcels-manifests/:manifestId/vehicles - create or update vehicle on manifest. API does not accept query params.
171
162
  * @param {Object} opts
172
163
  * @param {string} [opts.token] - API key
173
164
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
174
165
  * @param {string} opts.manifestId - Parcel manifest id (ObjectId)
175
- * @param {ParcelsManifestsPostQuery} [opts.query] - Optional query params (backend getSpec has none; forwarded as-is)
176
- * @param {Object} opts.data - Vehicle payload (sent as parcelManifestVehicle in body; vehicleId required)
166
+ * @param {Object} opts.data - Vehicle payload (vehicleId required)
177
167
  * @param {Object} [opts.headers] - Optional request headers
178
168
  * @returns {Promise<import("axios").AxiosResponse>} PostVehicleManifestsResponse; 400 WRONG_DATA, 404 MANIFEST_NOT_FOUND, 409 MANIFEST_HAS_PASSENGERS
179
169
  */
@@ -11,11 +11,6 @@ var _require = require("./../endpoints_helpers.js"),
11
11
  * @property {string} [providerId] - Provider/account id; defaults to authenticated account when omitted
12
12
  */
13
13
 
14
- /**
15
- * PUT and POST /passenger-check-in-info do not define query params in backend getSpec. Use for optional query keys forwarded as-is.
16
- * @typedef {Object} PassengerCheckInInfoPostQuery
17
- */
18
-
19
14
  /**
20
15
  * Factory for passenger-check-in-info API (btrz-api-operations).
21
16
  * @param {Object} deps
@@ -52,7 +47,7 @@ function passengerCheckInInfoFactory(_ref) {
52
47
  }
53
48
 
54
49
  /**
55
- * GET /passenger-check-in-info/:id - get passenger check-in info by id.
50
+ * GET /passenger-check-in-info/:id - get passenger check-in info by id. API does not accept query params.
56
51
  * @param {Object} opts
57
52
  * @param {string} [opts.token] - API key
58
53
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -74,13 +69,12 @@ function passengerCheckInInfoFactory(_ref) {
74
69
  }
75
70
 
76
71
  /**
77
- * PUT /passenger-check-in-info/:id - update passenger check-in info. Backend getSpec has no query params; query is passed through.
72
+ * PUT /passenger-check-in-info/:id - update passenger check-in info. API does not accept query params.
78
73
  * @param {Object} opts
79
74
  * @param {string} [opts.token] - API key
80
75
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
81
76
  * @param {string} opts.id - Passenger check-in info id (ObjectId)
82
77
  * @param {Object} opts.data - PassengerCheckInInfoPutData
83
- * @param {PassengerCheckInInfoPostQuery} [opts.query] - Optional query params (backend getSpec has none; forwarded as-is)
84
78
  * @param {Object} [opts.headers] - Optional request headers
85
79
  * @returns {Promise<import("axios").AxiosResponse>} 404 PASSENGERCHECKININFO_NOT_FOUND
86
80
  */
@@ -110,11 +104,10 @@ function passengerCheckInInfoFactory(_ref) {
110
104
  // }
111
105
 
112
106
  /**
113
- * POST /passenger-check-in-info - create passenger check-in info. Backend getSpec has no query params; query is passed through.
107
+ * POST /passenger-check-in-info - create passenger check-in info. API does not accept query params.
114
108
  * @param {Object} opts
115
109
  * @param {string} [opts.token] - API key
116
110
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
117
- * @param {PassengerCheckInInfoPostQuery} [opts.query] - Optional query params (backend getSpec has none; forwarded as-is)
118
111
  * @param {Object} opts.data - PassengerCheckInInfoPostData (passengercheckininfo: ticketId, trxId, information, type)
119
112
  * @param {Object} [opts.headers] - Optional request headers
120
113
  * @returns {Promise<import("axios").AxiosResponse>}
@@ -17,7 +17,7 @@ function redemptionFactory(_ref) {
17
17
  internalAuthTokenProvider = _ref.internalAuthTokenProvider;
18
18
 
19
19
  /**
20
- * POST /redemptions - create redemption.
20
+ * POST /redemptions - create redemption. API does not accept query params.
21
21
  * @param {Object} opts
22
22
  * @param {string} [opts.token] - API key
23
23
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -40,12 +40,12 @@ function redemptionFactory(_ref) {
40
40
  }
41
41
 
42
42
  /**
43
- * GET /redemptions/validate/:passId - validate redemption.
43
+ * GET /redemptions/validate/:passId - validate redemption. Query: timezone (required per getSpec).
44
44
  * @param {Object} opts
45
45
  * @param {string} [opts.token] - API key
46
46
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
47
47
  * @param {string} opts.passId - Pass id
48
- * @param {string} [opts.timezone] - Timezone (query param)
48
+ * @param {string} opts.timezone - Timezone (required query param per btrz-api-operations getSpec)
49
49
  * @param {Object} [opts.headers] - Optional headers
50
50
  * @returns {Promise<import("axios").AxiosResponse>}
51
51
  */
@@ -65,7 +65,7 @@ function redemptionFactory(_ref) {
65
65
  }
66
66
 
67
67
  /**
68
- * POST /unredeem - unredeem.
68
+ * POST /unredeem - unredeem. API does not accept query params.
69
69
  * @param {Object} opts
70
70
  * @param {string} [opts.token] - API key
71
71
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -4,8 +4,34 @@ var _require = require("./../endpoints_helpers.js"),
4
4
  authorizationHeaders = _require.authorizationHeaders;
5
5
 
6
6
  /**
7
- * @typedef {Object} RmsQuery
8
- * @property {string} [providerId] - Provider account ID
7
+ * Query params for GET /rms/manifest-forecast (btrz-api-operations). See get-handler getSpec() and handlers-common parameters().
8
+ * @typedef {Object} RmsManifestForecastListQuery
9
+ * @property {string} date - Manifest forecast date (required; YYYY-MM-DD)
10
+ * @property {string} [time] - Time (HH:mm)
11
+ * @property {string} [brandId] - Brand id (ObjectId)
12
+ * @property {string} [productId] - Product id (ObjectId)
13
+ * @property {string} [routeId] - Route id
14
+ * @property {string} [amenityGroupId] - Amenity group id
15
+ * @property {string} [scheduleGroupId] - Schedule group id
16
+ * @property {string} [originId] - Origin station id (ObjectId)
17
+ * @property {string} [destinationId] - Destination station id (ObjectId)
18
+ * @property {string[]} [status] - Manifest status filter (valid manifest status values)
19
+ * @property {number} [forecastMin] - Minimum forecast value
20
+ * @property {number} [forecastMax] - Maximum forecast value
21
+ * @property {number} [loadMin] - Minimum load value
22
+ * @property {number} [loadMax] - Maximum load value
23
+ */
24
+
25
+ /**
26
+ * Query params for GET /rms/manifest-forecast/:scheduleId (btrz-api-operations). Only common params (no date).
27
+ * @typedef {Object} RmsManifestForecastGetQuery
28
+ * @property {string} [originId] - Origin station id (ObjectId)
29
+ * @property {string} [destinationId] - Destination station id (ObjectId)
30
+ * @property {string[]} [status] - Manifest status filter
31
+ * @property {number} [forecastMin] - Minimum forecast value
32
+ * @property {number} [forecastMax] - Maximum forecast value
33
+ * @property {number} [loadMin] - Minimum load value
34
+ * @property {number} [loadMax] - Maximum load value
9
35
  */
10
36
 
11
37
  /**
@@ -23,11 +49,11 @@ function rmsFactory(_ref) {
23
49
 
24
50
  var manifestForecasts = {
25
51
  /**
26
- * GET /rms/manifest-forecast - list manifest forecasts.
52
+ * GET /rms/manifest-forecast - list manifest forecasts. Query: date required.
27
53
  * @param {Object} opts
28
54
  * @param {string} [opts.token] - API key
29
55
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
30
- * @param {RmsQuery} [opts.query] - Query params
56
+ * @param {RmsManifestForecastListQuery} [opts.query] - Query params (date required)
31
57
  * @param {Object} [opts.headers] - Optional headers
32
58
  * @returns {Promise<import("axios").AxiosResponse>}
33
59
  */
@@ -46,11 +72,12 @@ function rmsFactory(_ref) {
46
72
 
47
73
  /**
48
74
  * GET /rms/manifest-forecast/:scheduleId - get manifest forecast by schedule id.
75
+ * Optional query: originId, destinationId, status, forecastMin/Max, loadMin/Max.
49
76
  * @param {Object} opts
50
- * @param {string} opts.scheduleId - Schedule id
77
+ * @param {string} opts.scheduleId - Schedule id (UUID4)
51
78
  * @param {string} [opts.token] - API key
52
79
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
53
- * @param {RmsQuery} [opts.query] - Query params
80
+ * @param {RmsManifestForecastGetQuery} [opts.query] - Optional query params
54
81
  * @param {Object} [opts.headers] - Optional headers
55
82
  * @returns {Promise<import("axios").AxiosResponse>}
56
83
  */
@@ -9,11 +9,6 @@ var _require = require("./../endpoints_helpers.js"),
9
9
  * @property {string} [groupId] - Group id to retrieve
10
10
  */
11
11
 
12
- /**
13
- * PUT and POST /scheduled-notifications do not define query params in backend getSpec. Use for optional query keys forwarded as-is.
14
- * @typedef {Object} ScheduledNotificationsPostQuery
15
- */
16
-
17
12
  /**
18
13
  * Factory for scheduled-notifications API (btrz-api-operations).
19
14
  * @param {Object} deps
@@ -50,7 +45,7 @@ function scheduledNotificationsFactory(_ref) {
50
45
  }
51
46
 
52
47
  /**
53
- * GET /scheduled-notifications/:id - get scheduled notification by id.
48
+ * GET /scheduled-notifications/:id - get scheduled notification by id. API does not accept query params.
54
49
  * @param {Object} opts
55
50
  * @param {string} [opts.token] - API key
56
51
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -72,13 +67,12 @@ function scheduledNotificationsFactory(_ref) {
72
67
  }
73
68
 
74
69
  /**
75
- * PUT /scheduled-notifications/:id - update scheduled notification. Backend getSpec has no query params; query is passed through.
70
+ * PUT /scheduled-notifications/:id - update scheduled notification. API does not accept query params.
76
71
  * @param {Object} opts
77
72
  * @param {string} [opts.token] - API key
78
73
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
79
74
  * @param {string} opts.id - Scheduled notification id (ObjectId)
80
75
  * @param {Object} opts.data - ScheduledNotificationPostData
81
- * @param {ScheduledNotificationsPostQuery} [opts.query] - Optional query params (backend getSpec has none; forwarded as-is)
82
76
  * @param {Object} [opts.headers] - Optional request headers
83
77
  * @returns {Promise<import("axios").AxiosResponse>} 404 SCHEDULEDNOTIFICATION_NOT_FOUND, 409 SCHEDULED_NOTIFICATION_EXISTS
84
78
  */
@@ -100,7 +94,7 @@ function scheduledNotificationsFactory(_ref) {
100
94
  }
101
95
 
102
96
  /**
103
- * DELETE /scheduled-notifications/:id - remove scheduled notification.
97
+ * DELETE /scheduled-notifications/:id - remove scheduled notification. API does not accept query params.
104
98
  * @param {Object} opts
105
99
  * @param {string} [opts.token] - API key
106
100
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -122,11 +116,10 @@ function scheduledNotificationsFactory(_ref) {
122
116
  }
123
117
 
124
118
  /**
125
- * POST /scheduled-notifications - create scheduled notification. Backend getSpec has no query params; query is passed through.
119
+ * POST /scheduled-notifications - create scheduled notification. API does not accept query params.
126
120
  * @param {Object} opts
127
121
  * @param {string} [opts.token] - API key
128
122
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
129
- * @param {ScheduledNotificationsPostQuery} [opts.query] - Optional query params (backend getSpec has none; forwarded as-is)
130
123
  * @param {Object} opts.data - ScheduledNotificationPostData
131
124
  * @param {Object} [opts.headers] - Optional request headers
132
125
  * @returns {Promise<import("axios").AxiosResponse>} 409 SCHEDULED_NOTIFICATION_EXISTS
@@ -4,9 +4,9 @@ var _require = require("./../endpoints_helpers.js"),
4
4
  authorizationHeaders = _require.authorizationHeaders;
5
5
 
6
6
  /**
7
- * Query params for GET /products/:productId/segments/:ticketId (btrz-api-operations). Client passes providerId as query.
7
+ * Query param for GET /products/:productId/segments/:ticketId (btrz-api-operations getSpec). Client passes via opts.providerId.
8
8
  * @typedef {Object} SegmentsListQuery
9
- * @property {string} [providerId] - Provider/account id
9
+ * @property {string} [providerId] - Provider/account id (Id of the provider account)
10
10
  */
11
11
 
12
12
  /**
@@ -4,8 +4,9 @@ var _require = require("./../endpoints_helpers.js"),
4
4
  authorizationHeaders = _require.authorizationHeaders;
5
5
 
6
6
  /**
7
- * @typedef {Object} SoldItemsFulfillmentQuery
8
- * @property {string} [providerId] - Provider account ID
7
+ * Query params for GET /sold-items/fulfillment (btrz-api-operations). See 01-get-fulfillment-handler getSpec().
8
+ * @typedef {Object} SoldItemsFulfillmentListQuery
9
+ * @property {string} soldItemIds - Comma-separated sold item IDs (required)
9
10
  */
10
11
 
11
12
  /**
@@ -26,7 +27,7 @@ function soldItemsFulfillmentFactory(_ref) {
26
27
  * @param {Object} opts
27
28
  * @param {string} [opts.token] - API key
28
29
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
29
- * @param {SoldItemsFulfillmentQuery} [opts.query] - Query params
30
+ * @param {SoldItemsFulfillmentListQuery} [opts.query] - Query params (soldItemIds required)
30
31
  * @param {Object} [opts.headers] - Optional headers
31
32
  * @returns {Promise<import("axios").AxiosResponse>}
32
33
  */
@@ -4,8 +4,17 @@ var _require = require("./../endpoints_helpers.js"),
4
4
  authorizationHeaders = _require.authorizationHeaders;
5
5
 
6
6
  /**
7
- * @typedef {Object} SoldItemsQuery
8
- * @property {string} [providerId] - Provider account ID
7
+ * Query params for GET /sold-items list (btrz-api-operations). See get-handler getSpec().
8
+ * @typedef {Object} SoldItemsListQuery
9
+ * @property {number} [page] - Page number to retrieve
10
+ * @property {string} [from] - Ticket manifest date from (yyyy-mm-dd; range max 31 days)
11
+ * @property {string} [to] - Ticket manifest date to (yyyy-mm-dd; range max 31 days)
12
+ */
13
+
14
+ /**
15
+ * Query params for GET /sold-items/:soldItemId (btrz-api-operations). See get-by-id-handler getSpec().
16
+ * @typedef {Object} SoldItemsGetQuery
17
+ * @property {string} [providerId] - Provider account id (ObjectId)
9
18
  */
10
19
 
11
20
  /**
@@ -27,8 +36,8 @@ function soldItems(_ref) {
27
36
  * @param {string} [opts.token] - API key
28
37
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
29
38
  * @param {string} opts.soldItemId - Sold item id
39
+ * @param {SoldItemsGetQuery} [opts.query] - Optional query (providerId)
30
40
  * @param {Object} [opts.headers] - Optional headers
31
- * @param {SoldItemsQuery} [opts.query] - Query params
32
41
  * @returns {Promise<import("axios").AxiosResponse>}
33
42
  */
34
43
  function get(_ref2) {
@@ -49,8 +58,8 @@ function soldItems(_ref) {
49
58
  * @param {Object} opts
50
59
  * @param {string} [opts.token] - API key
51
60
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
61
+ * @param {SoldItemsListQuery} [opts.query] - Query params (page, from, to)
52
62
  * @param {Object} [opts.headers] - Optional headers
53
- * @param {SoldItemsQuery} [opts.query] - Query params
54
63
  * @returns {Promise<import("axios").AxiosResponse>}
55
64
  */
56
65
  function all(_ref3) {
@@ -6,7 +6,8 @@ var _require = require("./../endpoints_helpers.js"),
6
6
  authorizationHeaders = _require.authorizationHeaders;
7
7
 
8
8
  /**
9
- * @typedef {Object} TicketsQuery
9
+ * Query params for GET /tickets list (btrz-api-operations). providerId merged when opts.providerId set.
10
+ * @typedef {Object} TicketsListQuery
10
11
  * @property {string} [providerId] - Provider account ID
11
12
  */
12
13
 
@@ -24,13 +25,12 @@ function ticketsFactory(_ref) {
24
25
  internalAuthTokenProvider = _ref.internalAuthTokenProvider;
25
26
 
26
27
  /**
27
- * GET /tickets/:id - get ticket by id.
28
+ * GET /tickets/:id - get ticket by id. API does not accept query params (btrz-api-operations).
28
29
  * @param {Object} opts
29
30
  * @param {string} [opts.token] - API key
30
31
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
31
32
  * @param {string} opts.id - Ticket id
32
33
  * @param {Object} [opts.headers] - Optional headers
33
- * @param {TicketsQuery} [opts.query] - Query params
34
34
  * @returns {Promise<import("axios").AxiosResponse>}
35
35
  */
36
36
  function get(_ref2) {
@@ -101,7 +101,7 @@ function ticketsFactory(_ref) {
101
101
  * @param {Object} opts
102
102
  * @param {string} [opts.token] - API key
103
103
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
104
- * @param {TicketsQuery} [opts.query] - Query params
104
+ * @param {TicketsListQuery} [opts.query] - Query params
105
105
  * @param {Object} [opts.headers] - Optional headers
106
106
  * @param {string} [opts.providerId] - Provider id
107
107
  * @returns {Promise<import("axios").AxiosResponse>}
@@ -17,7 +17,7 @@ function transactionFactory(_ref) {
17
17
  internalAuthTokenProvider = _ref.internalAuthTokenProvider;
18
18
 
19
19
  /**
20
- * GET /transaction/:id - get transaction by id.
20
+ * GET /transaction/:id - get transaction by id. providerId passed as query param in URL.
21
21
  * @param {Object} opts
22
22
  * @param {string} [opts.token] - API key
23
23
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -4,11 +4,6 @@
4
4
  var _require = require("./../endpoints_helpers.js"),
5
5
  authorizationHeaders = _require.authorizationHeaders;
6
6
 
7
- /**
8
- * @typedef {Object} TransactionsQuery
9
- * @property {string} [providerId] - Provider account ID
10
- */
11
-
12
7
  /**
13
8
  * Factory for transactions API (btrz-api-operations).
14
9
  * @param {Object} deps
@@ -23,12 +18,11 @@ function transactionsFactory(_ref) {
23
18
  internalAuthTokenProvider = _ref.internalAuthTokenProvider;
24
19
 
25
20
  /**
26
- * GET /transactions/:trxId - get transaction by id.
21
+ * GET /transactions/:trxId - get transaction by id. API does not accept query params.
27
22
  * @param {Object} opts
28
23
  * @param {string} [opts.token] - API key
29
24
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
30
25
  * @param {string} opts.trxId - Transaction id
31
- * @param {TransactionsQuery} [opts.query] - Query params
32
26
  * @param {Object} [opts.headers] - Optional headers
33
27
  * @returns {Promise<import("axios").AxiosResponse>}
34
28
  */
@@ -47,11 +41,10 @@ function transactionsFactory(_ref) {
47
41
  }
48
42
 
49
43
  /**
50
- * GET /transactions - list transactions.
44
+ * GET /transactions - list transactions. API does not accept query params.
51
45
  * @param {Object} opts
52
46
  * @param {string} [opts.token] - API key
53
47
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
54
- * @param {TransactionsQuery} [opts.query] - Query params
55
48
  * @param {Object} [opts.headers] - Optional headers
56
49
  * @returns {Promise<import("axios").AxiosResponse>}
57
50
  */
@@ -169,14 +162,14 @@ function transactionsFactory(_ref) {
169
162
  }
170
163
 
171
164
  /**
172
- * GET /transactions/:transactionId/cancellable-items - get cancellable items.
165
+ * GET /transactions/:transactionId/cancellable-items - get cancellable items. Query: displayAll, channel (channel required per getSpec).
173
166
  * @param {Object} opts
174
167
  * @param {string} [opts.token] - API key
175
168
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
176
169
  * @param {string} opts.transactionId - Transaction id
177
170
  * @param {Object} [opts.headers] - Optional headers
178
- * @param {boolean} [opts.displayAll] - Whether to display all items
179
- * @param {string} [opts.channel] - Channel
171
+ * @param {boolean} [opts.displayAll] - Display all transaction items whether cancellable or not
172
+ * @param {string} [opts.channel] - Channel (required per btrz-api-operations getSpec)
180
173
  * @returns {Promise<import("axios").AxiosResponse>}
181
174
  */
182
175
  function cancellableItems(_ref8) {
@@ -260,12 +253,11 @@ function transactionsFactory(_ref) {
260
253
 
261
254
  var creditNotes = {
262
255
  /**
263
- * POST /transactions/:transactionId/credit-notes - create credit note.
256
+ * POST /transactions/:transactionId/credit-notes - create credit note. API does not accept query params.
264
257
  * @param {Object} opts
265
258
  * @param {string} [opts.token] - API key
266
259
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
267
260
  * @param {string} opts.transactionId - Transaction id
268
- * @param {TransactionsQuery} [opts.query] - Query params
269
261
  * @param {Object} opts.creditNote - Credit note payload
270
262
  * @param {Object} [opts.headers] - Optional headers
271
263
  * @returns {Promise<import("axios").AxiosResponse>}
@@ -19,7 +19,7 @@ function transportRegulationsFactory(_ref) {
19
19
 
20
20
  var cnrt = {
21
21
  /**
22
- * POST /transport-regulations/cnrt/manifests - create CNRT manifest.
22
+ * POST /transport-regulations/cnrt/manifests - create CNRT manifest. API does not accept query params.
23
23
  * @param {Object} opts
24
24
  * @param {Object} opts.data - Request body
25
25
  * @param {string} [opts.token] - API key
@@ -3,6 +3,18 @@
3
3
  var _require = require("./../endpoints_helpers.js"),
4
4
  authorizationHeaders = _require.authorizationHeaders;
5
5
 
6
+ /**
7
+ * Query params for GET /trip-change-info/:productId (btrz-api-operations get-trip-change-info getSpec).
8
+ * @typedef {Object} TripChangeInfoGetQuery
9
+ * @property {string} [providerId] - Provider account id
10
+ * @property {string} [ticketNumber] - Ticket number (required for Reservation products)
11
+ * @property {string} [lastName] - Passenger last name (required for Reservation products)
12
+ * @property {string} [departureDate] - Departure date yyyy-mm-dd (required for Reservation products)
13
+ * @property {string} [returnDate] - Return date yyyy-mm-dd (optional for Reservation products)
14
+ * @property {string} [ticketId] - Ticket id
15
+ * @property {string} [channel] - Sales change channel (default websales)
16
+ */
17
+
6
18
  /**
7
19
  * Factory for trip-change-info API (btrz-api-operations).
8
20
  * @param {Object} deps
@@ -22,7 +34,7 @@ function tripChangeInfoFactory(_ref) {
22
34
  * @param {string} [opts.token] - API key
23
35
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
24
36
  * @param {string} opts.productId - Product id
25
- * @param {Object} [opts.params] - Query params (forwarded to API)
37
+ * @param {TripChangeInfoGetQuery} [opts.params] - Query params (providerId, ticketNumber, lastName, etc.)
26
38
  * @param {Object} [opts.headers] - Optional headers
27
39
  * @returns {Promise<import("axios").AxiosResponse>}
28
40
  */
@@ -4,8 +4,13 @@ var _require = require("../endpoints_helpers.js"),
4
4
  authorizationHeaders = _require.authorizationHeaders;
5
5
 
6
6
  /**
7
- * @typedef {Object} VehicleAssignmentsQuery
8
- * @property {string} [providerId] - Provider account ID
7
+ * Query params for GET /vehicle-assignments list (btrz-api-operations get-handler getSpec).
8
+ * @typedef {Object} VehicleAssignmentsListQuery
9
+ * @property {string} [name] - Partial or full name of the vehicle assignment
10
+ * @property {string} [effectiveFrom] - Valid-from date (format per API)
11
+ * @property {string} [effectiveTo] - Valid-to date (format per API)
12
+ * @property {string} [status] - Status, comma-separated; valid: draft, published
13
+ * @property {number} [page] - Page number (20 records per page)
9
14
  */
10
15
 
11
16
  /**
@@ -46,7 +51,7 @@ function vehicleAssignmentFactory(_ref) {
46
51
  },
47
52
 
48
53
  /**
49
- * GET /vehicle-assignments/:vehicleAssignmentId - get vehicle assignment by id.
54
+ * GET /vehicle-assignments/:vehicleAssignmentId - get vehicle assignment by id. API does not accept query params.
50
55
  * @param {Object} opts
51
56
  * @param {string} [opts.token] - API key
52
57
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -66,7 +71,7 @@ function vehicleAssignmentFactory(_ref) {
66
71
  },
67
72
 
68
73
  /**
69
- * POST /vehicle-assignments - create vehicle assignment.
74
+ * POST /vehicle-assignments - create vehicle assignment. API does not accept query params.
70
75
  * @param {Object} opts
71
76
  * @param {string} [opts.token] - API key
72
77
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -89,7 +94,7 @@ function vehicleAssignmentFactory(_ref) {
89
94
  },
90
95
 
91
96
  /**
92
- * PUT /vehicle-assignments/:vehicleAssignmentId - update vehicle assignment.
97
+ * PUT /vehicle-assignments/:vehicleAssignmentId - update vehicle assignment. API does not accept query params.
93
98
  * @param {Object} opts
94
99
  * @param {string} [opts.token] - API key
95
100
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
@@ -4,11 +4,6 @@
4
4
  var _require = require("../endpoints_helpers.js"),
5
5
  authorizationHeaders = _require.authorizationHeaders;
6
6
 
7
- /**
8
- * @typedef {Object} VouchersQuery
9
- * @property {string} [providerId] - Provider account ID
10
- */
11
-
12
7
  /**
13
8
  * Factory for vouchers API (btrz-api-operations).
14
9
  * @param {Object} deps
@@ -23,12 +18,11 @@ function vouchersFactory(_ref) {
23
18
  internalAuthTokenProvider = _ref.internalAuthTokenProvider;
24
19
 
25
20
  /**
26
- * POST /vouchers - create voucher.
21
+ * POST /vouchers - create voucher. API does not accept query params.
27
22
  * @param {Object} opts
28
23
  * @param {string} [opts.token] - API key
29
24
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
30
25
  * @param {Object} [opts.headers] - Optional headers
31
- * @param {VouchersQuery} [opts.query] - Query params
32
26
  * @param {Object} [opts.voucher] - Voucher payload
33
27
  * @returns {Promise<import("axios").AxiosResponse>}
34
28
  */
@@ -56,12 +50,11 @@ function vouchersFactory(_ref) {
56
50
  }
57
51
 
58
52
  /**
59
- * POST /vouchers/compensations - create compensation.
53
+ * POST /vouchers/compensations - create compensation. API does not accept query params.
60
54
  * @param {Object} opts
61
55
  * @param {string} [opts.token] - API key
62
56
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
63
57
  * @param {Object} opts.compensation - Compensation payload
64
- * @param {VouchersQuery} [opts.query] - Query params
65
58
  * @param {Object} [opts.headers] - Optional headers
66
59
  * @returns {Promise<import("axios").AxiosResponse>}
67
60
  */