@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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* setup(section) GET /v1/hub/setup/{section} `storefronts:read`
|
|
5
5
|
* analytics(program, range) GET /v1/analytics/programs/{program} `analytics:read`
|
|
6
|
+
* capabilities() GET /v1/hub/capabilities `storefronts:read`
|
|
6
7
|
*
|
|
7
8
|
* Both read the store `X-Storefront-Id` names (no header = the default store). Money is integer CENTS; rates are
|
|
8
9
|
* 0-1. Each call names its method and a literal path, and its response type is a single alias (no nested
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
import type { HttpClient } from './_shared.js';
|
|
12
13
|
import type { DataEnvelope } from '../types.js';
|
|
13
14
|
export type HubSetupSection = 'storefront' | 'wholesale' | 'ads' | 'rentals' | 'funding' | 'world' | 'vault' | 'discounts' | 'drops' | 'events' | 'market' | 'payouts';
|
|
14
|
-
export type AnalyticsProgram = 'wholesale' | 'ads' | 'rentals' | 'events' | 'drops' | 'discounts' | 'market' | 'world' | 'vault' | 'team' | 'referrals' | 'developer-apps';
|
|
15
|
+
export type AnalyticsProgram = 'wholesale' | 'ads' | 'rentals' | 'events' | 'drops' | 'discounts' | 'market' | 'world' | 'vault' | 'team' | 'referrals' | 'developer-apps' | 'live' | 'marketing';
|
|
15
16
|
export interface HubSetupStep {
|
|
16
17
|
id: string;
|
|
17
18
|
label: string;
|
|
@@ -81,6 +82,42 @@ export interface ProgramAnalyticsParams {
|
|
|
81
82
|
/** Last UTC day (YYYY-MM-DD), inclusive. Default today. A range covers at most 366 days. */
|
|
82
83
|
to?: string;
|
|
83
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* What is usable in the Hub right now, from real state (never a flag). A surface that is off is hidden in the
|
|
87
|
+
* Crossly apps rather than shown as unavailable.
|
|
88
|
+
*/
|
|
89
|
+
export interface HubCapabilities {
|
|
90
|
+
funding: {
|
|
91
|
+
/** The funding pool can lend now. */
|
|
92
|
+
live: boolean;
|
|
93
|
+
/** You have a credit line (Draws, Repayments, Statements and Approvals only exist with one). */
|
|
94
|
+
hasLine: boolean;
|
|
95
|
+
/** Why the pool cannot lend; null when live. */
|
|
96
|
+
message: string | null;
|
|
97
|
+
/** Your "notify me when Funding opens" entry, or null. */
|
|
98
|
+
waitlist: {
|
|
99
|
+
joinedAt: string;
|
|
100
|
+
requestedAmountCents: number | null;
|
|
101
|
+
} | null;
|
|
102
|
+
};
|
|
103
|
+
staking: {
|
|
104
|
+
/** Deposits into the funding pool are open. */
|
|
105
|
+
live: boolean;
|
|
106
|
+
/** You hold a pool position (always shown, even while deposits are closed). */
|
|
107
|
+
hasPosition: boolean;
|
|
108
|
+
message: string | null;
|
|
109
|
+
};
|
|
110
|
+
/** An advance can be drawn against a wholesale invoice. */
|
|
111
|
+
invoiceAdvance: {
|
|
112
|
+
live: boolean;
|
|
113
|
+
};
|
|
114
|
+
/** Showroom decor is provisioned. */
|
|
115
|
+
decor: {
|
|
116
|
+
live: boolean;
|
|
117
|
+
message: string | null;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
export type HubCapabilitiesResponse = DataEnvelope<HubCapabilities>;
|
|
84
121
|
export type HubSetupResponse = DataEnvelope<HubSetup>;
|
|
85
122
|
export type ProgramAnalyticsResponse = DataEnvelope<ProgramAnalytics>;
|
|
86
123
|
export declare class HubProgramsResource {
|
|
@@ -88,6 +125,8 @@ export declare class HubProgramsResource {
|
|
|
88
125
|
constructor(http: HttpClient);
|
|
89
126
|
/** A Hub section's setup checklist: each step, whether it is done and the page that completes it. */
|
|
90
127
|
setup(section: HubSetupSection): Promise<HubSetupResponse>;
|
|
128
|
+
/** What is usable in the Hub right now: funding, pool staking, invoice advances and decor. */
|
|
129
|
+
capabilities(): Promise<HubCapabilitiesResponse>;
|
|
91
130
|
/** One program's report: KPIs, a daily trend and a breakdown table over the range. */
|
|
92
131
|
analytics(program: AnalyticsProgram, params?: ProgramAnalyticsParams): Promise<ProgramAnalyticsResponse>;
|
|
93
132
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hub-programs.d.ts","sourceRoot":"","sources":["../../src/resources/hub-programs.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"hub-programs.d.ts","sourceRoot":"","sources":["../../src/resources/hub-programs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,eAAe,GACvB,YAAY,GACZ,WAAW,GACX,KAAK,GACL,SAAS,GACT,SAAS,GACT,OAAO,GACP,OAAO,GACP,WAAW,GACX,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,KAAK,GACL,S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G,IAAI,CAAC;KAC5E,CAAC;IACF,OAAO,EAAE;QACP,+CAA+C;QAC/C,IAAI,EAAE,OAAO,CAAC;QACd,+EAA+E;QAC/E,WAAW,EAAE,OAAO,CAAC;QACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;KACxB,CAAC;IACF,2DAA2D;IAC3D,cAAc,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC;IAClC,qCAAqC;IACrC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;CAClD;AAED,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;AACtD,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC;AAEtE,qBAAa,mBAAmB;IAClB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,qGAAqG;IACrG,KAAK,CAAC,OAAO,EAAE,eAAe;IAO9B,8FAA8F;IAC9F,YAAY;IAOZ,sFAAsF;IACtF,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAE,sBAA2B;CAUzE"}
|
|
@@ -10,6 +10,13 @@ export class HubProgramsResource {
|
|
|
10
10
|
path: `/v1/hub/setup/${encodeURIComponent(section)}`,
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
+
/** What is usable in the Hub right now: funding, pool staking, invoice advances and decor. */
|
|
14
|
+
capabilities() {
|
|
15
|
+
return this.http.request({
|
|
16
|
+
method: 'GET',
|
|
17
|
+
path: '/v1/hub/capabilities',
|
|
18
|
+
});
|
|
19
|
+
}
|
|
13
20
|
/** One program's report: KPIs, a daily trend and a breakdown table over the range. */
|
|
14
21
|
analytics(program, params = {}) {
|
|
15
22
|
const query = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hub-programs.js","sourceRoot":"","sources":["../../src/resources/hub-programs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hub-programs.js","sourceRoot":"","sources":["../../src/resources/hub-programs.ts"],"names":[],"mappings":"AAsIA,MAAM,OAAO,mBAAmB;IACV;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,qGAAqG;IACrG,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAmB;YACzC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,iBAAiB,kBAAkB,CAAC,OAAO,CAAC,EAAE;SACrD,CAAC,CAAC;IACL,CAAC;IAED,8FAA8F;IAC9F,YAAY;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAA0B;YAChD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,sBAAsB;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,sFAAsF;IACtF,SAAS,CAAC,OAAyB,EAAE,SAAiC,EAAE;QACtE,MAAM,KAAK,GAA2B,EAAE,CAAC;QACzC,IAAI,MAAM,CAAC,IAAI;YAAE,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QAC1C,IAAI,MAAM,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAA2B;YACjD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,0BAA0B,kBAAkB,CAAC,OAAO,CAAC,EAAE;YAC7D,KAAK;SACN,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -14,6 +14,48 @@ export interface ImportSites {
|
|
|
14
14
|
source: string;
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
+
/** The crosslisters `imports.competitor` reads an export from. */
|
|
18
|
+
export type CompetitorTool = 'vendoo' | 'list_perfectly' | 'crosslist' | 'nifty' | 'primelister';
|
|
19
|
+
/** One row's state: what it will do on a dry run, what it did after a commit. */
|
|
20
|
+
export type CompetitorRowState = 'will_create' | 'will_merge' | 'already_in' | 'over_limit' | 'problem';
|
|
21
|
+
/** POST /v1/imports/competitor. Named (not inline) so the v1-parity scanner can see the call. */
|
|
22
|
+
export interface CompetitorImportResult {
|
|
23
|
+
tool: CompetitorTool;
|
|
24
|
+
toolName: string;
|
|
25
|
+
detected: boolean;
|
|
26
|
+
dryRun: boolean;
|
|
27
|
+
totalRows: number;
|
|
28
|
+
rowsNotRead: number;
|
|
29
|
+
counts: Record<CompetitorRowState, number>;
|
|
30
|
+
linksRegistered: number;
|
|
31
|
+
listingsCreated: number;
|
|
32
|
+
capacity: {
|
|
33
|
+
limit: number | null;
|
|
34
|
+
used: number;
|
|
35
|
+
remaining: number | null;
|
|
36
|
+
tier: string;
|
|
37
|
+
};
|
|
38
|
+
columns: {
|
|
39
|
+
mapped: Record<string, string>;
|
|
40
|
+
linkHeaders: string[];
|
|
41
|
+
unmapped: string[];
|
|
42
|
+
};
|
|
43
|
+
rows: Array<{
|
|
44
|
+
line: number;
|
|
45
|
+
state: CompetitorRowState;
|
|
46
|
+
title: string | null;
|
|
47
|
+
sku: string | null;
|
|
48
|
+
price: string | null;
|
|
49
|
+
links: Array<{
|
|
50
|
+
platform: string;
|
|
51
|
+
url: string;
|
|
52
|
+
}>;
|
|
53
|
+
message?: string;
|
|
54
|
+
itemId?: string;
|
|
55
|
+
listingId?: string;
|
|
56
|
+
}>;
|
|
57
|
+
maxRows: number;
|
|
58
|
+
}
|
|
17
59
|
export declare class ImportsResource {
|
|
18
60
|
private http;
|
|
19
61
|
constructor(http: HttpClient);
|
|
@@ -35,5 +77,17 @@ export declare class ImportsResource {
|
|
|
35
77
|
marketplaces?: string[];
|
|
36
78
|
listOnCrossly?: boolean;
|
|
37
79
|
}, opts?: IdempotencyOpts): Promise<JsonObject>;
|
|
80
|
+
/**
|
|
81
|
+
* Switch from another crosslister: import a CSV exported from Vendoo, List Perfectly, Crosslist, Nifty or
|
|
82
|
+
* PrimeLister. Omit `tool` to read it from the header. Call with `dryRun: true` first: every row comes back
|
|
83
|
+
* as will_create / will_merge (its SKU is on file) / already_in (a marketplace link in it is already one of
|
|
84
|
+
* the seller's listings) / over_limit / problem. Marketplace links become already-listed records; nothing is
|
|
85
|
+
* relisted or published.
|
|
86
|
+
*/
|
|
87
|
+
competitor(body: {
|
|
88
|
+
csv: string;
|
|
89
|
+
tool?: CompetitorTool;
|
|
90
|
+
dryRun?: boolean;
|
|
91
|
+
}, opts?: IdempotencyOpts): Promise<CompetitorImportResult>;
|
|
38
92
|
}
|
|
39
93
|
//# sourceMappingURL=imports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/resources/imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAItF;0FAC0F;AAC1F,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC;YAAE,aAAa,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CACvJ;AAED,qBAAa,eAAe;IACd,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,IAAI;IAGJ,GAAG,CAAC,EAAE,EAAE,MAAM;IAMd;;;;OAIG;IACH,KAAK,CAAC,MAAM,GAAE;QAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;KAAO;IAK1C;gFAC4E;IAC5E,K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C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,aAAa,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,IAAI,GAAE,eAAoB;IAQtJ;;;;;;OAMG;IACH,UAAU,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,cAAc,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,IAAI,GAAE,eAAoB;CAQtG"}
|
|
@@ -32,6 +32,21 @@ export class ImportsResource {
|
|
|
32
32
|
idempotencyKey: opts.idempotencyKey,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Switch from another crosslister: import a CSV exported from Vendoo, List Perfectly, Crosslist, Nifty or
|
|
37
|
+
* PrimeLister. Omit `tool` to read it from the header. Call with `dryRun: true` first: every row comes back
|
|
38
|
+
* as will_create / will_merge (its SKU is on file) / already_in (a marketplace link in it is already one of
|
|
39
|
+
* the seller's listings) / over_limit / problem. Marketplace links become already-listed records; nothing is
|
|
40
|
+
* relisted or published.
|
|
41
|
+
*/
|
|
42
|
+
competitor(body, opts = {}) {
|
|
43
|
+
return this.http.request({
|
|
44
|
+
method: 'POST',
|
|
45
|
+
path: '/v1/imports/competitor',
|
|
46
|
+
body,
|
|
47
|
+
idempotencyKey: opts.idempotencyKey,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
35
50
|
}
|
|
36
51
|
// ─── Returns ────────────────────────────────────────────────────────────────
|
|
37
52
|
//# sourceMappingURL=imports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports.js","sourceRoot":"","sources":["../../src/resources/imports.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"imports.js","sourceRoot":"","sources":["../../src/resources/imports.ts"],"names":[],"mappings":"AA2CA,MAAM,OAAO,eAAe;IACN;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,IAAI;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC;IAC/E,CAAC;IACD,GAAG,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,eAAe,kBAAkB,CAAC,EAAE,CAAC,EAAE;SAC9C,CAAC,CAAC;IACL,CAAC;IACD;;;;OAIG;IACH,KAAK,CAAC,SAAkC,EAAE;QACxC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAc;YACpC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM;SACxD,CAAC,CAAC;IACL,CAAC;IACD;gFAC4E;IAC5E,KAAK,CAAC,IAAoH,EAAE,OAAwB,EAAE;QACpJ,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,aAAa;YACnB,IAAI;YACJ,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;IACD;;;;;;OAMG;IACH,UAAU,CAAC,IAA8D,EAAE,OAAwB,EAAE;QACnG,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAyB;YAC/C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,wBAAwB;YAC9B,IAAI;YACJ,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;CACF;AAED,+EAA+E"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Types of `InventoryResource.bulkQuantity` (catalog.ts), kept here so catalog.ts stays under the file cap. */
|
|
2
|
+
/** `POST /v1/inventory/bulk-quantity`: one value for every id, or a stock per item. Never both in one body. */
|
|
3
|
+
export type BulkQuantityBody = {
|
|
4
|
+
ids: string[];
|
|
5
|
+
mode: 'set' | 'increase' | 'decrease';
|
|
6
|
+
value: number;
|
|
7
|
+
/** False to change Crossly only, leaving live listings alone. */
|
|
8
|
+
syncMarketplaces?: boolean;
|
|
9
|
+
} | {
|
|
10
|
+
mode: 'set';
|
|
11
|
+
/** 1-5000 items, each id once; `quantity` is the new available stock. */
|
|
12
|
+
items: Array<{
|
|
13
|
+
id: string;
|
|
14
|
+
quantity: number;
|
|
15
|
+
}>;
|
|
16
|
+
syncMarketplaces?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/** `affected` moved, `skipped` did not (already there, or not yours); `bulkJobId` tracks the marketplace push. */
|
|
19
|
+
export interface BulkQuantityResult {
|
|
20
|
+
affected: number;
|
|
21
|
+
skipped: number;
|
|
22
|
+
bulkJobId?: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=inventory-bulk-quantity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory-bulk-quantity.d.ts","sourceRoot":"","sources":["../../src/resources/inventory-bulk-quantity.ts"],"names":[],"mappings":"AAAA,gHAAgH;AAEhH,+GAA+G;AAC/G,MAAM,MAAM,gBAAgB,GACxB;IACE,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,IAAI,EAAE,KAAK,GAAG,UAAU,GAAG,UAAU,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,GACD;IACE,IAAI,EAAE,KAAK,CAAC;IACZ,yEAAyE;IACzE,KAAK,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEN,kHAAkH;AAClH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory-bulk-quantity.js","sourceRoot":"","sources":["../../src/resources/inventory-bulk-quantity.ts"],"names":[],"mappings":"AAAA,gHAAgH"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { HttpClient, IdempotencyOpts, JsonObject } from './_shared.js';
|
|
2
|
+
/** One item in a kit. */
|
|
3
|
+
export interface KitComponent {
|
|
4
|
+
componentItemId: string;
|
|
5
|
+
/** Units of this item one kit uses. */
|
|
6
|
+
qty: number;
|
|
7
|
+
title: string;
|
|
8
|
+
sku: string | null;
|
|
9
|
+
image: string | null;
|
|
10
|
+
/** The item's available stock. */
|
|
11
|
+
available: number;
|
|
12
|
+
/** Complete kits this item alone allows (floor(available / qty)). */
|
|
13
|
+
kitsPossible: number;
|
|
14
|
+
/** True for the item that limits the kit. */
|
|
15
|
+
limiting: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** An inventory kit: an item made of other items, its stock derived from them. */
|
|
18
|
+
export interface InventoryKit {
|
|
19
|
+
inventoryItemId: string;
|
|
20
|
+
isKit: boolean;
|
|
21
|
+
/** Complete kits the components make now: what the kit's marketplaces advertise. */
|
|
22
|
+
available: number;
|
|
23
|
+
components: KitComponent[];
|
|
24
|
+
}
|
|
25
|
+
export interface SetKitInput {
|
|
26
|
+
/** The full contents; an empty list turns the item back into a plain item. */
|
|
27
|
+
components: Array<{
|
|
28
|
+
componentItemId: string;
|
|
29
|
+
qty: number;
|
|
30
|
+
}>;
|
|
31
|
+
/** Push the kit's new count to its marketplaces. Default true. */
|
|
32
|
+
syncMarketplaces?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare class InventoryKitsResource {
|
|
35
|
+
private http;
|
|
36
|
+
constructor(http: HttpClient);
|
|
37
|
+
/** A kit's contents. Envelope: `{ data: InventoryKit }`. A plain item returns `isKit: false`. */
|
|
38
|
+
get(inventoryItemId: string): Promise<JsonObject>;
|
|
39
|
+
/** Replace a kit's contents. Envelope: `{ data: { kit: InventoryKit, cascade? } }`. */
|
|
40
|
+
set(inventoryItemId: string, body: SetKitInput, opts?: IdempotencyOpts): Promise<JsonObject>;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=inventory-kits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory-kits.d.ts","sourceRoot":"","sources":["../../src/resources/inventory-kits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE5E,yBAAyB;AACzB,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,uCAAuC;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,YAAY,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,kFAAkF;AAClF,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;IACf,oFAAoF;IACpF,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,YAAY,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,8EAA8E;IAC9E,UAAU,EAAE,KAAK,CAAC;QAAE,eAAe,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5D,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,qBAAa,qBAAqB;IACpB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,iGAAiG;IACjG,GAAG,CAAC,eAAe,EAAE,MAAM;IAO3B,uFAAuF;IACvF,GAAG,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,GAAE,eAAoB;CAQ3E"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// ─── Inventory kits ─────────────────────────────────────────────────────────
|
|
2
|
+
//
|
|
3
|
+
// A kit (composite SKU) is an inventory item made of other items: a card lot, a gift set, a multi-pack. Its
|
|
4
|
+
// available count is how many complete kits its components make; selling it takes the components off the shelf,
|
|
5
|
+
// and the new counts are pushed to every marketplace the kit and its components are listed on. A kit is never part
|
|
6
|
+
// of another kit. List kits with `inventory.list({ kits: 'true' })` (GET /v1/inventory?kits=true).
|
|
7
|
+
export class InventoryKitsResource {
|
|
8
|
+
http;
|
|
9
|
+
constructor(http) {
|
|
10
|
+
this.http = http;
|
|
11
|
+
}
|
|
12
|
+
/** A kit's contents. Envelope: `{ data: InventoryKit }`. A plain item returns `isKit: false`. */
|
|
13
|
+
get(inventoryItemId) {
|
|
14
|
+
return this.http.request({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
path: `/v1/inventory/${encodeURIComponent(inventoryItemId)}/kit`,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/** Replace a kit's contents. Envelope: `{ data: { kit: InventoryKit, cascade? } }`. */
|
|
20
|
+
set(inventoryItemId, body, opts = {}) {
|
|
21
|
+
return this.http.request({
|
|
22
|
+
method: 'PUT',
|
|
23
|
+
path: `/v1/inventory/${encodeURIComponent(inventoryItemId)}/kit`,
|
|
24
|
+
body,
|
|
25
|
+
idempotencyKey: opts.idempotencyKey,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=inventory-kits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory-kits.js","sourceRoot":"","sources":["../../src/resources/inventory-kits.ts"],"names":[],"mappings":"AAkCA,+EAA+E;AAC/E,EAAE;AACF,4GAA4G;AAC5G,gHAAgH;AAChH,mHAAmH;AACnH,mGAAmG;AAEnG,MAAM,OAAO,qBAAqB;IACZ;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,iGAAiG;IACjG,GAAG,CAAC,eAAuB;QACzB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,iBAAiB,kBAAkB,CAAC,eAAe,CAAC,MAAM;SACjE,CAAC,CAAC;IACL,CAAC;IAED,uFAAuF;IACvF,GAAG,CAAC,eAAuB,EAAE,IAAiB,EAAE,OAAwB,EAAE;QACxE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,iBAAiB,kBAAkB,CAAC,eAAe,CAAC,MAAM;YAChE,IAAI;YACJ,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { HttpClient, IdempotencyOpts } from './_shared.js';
|
|
2
|
+
export type InventoryLabelTemplateId = 'sku_qr_2x1' | 'sku_barcode_2x1' | 'bin_4x6' | 'avery_5160';
|
|
3
|
+
export type InventoryLabelField = 'title' | 'sku' | 'price' | 'location' | 'size';
|
|
4
|
+
export interface PrintInventoryLabelsInput {
|
|
5
|
+
/** Items to label (SKU / QR labels). Send this OR `locationIds`. Up to 500. */
|
|
6
|
+
itemIds?: string[];
|
|
7
|
+
/** Locations to label (bin labels). Up to 500. */
|
|
8
|
+
locationIds?: string[];
|
|
9
|
+
/** Default: the store's default template. */
|
|
10
|
+
template?: InventoryLabelTemplateId;
|
|
11
|
+
/** What the label shows besides its QR / barcode. Default: the store's default fields. */
|
|
12
|
+
fields?: InventoryLabelField[];
|
|
13
|
+
/** Copies of each label, 1-10. */
|
|
14
|
+
copies?: number;
|
|
15
|
+
/** A print station (agent) id; default: the seller's one agent. */
|
|
16
|
+
agentId?: string;
|
|
17
|
+
printerName?: string;
|
|
18
|
+
/** Skip the print station and return the PDF link. */
|
|
19
|
+
pdfOnly?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export type PrintInventoryLabelsResult = {
|
|
22
|
+
mode: 'agent';
|
|
23
|
+
jobId: string;
|
|
24
|
+
agentId: string | null;
|
|
25
|
+
template: InventoryLabelTemplateId;
|
|
26
|
+
count: number;
|
|
27
|
+
delivered: boolean;
|
|
28
|
+
pdfUrl: string;
|
|
29
|
+
} | {
|
|
30
|
+
mode: 'pdf';
|
|
31
|
+
/** A signed PDF link, valid 10 minutes. */
|
|
32
|
+
url: string;
|
|
33
|
+
template: InventoryLabelTemplateId;
|
|
34
|
+
count: number;
|
|
35
|
+
reason: 'no_agent' | 'offline' | 'not_capable' | 'media' | 'pdf_requested' | null;
|
|
36
|
+
message: string | null;
|
|
37
|
+
};
|
|
38
|
+
export interface InventoryLabelSettings {
|
|
39
|
+
defaults: {
|
|
40
|
+
template: InventoryLabelTemplateId;
|
|
41
|
+
fields: InventoryLabelField[];
|
|
42
|
+
};
|
|
43
|
+
templates: Array<{
|
|
44
|
+
id: InventoryLabelTemplateId;
|
|
45
|
+
label: string;
|
|
46
|
+
hint: string;
|
|
47
|
+
media: string | null;
|
|
48
|
+
layout: string;
|
|
49
|
+
}>;
|
|
50
|
+
}
|
|
51
|
+
export declare class InventoryLabelsResource {
|
|
52
|
+
private http;
|
|
53
|
+
constructor(http: HttpClient);
|
|
54
|
+
/** Print labels. Envelope: `{ data: PrintInventoryLabelsResult }`. */
|
|
55
|
+
print(body: PrintInventoryLabelsInput, opts?: IdempotencyOpts): Promise<{
|
|
56
|
+
data: PrintInventoryLabelsResult;
|
|
57
|
+
}>;
|
|
58
|
+
/** The store's default template and fields, and every template. Envelope: `{ data: InventoryLabelSettings }`. */
|
|
59
|
+
getSettings(): Promise<{
|
|
60
|
+
data: InventoryLabelSettings;
|
|
61
|
+
}>;
|
|
62
|
+
/** Set the store's default template and/or fields. Envelope: `{ data: InventoryLabelSettings }`. */
|
|
63
|
+
updateSettings(body: {
|
|
64
|
+
template?: InventoryLabelTemplateId;
|
|
65
|
+
fields?: InventoryLabelField[];
|
|
66
|
+
}, opts?: IdempotencyOpts): Promise<{
|
|
67
|
+
data: InventoryLabelSettings;
|
|
68
|
+
}>;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=inventory-labels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory-labels.d.ts","sourceRoot":"","sources":["../../src/resources/inventory-labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG,iBAAiB,GAAG,SAAS,GAAG,YAAY,CAAC;AACnG,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;AAElF,MAAM,WAAW,yBAAyB;IACxC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,0FAA0F;IAC1F,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC/B,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,0BAA0B,GAClC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAA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// ─── Inventory labels ───────────────────────────────────────────────────────
|
|
2
|
+
//
|
|
3
|
+
// SKU / QR labels for items and bin labels for locations, as a PDF or on the seller's print station. Every label
|
|
4
|
+
// carries a QR of the item's (location's) Crossly page and, where the template has one, a Code 128 barcode of the
|
|
5
|
+
// SKU (location code). The store's default template and fields apply when a print names none.
|
|
6
|
+
export class InventoryLabelsResource {
|
|
7
|
+
http;
|
|
8
|
+
constructor(http) {
|
|
9
|
+
this.http = http;
|
|
10
|
+
}
|
|
11
|
+
/** Print labels. Envelope: `{ data: PrintInventoryLabelsResult }`. */
|
|
12
|
+
print(body, opts = {}) {
|
|
13
|
+
return this.http.request({
|
|
14
|
+
method: 'POST',
|
|
15
|
+
path: '/v1/inventory/labels/print',
|
|
16
|
+
body,
|
|
17
|
+
idempotencyKey: opts.idempotencyKey,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/** The store's default template and fields, and every template. Envelope: `{ data: InventoryLabelSettings }`. */
|
|
21
|
+
getSettings() {
|
|
22
|
+
return this.http.request({ method: 'GET', path: '/v1/inventory/labels/print-settings' });
|
|
23
|
+
}
|
|
24
|
+
/** Set the store's default template and/or fields. Envelope: `{ data: InventoryLabelSettings }`. */
|
|
25
|
+
updateSettings(body, opts = {}) {
|
|
26
|
+
return this.http.request({
|
|
27
|
+
method: 'PUT',
|
|
28
|
+
path: '/v1/inventory/labels/print-settings',
|
|
29
|
+
body,
|
|
30
|
+
idempotencyKey: opts.idempotencyKey,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=inventory-labels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory-labels.js","sourceRoot":"","sources":["../../src/resources/inventory-labels.ts"],"names":[],"mappings":"AAwCA,+EAA+E;AAC/E,EAAE;AACF,iHAAiH;AACjH,kHAAkH;AAClH,8FAA8F;AAE9F,MAAM,OAAO,uBAAuB;IACd;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,sEAAsE;IACtE,KAAK,CAAC,IAA+B,EAAE,OAAwB,EAAE;QAC/D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAuC;YAC7D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,4BAA4B;YAClC,IAAI;YACJ,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;IAED,iHAAiH;IACjH,WAAW;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAmC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,qCAAqC,EAAE,CAAC,CAAC;IAC7H,CAAC;IAED,oGAAoG;IACpG,cAAc,CAAC,IAA6E,EAAE,OAAwB,EAAE;QACtH,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAmC;YACzD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,qCAAqC;YAC3C,IAAI;YACJ,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { HttpClient, IdempotencyOpts, StoreOpts } from './_shared.js';
|
|
2
|
+
/** What a location is. Any kind may sit under any other. */
|
|
3
|
+
export type InventoryLocationKind = 'warehouse' | 'zone' | 'shelf' | 'bin';
|
|
4
|
+
export interface InventoryLocation {
|
|
5
|
+
id: string;
|
|
6
|
+
storeId: string | null;
|
|
7
|
+
/** The location it sits in; null = a root. */
|
|
8
|
+
parentId: string | null;
|
|
9
|
+
kind: InventoryLocationKind;
|
|
10
|
+
/** What is printed on the shelf ("A-3"). */
|
|
11
|
+
code: string;
|
|
12
|
+
name: string | null;
|
|
13
|
+
/** Units it holds at most; null = no limit. */
|
|
14
|
+
capacity: number | null;
|
|
15
|
+
sortOrder: number;
|
|
16
|
+
archivedAt: string | null;
|
|
17
|
+
itemCount: number;
|
|
18
|
+
unitCount: number;
|
|
19
|
+
/** Units there now. */
|
|
20
|
+
used: number;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
}
|
|
24
|
+
export interface InventoryLocationContents {
|
|
25
|
+
location: InventoryLocation;
|
|
26
|
+
/** Codes from the root down, this one last. */
|
|
27
|
+
path: string[];
|
|
28
|
+
children: InventoryLocation[];
|
|
29
|
+
items: Array<{
|
|
30
|
+
id: string;
|
|
31
|
+
title: string | null;
|
|
32
|
+
sku: string | null;
|
|
33
|
+
imageUrl: string | null;
|
|
34
|
+
quantity: number;
|
|
35
|
+
quantityAvailable: number;
|
|
36
|
+
unitsElsewhere: number;
|
|
37
|
+
}>;
|
|
38
|
+
units: Array<{
|
|
39
|
+
id: string;
|
|
40
|
+
inventoryItemId: string;
|
|
41
|
+
title: string | null;
|
|
42
|
+
sku: string | null;
|
|
43
|
+
status: string;
|
|
44
|
+
}>;
|
|
45
|
+
fill: {
|
|
46
|
+
used: number;
|
|
47
|
+
capacity: number;
|
|
48
|
+
ratio: number;
|
|
49
|
+
percent: number;
|
|
50
|
+
state: 'ok' | 'near' | 'full' | 'over';
|
|
51
|
+
free: number;
|
|
52
|
+
} | null;
|
|
53
|
+
}
|
|
54
|
+
export interface InventoryLocationInput {
|
|
55
|
+
parentId?: string | null;
|
|
56
|
+
kind?: InventoryLocationKind;
|
|
57
|
+
code: string;
|
|
58
|
+
name?: string | null;
|
|
59
|
+
capacity?: number | null;
|
|
60
|
+
sortOrder?: number;
|
|
61
|
+
}
|
|
62
|
+
export type InventoryLocationPatch = Partial<InventoryLocationInput>;
|
|
63
|
+
export interface InventoryMoveInput {
|
|
64
|
+
/** Inventory item ids. */
|
|
65
|
+
ids?: string[];
|
|
66
|
+
/** Identified unit ids, for copies kept in another bin. */
|
|
67
|
+
unitIds?: string[];
|
|
68
|
+
/** The location; null clears it. */
|
|
69
|
+
locationId: string | null;
|
|
70
|
+
}
|
|
71
|
+
export interface InventoryMoveResult {
|
|
72
|
+
locationId: string | null;
|
|
73
|
+
moved: number;
|
|
74
|
+
unitsMoved: number;
|
|
75
|
+
skipped: string[];
|
|
76
|
+
}
|
|
77
|
+
export declare class InventoryLocationsResource {
|
|
78
|
+
private http;
|
|
79
|
+
constructor(http: HttpClient);
|
|
80
|
+
/** Every location of the store, flat with `parentId`; `archived: true` adds archived ones. Envelope `{ data }`. */
|
|
81
|
+
list(opts?: StoreOpts & {
|
|
82
|
+
archived?: boolean;
|
|
83
|
+
}): Promise<{
|
|
84
|
+
data: InventoryLocation[];
|
|
85
|
+
}>;
|
|
86
|
+
/** What is in one location: items, placed units, children, path, capacity fill. */
|
|
87
|
+
contents(id: string): Promise<{
|
|
88
|
+
data: InventoryLocationContents;
|
|
89
|
+
}>;
|
|
90
|
+
/** Create a location. 409 `location_code_taken` when a sibling has the code. */
|
|
91
|
+
create(body: InventoryLocationInput, opts?: StoreOpts & IdempotencyOpts): Promise<{
|
|
92
|
+
data: InventoryLocation;
|
|
93
|
+
}>;
|
|
94
|
+
/** Change a location (code, name, kind, capacity, parent, order). */
|
|
95
|
+
update(id: string, body: InventoryLocationPatch, opts?: IdempotencyOpts): Promise<{
|
|
96
|
+
data: InventoryLocation;
|
|
97
|
+
}>;
|
|
98
|
+
/** Archive a location. 409 `location_not_empty` while it holds anything. */
|
|
99
|
+
archive(id: string, opts?: IdempotencyOpts): Promise<{
|
|
100
|
+
data: InventoryLocation;
|
|
101
|
+
}>;
|
|
102
|
+
/** Move items (and units) to a location, or clear it with `locationId: null`. */
|
|
103
|
+
moveItems(body: InventoryMoveInput, opts?: IdempotencyOpts): Promise<{
|
|
104
|
+
data: InventoryMoveResult;
|
|
105
|
+
}>;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=inventory-locations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory-locations.d.ts","sourceRoot":"","sources":["../../src/resources/inventory-locations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EA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AmH;IACnH,IAAI,CAAC,IAAI,GAAE,SAAS,GAAG;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAO;cACf,iBAAiB,EAAE;;IAQtD,mFAAmF;IACnF,QAAQ,CAAC,EAAE,EAAE,MAAM;cACgB,yBAAyB;;IAM5D,gFAAgF;IAChF,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,IAAI,GAAE,SAAS,GAAG,eAAoB;cACxC,iBAAiB;;IASpD,qEAAqE;IACrE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,IAAI,GAAE,eAAoB;cACxC,iBAAiB;;IAQpD,4EAA4E;IAC5E,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,GAAE,eAAoB;cACX,iBAAiB;;IAOpD,iFAAiF;IACjF,SAAS,CAAC,IAAI,EAAE,kBAAkB,EAAE,IAAI,GAAE,eAAoB;cAC3B,mBAAmB;;CAOvD"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// ─── Inventory locations ────────────────────────────────────────────────────
|
|
2
|
+
//
|
|
3
|
+
// The store's storage as a tree: warehouses, zones, shelves and bins. An item's location sets its storage bin to the
|
|
4
|
+
// location's code; pick lists walk the tree in order. Per store (`storefrontId`, else the client's, else the default).
|
|
5
|
+
export class InventoryLocationsResource {
|
|
6
|
+
http;
|
|
7
|
+
constructor(http) {
|
|
8
|
+
this.http = http;
|
|
9
|
+
}
|
|
10
|
+
/** Every location of the store, flat with `parentId`; `archived: true` adds archived ones. Envelope `{ data }`. */
|
|
11
|
+
list(opts = {}) {
|
|
12
|
+
return this.http.request({
|
|
13
|
+
method: 'GET',
|
|
14
|
+
path: '/v1/locations',
|
|
15
|
+
query: opts.archived ? { archived: 'true' } : undefined,
|
|
16
|
+
storefrontId: opts.storefrontId,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/** What is in one location: items, placed units, children, path, capacity fill. */
|
|
20
|
+
contents(id) {
|
|
21
|
+
return this.http.request({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
path: `/v1/locations/${encodeURIComponent(id)}/contents`,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/** Create a location. 409 `location_code_taken` when a sibling has the code. */
|
|
27
|
+
create(body, opts = {}) {
|
|
28
|
+
return this.http.request({
|
|
29
|
+
method: 'POST',
|
|
30
|
+
path: '/v1/locations',
|
|
31
|
+
body,
|
|
32
|
+
idempotencyKey: opts.idempotencyKey,
|
|
33
|
+
storefrontId: opts.storefrontId,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/** Change a location (code, name, kind, capacity, parent, order). */
|
|
37
|
+
update(id, body, opts = {}) {
|
|
38
|
+
return this.http.request({
|
|
39
|
+
method: 'PATCH',
|
|
40
|
+
path: `/v1/locations/${encodeURIComponent(id)}`,
|
|
41
|
+
body,
|
|
42
|
+
idempotencyKey: opts.idempotencyKey,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/** Archive a location. 409 `location_not_empty` while it holds anything. */
|
|
46
|
+
archive(id, opts = {}) {
|
|
47
|
+
return this.http.request({
|
|
48
|
+
method: 'DELETE',
|
|
49
|
+
path: `/v1/locations/${encodeURIComponent(id)}`,
|
|
50
|
+
idempotencyKey: opts.idempotencyKey,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/** Move items (and units) to a location, or clear it with `locationId: null`. */
|
|
54
|
+
moveItems(body, opts = {}) {
|
|
55
|
+
return this.http.request({
|
|
56
|
+
method: 'POST',
|
|
57
|
+
path: '/v1/inventory/move',
|
|
58
|
+
body,
|
|
59
|
+
idempotencyKey: opts.idempotencyKey,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=inventory-locations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory-locations.js","sourceRoot":"","sources":["../../src/resources/inventory-locations.ts"],"names":[],"mappings":"AAu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