@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
package/README.md
CHANGED
|
@@ -6,11 +6,6 @@ List once, sell on 15 marketplaces — Poshmark, eBay, Etsy, Mercari, Depop,
|
|
|
6
6
|
Grailed, Vinted, Whatnot, Shopify, Vestiaire, OfferUp, Facebook Marketplace,
|
|
7
7
|
Amazon, Walmart, and counting.
|
|
8
8
|
|
|
9
|
-
> **Not on npm yet.** `@crossly/sdk` is unreleased — the install command below
|
|
10
|
-
> will 404 until the first publish. To try it now, clone this repo and build from
|
|
11
|
-
> source. Star or watch to hear when it lands.
|
|
12
|
-
|
|
13
|
-
|
|
14
9
|
```bash
|
|
15
10
|
npm install @crossly/sdk
|
|
16
11
|
```
|
|
@@ -22,20 +17,21 @@ import { createClient } from '@crossly/sdk';
|
|
|
22
17
|
|
|
23
18
|
const crossly = createClient({ pat: process.env.CROSSLY_PAT! });
|
|
24
19
|
|
|
25
|
-
// Add an item to your catalog
|
|
20
|
+
// Add an item to your catalog (the physical thing: title, brand, size, photos, stock)
|
|
26
21
|
const item = await crossly.inventory.create({
|
|
27
22
|
defaultTitle: 'Vintage Levi 501s, dark wash',
|
|
28
|
-
defaultPrice: 48,
|
|
29
23
|
brand: 'Levi\'s',
|
|
30
24
|
size: '32x32',
|
|
31
25
|
condition: 'good',
|
|
32
26
|
images: ['https://cdn.example.com/jeans-1.jpg'],
|
|
33
27
|
});
|
|
34
28
|
|
|
35
|
-
// Crosspost to three platforms
|
|
29
|
+
// Crosspost to three platforms. Price and description are listing facts (one item can sell at
|
|
30
|
+
// different prices on different marketplaces), so they go on the listing, not the inventory item.
|
|
36
31
|
await crossly.listings.create({
|
|
37
|
-
inventoryItemId: item.id,
|
|
32
|
+
inventoryItemId: item.id as string,
|
|
38
33
|
platforms: ['poshmark', 'mercari', 'depop'],
|
|
34
|
+
data: { title: 'Vintage Levi 501s, dark wash', price: 48, description: 'Dark wash, 32x32, honest fades.' },
|
|
39
35
|
});
|
|
40
36
|
|
|
41
37
|
// Watch sales come in
|
|
@@ -58,8 +54,8 @@ Every `/api/v1/*` endpoint is wrapped. The namespaces:
|
|
|
58
54
|
| Namespace | Methods | Notes |
|
|
59
55
|
|---|---|---|
|
|
60
56
|
| `inventory` | list, get, getActivity, create, update, archive, bulkLabels, bulkArchive, bulkRestore, bulkDelete, labelsStats, labelsRename | Bulk endpoints for 50k-row select-alls |
|
|
61
|
-
| `listings` | list, get, create, update, delist, bulkRelist, bulkCrosspost, bulkDelist, bulkDelete, bulkHardDelete, bulkUpdate, bulkCheckStatus, bulkDelistPreview, byIds | Coordinator returns instantly; fan-out streams to workers |
|
|
62
|
-
| `orders` | list, get, submitTracking, refund, updateOrder, dispute, rates, label, pullPlatformLabel, packingSlip, bulkPackingSlips, bulkDelete, bulkMarkShipped, bulkMarkDisputed, bulkExport, counts | EasyPost rate-quote + label purchase + bulk PDF slips |
|
|
57
|
+
| `listings` | list, get, create, update, delist, bulkRelist, bulkCrosspost, bulkCrosspostPreflight, bulkDelist, bulkDelete, bulkHardDelete, bulkUpdate, bulkCheckStatus, bulkDelistPreview, byIds | Coordinator returns instantly; fan-out streams to workers |
|
|
58
|
+
| `orders` | list, get, submitTracking, refund, updateOrder, dispute, rates, label, pullPlatformLabel, packingSlip, bulkPackingSlips, bulkDelete, bulkMarkShipped, bulkMarkDisputed, bulkExport, counts; `orders.bulk`: message, markDelivered, markCompleted, reprintLabels, cancel | EasyPost rate-quote + label purchase + bulk PDF slips |
|
|
63
59
|
| `sales` | list, bulkDelete | Soft-delete keeps idempotency cookies + analytics history |
|
|
64
60
|
| `inbox` | list, get, reply, offer, updateConversation, conversationMessages, unreadCount, offerAction, cannedResponsesList, cannedResponsesCreate, cannedResponsesUpdate, cannedResponsesDelete, aiSuggest, triageMessage | Includes AI-suggested reply + re-triage |
|
|
65
61
|
| `analytics` | summary, byPlatform, timeseries | |
|
|
@@ -201,7 +197,7 @@ by the [community library](https://github.com/crossly-dev/crossly-automations):
|
|
|
201
197
|
```ts
|
|
202
198
|
// Pull a recipe straight from the library
|
|
203
199
|
const recipe = await fetch(
|
|
204
|
-
'https://raw.githubusercontent.com/crossly-dev/crossly-automations/main/recipes/poshmark/share-closet-9am.json',
|
|
200
|
+
'https://raw.githubusercontent.com/crossly-dev/crossly-automations/main/recipes/poshmark/share-closet-9am.crossly-recipe.json',
|
|
205
201
|
).then((r) => r.json());
|
|
206
202
|
|
|
207
203
|
// Validate it against your account's catalog
|
package/dist/client.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { type QueryParams } from './transport/index.js';
|
|
2
|
+
export { defaultBaseUrlFor, looksLikeAccessTokenJwt, SANDBOX_BASE_URL } from './transport/index.js';
|
|
3
|
+
export type { QueryParams } from './transport/index.js';
|
|
1
4
|
/**
|
|
2
5
|
* Token kinds the API accepts. A personal token and an OAuth-issued one are
|
|
3
6
|
* verified through the same path server-side; only the prefix differs.
|
|
@@ -15,13 +18,6 @@ export declare const TOKEN_PREFIXES: readonly ["crossly_pat_", "crossly_oat_", "
|
|
|
15
18
|
* resource surface matches what the key can actually do.
|
|
16
19
|
*/
|
|
17
20
|
export declare const CBX_TOKEN_PREFIX = "cbx_";
|
|
18
|
-
/**
|
|
19
|
-
* An access token Atlas (https://crossly.net/atlas, Crossly's OAuth server
|
|
20
|
-
* since the 2026-11 move) issued to an app: a JWT whose `aud` is
|
|
21
|
-
* https://crossly.net/api/v1. Accepted like a `crossly_oat_` token; the API
|
|
22
|
-
* verifies its signature, audience and the seller's grant.
|
|
23
|
-
*/
|
|
24
|
-
export declare function looksLikeAccessTokenJwt(token: string): boolean;
|
|
25
21
|
export interface ClientConfig {
|
|
26
22
|
/**
|
|
27
23
|
* A Crossly API token.
|
|
@@ -58,8 +54,6 @@ export interface ClientConfig {
|
|
|
58
54
|
*/
|
|
59
55
|
storefrontId?: string;
|
|
60
56
|
}
|
|
61
|
-
/** Query parameter map — any plain object with string-keyed primitives or arrays. */
|
|
62
|
-
export type QueryParams = object;
|
|
63
57
|
export interface RequestOptions {
|
|
64
58
|
method: 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
|
|
65
59
|
path: string;
|
|
@@ -75,9 +69,6 @@ export interface RequestOptions {
|
|
|
75
69
|
/** The store this call acts on (`X-Storefront-Id`); overrides the client's `storefrontId`. */
|
|
76
70
|
storefrontId?: string;
|
|
77
71
|
}
|
|
78
|
-
export declare const SANDBOX_BASE_URL = "https://sandbox.crossly.net/api";
|
|
79
|
-
/** The API base a token belongs to: sandbox for `crossly_*_test_…`, production otherwise. */
|
|
80
|
-
export declare function defaultBaseUrlFor(token: string): string;
|
|
81
72
|
export declare class HttpClient {
|
|
82
73
|
private readonly pat;
|
|
83
74
|
private readonly baseUrl;
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"
|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AC,QAAQ,CAAC,GAAG,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;gBAEtC,MAAM,EAAE,YAAY;IA8B1B,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC;CAuBnD"}
|
package/dist/client.js
CHANGED
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
* unsafe (creating orders, charging cards, etc.).
|
|
12
12
|
*/
|
|
13
13
|
import { CrosslyAPIError, CrosslyConfigError } from './errors.js';
|
|
14
|
+
import { buildRequestUrl, defaultBaseUrlFor, looksLikeAccessTokenJwt, resolveBaseUrl, sendJson, } from './transport/index.js';
|
|
15
|
+
// The token-shape check, the base-URL choice and the query type are the
|
|
16
|
+
// transport core both SDKs share (./transport); re-exported from here, where
|
|
17
|
+
// callers have always found them.
|
|
18
|
+
export { defaultBaseUrlFor, looksLikeAccessTokenJwt, SANDBOX_BASE_URL } from './transport/index.js';
|
|
14
19
|
/**
|
|
15
20
|
* Token kinds the API accepts. A personal token and an OAuth-issued one are
|
|
16
21
|
* verified through the same path server-side; only the prefix differs.
|
|
@@ -28,21 +33,6 @@ export const TOKEN_PREFIXES = ['crossly_pat_', 'crossly_oat_', 'cbx_'];
|
|
|
28
33
|
* resource surface matches what the key can actually do.
|
|
29
34
|
*/
|
|
30
35
|
export const CBX_TOKEN_PREFIX = 'cbx_';
|
|
31
|
-
/**
|
|
32
|
-
* An access token Atlas (https://crossly.net/atlas, Crossly's OAuth server
|
|
33
|
-
* since the 2026-11 move) issued to an app: a JWT whose `aud` is
|
|
34
|
-
* https://crossly.net/api/v1. Accepted like a `crossly_oat_` token; the API
|
|
35
|
-
* verifies its signature, audience and the seller's grant.
|
|
36
|
-
*/
|
|
37
|
-
export function looksLikeAccessTokenJwt(token) {
|
|
38
|
-
return /^eyJ[A-Za-z0-9_-]*\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/.test(token);
|
|
39
|
-
}
|
|
40
|
-
const DEFAULT_BASE_URL = 'https://crossly.net/api';
|
|
41
|
-
export const SANDBOX_BASE_URL = 'https://sandbox.crossly.net/api';
|
|
42
|
-
/** The API base a token belongs to: sandbox for `crossly_*_test_…`, production otherwise. */
|
|
43
|
-
export function defaultBaseUrlFor(token) {
|
|
44
|
-
return /^crossly_[a-z]+_test_/.test(token) ? SANDBOX_BASE_URL : DEFAULT_BASE_URL;
|
|
45
|
-
}
|
|
46
36
|
const SDK_VERSION = '0.3.0';
|
|
47
37
|
export class HttpClient {
|
|
48
38
|
pat;
|
|
@@ -67,7 +57,7 @@ export class HttpClient {
|
|
|
67
57
|
'Access Tokens, or run `crossly login` to authorize via OAuth.');
|
|
68
58
|
}
|
|
69
59
|
this.pat = config.pat;
|
|
70
|
-
this.baseUrl = (config.baseUrl
|
|
60
|
+
this.baseUrl = resolveBaseUrl(config.baseUrl, defaultBaseUrlFor(config.pat));
|
|
71
61
|
this.fetchImpl = config.fetch ?? globalThis.fetch;
|
|
72
62
|
if (!this.fetchImpl) {
|
|
73
63
|
throw new CrosslyConfigError('No global fetch found. Pass a `fetch` impl in createClient({ fetch }), or run on Node 18+.');
|
|
@@ -77,27 +67,11 @@ export class HttpClient {
|
|
|
77
67
|
this.storefrontId = config.storefrontId || undefined;
|
|
78
68
|
}
|
|
79
69
|
async request(opts) {
|
|
80
|
-
const url = new URL(this.baseUrl + opts.path);
|
|
81
|
-
if (opts.query) {
|
|
82
|
-
for (const [k, v] of Object.entries(opts.query)) {
|
|
83
|
-
if (v === undefined || v === null || v === '')
|
|
84
|
-
continue;
|
|
85
|
-
if (Array.isArray(v)) {
|
|
86
|
-
for (const item of v)
|
|
87
|
-
url.searchParams.append(k, String(item));
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
url.searchParams.set(k, String(v));
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
70
|
const headers = {
|
|
95
71
|
Authorization: `Bearer ${this.pat}`,
|
|
96
72
|
Accept: 'application/json',
|
|
97
73
|
'User-Agent': this.userAgent,
|
|
98
74
|
};
|
|
99
|
-
if (opts.body !== undefined)
|
|
100
|
-
headers['Content-Type'] = 'application/json';
|
|
101
75
|
if (opts.idempotencyKey)
|
|
102
76
|
headers['Idempotency-Key'] = opts.idempotencyKey;
|
|
103
77
|
if (opts.sandboxSimulate)
|
|
@@ -105,60 +79,16 @@ export class HttpClient {
|
|
|
105
79
|
const storefrontId = opts.storefrontId || this.storefrontId;
|
|
106
80
|
if (storefrontId)
|
|
107
81
|
headers['X-Storefront-Id'] = storefrontId;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
let res;
|
|
119
|
-
try {
|
|
120
|
-
res = await this.fetchImpl(url, {
|
|
121
|
-
method: opts.method,
|
|
122
|
-
headers,
|
|
123
|
-
body: opts.body !== undefined ? JSON.stringify(opts.body) : undefined,
|
|
124
|
-
signal: ctrl.signal,
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
finally {
|
|
128
|
-
clearTimeout(timer);
|
|
129
|
-
}
|
|
130
|
-
// 204 / empty.
|
|
131
|
-
if (res.status === 204)
|
|
132
|
-
return undefined;
|
|
133
|
-
const text = await res.text();
|
|
134
|
-
let parsed = undefined;
|
|
135
|
-
if (text.length > 0) {
|
|
136
|
-
try {
|
|
137
|
-
parsed = JSON.parse(text);
|
|
138
|
-
}
|
|
139
|
-
catch {
|
|
140
|
-
parsed = text;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
if (!res.ok) {
|
|
144
|
-
const envelope = parsed && typeof parsed === 'object' ? parsed.error : undefined;
|
|
145
|
-
throw new CrosslyAPIError(res.status, {
|
|
146
|
-
code: envelope?.code ?? `http_${res.status}`,
|
|
147
|
-
message: envelope?.message ?? res.statusText ?? 'Request failed',
|
|
148
|
-
details: envelope?.details,
|
|
149
|
-
}, parsed, retryAfterSecondsOf(res.headers?.get?.('retry-after') ?? null));
|
|
150
|
-
}
|
|
151
|
-
return parsed;
|
|
82
|
+
return sendJson({
|
|
83
|
+
fetchImpl: this.fetchImpl,
|
|
84
|
+
url: buildRequestUrl(this.baseUrl, opts.path, opts.query),
|
|
85
|
+
method: opts.method,
|
|
86
|
+
headers,
|
|
87
|
+
body: opts.body,
|
|
88
|
+
timeoutMs: opts.timeoutMs ?? this.defaultTimeoutMs,
|
|
89
|
+
signal: opts.signal,
|
|
90
|
+
toError: (status, payload, body, retryAfterSeconds) => new CrosslyAPIError(status, payload, body, retryAfterSeconds),
|
|
91
|
+
});
|
|
152
92
|
}
|
|
153
93
|
}
|
|
154
|
-
/** `Retry-After` as seconds: delta-seconds or an HTTP date (RFC 9110). */
|
|
155
|
-
function retryAfterSecondsOf(value) {
|
|
156
|
-
if (!value)
|
|
157
|
-
return undefined;
|
|
158
|
-
const v = value.trim();
|
|
159
|
-
if (/^\d+(\.\d+)?$/.test(v))
|
|
160
|
-
return Number(v);
|
|
161
|
-
const at = Date.parse(v);
|
|
162
|
-
return Number.isNaN(at) ? undefined : Math.max(0, Math.ceil((at - Date.now()) / 1000));
|
|
163
|
-
}
|
|
164
94
|
//# sourceMappingURL=client.js.map
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,eAAe,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GA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AAE,IAAI,CAAC,MAAM;YACnB,OAAO;YACP,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,gBAAgB;YAClD,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,CACpD,IAAI,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,CAAC;SAChE,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Crossly Carnival resources of CrosslyClient (experiences and their data, money, studio, safety, analytics,
|
|
3
|
+
* Team Create, Http, reward pools, badges, the Toolbox asset store, experience keys, developer-app certification and
|
|
4
|
+
* Creator Rewards), split out of create-client.ts at the 650-line cap. CrosslyClient extends CarnivalClient;
|
|
5
|
+
* createClient spreads carnivalResources.
|
|
6
|
+
*/
|
|
7
|
+
import type { HttpClient } from './client.js';
|
|
8
|
+
import { ExperienceKeysResource, WorldsDataResource, WorldsMoneyResource, WorldsResource } from './resources.js';
|
|
9
|
+
import { type CreatorPlatformClientExtras, ToolboxResource, WorldsAnalyticsResource, WorldsBadgesResource, WorldsHttpResource, WorldsRewardsResource, WorldsSafetyResource, WorldsStudioResource, WorldsGamesResource, WorldsTeamResource } from './resources/creator-exports.js';
|
|
10
|
+
import { CreatorRewardsResource, DeveloperAppsResource } from './resources/open-platform.js';
|
|
11
|
+
import { WorldsGuardiansResource } from './resources/worlds-guardians.js';
|
|
12
|
+
export interface CarnivalClient extends CreatorPlatformClientExtras {
|
|
13
|
+
/** Experience API keys for your back-ends and CI: list, issue (token once), rotate, revoke. */
|
|
14
|
+
experienceKeys: ExperienceKeysResource;
|
|
15
|
+
/** Crossly Carnival: experiences, places, version bundles, publishing, live servers, reserved servers, joining (worlds:play), and the Carnival Plaza launcher. */
|
|
16
|
+
worlds: WorldsResource;
|
|
17
|
+
/** Crossly Carnival data: DataStores (versioned, If-Match), OrderedStores, MemoryStores (queues, maps), Messaging, usage (worlds:data). */
|
|
18
|
+
worldsData: WorldsDataResource;
|
|
19
|
+
/** Crossly Carnival money: products, drop tables, receipts, revenue, earnings, payouts, the published formula; and a player's purchases and subscriptions. */
|
|
20
|
+
worldsMoney: WorldsMoneyResource;
|
|
21
|
+
/** Carnival Studio: drafts, publish checks, the seven-step publish (review + staged rollout), rollback, cloud playtest, sellable listings. */
|
|
22
|
+
worldsStudio: WorldsStudioResource;
|
|
23
|
+
/** Crossly Carnival safety: Policy, reports, bans (by sub), moderation status, appeals. */
|
|
24
|
+
worldsSafety: WorldsSafetyResource;
|
|
25
|
+
worldsGuardians: WorldsGuardiansResource;
|
|
26
|
+
/** Open platform: your apps' Crossly Carnival client certification + verification (apps:*), and Creator Rewards. */ developerApps: DeveloperAppsResource;
|
|
27
|
+
creatorRewards: CreatorRewardsResource;
|
|
28
|
+
/** Crossly Carnival analytics + live ops: reports, custom-event queries, remote config (pushed live), A/B experiments, live events, alerts, audit. */
|
|
29
|
+
worldsAnalytics: WorldsAnalyticsResource;
|
|
30
|
+
/** Crossly Carnival Team Create: collaborators and roles, invitations, activity + revert, revenue splits, live co-editing (session, ops, save) and per-person script drafts. */
|
|
31
|
+
worldsTeam: WorldsTeamResource;
|
|
32
|
+
/** Carnival Studio: every game you own or collaborate on (both engines), a game's summary, access, playtesters, chat settings, restore and delete. */
|
|
33
|
+
worldsGames: WorldsGamesResource;
|
|
34
|
+
/** Crossly Carnival Http: domains server scripts may call (reviewed before they work) and write-only secrets. */
|
|
35
|
+
worldsHttp: WorldsHttpResource;
|
|
36
|
+
/** Crossly Carnival funded reward pools: deposit earnings, define rewards, daily caps, grant log (Rewards.grant). */
|
|
37
|
+
worldsRewards: WorldsRewardsResource;
|
|
38
|
+
/** Crossly Carnival badges: define a game's badges (BadgeService.AwardBadge awards them), public + profile reads, your own. */
|
|
39
|
+
worldsBadges: WorldsBadgesResource;
|
|
40
|
+
/** Crossly Toolbox asset store: search, insert, buy (checkout link), refund, library; publish, version and retire your own assets; sales (80% of net). */
|
|
41
|
+
toolbox: ToolboxResource;
|
|
42
|
+
}
|
|
43
|
+
export declare function carnivalResources(http: HttpClient): CarnivalClient;
|
|
44
|
+
//# sourceMappingURL=create-client-carnival.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-client-carnival.d.ts","sourceRoot":"","sources":["../src/create-client-carnival.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACjH,OAAO,EACL,KAAK,2BAA2B,EAChC,eAAe,EAEf,uBAAuB,EAGvB,oBAAoB,EAEpB,kBAAkB,EAElB,qBAAqB,EACrB,oBAAoB,EAEpB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,WAAW,cAAe,SAAQ,2BAA2B;IACjE,+FAA+F;IAC/F,cAAc,EAAE,sBAAsB,CAAC;IACvC,kKAAkK;IAClK,MAAM,EAAE,cAAc,CAAC;IACvB,2IAA2I;IAC3I,UAAU,EAAE,kBAAkB,CAAC;IAC/B,8JAA8J;IAC9J,WAAW,EAAE,mBAAmB,CAAC;IACjC,8IAA8I;IAC9I,YAAY,EAAE,oBAAoB,CAAC;IACnC,2FAA2F;IAC3F,YAAY,EAAE,oBAAoB,CAAC;IACnC,eAAe,EAAE,uBAAuB,CAAC;IACzC,oHAAoH,CAAC,aAAa,EAAE,qBAAqB,CAAC;IAC1J,cAAc,EAAE,sBAAsB,CAAC;IACvC,sJAAsJ;IACtJ,eAAe,EAAE,uBAAuB,CAAC;IACzC,gLAAgL;IAChL,UAAU,EAAE,kBAAkB,CAAC;IAC/B,sJAAsJ;IACtJ,WAAW,EAAE,mBAAmB,CAAC;IACjC,iHAAiH;IACjH,UAAU,EAAE,kBAAkB,CAAC;IAC/B,qHAAqH;IACrH,aAAa,EAAE,qBAAqB,CAAC;IACrC,+HAA+H;IAC/H,YAAY,EAAE,oBAAoB,CAAC;IACnC,0JAA0J;IAC1J,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,cAAc,CAyBlE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ExperienceKeysResource, WorldsDataResource, WorldsMoneyResource, WorldsResource } from './resources.js';
|
|
2
|
+
import { ToolboxResource, WorldsAdsResource, WorldsAnalyticsResource, WorldsAssetsResource, WorldsAssistantResource, WorldsBadgesResource, WorldsEngageResource, WorldsHttpResource, WorldsPackagesResource, WorldsRewardsResource, WorldsSafetyResource, WorldsStudioAgentResource, WorldsStudioResource, WorldsGamesResource, WorldsTeamResource, } from './resources/creator-exports.js';
|
|
3
|
+
import { CreatorRewardsResource, DeveloperAppsResource } from './resources/open-platform.js';
|
|
4
|
+
import { WorldsGuardiansResource } from './resources/worlds-guardians.js';
|
|
5
|
+
export function carnivalResources(http) {
|
|
6
|
+
return {
|
|
7
|
+
experienceKeys: new ExperienceKeysResource(http),
|
|
8
|
+
worlds: new WorldsResource(http),
|
|
9
|
+
worldsData: new WorldsDataResource(http),
|
|
10
|
+
worldsMoney: new WorldsMoneyResource(http),
|
|
11
|
+
worldsStudio: new WorldsStudioResource(http),
|
|
12
|
+
worldsSafety: new WorldsSafetyResource(http),
|
|
13
|
+
worldsGuardians: new WorldsGuardiansResource(http),
|
|
14
|
+
developerApps: new DeveloperAppsResource(http),
|
|
15
|
+
creatorRewards: new CreatorRewardsResource(http),
|
|
16
|
+
worldsAnalytics: new WorldsAnalyticsResource(http),
|
|
17
|
+
worldsTeam: new WorldsTeamResource(http),
|
|
18
|
+
worldsGames: new WorldsGamesResource(http),
|
|
19
|
+
worldsAssets: new WorldsAssetsResource(http),
|
|
20
|
+
worldsAssistant: new WorldsAssistantResource(http),
|
|
21
|
+
worldsStudioAgent: new WorldsStudioAgentResource(http),
|
|
22
|
+
worldsEngage: new WorldsEngageResource(http),
|
|
23
|
+
worldsAds: new WorldsAdsResource(http),
|
|
24
|
+
worldsPackages: new WorldsPackagesResource(http),
|
|
25
|
+
worldsHttp: new WorldsHttpResource(http),
|
|
26
|
+
worldsRewards: new WorldsRewardsResource(http),
|
|
27
|
+
worldsBadges: new WorldsBadgesResource(http),
|
|
28
|
+
toolbox: new ToolboxResource(http),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=create-client-carnival.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-client-carnival.js","sourceRoot":"","sources":["../src/create-client-carnival.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACjH,OAAO,EAEL,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAkC1E,MAAM,UAAU,iBAAiB,CAAC,IAAgB;IAChD,OAAO;QACL,cAAc,EAAE,IAAI,sBAA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
|
3
|
+
* belongs here too when it lands), split out of create-client.ts at the 650-line cap. CrosslyClient extends
|
|
4
|
+
* DataSyncClient; createClient spreads dataSyncResources.
|
|
5
|
+
*/
|
|
6
|
+
import type { HttpClient } from './client.js';
|
|
7
|
+
import { NotionResource } from './resources/notion.js';
|
|
8
|
+
export interface DataSyncClient {
|
|
9
|
+
/** Sync Crossly to Notion (per store): connect URL, parent page, Listings on/off, status (last sync, rows), Sync now, disconnect. */
|
|
10
|
+
notion: NotionResource;
|
|
11
|
+
}
|
|
12
|
+
export declare function dataSyncResources(http: HttpClient): DataSyncClient;
|
|
13
|
+
//# sourceMappingURL=create-client-data-sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-client-data-sync.d.ts","sourceRoot":"","sources":["../src/create-client-data-sync.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,qIAAqI;IACrI,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,cAAc,CAIlE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-client-data-sync.js","sourceRoot":"","sources":["../src/create-client-data-sync.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAOvD,MAAM,UAAU,iBAAiB,CAAC,IAAgB;IAChD,OAAO;QACL,MAAM,EAAE,IAAI,cAAc,CAAC,IAAI,CAAC;KACjC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The store-operations resources of CrosslyClient (inventory locations and counts, listing revisions, issues and
|
|
3
|
+
* defaults, automation guardrails and activity, the store calendar, offer rules, the Publishing queue), split out of
|
|
4
|
+
* create-client.ts at the 650-line cap. CrosslyClient extends StoreOpsClient; createClient spreads storeOpsResources.
|
|
5
|
+
*/
|
|
6
|
+
import type { HttpClient } from './client.js';
|
|
7
|
+
import { AutomationActivityResource, AutomationGuardrailsResource, CalendarResource, DelistOutcomesResource, DiscountPromosResource, InventoryLocationsResource, ListingAutomationResource, ListingDefaultsResource, ListingIssuesResource, ListingProposalsResource, ListingScheduleResource, ListingRevisionsResource, ListingWordRulesResource, OfferRulesResource, PublishTasksResource, RestockOrdersResource, SharingSchedulesResource, StockAdjustmentsResource, StockCountsResource } from './resources.js';
|
|
8
|
+
import { InventoryKitsResource } from './resources/inventory-kits.js';
|
|
9
|
+
import { InventoryLabelsResource } from './resources/inventory-labels.js';
|
|
10
|
+
import { ReorderPointsResource } from './resources/reorder-points.js';
|
|
11
|
+
export interface StoreOpsClient {
|
|
12
|
+
/** Inventory locations: warehouses, zones, shelves and bins; what is in one; move items into one. */
|
|
13
|
+
inventoryLocations: InventoryLocationsResource;
|
|
14
|
+
/** Stock counts (cycle count / stock-take): list, read lines and variance, apply as a recount. */
|
|
15
|
+
stockCounts: StockCountsResource;
|
|
16
|
+
/** Restock purchase orders: create, send, receive into stock with landed cost (posted to Books), pay with Funding. */
|
|
17
|
+
restockOrders: RestockOrdersResource;
|
|
18
|
+
/** Stock adjustments with reasons (received, damaged, lost, recount…) and the adjustments ledger. */
|
|
19
|
+
stockAdjustments: StockAdjustmentsResource;
|
|
20
|
+
/** The To restock list: items at or below their reorder point, with suggested order, velocity and supplier. */
|
|
21
|
+
reorderPoints: ReorderPointsResource;
|
|
22
|
+
/** Inventory kits (composite SKUs): an item made of other items, its stock derived from them; get and set contents. */
|
|
23
|
+
inventoryKits: InventoryKitsResource;
|
|
24
|
+
/** Inventory labels: print SKU / QR item labels and bin labels (PDF or print station); default template. */
|
|
25
|
+
inventoryLabels: InventoryLabelsResource;
|
|
26
|
+
/** Listing revision history: a listing's edits, the store's change sets, undo one, restore an earlier version. */
|
|
27
|
+
listingRevisions: ListingRevisionsResource;
|
|
28
|
+
/** Proposed listing changes: bulk AI improve and staged edits, approved or rejected item by item. */
|
|
29
|
+
listingProposals: ListingProposalsResource;
|
|
30
|
+
/** Delist outcomes: per sale, what happened on every other marketplace, with retry on the failed ones. */
|
|
31
|
+
delistOutcomes: DelistOutcomesResource;
|
|
32
|
+
/** Listing issues: what needs attention across the inventory, each with a one-click fix; dismiss for a while. */
|
|
33
|
+
listingIssues: ListingIssuesResource;
|
|
34
|
+
/** The scheduled queue: publishes, delists and relists booked for later. */
|
|
35
|
+
listingSchedule: ListingScheduleResource;
|
|
36
|
+
/** Listing defaults: the AI's tone, length, instructions and templates, description footers, default marketplaces. */
|
|
37
|
+
listingDefaults: ListingDefaultsResource;
|
|
38
|
+
/** Word alerts: the store's prohibited and risky words per marketplace, and the word check. */ listingWordRules: ListingWordRulesResource;
|
|
39
|
+
/** Automation guardrails: pause / resume, quiet hours, daily limits per marketplace, price safety, today's usage. */ automationGuardrails: AutomationGuardrailsResource;
|
|
40
|
+
/** Sharing schedules: closet / party shares and bumps per marketplace, on a schedule, with Share now. */ sharingSchedules: SharingSchedulesResource;
|
|
41
|
+
/** Sharing & bots activity: what shares, relists, bumps, offers and follows went out, what runs next, what it earned. */
|
|
42
|
+
automationActivity: AutomationActivityResource;
|
|
43
|
+
/** The store calendar: scheduled listings, drops, live shows, sales, rentals, workflow runs, vacation, deadlines, clashes. */ calendar: CalendarResource;
|
|
44
|
+
/** One-click bulk automations on a selection: send offers to likers/watchers, share now, smart relist, price drop. */
|
|
45
|
+
listingAutomation: ListingAutomationResource;
|
|
46
|
+
discountPromos: DiscountPromosResource;
|
|
47
|
+
/** Offer rules: per marketplace, price-band discounts to likers / watchers, exclusions, delay and follow-ups. */
|
|
48
|
+
offerRules: OfferRulesResource;
|
|
49
|
+
/** The Publishing queue: crosspost / update / delist / relist tasks by state; retry or discard the failed ones. */
|
|
50
|
+
publishTasks: PublishTasksResource;
|
|
51
|
+
}
|
|
52
|
+
export declare function storeOpsResources(http: HttpClient): StoreOpsClient;
|
|
53
|
+
//# sourceMappingURL=create-client-store-ops.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-client-store-ops.d.ts","sourceRoot":"","sources":["../src/create-client-store-ops.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,sBAAsB,EAClG,sBAAsB,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,uBAAuB,EACtG,qBAAqB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAC5H,kBAAkB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,wBAAwB,EACnH,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,cAAc;IAC7B,qGAAqG;IACrG,kBAAkB,EAAE,0BAA0B,CAAC;IAC/C,kGAAkG;IAClG,WAAW,EAAE,mBAAmB,CAAC;IACjC,sHAAsH;IACtH,aAAa,EAAE,qBAAqB,CAAC;IACrC,qGAAqG;IACrG,gBAAgB,EAAE,wBAAwB,CAAC;IAC3C,+GAA+G;IAC/G,aAAa,EAAE,qBAAqB,CAAC;IACrC,uHAAuH;IACvH,aAAa,EAAE,qBAAqB,CAAC;IACrC,4GAA4G;IAC5G,eAAe,EAAE,uBAAuB,CAAC;IACzC,kHAAkH;IAClH,gBAAgB,EAAE,wBAAwB,CAAC;IAC3C,qGAAqG;IACrG,gBAAgB,EAAE,wBAAwB,CAAC;IAC3C,0GAA0G;IAC1G,cAAc,EAAE,sBAAsB,CAAC;IACvC,iHAAiH;IACjH,aAAa,EAAE,qBAAqB,CAAC;IACrC,4EAA4E;IAC5E,eAAe,EAAE,uBAAuB,CAAC;IACzC,sHAAsH;IACtH,eAAe,EAAE,uBAAuB,CAAC;IACzC,+FAA+F,CAAC,gBAAgB,EAAE,wBAAwB,CAAC;IAC3I,qHAAqH,CAAC,oBAAoB,EAAE,4BAA4B,CAAC;IACzK,yGAAyG,CAAC,gBAAgB,EAAE,wBAAwB,CAAC;IACrJ,yHAAyH;IACzH,kBAAkB,EAAE,0BAA0B,CAAC;IAC/C,8HAA8H,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAC1J,sHAAsH;IACtH,iBAAiB,EAAE,yBAAyB,CAAC;IAAC,cAAc,EAAE,sBAAsB,CAAC;IACrF,iHAAiH;IACjH,UAAU,EAAE,kBAAkB,CAAC;IAC/B,mHAAmH;IACnH,YAAY,EAAE,oBAAoB,CAAC;CACpC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,cAAc,CAqBlE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AutomationActivityResource, AutomationGuardrailsResource, CalendarResource, DelistOutcomesResource, DiscountPromosResource, InventoryLocationsResource, ListingAutomationResource, ListingDefaultsResource, ListingIssuesResource, ListingProposalsResource, ListingScheduleResource, ListingRevisionsResource, ListingWordRulesResource, OfferRulesResource, PublishTasksResource, RestockOrdersResource, SharingSchedulesResource, StockAdjustmentsResource, StockCountsResource, } from './resources.js';
|
|
2
|
+
import { InventoryKitsResource } from './resources/inventory-kits.js';
|
|
3
|
+
import { InventoryLabelsResource } from './resources/inventory-labels.js';
|
|
4
|
+
import { ReorderPointsResource } from './resources/reorder-points.js';
|
|
5
|
+
export function storeOpsResources(http) {
|
|
6
|
+
return {
|
|
7
|
+
inventoryLocations: new InventoryLocationsResource(http),
|
|
8
|
+
stockCounts: new StockCountsResource(http),
|
|
9
|
+
restockOrders: new RestockOrdersResource(http),
|
|
10
|
+
stockAdjustments: new StockAdjustmentsResource(http),
|
|
11
|
+
reorderPoints: new ReorderPointsResource(http),
|
|
12
|
+
inventoryKits: new InventoryKitsResource(http),
|
|
13
|
+
inventoryLabels: new InventoryLabelsResource(http),
|
|
14
|
+
listingRevisions: new ListingRevisionsResource(http),
|
|
15
|
+
listingProposals: new ListingProposalsResource(http),
|
|
16
|
+
delistOutcomes: new DelistOutcomesResource(http),
|
|
17
|
+
listingIssues: new ListingIssuesResource(http),
|
|
18
|
+
listingSchedule: new ListingScheduleResource(http),
|
|
19
|
+
listingDefaults: new ListingDefaultsResource(http),
|
|
20
|
+
listingWordRules: new ListingWordRulesResource(http),
|
|
21
|
+
automationGuardrails: new AutomationGuardrailsResource(http),
|
|
22
|
+
sharingSchedules: new SharingSchedulesResource(http), automationActivity: new AutomationActivityResource(http), calendar: new CalendarResource(http), listingAutomation: new ListingAutomationResource(http), discountPromos: new DiscountPromosResource(http),
|
|
23
|
+
offerRules: new OfferRulesResource(http),
|
|
24
|
+
publishTasks: new PublishTasksResource(http),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=create-client-store-ops.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-client-store-ops.js","sourceRoot":"","sources":["../src/create-client-store-ops.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,0BAA0B,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,sBAAsB,EAClG,sBAAsB,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,uBAAuB,EACtG,qBAAqB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAC5H,kBAAkB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,wBAAwB,EACnH,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,E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