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,35 @@ const {
|
|
|
3
3
|
authorizationHeaders
|
|
4
4
|
} = require("./../endpoints_helpers.js");
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Query params for GET /lexicons/:lexiconCollectionId (btrz-api-accounts). See get-lexicons handler getSpec().
|
|
8
|
+
* @typedef {Object} LexiconsListQuery
|
|
9
|
+
* @property {string} [providerIds] - Provider ids to get lexicons for
|
|
10
|
+
* @property {string} [context] - Context of the lexicons to search
|
|
11
|
+
* @property {boolean} [accountOnly] - Filter lexicons only for the given providerIds; context ignored when true
|
|
12
|
+
* @property {string} [key] - Specific lexicon key to search for
|
|
13
|
+
* @property {string} [keys] - Comma-separated list of keys to search for
|
|
14
|
+
* @property {string} [lang] - ISO language code to filter values
|
|
15
|
+
* @property {string} [langs] - Comma-separated ISO language codes to filter values
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Query params for GET /lexicons/suggestions (btrz-api-accounts). See get-lexicons-suggestions handler getSpec().
|
|
20
|
+
* @typedef {Object} LexiconSuggestionsListQuery
|
|
21
|
+
* @property {string} [status] - Filter by status: under review | accepted | rejected
|
|
22
|
+
* @property {string} [lang] - Filter by language code (e.g. en-us, pt-br)
|
|
23
|
+
* @property {string} [key] - Filter by lexicon key
|
|
24
|
+
* @property {string} [superUserId] - Super user id; with superUserHash returns suggestions for all accounts
|
|
25
|
+
* @property {string} [superUserHash] - Super user hash; with superUserId returns suggestions for all accounts
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Query params for GET /lexicons/suggestions/:id (btrz-api-accounts). See get-lexicons-suggestion-by-id handler getSpec().
|
|
30
|
+
* @typedef {Object} LexiconSuggestionGetByIdQuery
|
|
31
|
+
* @property {string} [superUserId] - Super user id; with superUserHash any suggestion can be retrieved
|
|
32
|
+
* @property {string} [superUserHash] - Super user hash; with superUserId any suggestion can be retrieved
|
|
33
|
+
*/
|
|
34
|
+
|
|
6
35
|
/**
|
|
7
36
|
* Factory for lexicons API (btrz-api-accounts).
|
|
8
37
|
* @param {Object} deps
|
|
@@ -14,11 +43,11 @@ function lexiconsFactory({
|
|
|
14
43
|
client, internalAuthTokenProvider
|
|
15
44
|
}) {
|
|
16
45
|
/**
|
|
17
|
-
* GET lexicons/buscompany - list lexicons
|
|
46
|
+
* GET /lexicons/buscompany - list lexicons (collection buscompany). Query params from get-lexicons getSpec().
|
|
18
47
|
* @param {Object} opts
|
|
19
48
|
* @param {string} [opts.token] - API key
|
|
20
|
-
* @param {string} opts.context - Context (
|
|
21
|
-
* @param {
|
|
49
|
+
* @param {string} [opts.context] - Context of the lexicons to search (merged into query)
|
|
50
|
+
* @param {LexiconsListQuery} [opts.query] - Query params: providerIds, context, accountOnly, key, keys, lang, langs
|
|
22
51
|
* @param {Object} [opts.headers] - Optional headers
|
|
23
52
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
24
53
|
*/
|
|
@@ -134,12 +163,12 @@ function lexiconsFactory({
|
|
|
134
163
|
|
|
135
164
|
const suggestions = {
|
|
136
165
|
/**
|
|
137
|
-
*
|
|
166
|
+
* GET /lexicons/suggestions - list lexicon suggestions (or all accounts when super user params provided).
|
|
138
167
|
* @param {Object} opts
|
|
139
168
|
* @param {string} [opts.token] - API key (x-api-key)
|
|
140
169
|
* @param {string} [opts.jwtToken] - JWT or constants.INTERNAL_AUTH_TOKEN_SYMBOL for internal auth
|
|
141
170
|
* @param {Object} [opts.headers] - Optional request headers
|
|
142
|
-
* @param {
|
|
171
|
+
* @param {LexiconSuggestionsListQuery} [opts.params] - Query params: status, lang, key, superUserId, superUserHash
|
|
143
172
|
* @returns {Promise<{data: { suggestions: Array }}>}
|
|
144
173
|
*/
|
|
145
174
|
list({token, jwtToken, headers, params = {}}) {
|
|
@@ -151,13 +180,13 @@ function lexiconsFactory({
|
|
|
151
180
|
},
|
|
152
181
|
|
|
153
182
|
/**
|
|
154
|
-
*
|
|
183
|
+
* GET /lexicons/suggestions/:id - get a single lexicon suggestion by id.
|
|
155
184
|
* @param {Object} opts
|
|
156
185
|
* @param {string} opts.suggestionId - MongoDB ObjectId of the suggestion
|
|
157
186
|
* @param {string} [opts.token] - API key
|
|
158
187
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
159
188
|
* @param {Object} [opts.headers] - Optional request headers
|
|
160
|
-
* @param {
|
|
189
|
+
* @param {LexiconSuggestionGetByIdQuery} [opts.params] - Query params: superUserId, superUserHash (to access any account's suggestion)
|
|
161
190
|
* @returns {Promise<{data: Object}>}
|
|
162
191
|
*/
|
|
163
192
|
getById({token, jwtToken, headers, suggestionId, params = {}}) {
|
|
@@ -11,7 +11,7 @@ const {
|
|
|
11
11
|
*/
|
|
12
12
|
function marketPricingSettingsFactory({client, internalAuthTokenProvider}) {
|
|
13
13
|
/**
|
|
14
|
-
* GET /market-pricing-settings - get market pricing settings.
|
|
14
|
+
* GET /market-pricing-settings - get market pricing settings. API does not accept query params.
|
|
15
15
|
* @param {Object} opts
|
|
16
16
|
* @param {string} [opts.token] - API key
|
|
17
17
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -26,7 +26,7 @@ function marketPricingSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* PUT /market-pricing-settings - update market pricing settings.
|
|
29
|
+
* PUT /market-pricing-settings - update market pricing settings. API does not accept query params.
|
|
30
30
|
* @param {Object} opts
|
|
31
31
|
* @param {string} [opts.token] - API key
|
|
32
32
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -11,7 +11,7 @@ const {
|
|
|
11
11
|
*/
|
|
12
12
|
function multiproductSalesSettingsFactory({client, internalAuthTokenProvider}) {
|
|
13
13
|
/**
|
|
14
|
-
* GET /multiproduct-sales-settings - get multiproduct sales settings.
|
|
14
|
+
* GET /multiproduct-sales-settings - get multiproduct sales settings. API does not accept query params.
|
|
15
15
|
* @param {Object} opts
|
|
16
16
|
* @param {string} [opts.token] - API key
|
|
17
17
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -26,7 +26,7 @@ function multiproductSalesSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* PUT /multiproduct-sales-settings - update multiproduct sales settings.
|
|
29
|
+
* PUT /multiproduct-sales-settings - update multiproduct sales settings. API does not accept query params.
|
|
30
30
|
* @param {Object} opts
|
|
31
31
|
* @param {string} [opts.token] - API key
|
|
32
32
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -13,11 +13,10 @@ const {
|
|
|
13
13
|
function networkFactory({client, internalAuthTokenProvider}) {
|
|
14
14
|
const agencies = {
|
|
15
15
|
/**
|
|
16
|
-
* GET /network/agencies - list agencies.
|
|
16
|
+
* GET /network/agencies - list agencies. API getSpec() does not define query params.
|
|
17
17
|
* @param {Object} opts
|
|
18
18
|
* @param {string} [opts.token] - API key
|
|
19
19
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
20
|
-
* @param {Object} [opts.query] - Query params
|
|
21
20
|
* @param {Object} [opts.headers] - Optional headers
|
|
22
21
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
23
22
|
*/
|
|
@@ -29,11 +28,10 @@ function networkFactory({client, internalAuthTokenProvider}) {
|
|
|
29
28
|
});
|
|
30
29
|
},
|
|
31
30
|
/**
|
|
32
|
-
* GET /network/agencies/:
|
|
31
|
+
* GET /network/agencies/:agencyId - get an agency by id. API does not accept query params.
|
|
33
32
|
* @param {Object} opts
|
|
34
33
|
* @param {string} [opts.token] - API key
|
|
35
|
-
* @param {string} opts.sellerId - Seller/agency id (ObjectId)
|
|
36
|
-
* @param {Object} [opts.query] - Query params
|
|
34
|
+
* @param {string} opts.sellerId - Seller/agency id (ObjectId), maps to path agencyId
|
|
37
35
|
* @param {Object} [opts.headers] - Optional headers
|
|
38
36
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
39
37
|
*/
|
|
@@ -45,13 +43,12 @@ function networkFactory({client, internalAuthTokenProvider}) {
|
|
|
45
43
|
});
|
|
46
44
|
},
|
|
47
45
|
/**
|
|
48
|
-
* PUT /network/agencies/:sellerId - update an agency.
|
|
46
|
+
* PUT /network/agencies/:sellerId - update an agency. API does not accept query params.
|
|
49
47
|
* @param {Object} opts
|
|
50
48
|
* @param {string} [opts.token] - API key
|
|
51
49
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
52
50
|
* @param {string} opts.sellerId - Seller/agency id (ObjectId)
|
|
53
51
|
* @param {Object} opts.agency - Agency payload
|
|
54
|
-
* @param {Object} [opts.query] - Query params
|
|
55
52
|
* @param {Object} [opts.headers] - Optional headers
|
|
56
53
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
57
54
|
*/
|
|
@@ -90,7 +87,7 @@ function networkFactory({client, internalAuthTokenProvider}) {
|
|
|
90
87
|
});
|
|
91
88
|
},
|
|
92
89
|
/**
|
|
93
|
-
* PUT /network/agencies/remove-product - remove product from agency.
|
|
90
|
+
* PUT /network/agencies/remove-product - remove product from agency. API does not accept query params.
|
|
94
91
|
* @param {Object} opts
|
|
95
92
|
* @param {string} [opts.token] - API key
|
|
96
93
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -111,7 +108,7 @@ function networkFactory({client, internalAuthTokenProvider}) {
|
|
|
111
108
|
});
|
|
112
109
|
},
|
|
113
110
|
/**
|
|
114
|
-
* PUT /network/agencies/remove-fare - remove fare from agency.
|
|
111
|
+
* PUT /network/agencies/remove-fare - remove fare from agency. API does not accept query params.
|
|
115
112
|
* @param {Object} opts
|
|
116
113
|
* @param {string} [opts.token] - API key
|
|
117
114
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -11,11 +11,10 @@ const {
|
|
|
11
11
|
*/
|
|
12
12
|
function operationSettingsFactory({client, internalAuthTokenProvider}) {
|
|
13
13
|
/**
|
|
14
|
-
* GET /operation-settings - get operation settings.
|
|
14
|
+
* GET /operation-settings - get operation settings. API does not accept query params.
|
|
15
15
|
* @param {Object} opts
|
|
16
16
|
* @param {string} [opts.token] - API key
|
|
17
17
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
18
|
-
* @param {Object} [opts.query] - Query params
|
|
19
18
|
* @param {Object} [opts.headers] - Optional headers
|
|
20
19
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
21
20
|
*/
|
|
@@ -28,7 +27,7 @@ function operationSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
/**
|
|
31
|
-
* PUT /operation-settings - update operation settings.
|
|
30
|
+
* PUT /operation-settings - update operation settings. API does not accept query params.
|
|
32
31
|
* @param {Object} opts
|
|
33
32
|
* @param {string} [opts.token] - API key
|
|
34
33
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -1,7 +1,25 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
1
2
|
const {
|
|
2
3
|
authorizationHeaders
|
|
3
4
|
} = require("./../endpoints_helpers.js");
|
|
4
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Query params for GET /people-lookups (btrz-api-accounts). See get-handler getSpec().
|
|
8
|
+
* @typedef {Object} PeopleLookupsListQuery
|
|
9
|
+
* @property {string} [dynamicFormId] - If provided, only include this dynamic form's data in response
|
|
10
|
+
* @property {string} [documentNumber] - Document number to search for
|
|
11
|
+
* @property {string} [documentTypeId] - Document type id to search for
|
|
12
|
+
* @property {string} [email] - Email to search for
|
|
13
|
+
* @property {string} [customerNumber] - Customer number to search for
|
|
14
|
+
* @property {string} [phone] - Phone to search for
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Query params for GET /people-lookups/:personId (btrz-api-accounts). See get-by-id-handler getSpec().
|
|
19
|
+
* @typedef {Object} PeopleLookupGetByIdQuery
|
|
20
|
+
* @property {string} [dynamicFormId] - If provided, only include this dynamic form's data in response
|
|
21
|
+
*/
|
|
22
|
+
|
|
5
23
|
/**
|
|
6
24
|
* Factory for people-lookups API (btrz-api-accounts).
|
|
7
25
|
* @param {Object} deps
|
|
@@ -15,8 +33,8 @@ function peopleLookupsFactory({client, internalAuthTokenProvider}) {
|
|
|
15
33
|
* @param {Object} opts
|
|
16
34
|
* @param {string} [opts.token] - API key
|
|
17
35
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
18
|
-
* @param {
|
|
19
|
-
* @param {string} [opts.providerId] - Provider id (ObjectId)
|
|
36
|
+
* @param {PeopleLookupsListQuery} [opts.query] - Query params (dynamicFormId, documentNumber, documentTypeId, email, customerNumber, phone)
|
|
37
|
+
* @param {string} [opts.providerId] - Provider id (ObjectId); merged into query for provider context
|
|
20
38
|
* @param {Object} [opts.headers] - Optional headers
|
|
21
39
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
22
40
|
*/
|
|
@@ -34,9 +52,9 @@ function peopleLookupsFactory({client, internalAuthTokenProvider}) {
|
|
|
34
52
|
* @param {Object} opts
|
|
35
53
|
* @param {string} [opts.token] - API key
|
|
36
54
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
37
|
-
* @param {Object} [opts.query] - Query params
|
|
38
55
|
* @param {string} opts.personId - Person id (ObjectId)
|
|
39
|
-
* @param {
|
|
56
|
+
* @param {PeopleLookupGetByIdQuery} [opts.query] - Query params: dynamicFormId
|
|
57
|
+
* @param {string} [opts.providerId] - Provider id (ObjectId); merged into query for provider context
|
|
40
58
|
* @param {Object} [opts.headers] - Optional headers
|
|
41
59
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
42
60
|
*/
|
|
@@ -51,13 +69,13 @@ function peopleLookupsFactory({client, internalAuthTokenProvider}) {
|
|
|
51
69
|
}
|
|
52
70
|
|
|
53
71
|
/**
|
|
54
|
-
* PUT /people-lookups/:personId - update a person lookup.
|
|
72
|
+
* PUT /people-lookups/:personId - update a person lookup. API getSpec() does not define query params.
|
|
55
73
|
* @param {Object} opts
|
|
56
74
|
* @param {string} [opts.token] - API key
|
|
57
75
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
58
76
|
* @param {string} opts.personId - Person id (ObjectId)
|
|
59
77
|
* @param {Object} opts.person - Person payload
|
|
60
|
-
* @param {string} [opts.providerId] - Provider id (ObjectId)
|
|
78
|
+
* @param {string} [opts.providerId] - Provider id (ObjectId); sent as query for provider context
|
|
61
79
|
* @param {Object} [opts.headers] - Optional headers
|
|
62
80
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
63
81
|
*/
|
|
@@ -78,12 +96,12 @@ function peopleLookupsFactory({client, internalAuthTokenProvider}) {
|
|
|
78
96
|
}
|
|
79
97
|
|
|
80
98
|
/**
|
|
81
|
-
* POST /people-lookups - create a person lookup.
|
|
99
|
+
* POST /people-lookups - create a person lookup. API getSpec() does not define query params.
|
|
82
100
|
* @param {Object} opts
|
|
83
101
|
* @param {string} [opts.token] - API key
|
|
84
102
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
85
103
|
* @param {Object} opts.person - Person payload
|
|
86
|
-
* @param {string} [opts.providerId] - Provider id (ObjectId)
|
|
104
|
+
* @param {string} [opts.providerId] - Provider id (ObjectId); sent as query for provider context
|
|
87
105
|
* @param {Object} [opts.headers] - Optional headers
|
|
88
106
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
89
107
|
*/
|
|
@@ -104,7 +122,7 @@ function peopleLookupsFactory({client, internalAuthTokenProvider}) {
|
|
|
104
122
|
}
|
|
105
123
|
|
|
106
124
|
/**
|
|
107
|
-
* DELETE /people-lookups/:personId - remove a person lookup.
|
|
125
|
+
* DELETE /people-lookups/:personId - remove a person lookup. API does not accept query params.
|
|
108
126
|
* @param {Object} opts
|
|
109
127
|
* @param {string} [opts.token] - API key
|
|
110
128
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -11,7 +11,7 @@ const {
|
|
|
11
11
|
*/
|
|
12
12
|
function pointToPointSettingsFactory({client, internalAuthTokenProvider}) {
|
|
13
13
|
/**
|
|
14
|
-
* GET /point-to-point-settings - get point-to-point settings.
|
|
14
|
+
* GET /point-to-point-settings - get point-to-point settings. API does not accept query params.
|
|
15
15
|
* @param {Object} opts
|
|
16
16
|
* @param {string} [opts.token] - API key
|
|
17
17
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -26,7 +26,7 @@ function pointToPointSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* PUT /point-to-point-settings - update point-to-point settings.
|
|
29
|
+
* PUT /point-to-point-settings - update point-to-point settings. API does not accept query params.
|
|
30
30
|
* @param {Object} opts
|
|
31
31
|
* @param {string} [opts.token] - API key
|
|
32
32
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -11,10 +11,9 @@ const {
|
|
|
11
11
|
*/
|
|
12
12
|
function printSettingsFactory({client, internalAuthTokenProvider}) {
|
|
13
13
|
/**
|
|
14
|
-
* GET /print-settings - list/get print settings.
|
|
14
|
+
* GET /print-settings - list/get print settings. API does not accept query params.
|
|
15
15
|
* @param {Object} opts
|
|
16
16
|
* @param {string} [opts.token] - API key
|
|
17
|
-
* @param {Object} [opts.query] - Query params
|
|
18
17
|
* @param {Object} [opts.headers] - Optional headers
|
|
19
18
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
20
19
|
*/
|
|
@@ -27,7 +26,7 @@ function printSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
|
-
* PUT /print-settings - update print settings.
|
|
29
|
+
* PUT /print-settings - update print settings. API does not accept query params.
|
|
31
30
|
* @param {Object} opts
|
|
32
31
|
* @param {string} [opts.token] - API key
|
|
33
32
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -2,6 +2,38 @@ const {
|
|
|
2
2
|
authorizationHeaders
|
|
3
3
|
} = require("./../endpoints_helpers.js");
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Query params for GET /print-templates (btrz-api-accounts). See get-handler getSpec().
|
|
7
|
+
* @typedef {Object} PrintTemplatesListQuery
|
|
8
|
+
* @property {string} [providerId] - Filter by provider account (ObjectId)
|
|
9
|
+
* @property {string} [type] - Filter by type (product, ssr, transaction, invoice, shift, manifest, order, voucher, etc.)
|
|
10
|
+
* @property {string} [channel] - backoffice | agency-backoffice | websales | agency-websales
|
|
11
|
+
* @property {string} [consumer] - printer | attachment
|
|
12
|
+
* @property {string} [format] - default | esc
|
|
13
|
+
* @property {string} [productFamily] - Only when type is product or invoice
|
|
14
|
+
* @property {string} [productId] - Only when type is product or invoice (ObjectId)
|
|
15
|
+
* @property {string} [sort] - relevance | natural | createdAsc | createdDesc | updatedAsc | updatedDesc
|
|
16
|
+
* @property {string} [templateCollectionId] - default | epsontmt88v | zebralp2844 | zebragx420t
|
|
17
|
+
* @property {string} [status] - draft | published
|
|
18
|
+
* @property {string} [mainTemplateAccountId] - Filter by source provider (ObjectId)
|
|
19
|
+
* @property {number} [page] - 1-based page for pagination
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Query params for GET /print-templates/:printTemplateId (btrz-api-accounts). See get-by-id-handler getSpec().
|
|
24
|
+
* @typedef {Object} PrintTemplateGetByIdQuery
|
|
25
|
+
* @property {string} [providerId] - Filter by provider; template must belong to this account, current, or global (ObjectId)
|
|
26
|
+
* @property {string} [superUserId] - Super user ID for authentication (ObjectId)
|
|
27
|
+
* @property {string} [superUserHash] - Super user hash for authentication
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Query params for PUT /print-templates/:printTemplateId/versions/:versionId (btrz-api-accounts). See put-version-handler getSpec().
|
|
32
|
+
* @typedef {Object} PrintTemplateVersionUpdateQuery
|
|
33
|
+
* @property {string} [superUserId] - Super user ID (ObjectId)
|
|
34
|
+
* @property {string} [superUserHash] - Super user hash for authentication
|
|
35
|
+
*/
|
|
36
|
+
|
|
5
37
|
/**
|
|
6
38
|
* Factory for print-templates API (btrz-api-accounts).
|
|
7
39
|
* @param {Object} deps
|
|
@@ -14,7 +46,7 @@ function printSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
14
46
|
* GET /print-templates - list print templates.
|
|
15
47
|
* @param {Object} opts
|
|
16
48
|
* @param {string} [opts.token] - API key
|
|
17
|
-
* @param {
|
|
49
|
+
* @param {PrintTemplatesListQuery} [opts.query] - Query params (providerId, type, channel, consumer, format, etc.)
|
|
18
50
|
* @param {Object} [opts.headers] - Optional headers
|
|
19
51
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
20
52
|
*/
|
|
@@ -30,8 +62,8 @@ function printSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
30
62
|
* GET /print-templates/:printTemplateId - get a print template.
|
|
31
63
|
* @param {Object} opts
|
|
32
64
|
* @param {string} [opts.token] - API key
|
|
33
|
-
* @param {Object} [opts.query] - Query params
|
|
34
65
|
* @param {string} opts.printTemplateId - Print template id (ObjectId)
|
|
66
|
+
* @param {PrintTemplateGetByIdQuery} [opts.query] - Query params (providerId, superUserId, superUserHash)
|
|
35
67
|
* @param {Object} [opts.headers] - Optional headers
|
|
36
68
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
37
69
|
*/
|
|
@@ -44,13 +76,12 @@ function printSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
44
76
|
}
|
|
45
77
|
|
|
46
78
|
/**
|
|
47
|
-
* PUT /print-templates/:printTemplateId - update a print template.
|
|
79
|
+
* PUT /print-templates/:printTemplateId - update a print template. API getSpec() does not define query params.
|
|
48
80
|
* @param {Object} opts
|
|
49
81
|
* @param {string} [opts.token] - API key
|
|
50
82
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
51
83
|
* @param {string} opts.printTemplateId - Print template id (ObjectId)
|
|
52
84
|
* @param {Object} opts.printTemplate - Print template payload
|
|
53
|
-
* @param {Object} [opts.query] - Query params
|
|
54
85
|
* @param {Object} [opts.headers] - Optional headers
|
|
55
86
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
56
87
|
*/
|
|
@@ -69,7 +100,7 @@ function printSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
69
100
|
}
|
|
70
101
|
|
|
71
102
|
/**
|
|
72
|
-
* POST /print-templates - create a print template.
|
|
103
|
+
* POST /print-templates - create a print template. API does not accept query params.
|
|
73
104
|
* @param {Object} opts
|
|
74
105
|
* @param {string} [opts.token] - API key
|
|
75
106
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -91,7 +122,7 @@ function printSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
91
122
|
}
|
|
92
123
|
|
|
93
124
|
/**
|
|
94
|
-
* DELETE /print-templates/:printTemplateId - remove a print template.
|
|
125
|
+
* DELETE /print-templates/:printTemplateId - remove a print template. API does not accept query params.
|
|
95
126
|
* @param {Object} opts
|
|
96
127
|
* @param {string} [opts.token] - API key
|
|
97
128
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -111,13 +142,13 @@ function printSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
111
142
|
|
|
112
143
|
const versions = {
|
|
113
144
|
/**
|
|
114
|
-
* PUT /print-templates/:printTemplateId/versions/:versionId -
|
|
145
|
+
* PUT /print-templates/:printTemplateId/versions/:versionId - roll back print template to a version.
|
|
115
146
|
* @param {Object} opts
|
|
116
147
|
* @param {string} [opts.token] - API key
|
|
117
148
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
118
149
|
* @param {string} opts.printTemplateId - Print template id (ObjectId)
|
|
119
|
-
* @param {string} opts.versionId -
|
|
120
|
-
* @param {
|
|
150
|
+
* @param {string} opts.versionId - Zero-based version index (e.g. "0", "1")
|
|
151
|
+
* @param {PrintTemplateVersionUpdateQuery} [opts.query] - Query params (superUserId, superUserHash)
|
|
121
152
|
* @param {Object} [opts.headers] - Optional headers
|
|
122
153
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
123
154
|
*/
|
|
@@ -11,10 +11,9 @@ const {
|
|
|
11
11
|
*/
|
|
12
12
|
function printersFactory({client, internalAuthTokenProvider}) {
|
|
13
13
|
/**
|
|
14
|
-
* GET /printers - list printers.
|
|
14
|
+
* GET /printers - list printers. API does not accept query params.
|
|
15
15
|
* @param {Object} opts
|
|
16
16
|
* @param {string} [opts.token] - API key
|
|
17
|
-
* @param {Object} [opts.query] - Query params
|
|
18
17
|
* @param {Object} [opts.headers] - Optional headers
|
|
19
18
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
20
19
|
*/
|
|
@@ -11,7 +11,7 @@ const {
|
|
|
11
11
|
*/
|
|
12
12
|
function revenueManagementSettingsFactory({client, internalAuthTokenProvider}) {
|
|
13
13
|
/**
|
|
14
|
-
* GET /rms-settings - get revenue management settings.
|
|
14
|
+
* GET /rms-settings - get revenue management settings. API does not accept query params.
|
|
15
15
|
* @param {Object} opts
|
|
16
16
|
* @param {string} [opts.token] - API key
|
|
17
17
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -26,7 +26,7 @@ function revenueManagementSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* PUT /rms-settings - update revenue management settings.
|
|
29
|
+
* PUT /rms-settings - update revenue management settings. API does not accept query params.
|
|
30
30
|
* @param {Object} opts
|
|
31
31
|
* @param {string} [opts.token] - API key
|
|
32
32
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -9,7 +9,7 @@ const {authorizationHeaders} = require("./../endpoints_helpers.js");
|
|
|
9
9
|
*/
|
|
10
10
|
function s3BucketsFactory({client, internalAuthTokenProvider}) {
|
|
11
11
|
/**
|
|
12
|
-
* PUT /account/s3Buckets/:bucketId - update an S3 bucket.
|
|
12
|
+
* PUT /account/s3Buckets/:bucketId - update an S3 bucket. API does not accept query params.
|
|
13
13
|
* @param {Object} opts
|
|
14
14
|
* @param {string} [opts.token] - API key
|
|
15
15
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -28,7 +28,7 @@ function s3BucketsFactory({client, internalAuthTokenProvider}) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* DELETE /account/s3Buckets/:bucketId - remove an S3 bucket.
|
|
31
|
+
* DELETE /account/s3Buckets/:bucketId - remove an S3 bucket. API does not accept query params.
|
|
32
32
|
* @param {Object} opts
|
|
33
33
|
* @param {string} [opts.token] - API key
|
|
34
34
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -45,7 +45,7 @@ function s3BucketsFactory({client, internalAuthTokenProvider}) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* POST /account/s3Buckets - create an S3 bucket.
|
|
48
|
+
* POST /account/s3Buckets - create an S3 bucket. API does not accept query params.
|
|
49
49
|
* @param {Object} opts
|
|
50
50
|
* @param {string} [opts.token] - API key
|
|
51
51
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -11,11 +11,10 @@ const {
|
|
|
11
11
|
*/
|
|
12
12
|
function salesforceSettingsFactory({client, internalAuthTokenProvider}) {
|
|
13
13
|
/**
|
|
14
|
-
* GET /salesforce-settings - get Salesforce settings.
|
|
14
|
+
* GET /salesforce-settings - get Salesforce settings. API does not accept query params.
|
|
15
15
|
* @param {Object} opts
|
|
16
16
|
* @param {string} [opts.token] - API key
|
|
17
17
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
18
|
-
* @param {Object} [opts.query] - Query params
|
|
19
18
|
* @param {Object} [opts.headers] - Optional headers
|
|
20
19
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
21
20
|
*/
|
|
@@ -28,7 +27,7 @@ function salesforceSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
/**
|
|
31
|
-
* PUT /salesforce-settings - update Salesforce settings.
|
|
30
|
+
* PUT /salesforce-settings - update Salesforce settings. API does not accept query params.
|
|
32
31
|
* @param {Object} opts
|
|
33
32
|
* @param {string} [opts.token] - API key
|
|
34
33
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -11,11 +11,10 @@ const {
|
|
|
11
11
|
*/
|
|
12
12
|
function shiftSettingsFactory({client, internalAuthTokenProvider}) {
|
|
13
13
|
/**
|
|
14
|
-
* GET /shift-settings - get shift settings.
|
|
14
|
+
* GET /shift-settings - get shift settings. API does not accept query params.
|
|
15
15
|
* @param {Object} opts
|
|
16
16
|
* @param {string} [opts.token] - API key
|
|
17
17
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
18
|
-
* @param {Object} [opts.query] - Query params
|
|
19
18
|
* @param {Object} [opts.headers] - Optional headers
|
|
20
19
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
21
20
|
*/
|
|
@@ -28,7 +27,7 @@ function shiftSettingsFactory({client, internalAuthTokenProvider}) {
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
/**
|
|
31
|
-
* PUT /shift-settings - update shift settings.
|
|
30
|
+
* PUT /shift-settings - update shift settings. API does not accept query params.
|
|
32
31
|
* @param {Object} opts
|
|
33
32
|
* @param {string} [opts.token] - API key
|
|
34
33
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
/* eslint-disable max-len */
|
|
2
2
|
const {authorizationHeaders} = require("./../endpoints_helpers.js");
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Query params for GET /shifts (btrz-api-accounts). See get-shifts handler getSpec().
|
|
6
|
+
* @typedef {Object} ShiftsListQuery
|
|
7
|
+
* @property {string} [includeActivity] - 'true'|'false'; default 'true' (include sales activity)
|
|
8
|
+
* @property {string} [status] - open | closed (ignored if pendingShiftClosure is true)
|
|
9
|
+
* @property {string} [pendingShiftClosure] - 'true'|'false'; return shifts that need shift closure
|
|
10
|
+
* @property {string} [locationId] - Filter by location (ObjectId)
|
|
11
|
+
* @property {string} [providerId] - Provider for payments (ObjectId)
|
|
12
|
+
* @property {string} [sort] - closedAsc | closedDesc | openedAsc
|
|
13
|
+
* @property {string} [fromDate] - Start date (YYYY-MM-DD); requires toDate
|
|
14
|
+
* @property {string} [toDate] - End date (YYYY-MM-DD); requires fromDate
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Query params for GET /shifts/location-closures (btrz-api-accounts). See get-location-closures handler getSpec().
|
|
19
|
+
* @typedef {Object} LocationClosuresListQuery
|
|
20
|
+
* @property {string} [sort] - createdAsc | createdDesc | updatedAsc | updatedDesc
|
|
21
|
+
* @property {number} [page] - Page number
|
|
22
|
+
* @property {string} [fromDate] - Start date (YYYY-MM-DD); requires toDate
|
|
23
|
+
* @property {string} [toDate] - End date (YYYY-MM-DD); requires fromDate
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Query params for GET /shifts/:locationId/purchase-limit-payments (btrz-api-accounts). See getSpec().
|
|
28
|
+
* @typedef {Object} PurchaseLimitPaymentsQuery
|
|
29
|
+
* @property {string} day - Date of payments (YYYY-MM-DD). Required.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Query params for GET /shifts/:shiftId/sales-summary (btrz-api-accounts). See get-shift-sales-summary getSpec().
|
|
34
|
+
* @typedef {Object} ShiftSalesSummaryQuery
|
|
35
|
+
* @property {string} [type] - 'revenueOperatingCompany' to aggregate by revenue operating company
|
|
36
|
+
* @property {boolean} [depositable] - Get only depositable payment types
|
|
37
|
+
* @property {boolean} [paymentsAndRefundsDetails] - Include payments and refunds details per payment type and currency
|
|
38
|
+
*/
|
|
39
|
+
|
|
4
40
|
/**
|
|
5
41
|
* Factory for shifts API (btrz-api-accounts).
|
|
6
42
|
* @param {Object} deps
|
|
@@ -14,7 +50,7 @@ function shiftsFactory({client, internalAuthTokenProvider}) {
|
|
|
14
50
|
* @param {Object} opts
|
|
15
51
|
* @param {string} [opts.token] - API key
|
|
16
52
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
17
|
-
* @param {
|
|
53
|
+
* @param {ShiftsListQuery} [opts.query] - Query params
|
|
18
54
|
* @param {Object} [opts.headers] - Optional headers
|
|
19
55
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
20
56
|
*/
|
|
@@ -28,7 +64,7 @@ function shiftsFactory({client, internalAuthTokenProvider}) {
|
|
|
28
64
|
}
|
|
29
65
|
|
|
30
66
|
/**
|
|
31
|
-
* GET /shift/user/:userId - get shift for user.
|
|
67
|
+
* GET /shift/user/:userId - get shift for user. API does not accept query params.
|
|
32
68
|
* @param {Object} opts
|
|
33
69
|
* @param {string} [opts.token] - API key
|
|
34
70
|
* @param {string} opts.userId - User id (ObjectId)
|
|
@@ -62,13 +98,12 @@ function shiftsFactory({client, internalAuthTokenProvider}) {
|
|
|
62
98
|
}
|
|
63
99
|
|
|
64
100
|
/**
|
|
65
|
-
* PATCH /shifts/:shiftId - update a shift (operations).
|
|
101
|
+
* PATCH /shifts/:shiftId - update a shift (operations). API getSpec() does not define query params.
|
|
66
102
|
* @param {Object} opts
|
|
67
103
|
* @param {string} [opts.token] - API key
|
|
68
104
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
69
105
|
* @param {string} opts.shiftId - Shift id (ObjectId)
|
|
70
106
|
* @param {Object} opts.operations - Operations payload
|
|
71
|
-
* @param {Object} [opts.query] - Query params
|
|
72
107
|
* @param {Object} [opts.headers] - Optional headers
|
|
73
108
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
74
109
|
*/
|
|
@@ -157,7 +192,7 @@ function shiftsFactory({client, internalAuthTokenProvider}) {
|
|
|
157
192
|
* @param {Object} opts
|
|
158
193
|
* @param {string} [opts.token] - API key
|
|
159
194
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
160
|
-
* @param {
|
|
195
|
+
* @param {ShiftsListQuery} [opts.query] - Query params
|
|
161
196
|
* @param {Object} [opts.headers] - Optional headers
|
|
162
197
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
163
198
|
*/
|
|
@@ -170,7 +205,7 @@ function shiftsFactory({client, internalAuthTokenProvider}) {
|
|
|
170
205
|
});
|
|
171
206
|
},
|
|
172
207
|
/**
|
|
173
|
-
* GET /shifts/location-closures/:locationClosureId - get a location closure.
|
|
208
|
+
* GET /shifts/location-closures/:locationClosureId - get a location closure. API does not accept query params.
|
|
174
209
|
* @param {Object} opts
|
|
175
210
|
* @param {string} [opts.token] - API key
|
|
176
211
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -458,7 +493,7 @@ function shiftsFactory({client, internalAuthTokenProvider}) {
|
|
|
458
493
|
* @param {string} [opts.token] - API key
|
|
459
494
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
460
495
|
* @param {string} opts.locationId - Location id (ObjectId)
|
|
461
|
-
* @param {
|
|
496
|
+
* @param {PurchaseLimitPaymentsQuery} [opts.query] - Query params; day (YYYY-MM-DD) is required
|
|
462
497
|
* @param {Object} [opts.headers] - Optional headers
|
|
463
498
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
464
499
|
*/
|
|
@@ -478,7 +513,7 @@ function shiftsFactory({client, internalAuthTokenProvider}) {
|
|
|
478
513
|
* @param {string} [opts.token] - API key
|
|
479
514
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
480
515
|
* @param {string} opts.shiftId - Shift id (ObjectId)
|
|
481
|
-
* @param {
|
|
516
|
+
* @param {ShiftSalesSummaryQuery} [opts.query] - Query params (type, depositable, paymentsAndRefundsDetails)
|
|
482
517
|
* @param {Object} [opts.headers] - Optional headers
|
|
483
518
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
484
519
|
*/
|