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
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
var _require = require("./../endpoints_helpers.js"),
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* @typedef {Object} ApplicationSettingsQuery
|
|
8
|
+
* @property {string} [name] - The application name
|
|
9
|
+
*/
|
|
10
|
+
|
|
6
11
|
/**
|
|
7
12
|
* Factory for application-settings API (btrz-api-accounts).
|
|
8
13
|
* @param {Object} deps
|
|
@@ -22,7 +27,7 @@ function applicationSettingsFactory(_ref) {
|
|
|
22
27
|
* @param {string} [opts.token] - API key
|
|
23
28
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
24
29
|
* @param {string} opts.providerId - Provider id (ObjectId)
|
|
25
|
-
* @param {
|
|
30
|
+
* @param {ApplicationSettingsQuery} [opts.query] - Query params
|
|
26
31
|
* @param {Object} [opts.headers] - Optional headers
|
|
27
32
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
28
33
|
*/
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
var _require = require("./../endpoints_helpers.js"),
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* @typedef {Object} CurrentShiftsQuery
|
|
8
|
+
* @property {string} [includeActivity] - Set to 'false' to avoid returning sales activity data for the shift (default 'true')
|
|
9
|
+
*/
|
|
10
|
+
|
|
6
11
|
/**
|
|
7
12
|
* Factory for current-shift (per user) API (btrz-api-accounts).
|
|
8
13
|
* @param {Object} deps
|
|
@@ -21,7 +26,7 @@ function currentShiftsFactory(_ref) {
|
|
|
21
26
|
* @param {Object} opts
|
|
22
27
|
* @param {string} [opts.token] - API key
|
|
23
28
|
* @param {string} opts.userId - User id (ObjectId)
|
|
24
|
-
* @param {
|
|
29
|
+
* @param {CurrentShiftsQuery} [opts.query] - Query params
|
|
25
30
|
* @param {Object} [opts.headers] - Optional headers
|
|
26
31
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
27
32
|
*/
|
|
@@ -7,6 +7,15 @@ var base64 = require("base-64");
|
|
|
7
7
|
var _require = require("./../endpoints_helpers.js"),
|
|
8
8
|
authorizationHeaders = _require.authorizationHeaders;
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Query params for GET /customers (btrz-api-accounts). See get-customers getSpec().
|
|
12
|
+
* @typedef {Object} CustomersQuery
|
|
13
|
+
* @property {string} [customerNumber] - A particular customer number; only that customer will be listed
|
|
14
|
+
* @property {string} [externalId] - A particular externalId (same format as when creating the customer)
|
|
15
|
+
* @property {string} [providerIds] - Provider ids to get customers from (comma-separated if more than one)
|
|
16
|
+
* @property {string} [lookupSearchParams] - Lookup search data in format "documentTypeId|DNI,documentNumber|1234567"
|
|
17
|
+
*/
|
|
18
|
+
|
|
10
19
|
/**
|
|
11
20
|
* Factory for customers API (btrz-api-accounts).
|
|
12
21
|
* @param {Object} deps
|
|
@@ -50,8 +59,8 @@ function customersFactory(_ref) {
|
|
|
50
59
|
* @param {Object} opts
|
|
51
60
|
* @param {string} [opts.token] - API key
|
|
52
61
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
53
|
-
* @param {
|
|
54
|
-
* @param {string} [opts.providerId] -
|
|
62
|
+
* @param {CustomersQuery} [opts.query] - Query params (customerNumber, externalId, providerIds, lookupSearchParams)
|
|
63
|
+
* @param {string} [opts.providerId] - Provider id; if set, added to query (convenience for single provider)
|
|
55
64
|
* @param {Object} [opts.headers] - Optional headers
|
|
56
65
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
57
66
|
*/
|
|
@@ -77,7 +86,6 @@ function customersFactory(_ref) {
|
|
|
77
86
|
* @param {string} [opts.token] - API key
|
|
78
87
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
79
88
|
* @param {Object} opts.customer - Customer payload
|
|
80
|
-
* @param {Object} [opts.query] - Query params
|
|
81
89
|
* @param {Object} [opts.headers] - Optional headers
|
|
82
90
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
83
91
|
*/
|
|
@@ -160,7 +168,6 @@ function customersFactory(_ref) {
|
|
|
160
168
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
161
169
|
* @param {string} opts.customerId - Customer id (ObjectId)
|
|
162
170
|
* @param {Object} opts.data - Partial customer payload
|
|
163
|
-
* @param {Object} [opts.query] - Query params
|
|
164
171
|
* @param {Object} [opts.headers] - Optional headers
|
|
165
172
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
166
173
|
*/
|
|
@@ -17,10 +17,9 @@ function domainsFactory(_ref) {
|
|
|
17
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* GET /domains - list domains.
|
|
20
|
+
* GET /domains - list domains. API does not accept query params.
|
|
21
21
|
* @param {Object} opts
|
|
22
22
|
* @param {string} [opts.token] - API key
|
|
23
|
-
* @param {Object} [opts.query] - Query params
|
|
24
23
|
* @param {Object} [opts.headers] - Optional headers
|
|
25
24
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
26
25
|
*/
|
|
@@ -6,6 +6,20 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
6
6
|
var _require = require("../endpoints_helpers.js"),
|
|
7
7
|
authorizationHeaders = _require.authorizationHeaders;
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Query params for GET /dynamic-forms (btrz-api-accounts). See get-handler getSpec().
|
|
11
|
+
* @typedef {Object} DynamicFormsQuery
|
|
12
|
+
* @property {string} [dynamicFormFieldId] - Get all dynamic forms for the given field id (ObjectId)
|
|
13
|
+
* @property {string} [providerId] - Get all dynamic forms for the given provider id (ObjectId)
|
|
14
|
+
* @property {string} [type] - Filter by type: "reservation" | "parcel" | "checkin" | "paid_in" | "pay_on_account"
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Query params for GET /dynamic-forms/:dynamicFormId (btrz-api-accounts). See get-by-id-handler getSpec().
|
|
19
|
+
* @typedef {Object} DynamicFormByIdQuery
|
|
20
|
+
* @property {string} [providerId] - Fetch the dynamic form for the given providerId (ObjectId)
|
|
21
|
+
*/
|
|
22
|
+
|
|
9
23
|
/**
|
|
10
24
|
* Factory for dynamic-forms API (btrz-api-accounts).
|
|
11
25
|
* @param {Object} deps
|
|
@@ -25,8 +39,8 @@ function dynamicFormsFactory(_ref) {
|
|
|
25
39
|
* @param {string} [opts.token] - API key
|
|
26
40
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
27
41
|
* @param {string} opts.dynamicFormId - Dynamic form id (ObjectId)
|
|
28
|
-
* @param {
|
|
29
|
-
* @param {string} [opts.providerId] - Provider id (
|
|
42
|
+
* @param {DynamicFormByIdQuery} [opts.query] - Query params (providerId)
|
|
43
|
+
* @param {string} [opts.providerId] - Provider id; if set, added to query (convenience)
|
|
30
44
|
* @param {Object} [opts.headers] - Optional headers
|
|
31
45
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
32
46
|
*/
|
|
@@ -52,7 +66,7 @@ function dynamicFormsFactory(_ref) {
|
|
|
52
66
|
* @param {Object} opts
|
|
53
67
|
* @param {string} [opts.token] - API key
|
|
54
68
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
55
|
-
* @param {
|
|
69
|
+
* @param {DynamicFormsQuery} [opts.query] - Query params (dynamicFormFieldId, providerId, type)
|
|
56
70
|
* @param {Object} [opts.headers] - Optional headers
|
|
57
71
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
58
72
|
*/
|
|
@@ -75,7 +89,6 @@ function dynamicFormsFactory(_ref) {
|
|
|
75
89
|
* @param {Object} opts
|
|
76
90
|
* @param {string} [opts.token] - API key
|
|
77
91
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
78
|
-
* @param {Object} [opts.query] - Query params
|
|
79
92
|
* @param {Object} opts.data - Form payload
|
|
80
93
|
* @param {Object} [opts.headers] - Optional headers
|
|
81
94
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
@@ -172,7 +185,6 @@ function dynamicFormsFactory(_ref) {
|
|
|
172
185
|
* @param {Object} opts
|
|
173
186
|
* @param {string} [opts.token] - API key
|
|
174
187
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
175
|
-
* @param {Object} [opts.query] - Query params
|
|
176
188
|
* @param {Object} [opts.headers] - Optional headers
|
|
177
189
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
178
190
|
*/
|
|
@@ -18,11 +18,10 @@ function emailSettingsFactory(_ref) {
|
|
|
18
18
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* GET /email-settings - list email settings.
|
|
21
|
+
* GET /email-settings - list email settings. API does not accept query params.
|
|
22
22
|
* @param {Object} opts
|
|
23
23
|
* @param {string} [opts.token] - API key
|
|
24
24
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
25
|
-
* @param {Object} [opts.query] - Query params
|
|
26
25
|
* @param {Object} [opts.headers] - Optional headers
|
|
27
26
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
28
27
|
*/
|
|
@@ -40,12 +39,11 @@ function emailSettingsFactory(_ref) {
|
|
|
40
39
|
});
|
|
41
40
|
}
|
|
42
41
|
/**
|
|
43
|
-
* GET /email-settings/:email - get email settings by email.
|
|
42
|
+
* GET /email-settings/:email - get email settings by email. API does not accept query params.
|
|
44
43
|
* @param {Object} opts
|
|
45
44
|
* @param {string} [opts.token] - API key
|
|
46
45
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
47
46
|
* @param {string} opts.email - Email address
|
|
48
|
-
* @param {Object} [opts.query] - Query params
|
|
49
47
|
* @param {Object} [opts.headers] - Optional headers
|
|
50
48
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
51
49
|
*/
|
|
@@ -5,6 +5,7 @@ var _require = require("../endpoints_helpers.js"),
|
|
|
5
5
|
authorizationHeaders = _require.authorizationHeaders;
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
+
* Query params for GET /email-templates (btrz-api-accounts). See get-handler getSpec().
|
|
8
9
|
* @typedef {Object} EmailTemplatesListQuery
|
|
9
10
|
* @property {string} [providerId] - Filter by provider account (ObjectId)
|
|
10
11
|
* @property {string} [type] - Filter by template type
|
|
@@ -17,6 +18,14 @@ var _require = require("../endpoints_helpers.js"),
|
|
|
17
18
|
* @property {number} [page] - 1-based page for pagination
|
|
18
19
|
*/
|
|
19
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Query params for GET /email-templates/:emailTemplateId (btrz-api-accounts). See get-by-id-handler getSpec().
|
|
23
|
+
* @typedef {Object} EmailTemplateGetByIdQuery
|
|
24
|
+
* @property {string} [providerId] - Filter by provider; template must belong to this account, current account, or be global (ObjectId)
|
|
25
|
+
* @property {string} [superUserId] - Super user ID for authentication (ObjectId)
|
|
26
|
+
* @property {string} [superUserHash] - Super user hash for authentication
|
|
27
|
+
*/
|
|
28
|
+
|
|
20
29
|
/**
|
|
21
30
|
* @typedef {Object} EmailTemplatePostData
|
|
22
31
|
* @property {string} name - Template name
|
|
@@ -92,7 +101,7 @@ function emailTemplatesFactory(_ref) {
|
|
|
92
101
|
* @param {string} [opts.token] - API key
|
|
93
102
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
94
103
|
* @param {string} opts.emailTemplateId - Template id (ObjectId)
|
|
95
|
-
* @param {
|
|
104
|
+
* @param {EmailTemplateGetByIdQuery} [opts.query] - Query params (providerId, superUserId, superUserHash)
|
|
96
105
|
* @param {Object} [opts.headers] - Optional headers
|
|
97
106
|
* @returns {Promise<import("axios").AxiosResponse<{ emailTemplate: object }>>}
|
|
98
107
|
*/
|
|
@@ -214,7 +223,6 @@ function emailTemplatesFactory(_ref) {
|
|
|
214
223
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
215
224
|
* @param {string} opts.emailTemplateId - Template id (ObjectId)
|
|
216
225
|
* @param {string} opts.versionId - Version id (ObjectId)
|
|
217
|
-
* @param {Object} [opts.query] - Optional query params
|
|
218
226
|
* @param {Object} [opts.headers] - Optional headers
|
|
219
227
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
220
228
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
/* eslint-disable max-len */
|
|
3
4
|
/* eslint-disable import/extensions */
|
|
4
5
|
var _require = require("./../endpoints_helpers"),
|
|
5
6
|
authorizationHeaders = _require.authorizationHeaders;
|
|
@@ -18,12 +19,11 @@ function exchangeRatesFactory(_ref) {
|
|
|
18
19
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
19
20
|
|
|
20
21
|
/**
|
|
21
|
-
* GET /exchange-rates/:isoCode - get exchange rates by ISO code.
|
|
22
|
+
* GET /exchange-rates/:isoCode - get exchange rates by ISO code. API does not define query params in getSpec().
|
|
22
23
|
* @param {Object} opts
|
|
23
24
|
* @param {string} [opts.token] - API key
|
|
24
25
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
25
|
-
* @param {string} opts.isoCode - Currency ISO code
|
|
26
|
-
* @param {Object} [opts.query] - Query params
|
|
26
|
+
* @param {string} opts.isoCode - Currency ISO code (3 characters)
|
|
27
27
|
* @param {Object} [opts.headers] - Optional headers
|
|
28
28
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
29
29
|
*/
|
|
@@ -18,7 +18,7 @@ function exchangeReceiptsFactory(_ref) {
|
|
|
18
18
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* PUT /exchange-receipt-settings - update exchange receipt settings.
|
|
21
|
+
* PUT /exchange-receipt-settings - update exchange receipt settings. API does not accept query params.
|
|
22
22
|
* @param {Object} opts
|
|
23
23
|
* @param {string} [opts.token] - API key
|
|
24
24
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -41,7 +41,7 @@ function exchangeReceiptsFactory(_ref) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* GET /exchange-receipt-settings - get exchange receipt settings.
|
|
44
|
+
* GET /exchange-receipt-settings - get exchange receipt settings. API does not accept query params.
|
|
45
45
|
* @param {Object} opts
|
|
46
46
|
* @param {string} [opts.token] - API key
|
|
47
47
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -17,11 +17,10 @@ function goalSettingsFactory(_ref) {
|
|
|
17
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* GET /goal-settings - get goal settings.
|
|
20
|
+
* GET /goal-settings - get goal settings. 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
|
-
* @param {Object} [opts.query] - Query params
|
|
25
24
|
* @param {Object} [opts.headers] - Optional headers
|
|
26
25
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
27
26
|
*/
|
|
@@ -39,7 +38,7 @@ function goalSettingsFactory(_ref) {
|
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
/**
|
|
42
|
-
* PUT /goal-settings - update goal settings.
|
|
41
|
+
* PUT /goal-settings - update goal settings. API does not accept query params.
|
|
43
42
|
* @param {Object} opts
|
|
44
43
|
* @param {string} [opts.token] - API key
|
|
45
44
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -18,11 +18,10 @@ function ImagesFactory(_ref) {
|
|
|
18
18
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* GET /images - list images.
|
|
21
|
+
* GET /images - list images. API getSpec() does not define query params.
|
|
22
22
|
* @param {Object} opts
|
|
23
23
|
* @param {string} [opts.token] - API key
|
|
24
24
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
25
|
-
* @param {Object} [opts.query] - Query params
|
|
26
25
|
* @param {Object} [opts.headers] - Optional headers
|
|
27
26
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
28
27
|
*/
|
|
@@ -41,11 +40,10 @@ function ImagesFactory(_ref) {
|
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
/**
|
|
44
|
-
* GET /images/:imageId - get an image.
|
|
43
|
+
* GET /images/:imageId - get an image. API does not accept query params.
|
|
45
44
|
* @param {Object} opts
|
|
46
45
|
* @param {string} [opts.token] - API key
|
|
47
46
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
48
|
-
* @param {Object} [opts.query] - Query params
|
|
49
47
|
* @param {string} opts.imageId - Image id (ObjectId)
|
|
50
48
|
* @param {Object} [opts.headers] - Optional headers
|
|
51
49
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
@@ -18,11 +18,10 @@ function interlineFactory(_ref) {
|
|
|
18
18
|
|
|
19
19
|
var invitations = {
|
|
20
20
|
/**
|
|
21
|
-
* GET /interline/invitations - list interline invitations.
|
|
21
|
+
* GET /interline/invitations - list interline invitations. API does not accept query params.
|
|
22
22
|
* @param {Object} opts
|
|
23
23
|
* @param {string} [opts.token] - API key
|
|
24
24
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
25
|
-
* @param {Object} [opts.query] - Query params
|
|
26
25
|
* @param {Object} [opts.headers] - Optional headers
|
|
27
26
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
28
27
|
*/
|
|
@@ -41,7 +40,7 @@ function interlineFactory(_ref) {
|
|
|
41
40
|
},
|
|
42
41
|
|
|
43
42
|
/**
|
|
44
|
-
* GET /interline/invitations/:invitationId - get an invitation.
|
|
43
|
+
* GET /interline/invitations/:invitationId - get an invitation. API does not accept query params.
|
|
45
44
|
* @param {Object} opts
|
|
46
45
|
* @param {string} [opts.token] - API key
|
|
47
46
|
* @param {string} opts.invitationId - Invitation id (ObjectId)
|
|
@@ -109,11 +108,10 @@ function interlineFactory(_ref) {
|
|
|
109
108
|
|
|
110
109
|
var consumers = {
|
|
111
110
|
/**
|
|
112
|
-
* GET /interline/consumers - list interline consumers.
|
|
111
|
+
* GET /interline/consumers - list interline consumers. API does not accept query params.
|
|
113
112
|
* @param {Object} opts
|
|
114
113
|
* @param {string} [opts.token] - API key
|
|
115
114
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
116
|
-
* @param {Object} [opts.query] - Query params
|
|
117
115
|
* @param {Object} [opts.headers] - Optional headers
|
|
118
116
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
119
117
|
*/
|
|
@@ -134,11 +132,10 @@ function interlineFactory(_ref) {
|
|
|
134
132
|
|
|
135
133
|
var providers = {
|
|
136
134
|
/**
|
|
137
|
-
* GET /interline/providers - list interline providers.
|
|
135
|
+
* GET /interline/providers - list interline providers. API does not accept query params.
|
|
138
136
|
* @param {Object} opts
|
|
139
137
|
* @param {string} [opts.token] - API key
|
|
140
138
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
141
|
-
* @param {Object} [opts.query] - Query params
|
|
142
139
|
* @param {Object} [opts.headers] - Optional headers
|
|
143
140
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
144
141
|
*/
|
|
@@ -159,7 +156,7 @@ function interlineFactory(_ref) {
|
|
|
159
156
|
|
|
160
157
|
var network = {
|
|
161
158
|
/**
|
|
162
|
-
* GET /interline/:interlineId/network - get interline network.
|
|
159
|
+
* GET /interline/:interlineId/network - get interline network. API does not accept query params.
|
|
163
160
|
* @param {Object} opts
|
|
164
161
|
* @param {string} [opts.token] - API key
|
|
165
162
|
* @param {string} opts.interlineId - Interline id (ObjectId)
|
|
@@ -17,7 +17,7 @@ function journeyPricesSettingsFactory(_ref) {
|
|
|
17
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* GET /journey-prices-settings - get journey prices settings.
|
|
20
|
+
* GET /journey-prices-settings - get journey prices settings. 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
|
|
@@ -36,7 +36,7 @@ function journeyPricesSettingsFactory(_ref) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* PUT /journey-prices-settings - update journey prices settings.
|
|
39
|
+
* PUT /journey-prices-settings - update journey prices settings. API does not accept query params.
|
|
40
40
|
* @param {Object} opts
|
|
41
41
|
* @param {string} [opts.token] - API key
|
|
42
42
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -4,6 +4,35 @@
|
|
|
4
4
|
var _require = require("./../endpoints_helpers.js"),
|
|
5
5
|
authorizationHeaders = _require.authorizationHeaders;
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Query params for GET /lexicons/:lexiconCollectionId (btrz-api-accounts). See get-lexicons handler getSpec().
|
|
9
|
+
* @typedef {Object} LexiconsListQuery
|
|
10
|
+
* @property {string} [providerIds] - Provider ids to get lexicons for
|
|
11
|
+
* @property {string} [context] - Context of the lexicons to search
|
|
12
|
+
* @property {boolean} [accountOnly] - Filter lexicons only for the given providerIds; context ignored when true
|
|
13
|
+
* @property {string} [key] - Specific lexicon key to search for
|
|
14
|
+
* @property {string} [keys] - Comma-separated list of keys to search for
|
|
15
|
+
* @property {string} [lang] - ISO language code to filter values
|
|
16
|
+
* @property {string} [langs] - Comma-separated ISO language codes to filter values
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Query params for GET /lexicons/suggestions (btrz-api-accounts). See get-lexicons-suggestions handler getSpec().
|
|
21
|
+
* @typedef {Object} LexiconSuggestionsListQuery
|
|
22
|
+
* @property {string} [status] - Filter by status: under review | accepted | rejected
|
|
23
|
+
* @property {string} [lang] - Filter by language code (e.g. en-us, pt-br)
|
|
24
|
+
* @property {string} [key] - Filter by lexicon key
|
|
25
|
+
* @property {string} [superUserId] - Super user id; with superUserHash returns suggestions for all accounts
|
|
26
|
+
* @property {string} [superUserHash] - Super user hash; with superUserId returns suggestions for all accounts
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Query params for GET /lexicons/suggestions/:id (btrz-api-accounts). See get-lexicons-suggestion-by-id handler getSpec().
|
|
31
|
+
* @typedef {Object} LexiconSuggestionGetByIdQuery
|
|
32
|
+
* @property {string} [superUserId] - Super user id; with superUserHash any suggestion can be retrieved
|
|
33
|
+
* @property {string} [superUserHash] - Super user hash; with superUserId any suggestion can be retrieved
|
|
34
|
+
*/
|
|
35
|
+
|
|
7
36
|
/**
|
|
8
37
|
* Factory for lexicons API (btrz-api-accounts).
|
|
9
38
|
* @param {Object} deps
|
|
@@ -18,11 +47,11 @@ function lexiconsFactory(_ref) {
|
|
|
18
47
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
19
48
|
|
|
20
49
|
/**
|
|
21
|
-
* GET lexicons/buscompany - list lexicons
|
|
50
|
+
* GET /lexicons/buscompany - list lexicons (collection buscompany). Query params from get-lexicons getSpec().
|
|
22
51
|
* @param {Object} opts
|
|
23
52
|
* @param {string} [opts.token] - API key
|
|
24
|
-
* @param {string} opts.context - Context (
|
|
25
|
-
* @param {
|
|
53
|
+
* @param {string} [opts.context] - Context of the lexicons to search (merged into query)
|
|
54
|
+
* @param {LexiconsListQuery} [opts.query] - Query params: providerIds, context, accountOnly, key, keys, lang, langs
|
|
26
55
|
* @param {Object} [opts.headers] - Optional headers
|
|
27
56
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
28
57
|
*/
|
|
@@ -145,12 +174,12 @@ function lexiconsFactory(_ref) {
|
|
|
145
174
|
|
|
146
175
|
var suggestions = {
|
|
147
176
|
/**
|
|
148
|
-
*
|
|
177
|
+
* GET /lexicons/suggestions - list lexicon suggestions (or all accounts when super user params provided).
|
|
149
178
|
* @param {Object} opts
|
|
150
179
|
* @param {string} [opts.token] - API key (x-api-key)
|
|
151
180
|
* @param {string} [opts.jwtToken] - JWT or constants.INTERNAL_AUTH_TOKEN_SYMBOL for internal auth
|
|
152
181
|
* @param {Object} [opts.headers] - Optional request headers
|
|
153
|
-
* @param {
|
|
182
|
+
* @param {LexiconSuggestionsListQuery} [opts.params] - Query params: status, lang, key, superUserId, superUserHash
|
|
154
183
|
* @returns {Promise<{data: { suggestions: Array }}>}
|
|
155
184
|
*/
|
|
156
185
|
list: function list(_ref7) {
|
|
@@ -169,13 +198,13 @@ function lexiconsFactory(_ref) {
|
|
|
169
198
|
|
|
170
199
|
|
|
171
200
|
/**
|
|
172
|
-
*
|
|
201
|
+
* GET /lexicons/suggestions/:id - get a single lexicon suggestion by id.
|
|
173
202
|
* @param {Object} opts
|
|
174
203
|
* @param {string} opts.suggestionId - MongoDB ObjectId of the suggestion
|
|
175
204
|
* @param {string} [opts.token] - API key
|
|
176
205
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
177
206
|
* @param {Object} [opts.headers] - Optional request headers
|
|
178
|
-
* @param {
|
|
207
|
+
* @param {LexiconSuggestionGetByIdQuery} [opts.params] - Query params: superUserId, superUserHash (to access any account's suggestion)
|
|
179
208
|
* @returns {Promise<{data: Object}>}
|
|
180
209
|
*/
|
|
181
210
|
getById: function getById(_ref8) {
|
|
@@ -17,7 +17,7 @@ function marketPricingSettingsFactory(_ref) {
|
|
|
17
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* GET /market-pricing-settings - get market pricing settings.
|
|
20
|
+
* GET /market-pricing-settings - get market pricing settings. 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
|
|
@@ -36,7 +36,7 @@ function marketPricingSettingsFactory(_ref) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* PUT /market-pricing-settings - update market pricing settings.
|
|
39
|
+
* PUT /market-pricing-settings - update market pricing settings. API does not accept query params.
|
|
40
40
|
* @param {Object} opts
|
|
41
41
|
* @param {string} [opts.token] - API key
|
|
42
42
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -17,7 +17,7 @@ function multiproductSalesSettingsFactory(_ref) {
|
|
|
17
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* GET /multiproduct-sales-settings - get multiproduct sales settings.
|
|
20
|
+
* GET /multiproduct-sales-settings - get multiproduct sales settings. 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
|
|
@@ -36,7 +36,7 @@ function multiproductSalesSettingsFactory(_ref) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* PUT /multiproduct-sales-settings - update multiproduct sales settings.
|
|
39
|
+
* PUT /multiproduct-sales-settings - update multiproduct sales settings. API does not accept query params.
|
|
40
40
|
* @param {Object} opts
|
|
41
41
|
* @param {string} [opts.token] - API key
|
|
42
42
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -19,11 +19,10 @@ function networkFactory(_ref) {
|
|
|
19
19
|
|
|
20
20
|
var agencies = {
|
|
21
21
|
/**
|
|
22
|
-
* GET /network/agencies - list agencies.
|
|
22
|
+
* GET /network/agencies - list agencies. API getSpec() does not define query params.
|
|
23
23
|
* @param {Object} opts
|
|
24
24
|
* @param {string} [opts.token] - API key
|
|
25
25
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
26
|
-
* @param {Object} [opts.query] - Query params
|
|
27
26
|
* @param {Object} [opts.headers] - Optional headers
|
|
28
27
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
29
28
|
*/
|
|
@@ -42,11 +41,10 @@ function networkFactory(_ref) {
|
|
|
42
41
|
},
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
|
-
* GET /network/agencies/:
|
|
44
|
+
* GET /network/agencies/:agencyId - get an agency by id. API does not accept query params.
|
|
46
45
|
* @param {Object} opts
|
|
47
46
|
* @param {string} [opts.token] - API key
|
|
48
|
-
* @param {string} opts.sellerId - Seller/agency id (ObjectId)
|
|
49
|
-
* @param {Object} [opts.query] - Query params
|
|
47
|
+
* @param {string} opts.sellerId - Seller/agency id (ObjectId), maps to path agencyId
|
|
50
48
|
* @param {Object} [opts.headers] - Optional headers
|
|
51
49
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
52
50
|
*/
|
|
@@ -64,13 +62,12 @@ function networkFactory(_ref) {
|
|
|
64
62
|
},
|
|
65
63
|
|
|
66
64
|
/**
|
|
67
|
-
* PUT /network/agencies/:sellerId - update an agency.
|
|
65
|
+
* PUT /network/agencies/:sellerId - update an agency. API does not accept query params.
|
|
68
66
|
* @param {Object} opts
|
|
69
67
|
* @param {string} [opts.token] - API key
|
|
70
68
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
71
69
|
* @param {string} opts.sellerId - Seller/agency id (ObjectId)
|
|
72
70
|
* @param {Object} opts.agency - Agency payload
|
|
73
|
-
* @param {Object} [opts.query] - Query params
|
|
74
71
|
* @param {Object} [opts.headers] - Optional headers
|
|
75
72
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
76
73
|
*/
|
|
@@ -123,7 +120,7 @@ function networkFactory(_ref) {
|
|
|
123
120
|
},
|
|
124
121
|
|
|
125
122
|
/**
|
|
126
|
-
* PUT /network/agencies/remove-product - remove product from agency.
|
|
123
|
+
* PUT /network/agencies/remove-product - remove product from agency. API does not accept query params.
|
|
127
124
|
* @param {Object} opts
|
|
128
125
|
* @param {string} [opts.token] - API key
|
|
129
126
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -150,7 +147,7 @@ function networkFactory(_ref) {
|
|
|
150
147
|
},
|
|
151
148
|
|
|
152
149
|
/**
|
|
153
|
-
* PUT /network/agencies/remove-fare - remove fare from agency.
|
|
150
|
+
* PUT /network/agencies/remove-fare - remove fare from agency. API does not accept query params.
|
|
154
151
|
* @param {Object} opts
|
|
155
152
|
* @param {string} [opts.token] - API key
|
|
156
153
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -17,11 +17,10 @@ function operationSettingsFactory(_ref) {
|
|
|
17
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* GET /operation-settings - get operation settings.
|
|
20
|
+
* GET /operation-settings - get operation settings. 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
|
-
* @param {Object} [opts.query] - Query params
|
|
25
24
|
* @param {Object} [opts.headers] - Optional headers
|
|
26
25
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
27
26
|
*/
|
|
@@ -39,7 +38,7 @@ function operationSettingsFactory(_ref) {
|
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
/**
|
|
42
|
-
* PUT /operation-settings - update operation settings.
|
|
41
|
+
* PUT /operation-settings - update operation settings. API does not accept query params.
|
|
43
42
|
* @param {Object} opts
|
|
44
43
|
* @param {string} [opts.token] - API key
|
|
45
44
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|