@crossly/sdk 0.3.0 → 0.3.1
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 +12567 -673
- 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 +85 -0
- package/dist/transport/index.d.ts.map +1 -0
- package/dist/transport/index.js +149 -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,105 @@
|
|
|
1
|
+
import type { HttpClient, IdempotencyOpts } from './_shared.js';
|
|
2
|
+
/**
|
|
3
|
+
* Listings CSV round trip: /v1/listings/csv/*. Mirrors @crosslister/shared/listings-csv (the SDK has zero deps).
|
|
4
|
+
*
|
|
5
|
+
* A column is a `key` and a `header`. Master keys: id, title, description, price, currency, sku, brand, condition,
|
|
6
|
+
* size, color, tags, category, quantity, status, weight_lb, weight_oz, length_in, width_in, height_in, photos,
|
|
7
|
+
* created_at, updated_at. Marketplace keys: `<platform>:status|url|price|listed_at` (`ebay:price`). Headers are
|
|
8
|
+
* yours to rename; an import maps them back to keys.
|
|
9
|
+
*/
|
|
10
|
+
export interface ListingsCsvColumn {
|
|
11
|
+
key: string;
|
|
12
|
+
header: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ListingsCsvColumnDef extends ListingsCsvColumn {
|
|
15
|
+
/** key = the Id (update vs add), write = read back, create = read back on new rows only, read_only = ignored. */
|
|
16
|
+
import: 'key' | 'write' | 'create' | 'read_only';
|
|
17
|
+
platform?: string;
|
|
18
|
+
field?: 'status' | 'url' | 'price' | 'listed_at';
|
|
19
|
+
}
|
|
20
|
+
export interface ListingsCsvPreset {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
columns: ListingsCsvColumn[];
|
|
24
|
+
}
|
|
25
|
+
export interface ListingsCsvColumnsView {
|
|
26
|
+
columns: ListingsCsvColumnDef[];
|
|
27
|
+
presets: ListingsCsvPreset[];
|
|
28
|
+
}
|
|
29
|
+
export interface ListingsCsvExportBody {
|
|
30
|
+
/** The listings list query (status, platforms, search, tags, dates, …); page and limit are ignored. */
|
|
31
|
+
filter?: Record<string, string | number | boolean>;
|
|
32
|
+
listingIds?: string[];
|
|
33
|
+
/** Default: every column. */
|
|
34
|
+
columns?: ListingsCsvColumn[];
|
|
35
|
+
}
|
|
36
|
+
export interface ListingsCsvImportBody {
|
|
37
|
+
csv: string;
|
|
38
|
+
/** Header → column key ('' skips it); headers left out are matched automatically. */
|
|
39
|
+
mapping?: Record<string, string>;
|
|
40
|
+
}
|
|
41
|
+
export interface ListingsCsvIssue {
|
|
42
|
+
line: number;
|
|
43
|
+
column: string | null;
|
|
44
|
+
message: string;
|
|
45
|
+
}
|
|
46
|
+
export interface ListingsCsvValidation {
|
|
47
|
+
ok: boolean;
|
|
48
|
+
totalRows: number;
|
|
49
|
+
creates: number;
|
|
50
|
+
updates: number;
|
|
51
|
+
unchanged: number;
|
|
52
|
+
issueCount: number;
|
|
53
|
+
issues: ListingsCsvIssue[];
|
|
54
|
+
columns: Array<{
|
|
55
|
+
header: string;
|
|
56
|
+
key: string | null;
|
|
57
|
+
import: ListingsCsvColumnDef['import'] | null;
|
|
58
|
+
}>;
|
|
59
|
+
rows: Array<{
|
|
60
|
+
line: number;
|
|
61
|
+
action: 'create' | 'update' | 'unchanged';
|
|
62
|
+
id: string | null;
|
|
63
|
+
title: string | null;
|
|
64
|
+
}>;
|
|
65
|
+
maxRows: number;
|
|
66
|
+
}
|
|
67
|
+
export interface ListingsCsvCommitResult extends Omit<ListingsCsvValidation, 'ok' | 'issues' | 'issueCount'> {
|
|
68
|
+
createdListingIds: string[];
|
|
69
|
+
bulkJobIds: string[];
|
|
70
|
+
changeSetIds: string[];
|
|
71
|
+
updateErrors: Array<{
|
|
72
|
+
id: string;
|
|
73
|
+
status: 'not_found' | 'error';
|
|
74
|
+
error?: string;
|
|
75
|
+
}>;
|
|
76
|
+
}
|
|
77
|
+
export declare class ListingsCsvResource {
|
|
78
|
+
private http;
|
|
79
|
+
constructor(http: HttpClient);
|
|
80
|
+
/** Every exportable column (master + each connected marketplace) and the store's saved presets. `listings:read`. */
|
|
81
|
+
columns(): Promise<{
|
|
82
|
+
data: ListingsCsvColumnsView;
|
|
83
|
+
}>;
|
|
84
|
+
/** Replace the store's saved column presets (a preset without an id gets one). `listings:write`. */
|
|
85
|
+
savePresets(body: {
|
|
86
|
+
presets: Array<Omit<ListingsCsvPreset, 'id'> & {
|
|
87
|
+
id?: string;
|
|
88
|
+
}>;
|
|
89
|
+
}, opts?: IdempotencyOpts): Promise<{
|
|
90
|
+
data: {
|
|
91
|
+
presets: ListingsCsvPreset[];
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
/** The CSV text. Keep the Id column so a re-import updates instead of adding. `listings:read`. */
|
|
95
|
+
export(body?: ListingsCsvExportBody): Promise<string>;
|
|
96
|
+
/** Check every row; nothing is written. Run before `import`. `listings:write`. */
|
|
97
|
+
validateImport(body: ListingsCsvImportBody): Promise<{
|
|
98
|
+
data: ListingsCsvValidation;
|
|
99
|
+
}>;
|
|
100
|
+
/** All or nothing: any row problem is a 400 (details.issues) and nothing is written. `listings:write`. */
|
|
101
|
+
import(body: ListingsCsvImportBody, opts?: IdempotencyOpts): Promise<{
|
|
102
|
+
data: ListingsCsvCommitResult;
|
|
103
|
+
}>;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=listings-csv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listings-csv.d.ts","sourceRoot":"","sources":["../../src/resources/listings-csv.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEhE;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,iHAAiH;IACjH,MAAM,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,WAAW,CAAC;CAClD;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACpC,uGAAuG;IACvG,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,qFAAqF;IACrF,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,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O,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,oHAAoH;IACpH,OAAO;cAC4B,sBAAsB;;IAGzD,oGAAoG;IACpG,WAAW,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,GAAG;YAAE,EAAE,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE,EAAE,IAAI,GAAE,eAAoB;cAC9E;YAAE,OAAO,EAAE,iBAAiB,EAAE,CAAA;SAAE;;IAQnE,kGAAkG;IAClG,MAAM,CAAC,IAAI,GAAE,qBAA0B;IAIvC,kFAAkF;IAClF,cAAc,CAAC,IAAI,EAAE,qBAAqB;cACP,qBAAqB;;IAOxD,0GAA0G;IAC1G,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,IAAI,GAAE,eAAoB;cAC3B,uBAAuB;;CAO3D"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// ─── Listings CSV export / import ──────────
|
|
2
|
+
export class ListingsCsvResource {
|
|
3
|
+
http;
|
|
4
|
+
constructor(http) {
|
|
5
|
+
this.http = http;
|
|
6
|
+
}
|
|
7
|
+
/** Every exportable column (master + each connected marketplace) and the store's saved presets. `listings:read`. */
|
|
8
|
+
columns() {
|
|
9
|
+
return this.http.request({ method: 'GET', path: '/v1/listings/csv/columns' });
|
|
10
|
+
}
|
|
11
|
+
/** Replace the store's saved column presets (a preset without an id gets one). `listings:write`. */
|
|
12
|
+
savePresets(body, opts = {}) {
|
|
13
|
+
return this.http.request({
|
|
14
|
+
method: 'PUT',
|
|
15
|
+
path: '/v1/listings/csv/presets',
|
|
16
|
+
body,
|
|
17
|
+
idempotencyKey: opts.idempotencyKey,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/** The CSV text. Keep the Id column so a re-import updates instead of adding. `listings:read`. */
|
|
21
|
+
export(body = {}) {
|
|
22
|
+
return this.http.request({ method: 'POST', path: '/v1/listings/csv/export', body });
|
|
23
|
+
}
|
|
24
|
+
/** Check every row; nothing is written. Run before `import`. `listings:write`. */
|
|
25
|
+
validateImport(body) {
|
|
26
|
+
return this.http.request({
|
|
27
|
+
method: 'POST',
|
|
28
|
+
path: '/v1/listings/csv/import/validate',
|
|
29
|
+
body,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/** All or nothing: any row problem is a 400 (details.issues) and nothing is written. `listings:write`. */
|
|
33
|
+
import(body, opts = {}) {
|
|
34
|
+
return this.http.request({
|
|
35
|
+
method: 'POST',
|
|
36
|
+
path: '/v1/listings/csv/import/commit',
|
|
37
|
+
body,
|
|
38
|
+
idempotencyKey: opts.idempotencyKey,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=listings-csv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listings-csv.js","sourceRoot":"","sources":["../../src/resources/listings-csv.ts"],"names":[],"mappings":"AAyEA,8CAA8C;AAE9C,MAAM,OAAO,mBAAmB;IACV;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,oHAAoH;IACpH,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAmC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC,CAAC;IAClH,CAAC;IAED,oGAAoG;IACpG,WAAW,CAAC,IAAyE,EAAE,OAAwB,EAAE;QAC/G,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAA6C;YACnE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,0BAA0B;YAChC,IAAI;YACJ,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;IAED,kGAAkG;IAClG,MAAM,CAAC,OAA8B,EAAE;QACrC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED,kFAAkF;IAClF,cAAc,CAAC,IAA2B;QACxC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAkC;YACxD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,kCAAkC;YACxC,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED,0GAA0G;IAC1G,MAAM,CAAC,IAA2B,EAAE,OAAwB,EAAE;QAC5D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAoC;YAC1D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAgC;YACtC,IAAI;YACJ,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `POST /v1/listings/search/parse` (Ask search): one sentence → the listings filters in the saved-view shape the
|
|
3
|
+
* dashboard and the seller app share, a one-line summary and a suggested saved-view name. Invalid keys the AI
|
|
4
|
+
* returned are dropped and named in `dropped`. Runs on your AI key (`listings-search` in Settings › Integrations).
|
|
5
|
+
*/
|
|
6
|
+
export interface ListingsSearchFilters {
|
|
7
|
+
search?: string;
|
|
8
|
+
/** '' = every status. */
|
|
9
|
+
statusTab?: '' | 'active' | 'sold' | 'draft' | 'archived';
|
|
10
|
+
platformFilter?: string[];
|
|
11
|
+
platformMode?: 'listed' | 'not_listed';
|
|
12
|
+
tagFilter?: string[];
|
|
13
|
+
scheduled?: boolean;
|
|
14
|
+
publishState?: 'failed';
|
|
15
|
+
/** `<created_at|updated_at|price|health>:<asc|desc>`. */
|
|
16
|
+
sort?: string;
|
|
17
|
+
/** Dates YYYY-MM-DD, prices decimal strings, flags `true`. */
|
|
18
|
+
advanced?: {
|
|
19
|
+
createdFrom?: string;
|
|
20
|
+
createdTo?: string;
|
|
21
|
+
modifiedFrom?: string;
|
|
22
|
+
modifiedTo?: string;
|
|
23
|
+
soldFrom?: string;
|
|
24
|
+
soldTo?: string;
|
|
25
|
+
lastListedFrom?: string;
|
|
26
|
+
lastListedTo?: string;
|
|
27
|
+
brand?: string;
|
|
28
|
+
category?: string;
|
|
29
|
+
minPrice?: string;
|
|
30
|
+
maxPrice?: string;
|
|
31
|
+
importOrigin?: 'imported' | 'manual' | 'orphan';
|
|
32
|
+
missingSaleDetails?: boolean;
|
|
33
|
+
duplicates?: boolean;
|
|
34
|
+
listedOutOfStock?: boolean;
|
|
35
|
+
stillLive?: boolean;
|
|
36
|
+
managedByApp?: boolean;
|
|
37
|
+
promotedOn?: string;
|
|
38
|
+
boosted?: boolean;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface ListingsSearchParse {
|
|
42
|
+
filters: ListingsSearchFilters;
|
|
43
|
+
summary: string;
|
|
44
|
+
suggestedViewName: string;
|
|
45
|
+
dropped: string[];
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=listings-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listings-search.d.ts","sourceRoot":"","sources":["../../src/resources/listings-search.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,SAAS,CAAC,EAAE,EAAE,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;IAC1D,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,QAAQ,CAAC,EAAE;QACT,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;QAChD,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listings-search.js","sourceRoot":"","sources":["../../src/resources/listings-search.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { HttpClient, IdempotencyOpts, StoreOpts } from './_shared.js';
|
|
2
|
+
/**
|
|
3
|
+
* Simulcast (`client.liveStudio.destinations`): re-broadcast a Crossly live show to your own YouTube, Facebook,
|
|
4
|
+
* TikTok and Instagram channels, or any RTMP server. A destination is a saved server URL + stream key (stored
|
|
5
|
+
* encrypted; only its last four characters come back). Store-scoped (`storefrontId`, else the client's, else the
|
|
6
|
+
* default store). Scopes listings:read / listings:write.
|
|
7
|
+
*
|
|
8
|
+
* Chat and checkout stay on Crossly: `forShow` returns the show page URL and an overlay line for viewers elsewhere.
|
|
9
|
+
*/
|
|
10
|
+
export type SimulcastPlatform = 'youtube' | 'facebook' | 'tiktok' | 'instagram' | 'custom';
|
|
11
|
+
export type SimulcastLinkStatus = 'off' | 'pending' | 'live' | 'waiting' | 'error' | 'ended' | 'unsupported';
|
|
12
|
+
export interface StreamDestination {
|
|
13
|
+
id: string;
|
|
14
|
+
storefrontId: string;
|
|
15
|
+
platform: SimulcastPlatform | string;
|
|
16
|
+
label: string;
|
|
17
|
+
rtmpUrl: string;
|
|
18
|
+
/** `••••abcd` */
|
|
19
|
+
streamKeyHint: string;
|
|
20
|
+
/** On for new shows. */
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
lastTestedAt: string | null;
|
|
23
|
+
lastTestOk: boolean | null;
|
|
24
|
+
lastTestError: string | null;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ShowDestination extends StreamDestination {
|
|
28
|
+
on: boolean;
|
|
29
|
+
status: SimulcastLinkStatus;
|
|
30
|
+
error: string | null;
|
|
31
|
+
}
|
|
32
|
+
export interface ShowDestinations {
|
|
33
|
+
streamId: string;
|
|
34
|
+
/** false: this deployment's video provider cannot re-broadcast. */
|
|
35
|
+
supported: boolean;
|
|
36
|
+
showUrl: string;
|
|
37
|
+
overlayText: string;
|
|
38
|
+
destinations: ShowDestination[];
|
|
39
|
+
}
|
|
40
|
+
export declare class LiveDestinationsResource {
|
|
41
|
+
private http;
|
|
42
|
+
constructor(http: HttpClient);
|
|
43
|
+
/** The store's destinations, oldest first. */
|
|
44
|
+
list(opts?: StoreOpts): Promise<{
|
|
45
|
+
data: {
|
|
46
|
+
storefrontId: string | null;
|
|
47
|
+
supported: boolean;
|
|
48
|
+
destinations: StreamDestination[];
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
/** Add one (up to 10 per store). rtmpUrl defaults to the platform's standard server for YouTube, Facebook and Instagram. */
|
|
52
|
+
create(input: {
|
|
53
|
+
platform: SimulcastPlatform;
|
|
54
|
+
streamKey: string;
|
|
55
|
+
label?: string;
|
|
56
|
+
rtmpUrl?: string;
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
}, opts?: IdempotencyOpts & StoreOpts): Promise<{
|
|
59
|
+
data: StreamDestination;
|
|
60
|
+
}>;
|
|
61
|
+
update(destinationId: string, patch: {
|
|
62
|
+
label?: string;
|
|
63
|
+
rtmpUrl?: string;
|
|
64
|
+
streamKey?: string;
|
|
65
|
+
enabled?: boolean;
|
|
66
|
+
}): Promise<{
|
|
67
|
+
data: StreamDestination;
|
|
68
|
+
}>;
|
|
69
|
+
/** Refused while a live show is sending to it. */
|
|
70
|
+
delete(destinationId: string): Promise<{
|
|
71
|
+
data: {
|
|
72
|
+
id: string;
|
|
73
|
+
deleted: true;
|
|
74
|
+
};
|
|
75
|
+
}>;
|
|
76
|
+
/** Connect to the destination's server (no key, no video sent); the result is saved on the destination. */
|
|
77
|
+
test(destinationId: string): Promise<{
|
|
78
|
+
data: StreamDestination;
|
|
79
|
+
}>;
|
|
80
|
+
/** Where a show is re-broadcast, with each destination's health. */
|
|
81
|
+
forShow(streamId: string): Promise<{
|
|
82
|
+
data: ShowDestinations;
|
|
83
|
+
}>;
|
|
84
|
+
/** Choose where a show is re-broadcast (replaces the set; a live show starts / stops each at once). */
|
|
85
|
+
setForShow(streamId: string, destinationIds: string[]): Promise<{
|
|
86
|
+
data: ShowDestinations;
|
|
87
|
+
}>;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=live-destinations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-destinations.d.ts","sourceRoot":"","sources":["../../src/resources/live-destinations.ts"],"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AAI,CAAC,EAAE,SAAS;cACc;YAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;YAAC,SAAS,EAAE,OAAO,CAAC;YAAC,YAAY,EAAE,iBAAiB,EAAE,CAAA;SAAE;;IAGzH,4HAA4H;IAC5H,MAAM,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,iBAAiB,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,SAAS;cACtH,iBAAiB;;IAGpD,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE;cAC7E,iBAAiB;;IAGpD,kDAAkD;IAClD,MAAM,CAAC,aAAa,EAAE,MAAM;cACO;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,IAAI,CAAA;SAAE;;IAGhE,2GAA2G;IAC3G,IAAI,CAAC,aAAa,EAAE,MAAM;cACS,iBAAiB;;IAGpD,oEAAoE;IACpE,OAAO,CAAC,QAAQ,EAAE,MAAM;cACW,gBAAgB;;IAGnD,uGAAuG;IACvG,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE;cAClB,gBAAgB;;CAEpD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export class LiveDestinationsResource {
|
|
2
|
+
http;
|
|
3
|
+
constructor(http) {
|
|
4
|
+
this.http = http;
|
|
5
|
+
}
|
|
6
|
+
/** The store's destinations, oldest first. */
|
|
7
|
+
list(opts) {
|
|
8
|
+
return this.http.request({ method: 'GET', path: '/v1/live/destinations', ...opts });
|
|
9
|
+
}
|
|
10
|
+
/** Add one (up to 10 per store). rtmpUrl defaults to the platform's standard server for YouTube, Facebook and Instagram. */
|
|
11
|
+
create(input, opts) {
|
|
12
|
+
return this.http.request({ method: 'POST', path: '/v1/live/destinations', body: input, ...opts });
|
|
13
|
+
}
|
|
14
|
+
update(destinationId, patch) {
|
|
15
|
+
return this.http.request({ method: 'PATCH', path: `/v1/live/destinations/${encodeURIComponent(destinationId)}`, body: patch });
|
|
16
|
+
}
|
|
17
|
+
/** Refused while a live show is sending to it. */
|
|
18
|
+
delete(destinationId) {
|
|
19
|
+
return this.http.request({ method: 'DELETE', path: `/v1/live/destinations/${encodeURIComponent(destinationId)}` });
|
|
20
|
+
}
|
|
21
|
+
/** Connect to the destination's server (no key, no video sent); the result is saved on the destination. */
|
|
22
|
+
test(destinationId) {
|
|
23
|
+
return this.http.request({ method: 'POST', path: `/v1/live/destinations/${encodeURIComponent(destinationId)}/test` });
|
|
24
|
+
}
|
|
25
|
+
/** Where a show is re-broadcast, with each destination's health. */
|
|
26
|
+
forShow(streamId) {
|
|
27
|
+
return this.http.request({ method: 'GET', path: `/v1/live-streams/${encodeURIComponent(streamId)}/destinations` });
|
|
28
|
+
}
|
|
29
|
+
/** Choose where a show is re-broadcast (replaces the set; a live show starts / stops each at once). */
|
|
30
|
+
setForShow(streamId, destinationIds) {
|
|
31
|
+
return this.http.request({ method: 'PUT', path: `/v1/live-streams/${encodeURIComponent(streamId)}/destinations`, body: { destinationIds } });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=live-destinations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-destinations.js","sourceRoot":"","sources":["../../src/resources/live-destinations.ts"],"names":[],"mappings":"AA4CA,MAAM,OAAO,wBAAwB;IACf;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,8CAA8C;IAC9C,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AED,uGAAuG;IACvG,UAAU,CAAC,QAAgB,EAAE,cAAwB;QACnD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAA6B,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAoB,kBAAkB,CAAC,QAAQ,CAAC,eAAe,EAAE,IAAI,EAAE,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC;IAC3K,CAAC;CACF"}
|
|
@@ -11,7 +11,30 @@ export interface LineupItem {
|
|
|
11
11
|
priceCents: number;
|
|
12
12
|
imageUrl: string | null;
|
|
13
13
|
available: boolean;
|
|
14
|
-
pinned: boolean;
|
|
14
|
+
pinned: boolean; /** Ships from the Crossly vault when it sells. */
|
|
15
|
+
fromVault: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** A lineup item that ships from the vault: its listing, and the unit you picked (optional). */
|
|
18
|
+
export interface VaultLineupPick {
|
|
19
|
+
platformListingId: string;
|
|
20
|
+
vaultItemId?: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface VaultFulfilmentLine {
|
|
23
|
+
orderId: string;
|
|
24
|
+
depositId: string;
|
|
25
|
+
title: string | null;
|
|
26
|
+
/** vault_ships: the vault is shipping it; awaiting_payment: its ship fee is due; shipped. */
|
|
27
|
+
state: 'vault_ships' | 'awaiting_payment' | 'shipped';
|
|
28
|
+
trackingCode: string | null;
|
|
29
|
+
soldAt: string | null;
|
|
30
|
+
shippedAt: string | null;
|
|
31
|
+
}
|
|
32
|
+
export interface NextShowAdd {
|
|
33
|
+
streamId: string;
|
|
34
|
+
streamTitle: string;
|
|
35
|
+
scheduledAt: string;
|
|
36
|
+
platformListingId: string;
|
|
37
|
+
items: LineupItem[];
|
|
15
38
|
}
|
|
16
39
|
export interface LiveMoment {
|
|
17
40
|
streamId: string;
|
|
@@ -42,6 +65,42 @@ export interface ShowShipment {
|
|
|
42
65
|
orderStatus: string | null;
|
|
43
66
|
}>;
|
|
44
67
|
}
|
|
68
|
+
/** A show listings can still be added to (scheduled or live). */
|
|
69
|
+
export interface UpcomingShow {
|
|
70
|
+
source: 'crossly' | 'whatnot';
|
|
71
|
+
id: string;
|
|
72
|
+
title: string;
|
|
73
|
+
status: string;
|
|
74
|
+
scheduledAt: string;
|
|
75
|
+
lineupCount: number;
|
|
76
|
+
}
|
|
77
|
+
export interface AttachListingsToShowInput {
|
|
78
|
+
listingIds: string[];
|
|
79
|
+
/** crossly (default): your show's lineup. whatnot: recorded on each listing's Whatnot tab. */
|
|
80
|
+
source?: 'crossly' | 'whatnot';
|
|
81
|
+
/** Crossly: the show id (required). Whatnot: the show's id or link on Whatnot (optional). */
|
|
82
|
+
showId?: string;
|
|
83
|
+
/** Crossly shows take `lineup` only. */
|
|
84
|
+
mode?: 'lineup' | 'reserved_for_live' | 'flash_sale';
|
|
85
|
+
/** Required with mode flash_sale. */
|
|
86
|
+
flash?: {
|
|
87
|
+
percent: number;
|
|
88
|
+
perBuyerCap?: number;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
export interface AttachListingsToShowResult {
|
|
92
|
+
source: 'crossly' | 'whatnot';
|
|
93
|
+
showId: string | null;
|
|
94
|
+
mode: 'lineup' | 'reserved_for_live' | 'flash_sale';
|
|
95
|
+
attached: number;
|
|
96
|
+
/** code: not_on_crossly | lineup_full (not attached), already_in_lineup (ok, it was there). */
|
|
97
|
+
items: Array<{
|
|
98
|
+
listingId: string;
|
|
99
|
+
ok: boolean;
|
|
100
|
+
platformListingId: string | null;
|
|
101
|
+
code?: string;
|
|
102
|
+
}>;
|
|
103
|
+
}
|
|
45
104
|
export interface SentGift {
|
|
46
105
|
id: string;
|
|
47
106
|
recipientName: string;
|
|
@@ -58,9 +117,36 @@ export interface SentGift {
|
|
|
58
117
|
export declare class LiveShowsResource {
|
|
59
118
|
private http;
|
|
60
119
|
constructor(http: HttpClient);
|
|
61
|
-
|
|
120
|
+
/** Your shows that can still take listings, soonest first. `includeWhatnot` adds whether Whatnot shows can be listed. */
|
|
121
|
+
upcoming(params?: {
|
|
122
|
+
includeWhatnot?: boolean;
|
|
123
|
+
}): Promise<{
|
|
124
|
+
data: UpcomingShow[];
|
|
125
|
+
whatnot?: {
|
|
126
|
+
available: boolean;
|
|
127
|
+
reason: string | null;
|
|
128
|
+
};
|
|
129
|
+
}>;
|
|
130
|
+
/** Add listings to a show: a Crossly show's lineup (appended), or a Whatnot show on each listing's Whatnot tab. Needs `listings:write`. */
|
|
131
|
+
attachListings(input: AttachListingsToShowInput, opts?: {
|
|
132
|
+
idempotencyKey?: string;
|
|
133
|
+
}): Promise<{
|
|
134
|
+
data: AttachListingsToShowResult;
|
|
135
|
+
}>;
|
|
136
|
+
/** `fromVault`: the items that ship from your vault (omitted = each item keeps its source). */
|
|
137
|
+
setLineup(streamId: string, platformListingIds: string[], opts?: {
|
|
138
|
+
fromVault?: VaultLineupPick[];
|
|
139
|
+
}): Promise<{
|
|
62
140
|
data: LineupItem[];
|
|
63
141
|
}>;
|
|
142
|
+
/** Put a vaulted unit (one you sent in) at the end of your next scheduled show, shipping from the vault. */
|
|
143
|
+
addToNextShow(vaultItemId: string): Promise<{
|
|
144
|
+
data: NextShowAdd;
|
|
145
|
+
}>;
|
|
146
|
+
/** A show's sales the vault ships, and where each stands. */
|
|
147
|
+
vaultFulfilment(streamId: string): Promise<{
|
|
148
|
+
data: VaultFulfilmentLine[];
|
|
149
|
+
}>;
|
|
64
150
|
shipments(params?: {
|
|
65
151
|
streamId?: string;
|
|
66
152
|
status?: 'open' | 'shipped';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-shows.d.ts","sourceRoot":"","sources":["../../src/resources/live-shows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,UAAU;IAAG,iBAAiB,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,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AY,EAAE;;IAGjD,kEAAkE;IAClE,SAAS;cAC0B,QAAQ,EAAE;;CAE9C"}
|
|
@@ -4,8 +4,27 @@ export class LiveShowsResource {
|
|
|
4
4
|
constructor(http) {
|
|
5
5
|
this.http = http;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/** Your shows that can still take listings, soonest first. `includeWhatnot` adds whether Whatnot shows can be listed. */
|
|
8
|
+
upcoming(params = {}) {
|
|
9
|
+
return this.http.request({
|
|
10
|
+
method: 'GET', path: '/v1/live/shows/upcoming', query: params.includeWhatnot ? { include: 'whatnot' } : {},
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
/** Add listings to a show: a Crossly show's lineup (appended), or a Whatnot show on each listing's Whatnot tab. Needs `listings:write`. */
|
|
14
|
+
attachListings(input, opts = {}) {
|
|
15
|
+
return this.http.request({ method: 'POST', path: '/v1/listings/bulk-attach-show', body: input, ...(opts.idempotencyKey ? { idempotencyKey: opts.idempotencyKey } : {}) });
|
|
16
|
+
}
|
|
17
|
+
/** `fromVault`: the items that ship from your vault (omitted = each item keeps its source). */
|
|
18
|
+
setLineup(streamId, platformListingIds, opts = {}) {
|
|
19
|
+
return this.http.request({ method: 'PUT', path: `/v1/live-streams/${encodeURIComponent(streamId)}/lineup`, body: { platformListingIds, ...(opts.fromVault ? { fromVault: opts.fromVault } : {}) } });
|
|
20
|
+
}
|
|
21
|
+
/** Put a vaulted unit (one you sent in) at the end of your next scheduled show, shipping from the vault. */
|
|
22
|
+
addToNextShow(vaultItemId) {
|
|
23
|
+
return this.http.request({ method: 'POST', path: '/v1/live-streams/next/lineup', body: { vaultItemId } });
|
|
24
|
+
}
|
|
25
|
+
/** A show's sales the vault ships, and where each stands. */
|
|
26
|
+
vaultFulfilment(streamId) {
|
|
27
|
+
return this.http.request({ method: 'GET', path: `/v1/live-streams/${encodeURIComponent(streamId)}/vault-fulfilment` });
|
|
9
28
|
}
|
|
10
29
|
shipments(params = {}) {
|
|
11
30
|
return this.http.request({ method: 'GET', path: '/v1/live-shipments', query: params });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-shows.js","sourceRoot":"","sources":["../../src/resources/live-shows.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"live-shows.js","sourceRoot":"","sources":["../../src/resources/live-shows.ts"],"names":[],"mappings":"AAiDA,wFAAwF;AACxF,MAAM,OAAO,iBAAiB;IACR;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,yHAAyH;IACzH,QAAQ,CAAC,SAAuC,EAAE;QAChD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAoF;YAC1G,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,yBAAyB,EAAE,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE;SAC3G,CAAC,CAAC;IACL,CAAC;IAED,2IAA2I;IAC3I,cAAc,CAAC,KAAgC,EAAE,OAAoC,EAAE;QACrF,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAuC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAClN,CAAC;IAED,+FAA+F;IAC/F,SAAS,CAAC,QAAgB,EAAE,kBAA4B,EAAE,OAA0C,EAAE;QACpG,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAyB,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAoB,kBAAkB,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,kBAAkB,EAAE,GAAG,CAAC,IAAI,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