@crossly/sdk 0.3.0 → 0.3.2
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/README.md +8 -12
- package/dist/client.d.ts +3 -12
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +16 -86
- package/dist/client.js.map +1 -1
- package/dist/create-client-carnival.d.ts +44 -0
- package/dist/create-client-carnival.d.ts.map +1 -0
- package/dist/create-client-carnival.js +31 -0
- package/dist/create-client-carnival.js.map +1 -0
- package/dist/create-client-data-sync.d.ts +13 -0
- package/dist/create-client-data-sync.d.ts.map +1 -0
- package/dist/create-client-data-sync.js +7 -0
- package/dist/create-client-data-sync.js.map +1 -0
- package/dist/create-client-store-ops.d.ts +53 -0
- package/dist/create-client-store-ops.d.ts.map +1 -0
- package/dist/create-client-store-ops.js +27 -0
- package/dist/create-client-store-ops.js.map +1 -0
- package/dist/create-client.d.ts +57 -34
- package/dist/create-client.d.ts.map +1 -1
- package/dist/create-client.js +42 -26
- package/dist/create-client.js.map +1 -1
- package/dist/errors.d.ts +8 -18
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +17 -20
- package/dist/errors.js.map +1 -1
- package/dist/generated/api-types.d.ts +12587 -675
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/generated/operations.d.ts +3337 -513
- package/dist/generated/operations.d.ts.map +1 -1
- package/dist/generated/operations.js +384 -31
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +21 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/public-exports.d.ts +14 -5
- package/dist/public-exports.d.ts.map +1 -1
- package/dist/public-exports.js +5 -0
- package/dist/public-exports.js.map +1 -1
- package/dist/resources/account-billing.d.ts +26 -0
- package/dist/resources/account-billing.d.ts.map +1 -1
- package/dist/resources/account-billing.js +20 -0
- package/dist/resources/account-billing.js.map +1 -1
- package/dist/resources/account.d.ts +8 -85
- package/dist/resources/account.d.ts.map +1 -1
- package/dist/resources/account.js +14 -86
- package/dist/resources/account.js.map +1 -1
- package/dist/resources/ai-integrations.d.ts +36 -0
- package/dist/resources/ai-integrations.d.ts.map +1 -1
- package/dist/resources/ai-integrations.js +4 -0
- package/dist/resources/ai-integrations.js.map +1 -1
- package/dist/resources/analytics-benchmarks.d.ts +67 -0
- package/dist/resources/analytics-benchmarks.d.ts.map +1 -0
- package/dist/resources/analytics-benchmarks.js +24 -0
- package/dist/resources/analytics-benchmarks.js.map +1 -0
- package/dist/resources/analytics-goals.d.ts +100 -0
- package/dist/resources/analytics-goals.d.ts.map +1 -0
- package/dist/resources/analytics-goals.js +45 -0
- package/dist/resources/analytics-goals.js.map +1 -0
- package/dist/resources/analytics.d.ts +108 -0
- package/dist/resources/analytics.d.ts.map +1 -0
- package/dist/resources/analytics.js +110 -0
- package/dist/resources/analytics.js.map +1 -0
- package/dist/resources/automation-activity.d.ts +32 -0
- package/dist/resources/automation-activity.d.ts.map +1 -0
- package/dist/resources/automation-activity.js +26 -0
- package/dist/resources/automation-activity.js.map +1 -0
- package/dist/resources/automation-guardrails.d.ts +42 -0
- package/dist/resources/automation-guardrails.d.ts.map +1 -0
- package/dist/resources/automation-guardrails.js +31 -0
- package/dist/resources/automation-guardrails.js.map +1 -0
- package/dist/resources/automation.d.ts +1 -1
- package/dist/resources/automation.d.ts.map +1 -1
- package/dist/resources/books.d.ts +147 -1
- package/dist/resources/books.d.ts.map +1 -1
- package/dist/resources/books.js +53 -0
- package/dist/resources/books.js.map +1 -1
- package/dist/resources/branding.d.ts +38 -3
- package/dist/resources/branding.d.ts.map +1 -1
- package/dist/resources/branding.js +12 -2
- package/dist/resources/branding.js.map +1 -1
- package/dist/resources/buyer/after-purchase.d.ts +26 -4
- package/dist/resources/buyer/after-purchase.d.ts.map +1 -1
- package/dist/resources/buyer/after-purchase.js +26 -4
- package/dist/resources/buyer/after-purchase.js.map +1 -1
- package/dist/resources/buyer/catalog-surface.d.ts +291 -0
- package/dist/resources/buyer/catalog-surface.d.ts.map +1 -0
- package/dist/resources/buyer/catalog-surface.js +314 -0
- package/dist/resources/buyer/catalog-surface.js.map +1 -0
- package/dist/resources/buyer/commerce.d.ts +15 -3
- package/dist/resources/buyer/commerce.d.ts.map +1 -1
- package/dist/resources/buyer/commerce.js +15 -3
- package/dist/resources/buyer/commerce.js.map +1 -1
- package/dist/resources/buyer/gift-cards.d.ts +12 -2
- package/dist/resources/buyer/gift-cards.d.ts.map +1 -1
- package/dist/resources/buyer/gift-cards.js +12 -2
- package/dist/resources/buyer/gift-cards.js.map +1 -1
- package/dist/resources/buyer/xmarket.d.ts +2 -0
- package/dist/resources/buyer/xmarket.d.ts.map +1 -1
- package/dist/resources/buyer/xmarket.js +2 -0
- package/dist/resources/buyer/xmarket.js.map +1 -1
- package/dist/resources/buyer.d.ts +216 -244
- package/dist/resources/buyer.d.ts.map +1 -1
- package/dist/resources/buyer.js +192 -263
- package/dist/resources/buyer.js.map +1 -1
- package/dist/resources/calendar.d.ts +48 -0
- package/dist/resources/calendar.d.ts.map +1 -0
- package/dist/resources/calendar.js +23 -0
- package/dist/resources/calendar.js.map +1 -0
- package/dist/resources/campaigns.d.ts +212 -0
- package/dist/resources/campaigns.d.ts.map +1 -0
- package/dist/resources/campaigns.js +60 -0
- package/dist/resources/campaigns.js.map +1 -0
- package/dist/resources/catalog.d.ts +34 -162
- package/dist/resources/catalog.d.ts.map +1 -1
- package/dist/resources/catalog.js +46 -230
- package/dist/resources/catalog.js.map +1 -1
- package/dist/resources/categories.d.ts +10 -2
- package/dist/resources/categories.d.ts.map +1 -1
- package/dist/resources/categories.js.map +1 -1
- package/dist/resources/channel-inventory.d.ts +24 -0
- package/dist/resources/channel-inventory.d.ts.map +1 -1
- package/dist/resources/channel-inventory.js +14 -0
- package/dist/resources/channel-inventory.js.map +1 -1
- package/dist/resources/comms.d.ts +90 -17
- package/dist/resources/comms.d.ts.map +1 -1
- package/dist/resources/comms.js +68 -16
- package/dist/resources/comms.js.map +1 -1
- package/dist/resources/connection-health.d.ts +56 -0
- package/dist/resources/connection-health.d.ts.map +1 -0
- package/dist/resources/connection-health.js +19 -0
- package/dist/resources/connection-health.js.map +1 -0
- package/dist/resources/connection-panels.d.ts +37 -0
- package/dist/resources/connection-panels.d.ts.map +1 -0
- package/dist/resources/connection-panels.js +33 -0
- package/dist/resources/connection-panels.js.map +1 -0
- package/dist/resources/consignment.d.ts +248 -0
- package/dist/resources/consignment.d.ts.map +1 -0
- package/dist/resources/consignment.js +64 -0
- package/dist/resources/consignment.js.map +1 -0
- package/dist/resources/custom-data.d.ts +149 -0
- package/dist/resources/custom-data.d.ts.map +1 -0
- package/dist/resources/custom-data.js +112 -0
- package/dist/resources/custom-data.js.map +1 -0
- package/dist/resources/customers-types.d.ts +86 -0
- package/dist/resources/customers-types.d.ts.map +1 -1
- package/dist/resources/customers.d.ts +16 -1
- package/dist/resources/customers.d.ts.map +1 -1
- package/dist/resources/customers.js +32 -0
- package/dist/resources/customers.js.map +1 -1
- package/dist/resources/delist-outcomes.d.ts +77 -0
- package/dist/resources/delist-outcomes.d.ts.map +1 -0
- package/dist/resources/delist-outcomes.js +39 -0
- package/dist/resources/delist-outcomes.js.map +1 -0
- package/dist/resources/devices.d.ts +90 -0
- package/dist/resources/devices.d.ts.map +1 -1
- package/dist/resources/devices.js +36 -0
- package/dist/resources/devices.js.map +1 -1
- package/dist/resources/discount-programs.d.ts +175 -0
- package/dist/resources/discount-programs.d.ts.map +1 -1
- package/dist/resources/discount-programs.js +33 -0
- package/dist/resources/discount-programs.js.map +1 -1
- package/dist/resources/discount-promos.d.ts +80 -0
- package/dist/resources/discount-promos.d.ts.map +1 -0
- package/dist/resources/discount-promos.js +35 -0
- package/dist/resources/discount-promos.js.map +1 -0
- package/dist/resources/discovery.d.ts +12 -74
- package/dist/resources/discovery.d.ts.map +1 -1
- package/dist/resources/discovery.js +16 -81
- package/dist/resources/discovery.js.map +1 -1
- package/dist/resources/drops.d.ts +15 -3
- package/dist/resources/drops.d.ts.map +1 -1
- package/dist/resources/drops.js +15 -3
- package/dist/resources/drops.js.map +1 -1
- package/dist/resources/event-policies.d.ts +4 -3
- package/dist/resources/event-policies.d.ts.map +1 -1
- package/dist/resources/event-policies.js +4 -3
- package/dist/resources/event-policies.js.map +1 -1
- package/dist/resources/funding.d.ts +17 -0
- package/dist/resources/funding.d.ts.map +1 -1
- package/dist/resources/funding.js +12 -0
- package/dist/resources/funding.js.map +1 -1
- package/dist/resources/hub-agent-changes.d.ts +96 -0
- package/dist/resources/hub-agent-changes.d.ts.map +1 -0
- package/dist/resources/hub-agent-changes.js +34 -0
- package/dist/resources/hub-agent-changes.js.map +1 -0
- package/dist/resources/hub-programs.d.ts +40 -1
- package/dist/resources/hub-programs.d.ts.map +1 -1
- package/dist/resources/hub-programs.js +7 -0
- package/dist/resources/hub-programs.js.map +1 -1
- package/dist/resources/imports.d.ts +54 -0
- package/dist/resources/imports.d.ts.map +1 -1
- package/dist/resources/imports.js +15 -0
- package/dist/resources/imports.js.map +1 -1
- package/dist/resources/inventory-bulk-quantity.d.ts +24 -0
- package/dist/resources/inventory-bulk-quantity.d.ts.map +1 -0
- package/dist/resources/inventory-bulk-quantity.js +3 -0
- package/dist/resources/inventory-bulk-quantity.js.map +1 -0
- package/dist/resources/inventory-kits.d.ts +42 -0
- package/dist/resources/inventory-kits.d.ts.map +1 -0
- package/dist/resources/inventory-kits.js +29 -0
- package/dist/resources/inventory-kits.js.map +1 -0
- package/dist/resources/inventory-labels.d.ts +70 -0
- package/dist/resources/inventory-labels.d.ts.map +1 -0
- package/dist/resources/inventory-labels.js +34 -0
- package/dist/resources/inventory-labels.js.map +1 -0
- package/dist/resources/inventory-locations.d.ts +107 -0
- package/dist/resources/inventory-locations.d.ts.map +1 -0
- package/dist/resources/inventory-locations.js +63 -0
- package/dist/resources/inventory-locations.js.map +1 -0
- package/dist/resources/inventory-stale.d.ts +33 -0
- package/dist/resources/inventory-stale.d.ts.map +1 -0
- package/dist/resources/inventory-stale.js +3 -0
- package/dist/resources/inventory-stale.js.map +1 -0
- package/dist/resources/inventory.d.ts +144 -0
- package/dist/resources/inventory.d.ts.map +1 -0
- package/dist/resources/inventory.js +221 -0
- package/dist/resources/inventory.js.map +1 -0
- package/dist/resources/linear.d.ts +157 -0
- package/dist/resources/linear.d.ts.map +1 -0
- package/dist/resources/linear.js +77 -0
- package/dist/resources/linear.js.map +1 -0
- package/dist/resources/listing-automation.d.ts +59 -0
- package/dist/resources/listing-automation.d.ts.map +1 -0
- package/dist/resources/listing-automation.js +28 -0
- package/dist/resources/listing-automation.js.map +1 -0
- package/dist/resources/listing-defaults.d.ts +57 -0
- package/dist/resources/listing-defaults.d.ts.map +1 -0
- package/dist/resources/listing-defaults.js +20 -0
- package/dist/resources/listing-defaults.js.map +1 -0
- package/dist/resources/listing-duplicate.d.ts +46 -0
- package/dist/resources/listing-duplicate.d.ts.map +1 -0
- package/dist/resources/listing-duplicate.js +6 -0
- package/dist/resources/listing-duplicate.js.map +1 -0
- package/dist/resources/listing-issues.d.ts +73 -0
- package/dist/resources/listing-issues.d.ts.map +1 -0
- package/dist/resources/listing-issues.js +44 -0
- package/dist/resources/listing-issues.js.map +1 -0
- package/dist/resources/listing-list.d.ts +41 -0
- package/dist/resources/listing-list.d.ts.map +1 -0
- package/dist/resources/listing-list.js +13 -0
- package/dist/resources/listing-list.js.map +1 -0
- package/dist/resources/listing-photos.d.ts +59 -0
- package/dist/resources/listing-photos.d.ts.map +1 -0
- package/dist/resources/listing-photos.js +32 -0
- package/dist/resources/listing-photos.js.map +1 -0
- package/dist/resources/listing-proposals.d.ts +111 -0
- package/dist/resources/listing-proposals.d.ts.map +1 -0
- package/dist/resources/listing-proposals.js +70 -0
- package/dist/resources/listing-proposals.js.map +1 -0
- package/dist/resources/listing-revisions.d.ts +88 -0
- package/dist/resources/listing-revisions.d.ts.map +1 -0
- package/dist/resources/listing-revisions.js +57 -0
- package/dist/resources/listing-revisions.js.map +1 -0
- package/dist/resources/listing-schedule.d.ts +56 -0
- package/dist/resources/listing-schedule.d.ts.map +1 -0
- package/dist/resources/listing-schedule.js +40 -0
- package/dist/resources/listing-schedule.js.map +1 -0
- package/dist/resources/listing-word-rules.d.ts +96 -0
- package/dist/resources/listing-word-rules.d.ts.map +1 -0
- package/dist/resources/listing-word-rules.js +41 -0
- package/dist/resources/listing-word-rules.js.map +1 -0
- package/dist/resources/listings-csv.d.ts +105 -0
- package/dist/resources/listings-csv.d.ts.map +1 -0
- package/dist/resources/listings-csv.js +42 -0
- package/dist/resources/listings-csv.js.map +1 -0
- package/dist/resources/listings-search.d.ts +47 -0
- package/dist/resources/listings-search.d.ts.map +1 -0
- package/dist/resources/listings-search.js +2 -0
- package/dist/resources/listings-search.js.map +1 -0
- package/dist/resources/live-destinations.d.ts +89 -0
- package/dist/resources/live-destinations.d.ts.map +1 -0
- package/dist/resources/live-destinations.js +34 -0
- package/dist/resources/live-destinations.js.map +1 -0
- package/dist/resources/live-shows.d.ts +88 -2
- package/dist/resources/live-shows.d.ts.map +1 -1
- package/dist/resources/live-shows.js +21 -2
- package/dist/resources/live-shows.js.map +1 -1
- package/dist/resources/marketing.d.ts +141 -0
- package/dist/resources/marketing.d.ts.map +1 -0
- package/dist/resources/marketing.js +48 -0
- package/dist/resources/marketing.js.map +1 -0
- package/dist/resources/marketplace-ads.d.ts +214 -0
- package/dist/resources/marketplace-ads.d.ts.map +1 -0
- package/dist/resources/marketplace-ads.js +56 -0
- package/dist/resources/marketplace-ads.js.map +1 -0
- package/dist/resources/marketplace-fit.d.ts +58 -0
- package/dist/resources/marketplace-fit.d.ts.map +1 -0
- package/dist/resources/marketplace-fit.js +16 -0
- package/dist/resources/marketplace-fit.js.map +1 -0
- package/dist/resources/notion.d.ts +80 -0
- package/dist/resources/notion.d.ts.map +1 -0
- package/dist/resources/notion.js +54 -0
- package/dist/resources/notion.js.map +1 -0
- package/dist/resources/offer-rules.d.ts +125 -0
- package/dist/resources/offer-rules.d.ts.map +1 -0
- package/dist/resources/offer-rules.js +57 -0
- package/dist/resources/offer-rules.js.map +1 -0
- package/dist/resources/order-cancel-requests.d.ts +68 -0
- package/dist/resources/order-cancel-requests.d.ts.map +1 -0
- package/dist/resources/order-cancel-requests.js +32 -0
- package/dist/resources/order-cancel-requests.js.map +1 -0
- package/dist/resources/orders-bulk.d.ts +94 -0
- package/dist/resources/orders-bulk.d.ts.map +1 -0
- package/dist/resources/orders-bulk.js +58 -0
- package/dist/resources/orders-bulk.js.map +1 -0
- package/dist/resources/orders-ship-groups.d.ts +72 -0
- package/dist/resources/orders-ship-groups.d.ts.map +1 -0
- package/dist/resources/orders-ship-groups.js +29 -0
- package/dist/resources/orders-ship-groups.js.map +1 -0
- package/dist/resources/orders-types.d.ts +53 -0
- package/dist/resources/orders-types.d.ts.map +1 -1
- package/dist/resources/orders.d.ts +31 -48
- package/dist/resources/orders.d.ts.map +1 -1
- package/dist/resources/orders.js +19 -64
- package/dist/resources/orders.js.map +1 -1
- package/dist/resources/price-rules.d.ts +18 -0
- package/dist/resources/price-rules.d.ts.map +1 -1
- package/dist/resources/price-rules.js.map +1 -1
- package/dist/resources/publish-tasks.d.ts +32 -0
- package/dist/resources/publish-tasks.d.ts.map +1 -0
- package/dist/resources/publish-tasks.js +37 -0
- package/dist/resources/publish-tasks.js.map +1 -0
- package/dist/resources/rentals.d.ts +2 -2
- package/dist/resources/rentals.d.ts.map +1 -1
- package/dist/resources/rentals.js.map +1 -1
- package/dist/resources/reorder-points.d.ts +34 -0
- package/dist/resources/reorder-points.d.ts.map +1 -0
- package/dist/resources/reorder-points.js +20 -0
- package/dist/resources/reorder-points.js.map +1 -0
- package/dist/resources/restock-orders.d.ts +111 -0
- package/dist/resources/restock-orders.d.ts.map +1 -0
- package/dist/resources/restock-orders.js +67 -0
- package/dist/resources/restock-orders.js.map +1 -0
- package/dist/resources/returns.d.ts +92 -0
- package/dist/resources/returns.d.ts.map +1 -0
- package/dist/resources/returns.js +106 -0
- package/dist/resources/returns.js.map +1 -0
- package/dist/resources/seller-xmarket.d.ts +5 -5
- package/dist/resources/seller-xmarket.d.ts.map +1 -1
- package/dist/resources/seller-xmarket.js.map +1 -1
- package/dist/resources/sentry.d.ts +82 -0
- package/dist/resources/sentry.d.ts.map +1 -0
- package/dist/resources/sentry.js +49 -0
- package/dist/resources/sentry.js.map +1 -0
- package/dist/resources/sharing-schedules.d.ts +108 -0
- package/dist/resources/sharing-schedules.d.ts.map +1 -0
- package/dist/resources/sharing-schedules.js +34 -0
- package/dist/resources/sharing-schedules.js.map +1 -0
- package/dist/resources/shipping-add-ons-types.d.ts +63 -0
- package/dist/resources/shipping-add-ons-types.d.ts.map +1 -0
- package/dist/resources/shipping-add-ons-types.js +2 -0
- package/dist/resources/shipping-add-ons-types.js.map +1 -0
- package/dist/resources/slack-app.d.ts +66 -0
- package/dist/resources/slack-app.d.ts.map +1 -0
- package/dist/resources/slack-app.js +48 -0
- package/dist/resources/slack-app.js.map +1 -0
- package/dist/resources/stock-adjustments.d.ts +62 -0
- package/dist/resources/stock-adjustments.d.ts.map +1 -0
- package/dist/resources/stock-adjustments.js +35 -0
- package/dist/resources/stock-adjustments.js.map +1 -0
- package/dist/resources/stock-counts.d.ts +73 -0
- package/dist/resources/stock-counts.d.ts.map +1 -0
- package/dist/resources/stock-counts.js +45 -0
- package/dist/resources/stock-counts.js.map +1 -0
- package/dist/resources/store-credit.d.ts +119 -0
- package/dist/resources/store-credit.d.ts.map +1 -0
- package/dist/resources/store-credit.js +47 -0
- package/dist/resources/store-credit.js.map +1 -0
- package/dist/resources/store-reviews.d.ts +103 -0
- package/dist/resources/store-reviews.d.ts.map +1 -0
- package/dist/resources/store-reviews.js +39 -0
- package/dist/resources/store-reviews.js.map +1 -0
- package/dist/resources/store-settings-copy.d.ts +82 -0
- package/dist/resources/store-settings-copy.d.ts.map +1 -0
- package/dist/resources/store-settings-copy.js +56 -0
- package/dist/resources/store-settings-copy.js.map +1 -0
- package/dist/resources/store-setup.d.ts +49 -0
- package/dist/resources/store-setup.d.ts.map +1 -0
- package/dist/resources/store-setup.js +18 -0
- package/dist/resources/store-setup.js.map +1 -0
- package/dist/resources/storefront-site.d.ts +100 -0
- package/dist/resources/storefront-site.d.ts.map +1 -1
- package/dist/resources/storefront-site.js +26 -0
- package/dist/resources/storefront-site.js.map +1 -1
- package/dist/resources/storefronts.d.ts +58 -0
- package/dist/resources/storefronts.d.ts.map +1 -1
- package/dist/resources/storefronts.js +13 -0
- package/dist/resources/storefronts.js.map +1 -1
- package/dist/resources/stories-live-studio.d.ts +256 -1
- package/dist/resources/stories-live-studio.d.ts.map +1 -1
- package/dist/resources/stories-live-studio.js +65 -1
- package/dist/resources/stories-live-studio.js.map +1 -1
- package/dist/resources/supabase.d.ts +64 -0
- package/dist/resources/supabase.d.ts.map +1 -0
- package/dist/resources/supabase.js +35 -0
- package/dist/resources/supabase.js.map +1 -0
- package/dist/resources/tax.d.ts +128 -0
- package/dist/resources/tax.d.ts.map +1 -0
- package/dist/resources/tax.js +132 -0
- package/dist/resources/tax.js.map +1 -0
- package/dist/resources/team.d.ts +68 -1
- package/dist/resources/team.d.ts.map +1 -1
- package/dist/resources/team.js +65 -0
- package/dist/resources/team.js.map +1 -1
- package/dist/resources/templates.d.ts +19 -3
- package/dist/resources/templates.d.ts.map +1 -1
- package/dist/resources/templates.js +17 -2
- package/dist/resources/templates.js.map +1 -1
- package/dist/resources/units.d.ts +43 -1
- package/dist/resources/units.d.ts.map +1 -1
- package/dist/resources/units.js +17 -1
- package/dist/resources/units.js.map +1 -1
- package/dist/resources/variation-groups.js +10 -10
- package/dist/resources/variation-groups.js.map +1 -1
- package/dist/resources/vault-markets-mm.d.ts +6 -28
- package/dist/resources/vault-markets-mm.d.ts.map +1 -1
- package/dist/resources/vault-markets-mm.js.map +1 -1
- package/dist/resources/vault-markets-supply.d.ts +28 -0
- package/dist/resources/vault-markets-supply.d.ts.map +1 -1
- package/dist/resources/vault-markets-supply.js +12 -0
- package/dist/resources/vault-markets-supply.js.map +1 -1
- package/dist/resources/workflows-types.d.ts +115 -0
- package/dist/resources/workflows-types.d.ts.map +1 -1
- package/dist/resources/workflows.d.ts +26 -2
- package/dist/resources/workflows.d.ts.map +1 -1
- package/dist/resources/workflows.js +34 -0
- package/dist/resources/workflows.js.map +1 -1
- package/dist/resources/world-conventions.d.ts +3 -3
- package/dist/resources/world-conventions.d.ts.map +1 -1
- package/dist/resources/world-conventions.js.map +1 -1
- package/dist/resources.d.ts +36 -1
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +36 -1
- package/dist/resources.js.map +1 -1
- package/dist/settings-exports.d.ts +18 -0
- package/dist/settings-exports.d.ts.map +1 -0
- package/dist/settings-exports.js +14 -0
- package/dist/settings-exports.js.map +1 -0
- package/dist/transport/index.d.ts +96 -0
- package/dist/transport/index.d.ts.map +1 -0
- package/dist/transport/index.js +162 -0
- package/dist/transport/index.js.map +1 -0
- package/dist/types.d.ts +72 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js +14 -5
- package/dist/webhooks.js.map +1 -1
- package/package.json +4 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notion.d.ts","sourceRoot":"","sources":["../../src/resources/notion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAU3E,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,CAAC;AAEhE,MAAM,WAAW,gBAAgB;IAC/B,mEAAmE;IACnE,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,eAAe,GAAG,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC/D,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE;QAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IA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K,CAAC,IAAI,GAAE,SAAc;cACS,gBAAgB,EAAE;;IAGrD,8FAA8F;IAC9F,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,GAAE,SAAc;cACT,gBAAgB;;IAQnD,6DAA6D;IAC7D,cAAc,CAAC,QAAQ,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,IAAI,GAAE,SAAc;cACjC,gBAAgB;;IAQnD,mCAAmC;IACnC,OAAO,CAAC,IAAI,GAAE,eAAe,GAAG,SAAc;cACX;YAAE,MAAM,EAAE,IAAI,CAAA;SAAE;;IAQnD,yGAAyG;IACzG,UAAU,CAAC,IAAI,GAAE,SAAc;cACI;YAAE,YAAY,EAAE,OAAO,CAAA;SAAE;;CAE7D"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export class NotionResource {
|
|
2
|
+
http;
|
|
3
|
+
constructor(http) {
|
|
4
|
+
this.http = http;
|
|
5
|
+
}
|
|
6
|
+
/** Status: workspace, parent page, the Crossly databases, last sync, rows per database, the last error. */
|
|
7
|
+
status(opts = {}) {
|
|
8
|
+
return this.http.request({ method: 'GET', path: '/v1/integrations/notion', storefrontId: opts.storefrontId });
|
|
9
|
+
}
|
|
10
|
+
/** The Notion consent URL to open in a browser (Notion shows its page picker there). */
|
|
11
|
+
connectUrl(opts = {}) {
|
|
12
|
+
return this.http.request({
|
|
13
|
+
method: 'POST',
|
|
14
|
+
path: '/v1/integrations/notion/connect-url',
|
|
15
|
+
storefrontId: opts.storefrontId,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/** The pages shared with Crossly, to pick the one the databases go under. */
|
|
19
|
+
pages(opts = {}) {
|
|
20
|
+
return this.http.request({ method: 'GET', path: '/v1/integrations/notion/pages', storefrontId: opts.storefrontId });
|
|
21
|
+
}
|
|
22
|
+
/** Sync under this page: makes the Crossly databases there and queues the first full sync. */
|
|
23
|
+
setPage(pageId, opts = {}) {
|
|
24
|
+
return this.http.request({
|
|
25
|
+
method: 'PUT',
|
|
26
|
+
path: '/v1/integrations/notion/page',
|
|
27
|
+
body: { pageId },
|
|
28
|
+
storefrontId: opts.storefrontId,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/** Turn the optional Crossly Listings database on or off. */
|
|
32
|
+
updateSettings(settings, opts = {}) {
|
|
33
|
+
return this.http.request({
|
|
34
|
+
method: 'PATCH',
|
|
35
|
+
path: '/v1/integrations/notion/settings',
|
|
36
|
+
body: settings,
|
|
37
|
+
storefrontId: opts.storefrontId,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/** Sync now: queue a full sync. */
|
|
41
|
+
syncNow(opts = {}) {
|
|
42
|
+
return this.http.request({
|
|
43
|
+
method: 'POST',
|
|
44
|
+
path: '/v1/integrations/notion/sync',
|
|
45
|
+
idempotencyKey: opts.idempotencyKey,
|
|
46
|
+
storefrontId: opts.storefrontId,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/** Disconnect: Crossly revokes and forgets its token and stops syncing. The databases stay in Notion. */
|
|
50
|
+
disconnect(opts = {}) {
|
|
51
|
+
return this.http.request({ method: 'DELETE', path: '/v1/integrations/notion', storefrontId: opts.storefrontId });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=notion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notion.js","sourceRoot":"","sources":["../../src/resources/notion.ts"],"names":[],"mappings":"AAsCA,MAAM,OAAO,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,2GAA2G;IAC3G,MAAM,CAAC,OAAkB,EAAE;QACzB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAA6B,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,yBAAyB,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;IAC5I,CAAC;IAED,wFAAwF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IAAI,CAAC,OAAO,CAAsC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,yBAAyB,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;IACxJ,CAAC;CACF"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { HttpClient, IdempotencyOpts } from './_shared.js';
|
|
2
|
+
/** Who a rule set offers to: everyone who liked the listing (Poshmark-style) or its watchers (eBay). */
|
|
3
|
+
export type OfferRuleMode = 'likers' | 'watchers';
|
|
4
|
+
/** The master condition enum; `new` is New with tags. */
|
|
5
|
+
export type OfferRuleCondition = 'new' | 'like_new' | 'good' | 'fair' | 'poor' | 'refurbished';
|
|
6
|
+
export interface OfferRuleBand {
|
|
7
|
+
fromCents: number;
|
|
8
|
+
/** Exclusive; null = no upper bound (the last band only). */
|
|
9
|
+
toCents: number | null;
|
|
10
|
+
discountPercent: number;
|
|
11
|
+
}
|
|
12
|
+
export interface OfferRuleConfig {
|
|
13
|
+
bands: OfferRuleBand[];
|
|
14
|
+
/** `original`: the band and the discount use the listing's first recorded price. Default `current`. */
|
|
15
|
+
basis?: 'current' | 'original';
|
|
16
|
+
exclusions?: {
|
|
17
|
+
conditions?: OfferRuleCondition[];
|
|
18
|
+
categories?: string[];
|
|
19
|
+
labels?: string[];
|
|
20
|
+
/** Never offer on a listing live for less than this many hours. */
|
|
21
|
+
listedWithinHours?: number | null;
|
|
22
|
+
skuContains?: string[];
|
|
23
|
+
titleContains?: string[];
|
|
24
|
+
};
|
|
25
|
+
/** Minutes between the like / watch and the offer, 5–180. Default 15. */
|
|
26
|
+
delayMinutes?: number;
|
|
27
|
+
/** Up to two more offers, each `afterHours` after the last (at least the marketplace's minimum) and deeper. */
|
|
28
|
+
followUps?: Array<{
|
|
29
|
+
afterHours: number;
|
|
30
|
+
extraPercent: number;
|
|
31
|
+
}>;
|
|
32
|
+
/** Likers only: discounted shipping on the offer. */
|
|
33
|
+
shippingFree?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface OfferRuleSet {
|
|
36
|
+
id: string;
|
|
37
|
+
platform: string;
|
|
38
|
+
mode: OfferRuleMode;
|
|
39
|
+
name: string;
|
|
40
|
+
active: boolean;
|
|
41
|
+
config: Required<OfferRuleConfig>;
|
|
42
|
+
workflowId: string;
|
|
43
|
+
storefrontId: string | null;
|
|
44
|
+
lastRunAt: string | null;
|
|
45
|
+
runCount: number;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
updatedAt: string;
|
|
48
|
+
}
|
|
49
|
+
export interface OfferRulePlatform {
|
|
50
|
+
platform: string;
|
|
51
|
+
mode: OfferRuleMode;
|
|
52
|
+
followUpMinHours: number;
|
|
53
|
+
maxDiscountPercent: number;
|
|
54
|
+
}
|
|
55
|
+
export interface OfferRuleCopyResult {
|
|
56
|
+
platform: string;
|
|
57
|
+
status: 'created' | 'updated' | 'exists' | 'unsupported' | 'invalid';
|
|
58
|
+
ruleSetId: string | null;
|
|
59
|
+
message: string | null;
|
|
60
|
+
}
|
|
61
|
+
export interface OfferRuleActivityItem {
|
|
62
|
+
runId: string;
|
|
63
|
+
ruleSetId: string;
|
|
64
|
+
platform: string;
|
|
65
|
+
listingId: string | null;
|
|
66
|
+
title: string | null;
|
|
67
|
+
outcome: 'sent' | 'skipped' | 'waiting' | 'failed';
|
|
68
|
+
step: string | null;
|
|
69
|
+
reason: string | null;
|
|
70
|
+
discountPercent: number | null;
|
|
71
|
+
offersSent: number;
|
|
72
|
+
at: string;
|
|
73
|
+
}
|
|
74
|
+
export declare class OfferRulesResource {
|
|
75
|
+
private http;
|
|
76
|
+
constructor(http: HttpClient);
|
|
77
|
+
/** Every rule set; `meta.platforms` lists where one can be made and who it offers to there. */
|
|
78
|
+
list(): Promise<{
|
|
79
|
+
data: OfferRuleSet[];
|
|
80
|
+
meta: {
|
|
81
|
+
platforms: OfferRulePlatform[];
|
|
82
|
+
};
|
|
83
|
+
}>;
|
|
84
|
+
get(id: string): Promise<{
|
|
85
|
+
data: OfferRuleSet;
|
|
86
|
+
}>;
|
|
87
|
+
/** 409 `offer_rule_set_exists` when the marketplace already has rules in this store. */
|
|
88
|
+
create(body: {
|
|
89
|
+
platform: string;
|
|
90
|
+
name?: string;
|
|
91
|
+
config: OfferRuleConfig;
|
|
92
|
+
active?: boolean;
|
|
93
|
+
}, opts?: IdempotencyOpts): Promise<{
|
|
94
|
+
data: OfferRuleSet;
|
|
95
|
+
}>;
|
|
96
|
+
/** Any field; `config` replaces the whole config. `{ active }` turns the rules on or off. */
|
|
97
|
+
update(id: string, body: {
|
|
98
|
+
name?: string;
|
|
99
|
+
config?: OfferRuleConfig;
|
|
100
|
+
active?: boolean;
|
|
101
|
+
}, opts?: IdempotencyOpts): Promise<{
|
|
102
|
+
data: OfferRuleSet;
|
|
103
|
+
}>;
|
|
104
|
+
delete(id: string): Promise<{
|
|
105
|
+
data: {
|
|
106
|
+
id: string;
|
|
107
|
+
deleted: true;
|
|
108
|
+
};
|
|
109
|
+
}>;
|
|
110
|
+
/** Copy the config to other marketplaces; each reports created, updated (overwrite), exists, unsupported or invalid. */
|
|
111
|
+
copy(id: string, body: {
|
|
112
|
+
platforms: string[];
|
|
113
|
+
overwrite?: boolean;
|
|
114
|
+
}, opts?: IdempotencyOpts): Promise<{
|
|
115
|
+
data: OfferRuleCopyResult[];
|
|
116
|
+
}>;
|
|
117
|
+
/** Newest first: per like / watch, the offer sent or the step and reason it was skipped. */
|
|
118
|
+
activity(opts?: {
|
|
119
|
+
ruleSetId?: string;
|
|
120
|
+
limit?: number;
|
|
121
|
+
}): Promise<{
|
|
122
|
+
data: OfferRuleActivityItem[];
|
|
123
|
+
}>;
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=offer-rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-rules.d.ts","sourceRoot":"","sources":["../../src/resources/offer-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eA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AAE,iBAAiB,EAAE,CAAA;SAAE;;IAG3F,GAAG,CAAC,EAAE,EAAE,MAAM;cACqB,YAAY;;IAG/C,wFAAwF;IACxF,MAAM,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,eAAe,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,IAAI,GAAE,eAAoB;cACpF,YAAY;;IAQ/C,6FAA6F;IAC7F,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,eAAe,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,IAAI,GAAE,eAAoB;cAC/E,YAAY;;IAQ/C,MAAM,CAAC,EAAE,EAAE,MAAM;cACkB;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,IAAI,CAAA;SAAE;;IAGhE,wHAAwH;IACxH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,SAAS,EAAE,MAAM,EAAE,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,IAAI,GAAE,eAAoB;cAC5D,mBAAmB,EAAE;;IAQxD,4FAA4F;IAC5F,QAAQ,CAAC,IAAI,GAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO;cACvB,qBAAqB,EAAE;;CAM3D"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// ─── Offer rules ────────────────────────────────────────────────────────────
|
|
2
|
+
//
|
|
3
|
+
// Per marketplace: the price bands an offer to likers / watchers is priced by, the listings never offered, the
|
|
4
|
+
// delay and the follow-ups. Each rule set compiles into one workflow (read-only in workflows: change it here).
|
|
5
|
+
// Every offer respects the seller's offer floor.
|
|
6
|
+
export class OfferRulesResource {
|
|
7
|
+
http;
|
|
8
|
+
constructor(http) {
|
|
9
|
+
this.http = http;
|
|
10
|
+
}
|
|
11
|
+
/** Every rule set; `meta.platforms` lists where one can be made and who it offers to there. */
|
|
12
|
+
list() {
|
|
13
|
+
return this.http.request({ method: 'GET', path: '/v1/offer-rules' });
|
|
14
|
+
}
|
|
15
|
+
get(id) {
|
|
16
|
+
return this.http.request({ method: 'GET', path: `/v1/offer-rules/${encodeURIComponent(id)}` });
|
|
17
|
+
}
|
|
18
|
+
/** 409 `offer_rule_set_exists` when the marketplace already has rules in this store. */
|
|
19
|
+
create(body, opts = {}) {
|
|
20
|
+
return this.http.request({
|
|
21
|
+
method: 'POST',
|
|
22
|
+
path: '/v1/offer-rules',
|
|
23
|
+
body: body,
|
|
24
|
+
idempotencyKey: opts.idempotencyKey,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/** Any field; `config` replaces the whole config. `{ active }` turns the rules on or off. */
|
|
28
|
+
update(id, body, opts = {}) {
|
|
29
|
+
return this.http.request({
|
|
30
|
+
method: 'PATCH',
|
|
31
|
+
path: `/v1/offer-rules/${encodeURIComponent(id)}`,
|
|
32
|
+
body: body,
|
|
33
|
+
idempotencyKey: opts.idempotencyKey,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
delete(id) {
|
|
37
|
+
return this.http.request({ method: 'DELETE', path: `/v1/offer-rules/${encodeURIComponent(id)}` });
|
|
38
|
+
}
|
|
39
|
+
/** Copy the config to other marketplaces; each reports created, updated (overwrite), exists, unsupported or invalid. */
|
|
40
|
+
copy(id, body, opts = {}) {
|
|
41
|
+
return this.http.request({
|
|
42
|
+
method: 'POST',
|
|
43
|
+
path: `/v1/offer-rules/${encodeURIComponent(id)}/copy`,
|
|
44
|
+
body: body,
|
|
45
|
+
idempotencyKey: opts.idempotencyKey,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/** Newest first: per like / watch, the offer sent or the step and reason it was skipped. */
|
|
49
|
+
activity(opts = {}) {
|
|
50
|
+
return this.http.request({
|
|
51
|
+
method: 'GET',
|
|
52
|
+
path: '/v1/offer-rules/activity',
|
|
53
|
+
query: { ruleSetId: opts.ruleSetId, limit: opts.limit },
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=offer-rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offer-rules.js","sourceRoot":"","sources":["../../src/resources/offer-rules.ts"],"names":[],"mappings":"AA8EA,+EAA+E;AAC/E,EAAE;AACF,+GAA+G;AAC/G,+GAA+G;AAC/G,iDAAiD;AAEjD,MAAM,OAAO,kBAAkB;IACT;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,+FAA+F;IAC/F,IAAI;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAqE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAC3I,CAAC;IAED,GAAG,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAyB,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACzH,CAAC;IAED,wFAAwF;IACxF,MAAM,CAAC,IAAoF,EAAE,OAAwB,EAAE;QACrH,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAyB;YAC/C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,IAA6B;YACnC,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;IAED,6FAA6F;IAC7F,MAAM,CAAC,EAAU,EAAE,IAAmE,EAAE,OAAwB,EAAE;QAChH,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAyB;YAC/C,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,mBAAmB,kBAAkB,CAAC,EAAE,CAAC,EAAE;YACjD,IAAI,EAAE,IAA6B;YACnC,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAA0C,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,mBAAmB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC7I,CAAC;IAED,wHAAwH;IACxH,IAAI,CAAC,EAAU,EAAE,IAAkD,EAAE,OAAwB,EAAE;QAC7F,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAkC;YACxD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,mBAAmB,kBAAkB,CAAC,EAAE,CAAC,OAAO;YACtD,IAAI,EAAE,IAA6B;YACnC,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;IAED,4FAA4F;IAC5F,QAAQ,CAAC,OAA+C,EAAE;QACxD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAoC;YAC1D,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,0BAA0B;YAChC,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;SACxD,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { HttpClient, IdempotencyOpts } from './_shared.js';
|
|
2
|
+
/** A buyer's cancel request on one order (GET /v1/orders/:id/cancel-request). */
|
|
3
|
+
export interface CancelRequest {
|
|
4
|
+
/** The cancel_requested detected event the request came in as. */
|
|
5
|
+
eventId: string;
|
|
6
|
+
orderId: string;
|
|
7
|
+
platform: string;
|
|
8
|
+
/** open = waiting on you; approved / declined = answered; closed = shipped or cancelled before an answer. */
|
|
9
|
+
state: 'open' | 'approved' | 'declined' | 'closed';
|
|
10
|
+
eventStatus: string;
|
|
11
|
+
requestedAt: string;
|
|
12
|
+
/** Deadline to answer (eBay decides an unanswered request itself after three days); null when unknown. */
|
|
13
|
+
respondBy: string | null;
|
|
14
|
+
reason: string | null;
|
|
15
|
+
title: string | null;
|
|
16
|
+
buyer: string | null;
|
|
17
|
+
/** What the buyer gets back on an approve, when known. */
|
|
18
|
+
refund: {
|
|
19
|
+
amount: number;
|
|
20
|
+
currency: string | null;
|
|
21
|
+
} | null;
|
|
22
|
+
canApprove: boolean;
|
|
23
|
+
/** Crossly can cancel it on the marketplace itself; else approve there and respond with recordOnly: true. */
|
|
24
|
+
approveOnPlatform: boolean;
|
|
25
|
+
/** Crossly can send a decline to the marketplace (no marketplace offers it yet). */
|
|
26
|
+
declineOnPlatform: boolean;
|
|
27
|
+
response: {
|
|
28
|
+
decision: 'approved' | 'declined';
|
|
29
|
+
reason: string | null;
|
|
30
|
+
at: string;
|
|
31
|
+
by: string | null;
|
|
32
|
+
onPlatform: boolean;
|
|
33
|
+
} | null;
|
|
34
|
+
}
|
|
35
|
+
export interface CancelRequestResponse {
|
|
36
|
+
request: CancelRequest;
|
|
37
|
+
/** The answer reached the marketplace. */
|
|
38
|
+
platformDone: boolean;
|
|
39
|
+
/** What is left to do on the marketplace, in a sentence; null when nothing. */
|
|
40
|
+
nextStep: string | null;
|
|
41
|
+
}
|
|
42
|
+
export interface RespondCancelRequestBody {
|
|
43
|
+
decision: 'approve' | 'decline';
|
|
44
|
+
/** Decline: already_shipped | shipping_today | buyer_agreed | custom_made | other, or your own words. */
|
|
45
|
+
reason?: string;
|
|
46
|
+
/** Approve where Crossly cannot cancel on the marketplace: you approved it there; record it, send nothing. */
|
|
47
|
+
recordOnly?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** Buyers asking to cancel an order. Reached as `client.orders.cancelRequests`. */
|
|
50
|
+
export declare class OrderCancelRequestsResource {
|
|
51
|
+
private http;
|
|
52
|
+
constructor(http: HttpClient);
|
|
53
|
+
/** Every cancel request still waiting on you, newest first. */
|
|
54
|
+
list(): Promise<{
|
|
55
|
+
data: CancelRequest[];
|
|
56
|
+
}>;
|
|
57
|
+
/** The cancel request on this order, or `data: null` when the buyer has not asked. */
|
|
58
|
+
get(orderId: string): Promise<{
|
|
59
|
+
data: CancelRequest | null;
|
|
60
|
+
}>;
|
|
61
|
+
/**
|
|
62
|
+
* Approve or decline it. Approve cancels the order on the marketplace and restocks (a Crossly-marketplace order
|
|
63
|
+
* refunds the buyer: needs orders:refund). Decline is recorded; Crossly cannot send it to a marketplace yet, so
|
|
64
|
+
* `nextStep` says to decline it there before `respondBy`. 409 cancel_request_answered on a second answer.
|
|
65
|
+
*/
|
|
66
|
+
respond(orderId: string, body: RespondCancelRequestBody, opts?: IdempotencyOpts): Promise<CancelRequestResponse>;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=order-cancel-requests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-cancel-requests.d.ts","sourceRoot":"","sources":["../../src/resources/order-cancel-requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEhE,iFAAiF;AACjF,MAAM,WAAW,aAAa;IAC5B,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,6GAA6G;IAC7G,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;IACnD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,0GAA0G;IAC1G,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAA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yers asking to cancel an order. Reached as `client.orders.cancelRequests`. */
|
|
2
|
+
export class OrderCancelRequestsResource {
|
|
3
|
+
http;
|
|
4
|
+
constructor(http) {
|
|
5
|
+
this.http = http;
|
|
6
|
+
}
|
|
7
|
+
/** Every cancel request still waiting on you, newest first. */
|
|
8
|
+
list() {
|
|
9
|
+
return this.http.request({ method: 'GET', path: '/v1/orders/cancel-requests' });
|
|
10
|
+
}
|
|
11
|
+
/** The cancel request on this order, or `data: null` when the buyer has not asked. */
|
|
12
|
+
get(orderId) {
|
|
13
|
+
return this.http.request({
|
|
14
|
+
method: 'GET',
|
|
15
|
+
path: `/v1/orders/${encodeURIComponent(orderId)}/cancel-request`,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Approve or decline it. Approve cancels the order on the marketplace and restocks (a Crossly-marketplace order
|
|
20
|
+
* refunds the buyer: needs orders:refund). Decline is recorded; Crossly cannot send it to a marketplace yet, so
|
|
21
|
+
* `nextStep` says to decline it there before `respondBy`. 409 cancel_request_answered on a second answer.
|
|
22
|
+
*/
|
|
23
|
+
respond(orderId, body, opts = {}) {
|
|
24
|
+
return this.http.request({
|
|
25
|
+
method: 'POST',
|
|
26
|
+
path: `/v1/orders/${encodeURIComponent(orderId)}/cancel-request/respond`,
|
|
27
|
+
body,
|
|
28
|
+
idempotencyKey: opts.idempotencyKey,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=order-cancel-requests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-cancel-requests.js","sourceRoot":"","sources":["../../src/resources/order-cancel-requests.ts"],"names":[],"mappings":"AAiDA,mFAAmF;AACnF,MAAM,OAAO,2BAA2B;IAClB;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,+DAA+D;IAC/D,IAAI;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAA4B,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,4BAA4B,EAAE,CAAC,CAAC;IAC7G,CAAC;IAED,sFAAsF;IACtF,GAAG,CAAC,OAAe;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAiC;YACvD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,cAAc,kBAAkB,CAAC,OAAO,CAAC,iBAAiB;SACjE,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,OAAe,EAAE,IAA8B,EAAE,OAAwB,EAAE;QACjF,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAwB;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc,kBAAkB,CAAC,OAAO,CAAC,yBAAyB;YACxE,IAAI;YACJ,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { HttpClient, IdempotencyOpts, JsonObject } from './_shared.js';
|
|
2
|
+
/** One order's outcome in a bulk message / status call. */
|
|
3
|
+
export interface BulkOrderOutcome {
|
|
4
|
+
orderId: string;
|
|
5
|
+
ok: boolean;
|
|
6
|
+
/** bulk message: how it went (the order's channel, its existing conversation, or the managing app). */
|
|
7
|
+
via?: 'order' | 'conversation' | 'relay';
|
|
8
|
+
error?: string;
|
|
9
|
+
code?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface BulkMessageResult {
|
|
12
|
+
results: BulkOrderOutcome[];
|
|
13
|
+
summary: {
|
|
14
|
+
total: number;
|
|
15
|
+
sent: number;
|
|
16
|
+
failed: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface BulkStatusResult {
|
|
20
|
+
updated: number;
|
|
21
|
+
skipped: number;
|
|
22
|
+
results: BulkOrderOutcome[];
|
|
23
|
+
}
|
|
24
|
+
export interface BulkCancelResult {
|
|
25
|
+
/** True when nothing was cancelled (confirm was not set). */
|
|
26
|
+
preview: boolean;
|
|
27
|
+
eligible: Array<{
|
|
28
|
+
orderId: string;
|
|
29
|
+
orderNumber: string | null;
|
|
30
|
+
platform: string;
|
|
31
|
+
reasons: string[];
|
|
32
|
+
}>;
|
|
33
|
+
ineligible: Array<{
|
|
34
|
+
orderId: string;
|
|
35
|
+
orderNumber: string | null;
|
|
36
|
+
platform: string | null;
|
|
37
|
+
reason: string;
|
|
38
|
+
}>;
|
|
39
|
+
results?: Array<{
|
|
40
|
+
orderId: string;
|
|
41
|
+
ok: boolean;
|
|
42
|
+
platformCancel?: string;
|
|
43
|
+
refundAmount?: number;
|
|
44
|
+
error?: string;
|
|
45
|
+
code?: string;
|
|
46
|
+
}>;
|
|
47
|
+
summary: {
|
|
48
|
+
total: number;
|
|
49
|
+
eligible: number;
|
|
50
|
+
ineligible: number;
|
|
51
|
+
cancelled: number;
|
|
52
|
+
failed: number;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The shipping-day bulk verbs on a selection of orders (Crossly order ids). Reached as `client.orders.bulk`.
|
|
57
|
+
* The table-only bulk verbs (delete, mark shipped, mark disputed, export) stay on `client.orders`.
|
|
58
|
+
*/
|
|
59
|
+
export declare class OrdersBulkResource {
|
|
60
|
+
private http;
|
|
61
|
+
constructor(http: HttpClient);
|
|
62
|
+
/**
|
|
63
|
+
* Message the buyers of up to 100 orders. Pass `body` or a saved reply's `templateId`; `{buyer}`, `{item}`,
|
|
64
|
+
* `{price}` and `{tracking}` are filled per order, and an order that cannot fill one is reported, not sent.
|
|
65
|
+
*/
|
|
66
|
+
message(body: {
|
|
67
|
+
orderIds: string[];
|
|
68
|
+
body?: string;
|
|
69
|
+
templateId?: string;
|
|
70
|
+
subject?: string;
|
|
71
|
+
}, opts?: IdempotencyOpts): Promise<BulkMessageResult>;
|
|
72
|
+
/** Mark shipped orders delivered (up to 500). Closed or unshipped orders are skipped with the reason. */
|
|
73
|
+
markDelivered(orderIds: string[], opts?: IdempotencyOpts): Promise<BulkStatusResult>;
|
|
74
|
+
/** Mark orders completed (up to 500). Closed or unshipped orders (other than local pickup) are skipped. */
|
|
75
|
+
markCompleted(orderIds: string[], opts?: IdempotencyOpts): Promise<BulkStatusResult>;
|
|
76
|
+
/** One PDF of the orders' existing labels (up to 100) in one paper size. Buys nothing. */
|
|
77
|
+
reprintLabels(body: {
|
|
78
|
+
orderIds: string[];
|
|
79
|
+
size?: '4x6' | 'letter' | 'a4' | 'native';
|
|
80
|
+
flip?: boolean;
|
|
81
|
+
}): Promise<JsonObject>;
|
|
82
|
+
/**
|
|
83
|
+
* Cancel up to 100 orders in two steps: without `confirm` it only checks (eligible / ineligible with the reason);
|
|
84
|
+
* with `confirm: true` it cancels the eligible ones. Crossly-marketplace orders refund their buyer (`refund`,
|
|
85
|
+
* default true; the token also needs orders:refund).
|
|
86
|
+
*/
|
|
87
|
+
cancel(body: {
|
|
88
|
+
orderIds: string[];
|
|
89
|
+
reason?: string;
|
|
90
|
+
refund?: boolean;
|
|
91
|
+
confirm?: boolean;
|
|
92
|
+
}, opts?: IdempotencyOpts): Promise<BulkCancelResult>;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=orders-bulk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orders-bulk.d.ts","sourceRoot":"","sources":["../../src/resources/orders-bulk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE5E,2DAA2D;AAC3D,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,OAAO,CAAC;IACZ,uGAAuG;IACvG,GAAG,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,OAAO,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,W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,qBAAa,kBAAkB;IACjB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;OAGG;IACH,OAAO,CACL,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,EAClF,IAAI,GAAE,eAAoB;IAU5B,yGAAyG;IACzG,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,IAAI,GAAE,eAAoB;IAS5D,2GAA2G;IAC3G,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,IAAI,GAAE,eAAoB;IAS5D,0FAA0F;IAC1F,aAAa,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE;IAIrG;;;;OAIG;IACH,MAAM,CACJ,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,EAClF,IAAI,GAAE,eAAoB;CAS7B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shipping-day bulk verbs on a selection of orders (Crossly order ids). Reached as `client.orders.bulk`.
|
|
3
|
+
* The table-only bulk verbs (delete, mark shipped, mark disputed, export) stay on `client.orders`.
|
|
4
|
+
*/
|
|
5
|
+
export class OrdersBulkResource {
|
|
6
|
+
http;
|
|
7
|
+
constructor(http) {
|
|
8
|
+
this.http = http;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Message the buyers of up to 100 orders. Pass `body` or a saved reply's `templateId`; `{buyer}`, `{item}`,
|
|
12
|
+
* `{price}` and `{tracking}` are filled per order, and an order that cannot fill one is reported, not sent.
|
|
13
|
+
*/
|
|
14
|
+
message(body, opts = {}) {
|
|
15
|
+
return this.http.request({
|
|
16
|
+
method: 'POST',
|
|
17
|
+
path: '/v1/orders/bulk-message',
|
|
18
|
+
body,
|
|
19
|
+
idempotencyKey: opts.idempotencyKey,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/** Mark shipped orders delivered (up to 500). Closed or unshipped orders are skipped with the reason. */
|
|
23
|
+
markDelivered(orderIds, opts = {}) {
|
|
24
|
+
return this.http.request({
|
|
25
|
+
method: 'POST',
|
|
26
|
+
path: '/v1/orders/bulk-mark-delivered',
|
|
27
|
+
body: { orderIds },
|
|
28
|
+
idempotencyKey: opts.idempotencyKey,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/** Mark orders completed (up to 500). Closed or unshipped orders (other than local pickup) are skipped. */
|
|
32
|
+
markCompleted(orderIds, opts = {}) {
|
|
33
|
+
return this.http.request({
|
|
34
|
+
method: 'POST',
|
|
35
|
+
path: '/v1/orders/bulk-mark-completed',
|
|
36
|
+
body: { orderIds },
|
|
37
|
+
idempotencyKey: opts.idempotencyKey,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/** One PDF of the orders' existing labels (up to 100) in one paper size. Buys nothing. */
|
|
41
|
+
reprintLabels(body) {
|
|
42
|
+
return this.http.request({ method: 'POST', path: '/v1/orders/bulk-reprint-labels', body });
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Cancel up to 100 orders in two steps: without `confirm` it only checks (eligible / ineligible with the reason);
|
|
46
|
+
* with `confirm: true` it cancels the eligible ones. Crossly-marketplace orders refund their buyer (`refund`,
|
|
47
|
+
* default true; the token also needs orders:refund).
|
|
48
|
+
*/
|
|
49
|
+
cancel(body, opts = {}) {
|
|
50
|
+
return this.http.request({
|
|
51
|
+
method: 'POST',
|
|
52
|
+
path: '/v1/orders/bulk-cancel',
|
|
53
|
+
body,
|
|
54
|
+
idempotencyKey: opts.idempotencyKey,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=orders-bulk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orders-bulk.js","sourceRoot":"","sources":["../../src/resources/orders-bulk.ts"],"names":[],"mappings":"AAgCA;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IACT;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;OAGG;IACH,OAAO,CACL,IAAkF,EAClF,OAAwB,EAAE;QAE1B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAoB;YAC1C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,yBAAyB;YAC/B,IAAI;YACJ,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;IAED,yGAAyG;IACzG,aAAa,CAAC,QAAkB,EAAE,OAAwB,EAAE;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAmB;YACzC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAgC;YACtC,IAAI,EAAE,EAAE,QAAQ,EAAE;YAClB,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;IAED,2GAA2G;IAC3G,aAAa,CAAC,QAAkB,EAAE,OAAwB,EAAE;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAmB;YACzC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAgC;YACtC,IAAI,EAAE,EAAE,QAAQ,EAAE;YAClB,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;IAED,0FAA0F;IAC1F,aAAa,CAAC,IAAuF;QACnG,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gCAAgC,EAAE,IAAI,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,IAAkF,EAClF,OAAwB,EAAE;QAE1B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAmB;YACzC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,wBAAwB;YAC9B,IAAI;YACJ,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { HttpClient, IdempotencyOpts } from './_shared.js';
|
|
2
|
+
/** One order in a ship-together group. Money is decimal dollars. */
|
|
3
|
+
export interface ShipGroupOrder {
|
|
4
|
+
id: string;
|
|
5
|
+
platform: string;
|
|
6
|
+
platformOrderId: string | null;
|
|
7
|
+
orderNumber: string | null;
|
|
8
|
+
buyerUsername: string | null;
|
|
9
|
+
itemTitle: string | null;
|
|
10
|
+
quantity: number;
|
|
11
|
+
shippingCharged: number | null;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
}
|
|
14
|
+
/** Unshipped orders that go to one buyer at one address (any marketplace): one parcel, one label. */
|
|
15
|
+
export interface ShipGroup {
|
|
16
|
+
key: string;
|
|
17
|
+
/** 'address': the same delivery address; 'buyer': the same buyer on one marketplace, no address yet. */
|
|
18
|
+
matchedBy: 'address' | 'buyer';
|
|
19
|
+
/** Get rates on this order (`client.orders.rates`), then `buyLabel` with that rateId. Null: none can carry it. */
|
|
20
|
+
leadOrderId: string | null;
|
|
21
|
+
parcelsSaved: number;
|
|
22
|
+
/** The recipients' names differ: check before packing together. */
|
|
23
|
+
namesDiffer: boolean;
|
|
24
|
+
/** "Portland, OR 97201", never the street. */
|
|
25
|
+
destination: string | null;
|
|
26
|
+
orders: ShipGroupOrder[];
|
|
27
|
+
}
|
|
28
|
+
export interface ShipGroupLabelResult {
|
|
29
|
+
key: string;
|
|
30
|
+
leadOrderId: string;
|
|
31
|
+
trackingNumber?: string;
|
|
32
|
+
labelUrl?: string;
|
|
33
|
+
carrier?: string;
|
|
34
|
+
service?: string;
|
|
35
|
+
members: Array<{
|
|
36
|
+
orderId: string;
|
|
37
|
+
ok: boolean;
|
|
38
|
+
trackingSubmitted?: boolean;
|
|
39
|
+
error?: string;
|
|
40
|
+
}>;
|
|
41
|
+
refunds: Array<{
|
|
42
|
+
orderId: string;
|
|
43
|
+
ok: boolean;
|
|
44
|
+
amount: number;
|
|
45
|
+
error?: string;
|
|
46
|
+
}>;
|
|
47
|
+
}
|
|
48
|
+
/** Ship together (`/v1/orders/ship-groups`). Reached as `client.orders.shipGroups`. */
|
|
49
|
+
export declare class OrdersShipGroupsResource {
|
|
50
|
+
private http;
|
|
51
|
+
constructor(http: HttpClient);
|
|
52
|
+
/** Every group in the to-ship queue, biggest first. */
|
|
53
|
+
list(): Promise<{
|
|
54
|
+
data: ShipGroup[];
|
|
55
|
+
}>;
|
|
56
|
+
/** One group; 404 once a member shipped or was cancelled. */
|
|
57
|
+
get(key: string): Promise<{
|
|
58
|
+
data: ShipGroup;
|
|
59
|
+
}>;
|
|
60
|
+
/**
|
|
61
|
+
* Buy ONE label for the group with a rate quoted on its lead order for the combined parcel, and put its tracking on
|
|
62
|
+
* every member (each marketplace is told). `refundShipping` refunds Crossly buyers the shipping the combined label
|
|
63
|
+
* did not use (the token needs orders:refund). A short shipping wallet answers 402 like a single label.
|
|
64
|
+
*/
|
|
65
|
+
buyLabel(key: string, body: {
|
|
66
|
+
rateId: string;
|
|
67
|
+
labelSize?: '4x6' | 'letter';
|
|
68
|
+
leadOrderId?: string;
|
|
69
|
+
refundShipping?: boolean;
|
|
70
|
+
}, opts?: IdempotencyOpts): Promise<ShipGroupLabelResult>;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=orders-ship-groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orders-ship-groups.d.ts","sour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CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9F,OAAO,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClF;AAED,uFAAuF;AACvF,qBAAa,wBAAwB;IACvB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,uDAAuD;IACvD,IAAI;cAC+B,SAAS,EAAE;;IAG9C,6DAA6D;IAC7D,GAAG,CAAC,GAAG,EAAE,MAAM;cACoB,SAAS;;IAG5C;;;;OAIG;IACH,QAAQ,CACN,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,EACtG,IAAI,GAAE,eAAoB;CAS7B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** Ship together (`/v1/orders/ship-groups`). Reached as `client.orders.shipGroups`. */
|
|
2
|
+
export class OrdersShipGroupsResource {
|
|
3
|
+
http;
|
|
4
|
+
constructor(http) {
|
|
5
|
+
this.http = http;
|
|
6
|
+
}
|
|
7
|
+
/** Every group in the to-ship queue, biggest first. */
|
|
8
|
+
list() {
|
|
9
|
+
return this.http.request({ method: 'GET', path: '/v1/orders/ship-groups' });
|
|
10
|
+
}
|
|
11
|
+
/** One group; 404 once a member shipped or was cancelled. */
|
|
12
|
+
get(key) {
|
|
13
|
+
return this.http.request({ method: 'GET', path: `/v1/orders/ship-groups/${encodeURIComponent(key)}` });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Buy ONE label for the group with a rate quoted on its lead order for the combined parcel, and put its tracking on
|
|
17
|
+
* every member (each marketplace is told). `refundShipping` refunds Crossly buyers the shipping the combined label
|
|
18
|
+
* did not use (the token needs orders:refund). A short shipping wallet answers 402 like a single label.
|
|
19
|
+
*/
|
|
20
|
+
buyLabel(key, body, opts = {}) {
|
|
21
|
+
return this.http.request({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
path: `/v1/orders/ship-groups/${encodeURIComponent(key)}/label`,
|
|
24
|
+
body,
|
|
25
|
+
idempotencyKey: opts.idempotencyKey,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=orders-ship-groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orders-ship-groups.js","sourceRoot":"","sources":["../../src/resources/orders-ship-groups.ts"],"names":[],"mappings":"AAyCA,uFAAuF;AACvF,MAAM,OAAO,wBAAwB;IACf;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,uDAAuD;IACvD,IAAI;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAwB,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC,CAAC;IACrG,CAAC;IAED,6DAA6D;IAC7D,GAAG,CAAC,GAAW;QACb,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAsB,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,0BAA0B,kBAAkB,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9H,CAAC;IAED;;;;OAIG;IACH,QAAQ,CACN,GAAW,EACX,IAAsG,EACtG,OAAwB,EAAE;QAE1B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAuB;YAC7C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,0BAA0B,kBAAkB,CAAC,GAAG,CAAC,QAAQ;YAC/D,IAAI;YACJ,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;CACF"}
|