btrz-api-client 8.30.0 → 8.31.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.
- package/lib/client-standalone-min.js +1 -1
- package/lib/endpoints/accounts/application-settings.js +6 -1
- package/lib/endpoints/accounts/current-shifts.js +6 -1
- package/lib/endpoints/accounts/customers.js +11 -4
- package/lib/endpoints/accounts/domains.js +1 -2
- package/lib/endpoints/accounts/dynamic-forms.js +17 -5
- package/lib/endpoints/accounts/email-settings.js +2 -4
- package/lib/endpoints/accounts/email-templates.js +10 -2
- package/lib/endpoints/accounts/exchange-rates.js +3 -3
- package/lib/endpoints/accounts/exchange-receipts.js +2 -2
- package/lib/endpoints/accounts/goal-settings.js +2 -3
- package/lib/endpoints/accounts/images.js +2 -4
- package/lib/endpoints/accounts/interline.js +5 -8
- package/lib/endpoints/accounts/journey-prices-settings.js +2 -2
- package/lib/endpoints/accounts/lexicons.js +36 -7
- package/lib/endpoints/accounts/market-pricing-settings.js +2 -2
- package/lib/endpoints/accounts/multiproduct-sales-settings.js +2 -2
- package/lib/endpoints/accounts/network.js +6 -9
- package/lib/endpoints/accounts/operation-settings.js +2 -3
- package/lib/endpoints/accounts/people-lookups.js +27 -9
- package/lib/endpoints/accounts/point-to-point-settings.js +2 -2
- package/lib/endpoints/accounts/print-settings.js +2 -3
- package/lib/endpoints/accounts/print-templates.js +40 -9
- package/lib/endpoints/accounts/printers.js +1 -2
- package/lib/endpoints/accounts/rms-settings.js +2 -2
- package/lib/endpoints/accounts/s3buckets.js +3 -3
- package/lib/endpoints/accounts/salesforce-settings.js +2 -3
- package/lib/endpoints/accounts/shift-settings.js +2 -3
- package/lib/endpoints/accounts/shifts.js +43 -8
- package/lib/endpoints/accounts/sms-templates.js +39 -10
- package/lib/endpoints/accounts/sub-print-templates.js +1 -1
- package/lib/endpoints/accounts/ticket-movement-settings.js +2 -2
- package/lib/endpoints/accounts/tokens.js +10 -3
- package/lib/endpoints/accounts/transport-regulation-settings.js +2 -2
- package/lib/endpoints/accounts/travellers.js +19 -6
- package/lib/endpoints/accounts/trusted-machines.js +11 -3
- package/lib/endpoints/accounts/twilio-settings.js +2 -3
- package/lib/endpoints/accounts/users.js +12 -8
- package/lib/endpoints/accounts/websales-config.js +10 -3
- package/lib/endpoints/btrzpay/cardpointe.js +5 -5
- package/lib/endpoints/btrzpay/customerCards.js +4 -4
- package/lib/endpoints/btrzpay/customers.js +3 -3
- package/lib/endpoints/btrzpay/datalogic.js +8 -9
- package/lib/endpoints/btrzpay/oxxo.js +5 -13
- package/lib/endpoints/btrzpay/payment-methods.js +25 -11
- package/lib/endpoints/btrzpay/payments.js +2 -2
- package/lib/endpoints/btrzpay/prismaTerminals.js +14 -21
- package/lib/endpoints/btrzpay/reference-numbers.js +1 -1
- package/lib/endpoints/btrzpay/referenced-payments.js +11 -1
- package/lib/endpoints/btrzpay/square.js +2 -2
- package/lib/endpoints/btrzpay/stripe-terminals.js +5 -5
- package/lib/endpoints/btrzpay/terminalPayments.js +15 -5
- package/lib/endpoints/coltrane/merged-fare-tables.js +1 -1
- package/lib/endpoints/coltrane/paths.js +9 -6
- package/lib/endpoints/gps/scanner-app-location.js +3 -2
- package/lib/endpoints/inventory/amenities.js +10 -7
- package/lib/endpoints/inventory/amenity-groups.js +11 -7
- package/lib/endpoints/inventory/banks.js +5 -11
- package/lib/endpoints/inventory/bare-routes.js +12 -4
- package/lib/endpoints/inventory/brands.js +10 -6
- package/lib/endpoints/inventory/bundle-fares.js +4 -2
- package/lib/endpoints/inventory/bundles.js +5 -2
- package/lib/endpoints/inventory/change-requests.js +23 -9
- package/lib/endpoints/inventory/companies.js +5 -2
- package/lib/endpoints/inventory/control-classes.js +34 -4
- package/lib/endpoints/inventory/countries.js +8 -3
- package/lib/endpoints/inventory/custom-content.js +8 -6
- package/lib/endpoints/inventory/custom-fields.js +9 -7
- package/lib/endpoints/inventory/document-types.js +8 -11
- package/lib/endpoints/inventory/external-passes.js +13 -4
- package/lib/endpoints/inventory/external-wallets.js +5 -6
- package/lib/endpoints/inventory/fallback-codes.js +11 -4
- package/lib/endpoints/inventory/fare-classes.js +6 -4
- package/lib/endpoints/inventory/fares.js +13 -7
- package/lib/endpoints/inventory/fees.js +8 -4
- package/lib/endpoints/inventory/filtered-trips-v2.js +1 -1
- package/lib/endpoints/inventory/filtered-trips.js +14 -2
- package/lib/endpoints/inventory/financing-costs.js +15 -8
- package/lib/endpoints/inventory/garages.js +7 -5
- package/lib/endpoints/inventory/getnet-terminals.js +12 -4
- package/lib/endpoints/inventory/gift-certificate-definitions.js +10 -11
- package/lib/endpoints/inventory/insurances.js +10 -7
- package/lib/endpoints/inventory/insurancesCost.js +8 -5
- package/lib/endpoints/inventory/items.js +22 -4
- package/lib/endpoints/inventory/journey-prices.js +36 -7
- package/lib/endpoints/inventory/labels.js +6 -5
- package/lib/endpoints/inventory/marital-status.js +8 -11
- package/lib/endpoints/inventory/marketplace-modifiers.js +16 -7
- package/lib/endpoints/inventory/mit-terminal-settings.js +5 -11
- package/lib/endpoints/inventory/mit-terminals.js +5 -11
- package/lib/endpoints/inventory/operating-companies.js +13 -10
- package/lib/endpoints/inventory/operation-messages.js +16 -7
- package/lib/endpoints/inventory/operation-reasons.js +11 -9
- package/lib/endpoints/inventory/parcel-zones.js +6 -5
- package/lib/endpoints/inventory/pay-on-accounts.js +9 -3
- package/lib/endpoints/inventory/payment-terminals.js +5 -11
- package/lib/endpoints/inventory/prisma-terminals.js +10 -6
- package/lib/endpoints/inventory/products.js +31 -7
- package/lib/endpoints/inventory/promos.js +29 -11
- package/lib/endpoints/inventory/routes.js +50 -31
- package/lib/endpoints/inventory/schedule-groups.js +7 -7
- package/lib/endpoints/inventory/schedules.js +24 -11
- package/lib/endpoints/inventory/seatclasses.js +5 -15
- package/lib/endpoints/inventory/seatfees.js +9 -6
- package/lib/endpoints/inventory/seatmaps.js +37 -10
- package/lib/endpoints/inventory/segments-information-tables.js +5 -4
- package/lib/endpoints/inventory/segments-information.js +4 -2
- package/lib/endpoints/inventory/service-numbers.js +9 -6
- package/lib/endpoints/inventory/service-types.js +5 -11
- package/lib/endpoints/inventory/ssrs.js +11 -3
- package/lib/endpoints/inventory/station-classes.js +12 -6
- package/lib/endpoints/inventory/station-groups.js +4 -3
- package/lib/endpoints/inventory/stations-provinces.js +1 -7
- package/lib/endpoints/inventory/stations-zones.js +3 -2
- package/lib/endpoints/inventory/stations.js +23 -5
- package/lib/endpoints/inventory/taxes.js +5 -6
- package/lib/endpoints/inventory/travel-routes.js +6 -4
- package/lib/endpoints/inventory/traveller-card-providers-types.js +1 -7
- package/lib/endpoints/inventory/traveller-card-providers.js +3 -9
- package/lib/endpoints/inventory/traveller-card-types.js +7 -6
- package/lib/endpoints/inventory/trips.js +2 -8
- package/lib/endpoints/inventory/vehicle-types.js +0 -1
- package/lib/endpoints/inventory/vehicles.js +17 -2
- package/lib/endpoints/inventory/zone-price-overages.js +4 -10
- package/lib/endpoints/inventory/zone-prices.js +12 -7
- package/lib/endpoints/invoices/dlink.js +3 -2
- package/lib/endpoints/invoices/emails.js +1 -7
- package/lib/endpoints/invoices/gti.js +2 -2
- package/lib/endpoints/invoices/infile.js +2 -2
- package/lib/endpoints/invoices/infileJson.js +2 -2
- package/lib/endpoints/invoices/invoices.js +14 -10
- package/lib/endpoints/invoices/pdfs.js +4 -3
- package/lib/endpoints/invoices/providers.js +12 -11
- package/lib/endpoints/invoices/providersSequences.js +5 -15
- package/lib/endpoints/invoices/system.js +2 -2
- package/lib/endpoints/invoices/tax-ids.js +1 -1
- package/lib/endpoints/notifications/customers.js +25 -5
- package/lib/endpoints/notifications/email.js +8 -3
- package/lib/endpoints/notifications/manifest-notifications.js +4 -3
- package/lib/endpoints/notifications/notify.js +20 -5
- package/lib/endpoints/notifications/orders-rules-validations.js +2 -8
- package/lib/endpoints/notifications/pdf-data.js +2 -1
- package/lib/endpoints/notifications/pdfs.js +2 -1
- package/lib/endpoints/notifications/printed-tickets.js +17 -6
- package/lib/endpoints/notifications/twilio.js +1 -7
- package/lib/endpoints/operations/accounting_items.js +9 -4
- package/lib/endpoints/operations/applied_insurance.js +8 -3
- package/lib/endpoints/operations/calendar_entries.js +7 -3
- package/lib/endpoints/operations/external-bookings.js +2 -8
- package/lib/endpoints/operations/flexpasses.js +1 -1
- package/lib/endpoints/operations/loans.js +10 -4
- package/lib/endpoints/operations/manifest.js +83 -33
- package/lib/endpoints/operations/manifest_leg_for_tickets.js +1 -2
- package/lib/endpoints/operations/movements.js +1 -7
- package/lib/endpoints/operations/outlook-trips.js +13 -3
- package/lib/endpoints/operations/parcels.js +20 -6
- package/lib/endpoints/operations/parcels_manifests.js +6 -16
- package/lib/endpoints/operations/passenger_check_in_info.js +3 -10
- package/lib/endpoints/operations/redemption.js +4 -4
- package/lib/endpoints/operations/rms.js +33 -6
- package/lib/endpoints/operations/scheduled_notifications.js +4 -11
- package/lib/endpoints/operations/segments.js +2 -2
- package/lib/endpoints/operations/sold-items-fulfillment.js +4 -3
- package/lib/endpoints/operations/sold-items.js +13 -4
- package/lib/endpoints/operations/tickets.js +4 -4
- package/lib/endpoints/operations/transaction.js +1 -1
- package/lib/endpoints/operations/transactions.js +6 -14
- package/lib/endpoints/operations/transport_regulations.js +1 -1
- package/lib/endpoints/operations/trip_change_info.js +13 -1
- package/lib/endpoints/operations/vehicle_assignments.js +10 -5
- package/lib/endpoints/operations/vouchers.js +2 -9
- package/lib/endpoints/operations/waitlists.js +2 -2
- package/lib/endpoints/sales/bundles.js +4 -2
- package/lib/endpoints/sales/cancellations.js +2 -2
- package/lib/endpoints/sales/cart-promo.js +2 -9
- package/lib/endpoints/sales/cart.js +30 -17
- package/lib/endpoints/sales/check-in-info.js +1 -7
- package/lib/endpoints/sales/custom-fields.js +4 -3
- package/lib/endpoints/sales/flexpasses.js +1 -7
- package/lib/endpoints/sales/gift-certificates.js +4 -2
- package/lib/endpoints/sales/order.js +6 -4
- package/lib/endpoints/sales/parcel-quotes.js +1 -1
- package/lib/endpoints/sales/payment-providers.js +6 -3
- package/lib/endpoints/sales/redeemable-items.js +16 -5
- package/lib/endpoints/sales/sync-entry.js +1 -1
- package/lib/endpoints/sales/voucher.js +1 -1
- package/package.json +1 -1
- package/src/endpoints/accounts/application-settings.js +6 -1
- package/src/endpoints/accounts/current-shifts.js +6 -1
- package/src/endpoints/accounts/customers.js +11 -4
- package/src/endpoints/accounts/domains.js +1 -2
- package/src/endpoints/accounts/dynamic-forms.js +17 -5
- package/src/endpoints/accounts/email-settings.js +2 -4
- package/src/endpoints/accounts/email-templates.js +10 -2
- package/src/endpoints/accounts/exchange-rates.js +3 -3
- package/src/endpoints/accounts/exchange-receipts.js +2 -2
- package/src/endpoints/accounts/goal-settings.js +2 -3
- package/src/endpoints/accounts/images.js +2 -4
- package/src/endpoints/accounts/interline.js +5 -8
- package/src/endpoints/accounts/journey-prices-settings.js +2 -2
- package/src/endpoints/accounts/lexicons.js +36 -7
- package/src/endpoints/accounts/market-pricing-settings.js +2 -2
- package/src/endpoints/accounts/multiproduct-sales-settings.js +2 -2
- package/src/endpoints/accounts/network.js +6 -9
- package/src/endpoints/accounts/operation-settings.js +2 -3
- package/src/endpoints/accounts/people-lookups.js +27 -9
- package/src/endpoints/accounts/point-to-point-settings.js +2 -2
- package/src/endpoints/accounts/print-settings.js +2 -3
- package/src/endpoints/accounts/print-templates.js +40 -9
- package/src/endpoints/accounts/printers.js +1 -2
- package/src/endpoints/accounts/rms-settings.js +2 -2
- package/src/endpoints/accounts/s3buckets.js +3 -3
- package/src/endpoints/accounts/salesforce-settings.js +2 -3
- package/src/endpoints/accounts/shift-settings.js +2 -3
- package/src/endpoints/accounts/shifts.js +43 -8
- package/src/endpoints/accounts/sms-templates.js +39 -10
- package/src/endpoints/accounts/sub-print-templates.js +1 -1
- package/src/endpoints/accounts/ticket-movement-settings.js +2 -2
- package/src/endpoints/accounts/tokens.js +10 -3
- package/src/endpoints/accounts/transport-regulation-settings.js +2 -2
- package/src/endpoints/accounts/travellers.js +19 -6
- package/src/endpoints/accounts/trusted-machines.js +11 -3
- package/src/endpoints/accounts/twilio-settings.js +2 -3
- package/src/endpoints/accounts/users.js +12 -8
- package/src/endpoints/accounts/websales-config.js +10 -3
- package/src/endpoints/btrzpay/cardpointe.js +5 -5
- package/src/endpoints/btrzpay/customerCards.js +4 -4
- package/src/endpoints/btrzpay/customers.js +3 -3
- package/src/endpoints/btrzpay/datalogic.js +8 -9
- package/src/endpoints/btrzpay/oxxo.js +5 -13
- package/src/endpoints/btrzpay/payment-methods.js +25 -11
- package/src/endpoints/btrzpay/payments.js +2 -2
- package/src/endpoints/btrzpay/prismaTerminals.js +14 -21
- package/src/endpoints/btrzpay/reference-numbers.js +1 -1
- package/src/endpoints/btrzpay/referenced-payments.js +10 -2
- package/src/endpoints/btrzpay/square.js +2 -2
- package/src/endpoints/btrzpay/stripe-terminals.js +5 -5
- package/src/endpoints/btrzpay/terminalPayments.js +15 -5
- package/src/endpoints/coltrane/merged-fare-tables.js +1 -1
- package/src/endpoints/coltrane/paths.js +9 -6
- package/src/endpoints/gps/scanner-app-location.js +3 -2
- package/src/endpoints/inventory/amenities.js +10 -7
- package/src/endpoints/inventory/amenity-groups.js +11 -7
- package/src/endpoints/inventory/banks.js +5 -11
- package/src/endpoints/inventory/bare-routes.js +12 -4
- package/src/endpoints/inventory/brands.js +10 -6
- package/src/endpoints/inventory/bundle-fares.js +4 -2
- package/src/endpoints/inventory/bundles.js +5 -2
- package/src/endpoints/inventory/change-requests.js +23 -9
- package/src/endpoints/inventory/companies.js +5 -2
- package/src/endpoints/inventory/control-classes.js +34 -4
- package/src/endpoints/inventory/countries.js +8 -3
- package/src/endpoints/inventory/custom-content.js +8 -6
- package/src/endpoints/inventory/custom-fields.js +9 -7
- package/src/endpoints/inventory/document-types.js +8 -11
- package/src/endpoints/inventory/external-passes.js +13 -4
- package/src/endpoints/inventory/external-wallets.js +5 -6
- package/src/endpoints/inventory/fallback-codes.js +11 -4
- package/src/endpoints/inventory/fare-classes.js +6 -4
- package/src/endpoints/inventory/fares.js +13 -7
- package/src/endpoints/inventory/fees.js +8 -4
- package/src/endpoints/inventory/filtered-trips-v2.js +1 -1
- package/src/endpoints/inventory/filtered-trips.js +14 -2
- package/src/endpoints/inventory/financing-costs.js +15 -8
- package/src/endpoints/inventory/garages.js +7 -5
- package/src/endpoints/inventory/getnet-terminals.js +12 -4
- package/src/endpoints/inventory/gift-certificate-definitions.js +10 -11
- package/src/endpoints/inventory/insurances.js +10 -7
- package/src/endpoints/inventory/insurancesCost.js +8 -5
- package/src/endpoints/inventory/items.js +22 -4
- package/src/endpoints/inventory/journey-prices.js +36 -7
- package/src/endpoints/inventory/labels.js +6 -5
- package/src/endpoints/inventory/marital-status.js +8 -11
- package/src/endpoints/inventory/marketplace-modifiers.js +16 -7
- package/src/endpoints/inventory/mit-terminal-settings.js +5 -11
- package/src/endpoints/inventory/mit-terminals.js +5 -11
- package/src/endpoints/inventory/operating-companies.js +13 -10
- package/src/endpoints/inventory/operation-messages.js +16 -7
- package/src/endpoints/inventory/operation-reasons.js +11 -9
- package/src/endpoints/inventory/parcel-zones.js +6 -5
- package/src/endpoints/inventory/pay-on-accounts.js +9 -3
- package/src/endpoints/inventory/payment-terminals.js +5 -11
- package/src/endpoints/inventory/prisma-terminals.js +10 -6
- package/src/endpoints/inventory/products.js +31 -7
- package/src/endpoints/inventory/promos.js +29 -11
- package/src/endpoints/inventory/routes.js +50 -31
- package/src/endpoints/inventory/schedule-groups.js +7 -7
- package/src/endpoints/inventory/schedules.js +24 -11
- package/src/endpoints/inventory/seatclasses.js +5 -15
- package/src/endpoints/inventory/seatfees.js +9 -6
- package/src/endpoints/inventory/seatmaps.js +37 -10
- package/src/endpoints/inventory/segments-information-tables.js +5 -4
- package/src/endpoints/inventory/segments-information.js +4 -2
- package/src/endpoints/inventory/service-numbers.js +9 -6
- package/src/endpoints/inventory/service-types.js +5 -11
- package/src/endpoints/inventory/ssrs.js +11 -3
- package/src/endpoints/inventory/station-classes.js +12 -6
- package/src/endpoints/inventory/station-groups.js +4 -3
- package/src/endpoints/inventory/stations-provinces.js +1 -7
- package/src/endpoints/inventory/stations-zones.js +3 -2
- package/src/endpoints/inventory/stations.js +23 -5
- package/src/endpoints/inventory/taxes.js +5 -6
- package/src/endpoints/inventory/travel-routes.js +6 -4
- package/src/endpoints/inventory/traveller-card-providers-types.js +1 -7
- package/src/endpoints/inventory/traveller-card-providers.js +3 -9
- package/src/endpoints/inventory/traveller-card-types.js +7 -6
- package/src/endpoints/inventory/trips.js +2 -8
- package/src/endpoints/inventory/vehicle-types.js +0 -1
- package/src/endpoints/inventory/vehicles.js +17 -2
- package/src/endpoints/inventory/zone-price-overages.js +4 -10
- package/src/endpoints/inventory/zone-prices.js +12 -7
- package/src/endpoints/invoices/dlink.js +3 -2
- package/src/endpoints/invoices/emails.js +1 -7
- package/src/endpoints/invoices/gti.js +2 -2
- package/src/endpoints/invoices/infile.js +2 -2
- package/src/endpoints/invoices/infileJson.js +2 -2
- package/src/endpoints/invoices/invoices.js +14 -10
- package/src/endpoints/invoices/pdfs.js +4 -3
- package/src/endpoints/invoices/providers.js +12 -11
- package/src/endpoints/invoices/providersSequences.js +5 -15
- package/src/endpoints/invoices/system.js +2 -2
- package/src/endpoints/invoices/tax-ids.js +1 -1
- package/src/endpoints/notifications/customers.js +25 -5
- package/src/endpoints/notifications/email.js +8 -3
- package/src/endpoints/notifications/manifest-notifications.js +4 -3
- package/src/endpoints/notifications/notify.js +20 -5
- package/src/endpoints/notifications/orders-rules-validations.js +2 -8
- package/src/endpoints/notifications/pdf-data.js +2 -1
- package/src/endpoints/notifications/pdfs.js +2 -1
- package/src/endpoints/notifications/printed-tickets.js +17 -7
- package/src/endpoints/notifications/twilio.js +1 -7
- package/src/endpoints/operations/accounting_items.js +9 -4
- package/src/endpoints/operations/applied_insurance.js +9 -2
- package/src/endpoints/operations/calendar_entries.js +7 -3
- package/src/endpoints/operations/external-bookings.js +2 -8
- package/src/endpoints/operations/flexpasses.js +1 -1
- package/src/endpoints/operations/loans.js +10 -4
- package/src/endpoints/operations/manifest.js +83 -33
- package/src/endpoints/operations/manifest_leg_for_tickets.js +1 -2
- package/src/endpoints/operations/movements.js +1 -7
- package/src/endpoints/operations/outlook-trips.js +13 -3
- package/src/endpoints/operations/parcels.js +20 -6
- package/src/endpoints/operations/parcels_manifests.js +6 -16
- package/src/endpoints/operations/passenger_check_in_info.js +3 -10
- package/src/endpoints/operations/redemption.js +4 -4
- package/src/endpoints/operations/rms.js +33 -6
- package/src/endpoints/operations/scheduled_notifications.js +4 -11
- package/src/endpoints/operations/segments.js +2 -2
- package/src/endpoints/operations/sold-items-fulfillment.js +4 -3
- package/src/endpoints/operations/sold-items.js +13 -4
- package/src/endpoints/operations/tickets.js +4 -4
- package/src/endpoints/operations/transaction.js +1 -1
- package/src/endpoints/operations/transactions.js +6 -14
- package/src/endpoints/operations/transport_regulations.js +1 -1
- package/src/endpoints/operations/trip_change_info.js +13 -1
- package/src/endpoints/operations/vehicle_assignments.js +10 -5
- package/src/endpoints/operations/vouchers.js +2 -9
- package/src/endpoints/operations/waitlists.js +2 -2
- package/src/endpoints/sales/bundles.js +4 -2
- package/src/endpoints/sales/cancellations.js +2 -2
- package/src/endpoints/sales/cart-promo.js +2 -9
- package/src/endpoints/sales/cart.js +30 -17
- package/src/endpoints/sales/check-in-info.js +1 -7
- package/src/endpoints/sales/custom-fields.js +4 -3
- package/src/endpoints/sales/flexpasses.js +1 -7
- package/src/endpoints/sales/gift-certificates.js +4 -2
- package/src/endpoints/sales/order.js +6 -4
- package/src/endpoints/sales/parcel-quotes.js +1 -1
- package/src/endpoints/sales/payment-providers.js +6 -3
- package/src/endpoints/sales/redeemable-items.js +16 -5
- package/src/endpoints/sales/sync-entry.js +1 -1
- package/src/endpoints/sales/voucher.js +1 -1
|
@@ -7,8 +7,75 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
7
7
|
authorizationHeaders = _require.authorizationHeaders;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* @
|
|
10
|
+
* Query params for GET /manifests (btrz-api-operations). See get-manifests getSpec().
|
|
11
|
+
* @typedef {Object} ManifestsListQuery
|
|
12
|
+
* @property {string} [providerIds] - Provider IDs of the manifests
|
|
13
|
+
* @property {string} [routeIds] - Route IDs
|
|
14
|
+
* @property {string} [scheduleIds] - Schedule IDs
|
|
15
|
+
* @property {string} [date] - Date (yyyy-mm-dd)
|
|
16
|
+
* @property {string} [dateFrom] - Start date range (yyyy-mm-dd)
|
|
17
|
+
* @property {string} [dateTo] - End date range (yyyy-mm-dd)
|
|
18
|
+
* @property {string} [seatmapId] - Seatmap ID
|
|
19
|
+
* @property {string} [vehicleId] - Vehicle ID
|
|
20
|
+
* @property {string} [assignedUserId] - Assigned user ID
|
|
21
|
+
* @property {boolean} [dispatched] - If manifest was dispatched
|
|
22
|
+
* @property {boolean} [reviewed] - If manifest was reviewed
|
|
23
|
+
* @property {string} [sendToSAP] - If manifest should be sent to SAP
|
|
24
|
+
* @property {string} [operatingCompanyId] - Operating company ID
|
|
25
|
+
* @property {number} [vehicleFrom] - First vehicle id (range)
|
|
26
|
+
* @property {number} [vehicleTo] - Last vehicle id (range)
|
|
27
|
+
* @property {string} [dispatchedStatus] - Filter by dispatched status
|
|
28
|
+
* @property {boolean} [manifestOnly] - If only manifest (no ticket info)
|
|
29
|
+
* @property {string} [status] - Comma-separated manifest statuses
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Query params for PUT /manifests (btrz-api-operations). See put-manifest getSpec().
|
|
34
|
+
* @typedef {Object} ManifestSaveQuery
|
|
35
|
+
* @property {string} providerId - Provider ID (required)
|
|
36
|
+
* @property {string} [manifestId] - Manifest ID to update (omit to create)
|
|
37
|
+
* @property {boolean} [bypassBusValidation] - Bypass bus validation
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Query params for PATCH /manifests (btrz-api-operations). See patch-manifest getSpec().
|
|
42
|
+
* @typedef {Object} ManifestPatchQuery
|
|
43
|
+
* @property {string} providerId - Provider ID (required)
|
|
44
|
+
* @property {string} [routeId] - Route ID for update_schedule
|
|
45
|
+
* @property {string} [scheduleId] - New schedule ID for update_schedule
|
|
46
|
+
* @property {string} [oldScheduleId] - Old schedule ID for update_schedule
|
|
47
|
+
* @property {string} [accommodateOnAnySeat] - "true" to assign missing seats to any available
|
|
48
|
+
* @property {string} [newdesign] - "true" when using new seatmap design
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Query params for GET /outlook-manifests (btrz-api-operations). See get-outlook-manifests getSpec().
|
|
53
|
+
* @typedef {Object} OutlookManifestsListQuery
|
|
54
|
+
* @property {string} providerId - Provider ID (required)
|
|
55
|
+
* @property {string} productId - Product ID (required)
|
|
56
|
+
* @property {string} from - Start date (required, yyyy-mm-dd)
|
|
57
|
+
* @property {string} to - End date (required, yyyy-mm-dd, max 1 month range)
|
|
58
|
+
* @property {string} [scheduleName] - Schedule name filter
|
|
59
|
+
* @property {string} [loadFactorFrom] - Min load factor
|
|
60
|
+
* @property {string} [loadFactorTo] - Max load factor
|
|
61
|
+
* @property {string} [timeFrom] - Min time filter
|
|
62
|
+
* @property {string} [timeTo] - Max time filter
|
|
63
|
+
* @property {string} [originId] - Origin station id
|
|
64
|
+
* @property {string} [destinationId] - Destination station id
|
|
65
|
+
* @property {string} [amenityGroupId] - Amenity group id
|
|
66
|
+
* @property {string} [userId] - Only manifests with this user assigned
|
|
67
|
+
* @property {string} [withAssignedUsers] - Filter by assigned users (true/false)
|
|
68
|
+
* @property {string} [status] - Comma-separated statuses (published, paused, planned, canceled)
|
|
69
|
+
* @property {boolean} [isExtraRun] - Only extra run trips
|
|
70
|
+
* @property {boolean} [minimalPayload] - Minimal data for five day outlook
|
|
71
|
+
* @property {string} [labelId] - Label id filter
|
|
72
|
+
* @property {boolean} [dispatched] - Only dispatched manifests
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Query params for PUT /manifests/:manifestKey/driver-relays (btrz-api-operations). See put-driver-relays-handler getSpec().
|
|
77
|
+
* @typedef {Object} ManifestDriverRelaysQuery
|
|
78
|
+
* @property {boolean} [bypassValidations] - If true, bypass driver validations
|
|
12
79
|
*/
|
|
13
80
|
|
|
14
81
|
/**
|
|
@@ -73,14 +140,13 @@ function manifestFactory(_ref) {
|
|
|
73
140
|
}
|
|
74
141
|
|
|
75
142
|
/**
|
|
76
|
-
* POST manifests/:manifestId/dispatches - dispatch manifest.
|
|
143
|
+
* POST manifests/:manifestId/dispatches - dispatch manifest. API does not accept query params.
|
|
77
144
|
* @param {Object} opts
|
|
78
145
|
* @param {string} [opts.token] - API key
|
|
79
146
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
80
147
|
* @param {Object} [opts.headers] - Optional headers
|
|
81
148
|
* @param {string} opts.manifestId - Manifest id
|
|
82
149
|
* @param {Object} opts.data - Request body
|
|
83
|
-
* @param {ManifestQuery} [opts.query] - Query params
|
|
84
150
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
85
151
|
*/
|
|
86
152
|
function dispatch(_ref4) {
|
|
@@ -105,7 +171,7 @@ function manifestFactory(_ref) {
|
|
|
105
171
|
* @param {Object} opts
|
|
106
172
|
* @param {string} [opts.token] - API key
|
|
107
173
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
108
|
-
* @param {
|
|
174
|
+
* @param {ManifestsListQuery} [opts.query] - Query params (all optional)
|
|
109
175
|
* @param {Object} [opts.headers] - Optional headers
|
|
110
176
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
111
177
|
*/
|
|
@@ -125,12 +191,11 @@ function manifestFactory(_ref) {
|
|
|
125
191
|
}
|
|
126
192
|
|
|
127
193
|
/**
|
|
128
|
-
* GET /manifests/:manifestId - get manifest by id.
|
|
194
|
+
* GET /manifests/:manifestId - get manifest by id. API does not accept query params.
|
|
129
195
|
* @param {Object} opts
|
|
130
196
|
* @param {string} [opts.token] - API key
|
|
131
197
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
132
198
|
* @param {string} opts.manifestId - Manifest id
|
|
133
|
-
* @param {ManifestQuery} [opts.query] - Query params
|
|
134
199
|
* @param {Object} [opts.headers] - Optional headers
|
|
135
200
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
136
201
|
*/
|
|
@@ -207,7 +272,7 @@ function manifestFactory(_ref) {
|
|
|
207
272
|
* @param {Object} opts
|
|
208
273
|
* @param {string} [opts.token] - API key
|
|
209
274
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
210
|
-
* @param {
|
|
275
|
+
* @param {OutlookManifestsListQuery} [opts.query] - Query params (providerId, productId, from, to required)
|
|
211
276
|
* @param {Object} [opts.headers] - Optional headers
|
|
212
277
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
213
278
|
*/
|
|
@@ -233,7 +298,7 @@ function manifestFactory(_ref) {
|
|
|
233
298
|
* @param {Object} opts
|
|
234
299
|
* @param {string} [opts.token] - API key
|
|
235
300
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
236
|
-
* @param {
|
|
301
|
+
* @param {ManifestPatchQuery} [opts.query] - Query params (providerId required)
|
|
237
302
|
* @param {Object} opts.operations - JSON Patch operations
|
|
238
303
|
* @param {Object} [opts.headers] - Optional headers
|
|
239
304
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
@@ -262,10 +327,10 @@ function manifestFactory(_ref) {
|
|
|
262
327
|
* @param {Object} opts
|
|
263
328
|
* @param {string} [opts.token] - API key
|
|
264
329
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
265
|
-
* @param {string} [opts.providerId] - Provider id
|
|
330
|
+
* @param {string} [opts.providerId] - Provider id (required by API as query)
|
|
266
331
|
* @param {Object} opts.data - Request body
|
|
267
332
|
* @param {Object} [opts.headers] - Optional headers
|
|
268
|
-
* @param {
|
|
333
|
+
* @param {ManifestSaveQuery} [opts.query] - Query params (providerId required; manifestId, bypassBusValidation optional)
|
|
269
334
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
270
335
|
*/
|
|
271
336
|
function save(_ref11) {
|
|
@@ -292,8 +357,7 @@ function manifestFactory(_ref) {
|
|
|
292
357
|
* @param {string} [opts.token] - API key
|
|
293
358
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
294
359
|
* @param {string} opts.manifestId - Manifest id
|
|
295
|
-
|
|
296
|
-
* @param {Object} opts.data - Request body
|
|
360
|
+
* @param {Object} opts.data - Request body
|
|
297
361
|
* @param {Object} [opts.headers] - Optional headers
|
|
298
362
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
299
363
|
*/
|
|
@@ -349,8 +413,7 @@ function manifestFactory(_ref) {
|
|
|
349
413
|
* @param {string} [opts.token] - API key
|
|
350
414
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
351
415
|
* @param {string} opts.manifestId - Manifest id
|
|
352
|
-
|
|
353
|
-
* @param {Object} opts.data - Request body
|
|
416
|
+
* @param {Object} opts.data - Request body
|
|
354
417
|
* @param {Object} [opts.headers] - Optional headers
|
|
355
418
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
356
419
|
*/
|
|
@@ -406,8 +469,7 @@ function manifestFactory(_ref) {
|
|
|
406
469
|
* @param {string} [opts.token] - API key
|
|
407
470
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
408
471
|
* @param {string} opts.manifestId - Manifest id
|
|
409
|
-
|
|
410
|
-
* @param {Object} opts.data - Request body
|
|
472
|
+
* @param {Object} opts.data - Request body
|
|
411
473
|
* @param {Object} [opts.headers] - Optional headers
|
|
412
474
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
413
475
|
*/
|
|
@@ -437,8 +499,7 @@ function manifestFactory(_ref) {
|
|
|
437
499
|
* @param {string} [opts.token] - API key
|
|
438
500
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
439
501
|
* @param {string} opts.manifestId - Manifest id
|
|
440
|
-
|
|
441
|
-
* @param {Object} opts.data - Request body
|
|
502
|
+
* @param {Object} opts.data - Request body
|
|
442
503
|
* @param {Object} [opts.headers] - Optional headers
|
|
443
504
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
444
505
|
*/
|
|
@@ -468,7 +529,6 @@ function manifestFactory(_ref) {
|
|
|
468
529
|
* @param {string} [opts.token] - API key
|
|
469
530
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
470
531
|
* @param {string} opts.manifestKey - Manifest key
|
|
471
|
-
* @param {ManifestQuery} [opts.query] - Query params
|
|
472
532
|
* @param {Object} [opts.headers] - Optional headers
|
|
473
533
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
474
534
|
*/
|
|
@@ -497,7 +557,6 @@ function manifestFactory(_ref) {
|
|
|
497
557
|
* @param {Object} opts
|
|
498
558
|
* @param {string} [opts.token] - API key
|
|
499
559
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
500
|
-
* @param {ManifestQuery} [opts.query] - Query params
|
|
501
560
|
* @param {Object} [opts.headers] - Optional headers
|
|
502
561
|
* @param {Object} opts.data - Request body
|
|
503
562
|
* @param {string} opts.manifestId - Manifest id
|
|
@@ -530,7 +589,6 @@ function manifestFactory(_ref) {
|
|
|
530
589
|
* @param {Object} opts
|
|
531
590
|
* @param {string} [opts.token] - API key
|
|
532
591
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
533
|
-
* @param {ManifestQuery} [opts.query] - Query params
|
|
534
592
|
* @param {Object} [opts.headers] - Optional headers
|
|
535
593
|
* @param {string} opts.manifestId - Manifest id
|
|
536
594
|
* @param {string} opts.legFromId - Leg from id
|
|
@@ -565,7 +623,6 @@ function manifestFactory(_ref) {
|
|
|
565
623
|
* @param {Object} opts
|
|
566
624
|
* @param {string} [opts.token] - API key
|
|
567
625
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
568
|
-
* @param {ManifestQuery} [opts.query] - Query params
|
|
569
626
|
* @param {Object} [opts.headers] - Optional headers
|
|
570
627
|
* @param {string} opts.manifestId - Manifest id
|
|
571
628
|
* @param {string} opts.legFromId - Leg from id
|
|
@@ -604,7 +661,6 @@ function manifestFactory(_ref) {
|
|
|
604
661
|
* @param {string} [opts.token] - API key
|
|
605
662
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
606
663
|
* @param {Object} opts.data - Request body
|
|
607
|
-
* @param {ManifestQuery} [opts.query] - Query params
|
|
608
664
|
* @param {Object} [opts.headers] - Optional headers
|
|
609
665
|
* @param {string} opts.manifestId - Manifest id
|
|
610
666
|
* @param {string} opts.legFromId - Leg from id
|
|
@@ -636,8 +692,7 @@ function manifestFactory(_ref) {
|
|
|
636
692
|
* @param {string} [opts.token] - API key
|
|
637
693
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
638
694
|
* @param {Object} opts.data - Request body
|
|
639
|
-
|
|
640
|
-
* @param {Object} [opts.headers] - Optional headers
|
|
695
|
+
* @param {Object} [opts.headers] - Optional headers
|
|
641
696
|
* @param {string} opts.manifestId - Manifest id
|
|
642
697
|
* @param {string} opts.legFromId - Leg from id
|
|
643
698
|
* @param {string} opts.ticketId - Ticket id
|
|
@@ -668,8 +723,7 @@ function manifestFactory(_ref) {
|
|
|
668
723
|
* @param {Object} opts
|
|
669
724
|
* @param {string} [opts.token] - API key
|
|
670
725
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
671
|
-
|
|
672
|
-
* @param {Object} [opts.headers] - Optional headers
|
|
726
|
+
* @param {Object} [opts.headers] - Optional headers
|
|
673
727
|
* @param {string} opts.manifestId - Manifest id
|
|
674
728
|
* @param {string} opts.legFromId - Leg from id
|
|
675
729
|
* @param {string} opts.ticketId - Ticket id
|
|
@@ -701,7 +755,6 @@ function manifestFactory(_ref) {
|
|
|
701
755
|
* @param {Object} opts
|
|
702
756
|
* @param {string} [opts.token] - API key
|
|
703
757
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
704
|
-
* @param {ManifestQuery} [opts.query] - Query params
|
|
705
758
|
* @param {string} [opts.responseType] - Response type (e.g. "json")
|
|
706
759
|
* @param {string} opts.id - Manifest id
|
|
707
760
|
* @param {Object} [opts.headers] - Optional headers
|
|
@@ -734,7 +787,6 @@ function manifestFactory(_ref) {
|
|
|
734
787
|
* @param {string} [opts.token] - API key
|
|
735
788
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
736
789
|
* @param {string} opts.manifestId - Manifest id
|
|
737
|
-
* @param {ManifestQuery} [opts.query] - Query params
|
|
738
790
|
* @param {Object} [opts.headers] - Optional headers
|
|
739
791
|
* @param {Object} opts.data - Request body
|
|
740
792
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
@@ -789,7 +841,6 @@ function manifestFactory(_ref) {
|
|
|
789
841
|
* @param {string} [opts.token] - API key
|
|
790
842
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
791
843
|
* @param {string} opts.manifestId - Manifest id
|
|
792
|
-
* @param {ManifestQuery} [opts.query] - Query params
|
|
793
844
|
* @param {Object} [opts.headers] - Optional headers
|
|
794
845
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
795
846
|
*/
|
|
@@ -817,7 +868,7 @@ function manifestFactory(_ref) {
|
|
|
817
868
|
* @param {string} [opts.token] - API key
|
|
818
869
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
819
870
|
* @param {string} opts.manifestId - Manifest id
|
|
820
|
-
* @param {
|
|
871
|
+
* @param {ManifestDriverRelaysQuery} [opts.query] - Query params (bypassValidations optional)
|
|
821
872
|
* @param {Object} [opts.headers] - Optional headers
|
|
822
873
|
* @param {Object} opts.data - Request body
|
|
823
874
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
@@ -850,7 +901,6 @@ function manifestFactory(_ref) {
|
|
|
850
901
|
* @param {string} opts.manifestKey - Manifest key
|
|
851
902
|
* @param {Object} opts.manifestException - Manifest exception payload
|
|
852
903
|
* @param {Object} [opts.headers] - Optional headers
|
|
853
|
-
* @param {ManifestQuery} [opts.query] - Query params
|
|
854
904
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
855
905
|
*/
|
|
856
906
|
update: function update(_ref30) {
|
|
@@ -17,12 +17,11 @@ function manifestLegForTicketsFactory(_ref) {
|
|
|
17
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* GET /manifest-leg-for-tickets/:ticketId - get manifest leg for ticket.
|
|
20
|
+
* GET /manifest-leg-for-tickets/:ticketId - get manifest leg for ticket. 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
|
|
24
24
|
* @param {string} opts.ticketId - Ticket id
|
|
25
|
-
* @param {Object} [opts.params] - Query params (forwarded to API)
|
|
26
25
|
* @param {Object} [opts.headers] - Optional headers
|
|
27
26
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
28
27
|
*/
|
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
var _require = require("./../endpoints_helpers.js"),
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* @typedef {Object} MovementsQuery
|
|
8
|
-
* @property {string} [providerId] - Provider account ID
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
6
|
/**
|
|
12
7
|
* Factory for movements API (btrz-api-operations).
|
|
13
8
|
* @param {Object} deps
|
|
@@ -22,12 +17,11 @@ function movementsFactory(_ref) {
|
|
|
22
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
23
18
|
|
|
24
19
|
/**
|
|
25
|
-
* POST /movements - create movement.
|
|
20
|
+
* POST /movements - create movement. API does not accept query params.
|
|
26
21
|
* @param {Object} opts
|
|
27
22
|
* @param {string} [opts.token] - API key
|
|
28
23
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
29
24
|
* @param {Object} opts.movement - Movement payload
|
|
30
|
-
* @param {MovementsQuery} [opts.query] - Query params
|
|
31
25
|
* @param {Object} [opts.headers] - Optional headers
|
|
32
26
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
33
27
|
*/
|
|
@@ -4,8 +4,18 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
7
|
+
* Query params for GET /outlook-trips (btrz-api-operations). See get-outlook-trips getSpec().
|
|
8
|
+
* @typedef {Object} OutlookTripsListQuery
|
|
9
|
+
* @property {string} from - Travel start date (required, date format)
|
|
10
|
+
* @property {string} to - Travel end date (required, date format)
|
|
11
|
+
* @property {string} [fromTime] - Cutoff time for first date (HH:MM)
|
|
12
|
+
* @property {string} [toTime] - Cutoff time for last date (HH:MM)
|
|
13
|
+
* @property {string} productId - Product ID (required)
|
|
14
|
+
* @property {string} [originId] - Origin (departure) station ID
|
|
15
|
+
* @property {string} [destinationId] - Destination station ID
|
|
16
|
+
* @property {string} [routeId] - Route ID
|
|
17
|
+
* @property {string} [scheduleId] - Schedule ID
|
|
18
|
+
* @property {boolean} [isExtraRun] - Only trips marked as extra run
|
|
9
19
|
*/
|
|
10
20
|
|
|
11
21
|
/**
|
|
@@ -26,7 +36,7 @@ function outlookTripsFactory(_ref) {
|
|
|
26
36
|
* @param {Object} opts
|
|
27
37
|
* @param {string} [opts.token] - API key
|
|
28
38
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
29
|
-
* @param {
|
|
39
|
+
* @param {OutlookTripsListQuery} [opts.query] - Query params (from, to, productId required)
|
|
30
40
|
* @param {Object} [opts.headers] - Optional headers
|
|
31
41
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
32
42
|
*/
|
|
@@ -6,8 +6,22 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
6
6
|
authorizationHeaders = _require.authorizationHeaders;
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
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 {
|
|
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.
|
|
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 {
|
|
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.
|
|
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 {
|
|
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.
|
|
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.
|
|
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}
|
|
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
|
-
*
|
|
8
|
-
* @
|
|
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 {
|
|
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 {
|
|
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
|
*/
|