btrz-api-client 3.42.1 → 3.42.3

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 (132) hide show
  1. package/package.json +3 -2
  2. package/types/client.d.ts +2310 -0
  3. package/types/constants.d.ts +1 -0
  4. package/types/endpoints/accounts/accounts.d.ts +11 -0
  5. package/types/endpoints/accounts/application-settings.d.ts +38 -0
  6. package/types/endpoints/accounts/application.d.ts +11 -0
  7. package/types/endpoints/accounts/applications.d.ts +18 -0
  8. package/types/endpoints/accounts/current-shifts.d.ts +12 -0
  9. package/types/endpoints/accounts/customers.d.ts +45 -0
  10. package/types/endpoints/accounts/docs.d.ts +6 -0
  11. package/types/endpoints/accounts/domains.d.ts +23 -0
  12. package/types/endpoints/accounts/email-settings.d.ts +38 -0
  13. package/types/endpoints/accounts/exchange-rates.d.ts +19 -0
  14. package/types/endpoints/accounts/interline.d.ts +68 -0
  15. package/types/endpoints/accounts/lexicons.d.ts +30 -0
  16. package/types/endpoints/accounts/print-settings.d.ts +31 -0
  17. package/types/endpoints/accounts/printers.d.ts +11 -0
  18. package/types/endpoints/accounts/shifts.d.ts +11 -0
  19. package/types/endpoints/accounts/travellers.d.ts +41 -0
  20. package/types/endpoints/accounts/trusted-machines.d.ts +12 -0
  21. package/types/endpoints/accounts/users.d.ts +18 -0
  22. package/types/endpoints/btrzpay/customerCards.d.ts +37 -0
  23. package/types/endpoints/btrzpay/customers.d.ts +27 -0
  24. package/types/endpoints/btrzpay/docs.d.ts +6 -0
  25. package/types/endpoints/btrzpay/payment-methods.d.ts +45 -0
  26. package/types/endpoints/btrzpay/payments.d.ts +18 -0
  27. package/types/endpoints/btrzpay/reference-numbers.d.ts +12 -0
  28. package/types/endpoints/btrzpay/referenced-payments.d.ts +21 -0
  29. package/types/endpoints/btrzpay/square.d.ts +22 -0
  30. package/types/endpoints/coltrane/docs.d.ts +6 -0
  31. package/types/endpoints/coltrane/paths.d.ts +11 -0
  32. package/types/endpoints/endpoints_helpers.d.ts +9 -0
  33. package/types/endpoints/gps/scanner-app-location.d.ts +10 -0
  34. package/types/endpoints/inventory/amenities.d.ts +30 -0
  35. package/types/endpoints/inventory/amenity-groups.d.ts +30 -0
  36. package/types/endpoints/inventory/bare-routes.d.ts +17 -0
  37. package/types/endpoints/inventory/brands.d.ts +31 -0
  38. package/types/endpoints/inventory/bundle-fares.d.ts +13 -0
  39. package/types/endpoints/inventory/bundles.d.ts +18 -0
  40. package/types/endpoints/inventory/companies.d.ts +12 -0
  41. package/types/endpoints/inventory/countries.d.ts +11 -0
  42. package/types/endpoints/inventory/custom-content.d.ts +35 -0
  43. package/types/endpoints/inventory/docs.d.ts +6 -0
  44. package/types/endpoints/inventory/fare-classes.d.ts +25 -0
  45. package/types/endpoints/inventory/fares.d.ts +16 -0
  46. package/types/endpoints/inventory/fees.d.ts +11 -0
  47. package/types/endpoints/inventory/filtered-trips-v2.d.ts +12 -0
  48. package/types/endpoints/inventory/filtered-trips.d.ts +12 -0
  49. package/types/endpoints/inventory/gift-certificate-definitions.d.ts +11 -0
  50. package/types/endpoints/inventory/healthcheck.d.ts +7 -0
  51. package/types/endpoints/inventory/insurances.d.ts +35 -0
  52. package/types/endpoints/inventory/insurancesCost.d.ts +13 -0
  53. package/types/endpoints/inventory/items.d.ts +11 -0
  54. package/types/endpoints/inventory/journey-prices.d.ts +25 -0
  55. package/types/endpoints/inventory/marketplace-modifiers.d.ts +35 -0
  56. package/types/endpoints/inventory/operating-companies.d.ts +31 -0
  57. package/types/endpoints/inventory/operation-messages.d.ts +41 -0
  58. package/types/endpoints/inventory/parcel-zones.d.ts +24 -0
  59. package/types/endpoints/inventory/payment-terminals.d.ts +35 -0
  60. package/types/endpoints/inventory/products.d.ts +18 -0
  61. package/types/endpoints/inventory/promos.d.ts +51 -0
  62. package/types/endpoints/inventory/routes.d.ts +53 -0
  63. package/types/endpoints/inventory/schedules.d.ts +11 -0
  64. package/types/endpoints/inventory/seatfees.d.ts +29 -0
  65. package/types/endpoints/inventory/seatmaps.d.ts +15 -0
  66. package/types/endpoints/inventory/service-numbers.d.ts +31 -0
  67. package/types/endpoints/inventory/service-types.d.ts +35 -0
  68. package/types/endpoints/inventory/ssrs.d.ts +11 -0
  69. package/types/endpoints/inventory/station-groups.d.ts +11 -0
  70. package/types/endpoints/inventory/stations-zones.d.ts +11 -0
  71. package/types/endpoints/inventory/stations.d.ts +16 -0
  72. package/types/endpoints/inventory/taxes.d.ts +30 -0
  73. package/types/endpoints/inventory/traveller-card-providers-types.d.ts +11 -0
  74. package/types/endpoints/inventory/traveller-card-providers.d.ts +31 -0
  75. package/types/endpoints/inventory/traveller-card-types.d.ts +37 -0
  76. package/types/endpoints/inventory/trips.d.ts +17 -0
  77. package/types/endpoints/inventory/zone-price-overages.d.ts +35 -0
  78. package/types/endpoints/inventory/zone-prices.d.ts +35 -0
  79. package/types/endpoints/invoices/docs.d.ts +6 -0
  80. package/types/endpoints/invoices/emails.d.ts +13 -0
  81. package/types/endpoints/invoices/infile.d.ts +13 -0
  82. package/types/endpoints/invoices/pdfs.d.ts +13 -0
  83. package/types/endpoints/invoices/providers.d.ts +41 -0
  84. package/types/endpoints/invoices/tax-ids.d.ts +12 -0
  85. package/types/endpoints/loyalty/movements.d.ts +31 -0
  86. package/types/endpoints/loyalty/programs.d.ts +25 -0
  87. package/types/endpoints/notifications/customers.d.ts +12 -0
  88. package/types/endpoints/notifications/email.d.ts +12 -0
  89. package/types/endpoints/notifications/manifest-notifications.d.ts +18 -0
  90. package/types/endpoints/notifications/printed-tickets.d.ts +15 -0
  91. package/types/endpoints/operations/accounting_items.d.ts +16 -0
  92. package/types/endpoints/operations/applied_insurance.d.ts +12 -0
  93. package/types/endpoints/operations/calendar_entries.d.ts +11 -0
  94. package/types/endpoints/operations/docs.d.ts +6 -0
  95. package/types/endpoints/operations/flexpasses.d.ts +13 -0
  96. package/types/endpoints/operations/loans.d.ts +16 -0
  97. package/types/endpoints/operations/manifest.d.ts +68 -0
  98. package/types/endpoints/operations/movements.d.ts +13 -0
  99. package/types/endpoints/operations/outlook-trips.d.ts +10 -0
  100. package/types/endpoints/operations/parcels.d.ts +26 -0
  101. package/types/endpoints/operations/redemption.d.ts +19 -0
  102. package/types/endpoints/operations/scheduled_notifications.d.ts +38 -0
  103. package/types/endpoints/operations/segments.d.ts +14 -0
  104. package/types/endpoints/operations/tickets.d.ts +26 -0
  105. package/types/endpoints/operations/transaction.d.ts +13 -0
  106. package/types/endpoints/operations/transactions.d.ts +55 -0
  107. package/types/endpoints/operations/trip_change_info.d.ts +13 -0
  108. package/types/endpoints/operations/waitlists.d.ts +30 -0
  109. package/types/endpoints/reports/custom-reports.d.ts +24 -0
  110. package/types/endpoints/reports/report-types.d.ts +18 -0
  111. package/types/endpoints/sales/bundles.d.ts +11 -0
  112. package/types/endpoints/sales/cart-promo.d.ts +20 -0
  113. package/types/endpoints/sales/cart.d.ts +48 -0
  114. package/types/endpoints/sales/custom-fields.d.ts +11 -0
  115. package/types/endpoints/sales/docs.d.ts +6 -0
  116. package/types/endpoints/sales/flexpasses.d.ts +13 -0
  117. package/types/endpoints/sales/gift-certificates.d.ts +12 -0
  118. package/types/endpoints/sales/order.d.ts +18 -0
  119. package/types/endpoints/sales/payment-providers.d.ts +12 -0
  120. package/types/endpoints/sales/redeemable-items.d.ts +18 -0
  121. package/types/endpoints/sales/sync-entry.d.ts +12 -0
  122. package/types/endpoints/sales/voucher.d.ts +11 -0
  123. package/types/endpoints/seatmaps/access-ticket.d.ts +11 -0
  124. package/types/endpoints/seatmaps/seat.d.ts +12 -0
  125. package/types/endpoints/uploads/files.d.ts +11 -0
  126. package/types/endpoints/uploads/images.d.ts +11 -0
  127. package/types/endpoints/webhooks/events.d.ts +13 -0
  128. package/types/endpoints/webhooks/subscriptions.d.ts +38 -0
  129. package/types/endpoints/webhooks/undelivered.d.ts +36 -0
  130. package/types/endpoints/webhooks/webhooks.d.ts +12 -0
  131. package/types/initializedClient.d.ts +2264 -0
  132. package/types/productionDefaults.d.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "btrz-api-client",
3
- "version": "3.42.1",
3
+ "version": "3.42.3",
4
4
  "description": "Api client for Betterez endpoints",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,10 +9,11 @@
9
9
  "test:integration": "mocha --recursive -r test-integration/ports.js test-integration/",
10
10
  "browserify": "browserify lib/client.js --standalone BtrzApiClient -p tinyify -o lib/client-standalone-min.js",
11
11
  "commit-transpile": "git add lib/ && (git diff-index --quiet HEAD || git commit -m \"transpiled src\")",
12
+ "commit-types": "git add types/ && (git diff-index --quiet HEAD || git commit -m \"generated types from src\")",
12
13
  "pretranspile": "rm -rf lib/",
13
14
  "types": "npx -p typescript tsc src/**.js --declaration --allowJs --emitDeclarationOnly --outDir types",
14
15
  "transpile": "babel --presets es2015 -d lib/ src/",
15
- "preversion": "npm test && npm run transpile && npm run browserify && npm run commit-transpile",
16
+ "preversion": "npm test && npm run transpile && npm run browserify && npm run types && npm run commit-transpile && npm run commit-types",
16
17
  "postversion": "git push origin master && git push --tags",
17
18
  "version": "git tag $1"
18
19
  },