@crossly/sdk 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +216 -2
- package/dist/client.d.ts +61 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +134 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +27 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +23 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +310 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +152 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/_shared.d.ts +13 -0
- package/dist/resources/_shared.d.ts.map +1 -0
- package/dist/resources/_shared.js +2 -0
- package/dist/resources/_shared.js.map +1 -0
- package/dist/resources/account.d.ts +188 -0
- package/dist/resources/account.d.ts.map +1 -0
- package/dist/resources/account.js +398 -0
- package/dist/resources/account.js.map +1 -0
- package/dist/resources/action-log.d.ts +35 -0
- package/dist/resources/action-log.d.ts.map +1 -0
- package/dist/resources/action-log.js +38 -0
- package/dist/resources/action-log.js.map +1 -0
- package/dist/resources/ads.d.ts +131 -0
- package/dist/resources/ads.d.ts.map +1 -0
- package/dist/resources/ads.js +139 -0
- package/dist/resources/ads.js.map +1 -0
- package/dist/resources/ai-images.d.ts +88 -0
- package/dist/resources/ai-images.d.ts.map +1 -0
- package/dist/resources/ai-images.js +9 -0
- package/dist/resources/ai-images.js.map +1 -0
- package/dist/resources/automation.d.ts +148 -0
- package/dist/resources/automation.d.ts.map +1 -0
- package/dist/resources/automation.js +365 -0
- package/dist/resources/automation.js.map +1 -0
- package/dist/resources/brand-drops.d.ts +114 -0
- package/dist/resources/brand-drops.d.ts.map +1 -0
- package/dist/resources/brand-drops.js +57 -0
- package/dist/resources/brand-drops.js.map +1 -0
- package/dist/resources/buyer/after-purchase.d.ts +288 -0
- package/dist/resources/buyer/after-purchase.d.ts.map +1 -0
- package/dist/resources/buyer/after-purchase.js +181 -0
- package/dist/resources/buyer/after-purchase.js.map +1 -0
- package/dist/resources/buyer/audio-summaries.d.ts +21 -0
- package/dist/resources/buyer/audio-summaries.d.ts.map +1 -0
- package/dist/resources/buyer/audio-summaries.js +21 -0
- package/dist/resources/buyer/audio-summaries.js.map +1 -0
- package/dist/resources/buyer/basket-sell.d.ts +135 -0
- package/dist/resources/buyer/basket-sell.d.ts.map +1 -0
- package/dist/resources/buyer/basket-sell.js +49 -0
- package/dist/resources/buyer/basket-sell.js.map +1 -0
- package/dist/resources/buyer/commerce.d.ts +170 -0
- package/dist/resources/buyer/commerce.d.ts.map +1 -0
- package/dist/resources/buyer/commerce.js +109 -0
- package/dist/resources/buyer/commerce.js.map +1 -0
- package/dist/resources/buyer/delivery.d.ts +60 -0
- package/dist/resources/buyer/delivery.d.ts.map +1 -0
- package/dist/resources/buyer/delivery.js +22 -0
- package/dist/resources/buyer/delivery.js.map +1 -0
- package/dist/resources/buyer/discover.d.ts +121 -0
- package/dist/resources/buyer/discover.d.ts.map +1 -0
- package/dist/resources/buyer/discover.js +60 -0
- package/dist/resources/buyer/discover.js.map +1 -0
- package/dist/resources/buyer/friends-boards-clubs.d.ts +207 -0
- package/dist/resources/buyer/friends-boards-clubs.d.ts.map +1 -0
- package/dist/resources/buyer/friends-boards-clubs.js +58 -0
- package/dist/resources/buyer/friends-boards-clubs.js.map +1 -0
- package/dist/resources/buyer/gift-cards.d.ts +101 -0
- package/dist/resources/buyer/gift-cards.d.ts.map +1 -0
- package/dist/resources/buyer/gift-cards.js +44 -0
- package/dist/resources/buyer/gift-cards.js.map +1 -0
- package/dist/resources/buyer/lists.d.ts +163 -0
- package/dist/resources/buyer/lists.d.ts.map +1 -0
- package/dist/resources/buyer/lists.js +153 -0
- package/dist/resources/buyer/lists.js.map +1 -0
- package/dist/resources/buyer/live-shop.d.ts +171 -0
- package/dist/resources/buyer/live-shop.d.ts.map +1 -0
- package/dist/resources/buyer/live-shop.js +8 -0
- package/dist/resources/buyer/live-shop.js.map +1 -0
- package/dist/resources/buyer/packs.d.ts +110 -0
- package/dist/resources/buyer/packs.d.ts.map +1 -0
- package/dist/resources/buyer/packs.js +38 -0
- package/dist/resources/buyer/packs.js.map +1 -0
- package/dist/resources/buyer/protection-plans.d.ts +46 -0
- package/dist/resources/buyer/protection-plans.d.ts.map +1 -0
- package/dist/resources/buyer/protection-plans.js +30 -0
- package/dist/resources/buyer/protection-plans.js.map +1 -0
- package/dist/resources/buyer/size-memory.d.ts +56 -0
- package/dist/resources/buyer/size-memory.d.ts.map +1 -0
- package/dist/resources/buyer/size-memory.js +20 -0
- package/dist/resources/buyer/size-memory.js.map +1 -0
- package/dist/resources/buyer/try-on.d.ts +39 -0
- package/dist/resources/buyer/try-on.d.ts.map +1 -0
- package/dist/resources/buyer/try-on.js +27 -0
- package/dist/resources/buyer/try-on.js.map +1 -0
- package/dist/resources/buyer/types.d.ts +166 -0
- package/dist/resources/buyer/types.d.ts.map +1 -0
- package/dist/resources/buyer/types.js +8 -0
- package/dist/resources/buyer/types.js.map +1 -0
- package/dist/resources/buyer/vault.d.ts +73 -0
- package/dist/resources/buyer/vault.d.ts.map +1 -0
- package/dist/resources/buyer/vault.js +30 -0
- package/dist/resources/buyer/vault.js.map +1 -0
- package/dist/resources/buyer/wave3.d.ts +345 -0
- package/dist/resources/buyer/wave3.d.ts.map +1 -0
- package/dist/resources/buyer/wave3.js +73 -0
- package/dist/resources/buyer/wave3.js.map +1 -0
- package/dist/resources/buyer/xmarket-extras.d.ts +189 -0
- package/dist/resources/buyer/xmarket-extras.d.ts.map +1 -0
- package/dist/resources/buyer/xmarket-extras.js +163 -0
- package/dist/resources/buyer/xmarket-extras.js.map +1 -0
- package/dist/resources/buyer/xmarket.d.ts +307 -0
- package/dist/resources/buyer/xmarket.d.ts.map +1 -0
- package/dist/resources/buyer/xmarket.js +150 -0
- package/dist/resources/buyer/xmarket.js.map +1 -0
- package/dist/resources/buyer.d.ts +466 -0
- package/dist/resources/buyer.d.ts.map +1 -0
- package/dist/resources/buyer.js +443 -0
- package/dist/resources/buyer.js.map +1 -0
- package/dist/resources/catalog-lookup.d.ts +49 -0
- package/dist/resources/catalog-lookup.d.ts.map +1 -0
- package/dist/resources/catalog-lookup.js +45 -0
- package/dist/resources/catalog-lookup.js.map +1 -0
- package/dist/resources/catalog-matches.d.ts +54 -0
- package/dist/resources/catalog-matches.d.ts.map +1 -0
- package/dist/resources/catalog-matches.js +49 -0
- package/dist/resources/catalog-matches.js.map +1 -0
- package/dist/resources/catalog.d.ts +329 -0
- package/dist/resources/catalog.d.ts.map +1 -0
- package/dist/resources/catalog.js +570 -0
- package/dist/resources/catalog.js.map +1 -0
- package/dist/resources/cbx/ads.d.ts +119 -0
- package/dist/resources/cbx/ads.d.ts.map +1 -0
- package/dist/resources/cbx/ads.js +144 -0
- package/dist/resources/cbx/ads.js.map +1 -0
- package/dist/resources/cbx/credit.d.ts +155 -0
- package/dist/resources/cbx/credit.d.ts.map +1 -0
- package/dist/resources/cbx/credit.js +178 -0
- package/dist/resources/cbx/credit.js.map +1 -0
- package/dist/resources/cbx/rewards.d.ts +97 -0
- package/dist/resources/cbx/rewards.d.ts.map +1 -0
- package/dist/resources/cbx/rewards.js +95 -0
- package/dist/resources/cbx/rewards.js.map +1 -0
- package/dist/resources/cbx/staking.d.ts +82 -0
- package/dist/resources/cbx/staking.d.ts.map +1 -0
- package/dist/resources/cbx/staking.js +104 -0
- package/dist/resources/cbx/staking.js.map +1 -0
- package/dist/resources/cbx/wallet-payments.d.ts +97 -0
- package/dist/resources/cbx/wallet-payments.d.ts.map +1 -0
- package/dist/resources/cbx/wallet-payments.js +95 -0
- package/dist/resources/cbx/wallet-payments.js.map +1 -0
- package/dist/resources/cbx.d.ts +311 -0
- package/dist/resources/cbx.d.ts.map +1 -0
- package/dist/resources/cbx.js +348 -0
- package/dist/resources/cbx.js.map +1 -0
- package/dist/resources/comms.d.ts +84 -0
- package/dist/resources/comms.d.ts.map +1 -0
- package/dist/resources/comms.js +247 -0
- package/dist/resources/comms.js.map +1 -0
- package/dist/resources/cosm/base.d.ts +24 -0
- package/dist/resources/cosm/base.d.ts.map +1 -0
- package/dist/resources/cosm/base.js +7 -0
- package/dist/resources/cosm/base.js.map +1 -0
- package/dist/resources/cosm/cosmetics.d.ts +147 -0
- package/dist/resources/cosm/cosmetics.d.ts.map +1 -0
- package/dist/resources/cosm/cosmetics.js +185 -0
- package/dist/resources/cosm/cosmetics.js.map +1 -0
- package/dist/resources/cosm/currency.d.ts +154 -0
- package/dist/resources/cosm/currency.d.ts.map +1 -0
- package/dist/resources/cosm/currency.js +196 -0
- package/dist/resources/cosm/currency.js.map +1 -0
- package/dist/resources/cosm/designer.d.ts +159 -0
- package/dist/resources/cosm/designer.d.ts.map +1 -0
- package/dist/resources/cosm/designer.js +167 -0
- package/dist/resources/cosm/designer.js.map +1 -0
- package/dist/resources/cosm/market.d.ts +111 -0
- package/dist/resources/cosm/market.d.ts.map +1 -0
- package/dist/resources/cosm/market.js +137 -0
- package/dist/resources/cosm/market.js.map +1 -0
- package/dist/resources/cosm/types.d.ts +6 -0
- package/dist/resources/cosm/types.d.ts.map +1 -0
- package/dist/resources/cosm/types.js +6 -0
- package/dist/resources/cosm/types.js.map +1 -0
- package/dist/resources/cosm.d.ts +46 -0
- package/dist/resources/cosm.d.ts.map +1 -0
- package/dist/resources/cosm.js +45 -0
- package/dist/resources/cosm.js.map +1 -0
- package/dist/resources/customers-types.d.ts +89 -0
- package/dist/resources/customers-types.d.ts.map +1 -0
- package/dist/resources/customers-types.js +7 -0
- package/dist/resources/customers-types.js.map +1 -0
- package/dist/resources/dao.d.ts +118 -0
- package/dist/resources/dao.d.ts.map +1 -0
- package/dist/resources/dao.js +120 -0
- package/dist/resources/dao.js.map +1 -0
- package/dist/resources/devices.d.ts +66 -0
- package/dist/resources/devices.d.ts.map +1 -0
- package/dist/resources/devices.js +28 -0
- package/dist/resources/devices.js.map +1 -0
- package/dist/resources/discovery.d.ts +223 -0
- package/dist/resources/discovery.d.ts.map +1 -0
- package/dist/resources/discovery.js +365 -0
- package/dist/resources/discovery.js.map +1 -0
- package/dist/resources/drops.d.ts +137 -0
- package/dist/resources/drops.d.ts.map +1 -0
- package/dist/resources/drops.js +43 -0
- package/dist/resources/drops.js.map +1 -0
- package/dist/resources/embeds.d.ts +56 -0
- package/dist/resources/embeds.d.ts.map +1 -0
- package/dist/resources/embeds.js +43 -0
- package/dist/resources/embeds.js.map +1 -0
- package/dist/resources/evidence.d.ts +28 -0
- package/dist/resources/evidence.d.ts.map +1 -0
- package/dist/resources/evidence.js +27 -0
- package/dist/resources/evidence.js.map +1 -0
- package/dist/resources/games.d.ts +134 -0
- package/dist/resources/games.d.ts.map +1 -0
- package/dist/resources/games.js +26 -0
- package/dist/resources/games.js.map +1 -0
- package/dist/resources/grading.d.ts +181 -0
- package/dist/resources/grading.d.ts.map +1 -0
- package/dist/resources/grading.js +51 -0
- package/dist/resources/grading.js.map +1 -0
- package/dist/resources/homes.d.ts +106 -0
- package/dist/resources/homes.d.ts.map +1 -0
- package/dist/resources/homes.js +27 -0
- package/dist/resources/homes.js.map +1 -0
- package/dist/resources/imports.d.ts +39 -0
- package/dist/resources/imports.d.ts.map +1 -0
- package/dist/resources/imports.js +37 -0
- package/dist/resources/imports.js.map +1 -0
- package/dist/resources/live-shows.d.ts +100 -0
- package/dist/resources/live-shows.d.ts.map +1 -0
- package/dist/resources/live-shows.js +42 -0
- package/dist/resources/live-shows.js.map +1 -0
- package/dist/resources/loyalty-looks.d.ts +68 -0
- package/dist/resources/loyalty-looks.d.ts.map +1 -0
- package/dist/resources/loyalty-looks.js +21 -0
- package/dist/resources/loyalty-looks.js.map +1 -0
- package/dist/resources/market.d.ts +172 -0
- package/dist/resources/market.d.ts.map +1 -0
- package/dist/resources/market.js +124 -0
- package/dist/resources/market.js.map +1 -0
- package/dist/resources/membership.d.ts +14 -0
- package/dist/resources/membership.d.ts.map +1 -0
- package/dist/resources/membership.js +17 -0
- package/dist/resources/membership.js.map +1 -0
- package/dist/resources/neighbourhoods.d.ts +44 -0
- package/dist/resources/neighbourhoods.d.ts.map +1 -0
- package/dist/resources/neighbourhoods.js +15 -0
- package/dist/resources/neighbourhoods.js.map +1 -0
- package/dist/resources/nft-market.d.ts +26 -0
- package/dist/resources/nft-market.d.ts.map +1 -0
- package/dist/resources/nft-market.js +28 -0
- package/dist/resources/nft-market.js.map +1 -0
- package/dist/resources/offers.d.ts +60 -0
- package/dist/resources/offers.d.ts.map +1 -0
- package/dist/resources/offers.js +38 -0
- package/dist/resources/offers.js.map +1 -0
- package/dist/resources/orders.d.ts +248 -0
- package/dist/resources/orders.d.ts.map +1 -0
- package/dist/resources/orders.js +411 -0
- package/dist/resources/orders.js.map +1 -0
- package/dist/resources/passports.d.ts +101 -0
- package/dist/resources/passports.d.ts.map +1 -0
- package/dist/resources/passports.js +36 -0
- package/dist/resources/passports.js.map +1 -0
- package/dist/resources/payout.d.ts +121 -0
- package/dist/resources/payout.d.ts.map +1 -0
- package/dist/resources/payout.js +65 -0
- package/dist/resources/payout.js.map +1 -0
- package/dist/resources/policy-presets.d.ts +36 -0
- package/dist/resources/policy-presets.d.ts.map +1 -0
- package/dist/resources/policy-presets.js +39 -0
- package/dist/resources/policy-presets.js.map +1 -0
- package/dist/resources/pricing.d.ts +73 -0
- package/dist/resources/pricing.d.ts.map +1 -0
- package/dist/resources/pricing.js +18 -0
- package/dist/resources/pricing.js.map +1 -0
- package/dist/resources/production.d.ts +96 -0
- package/dist/resources/production.d.ts.map +1 -0
- package/dist/resources/production.js +89 -0
- package/dist/resources/production.js.map +1 -0
- package/dist/resources/rentals.d.ts +84 -0
- package/dist/resources/rentals.d.ts.map +1 -0
- package/dist/resources/rentals.js +21 -0
- package/dist/resources/rentals.js.map +1 -0
- package/dist/resources/reputation.d.ts +106 -0
- package/dist/resources/reputation.d.ts.map +1 -0
- package/dist/resources/reputation.js +23 -0
- package/dist/resources/reputation.js.map +1 -0
- package/dist/resources/scan.d.ts +100 -0
- package/dist/resources/scan.d.ts.map +1 -0
- package/dist/resources/scan.js +53 -0
- package/dist/resources/scan.js.map +1 -0
- package/dist/resources/seller-xmarket.d.ts +80 -0
- package/dist/resources/seller-xmarket.d.ts.map +1 -0
- package/dist/resources/seller-xmarket.js +58 -0
- package/dist/resources/seller-xmarket.js.map +1 -0
- package/dist/resources/spatial-auction.d.ts +135 -0
- package/dist/resources/spatial-auction.d.ts.map +1 -0
- package/dist/resources/spatial-auction.js +160 -0
- package/dist/resources/spatial-auction.js.map +1 -0
- package/dist/resources/spatial-emotes.d.ts +60 -0
- package/dist/resources/spatial-emotes.d.ts.map +1 -0
- package/dist/resources/spatial-emotes.js +20 -0
- package/dist/resources/spatial-emotes.js.map +1 -0
- package/dist/resources/spatial-employee.d.ts +140 -0
- package/dist/resources/spatial-employee.d.ts.map +1 -0
- package/dist/resources/spatial-employee.js +128 -0
- package/dist/resources/spatial-employee.js.map +1 -0
- package/dist/resources/spatial-party.d.ts +63 -0
- package/dist/resources/spatial-party.d.ts.map +1 -0
- package/dist/resources/spatial-party.js +15 -0
- package/dist/resources/spatial-party.js.map +1 -0
- package/dist/resources/spatial-rooms.d.ts +132 -0
- package/dist/resources/spatial-rooms.d.ts.map +1 -0
- package/dist/resources/spatial-rooms.js +83 -0
- package/dist/resources/spatial-rooms.js.map +1 -0
- package/dist/resources/spatial.d.ts +228 -0
- package/dist/resources/spatial.d.ts.map +1 -0
- package/dist/resources/spatial.js +325 -0
- package/dist/resources/spatial.js.map +1 -0
- package/dist/resources/stalls.d.ts +203 -0
- package/dist/resources/stalls.d.ts.map +1 -0
- package/dist/resources/stalls.js +50 -0
- package/dist/resources/stalls.js.map +1 -0
- package/dist/resources/storefront-shipping.d.ts +116 -0
- package/dist/resources/storefront-shipping.d.ts.map +1 -0
- package/dist/resources/storefront-shipping.js +32 -0
- package/dist/resources/storefront-shipping.js.map +1 -0
- package/dist/resources/trade-block.d.ts +104 -0
- package/dist/resources/trade-block.d.ts.map +1 -0
- package/dist/resources/trade-block.js +57 -0
- package/dist/resources/trade-block.js.map +1 -0
- package/dist/resources/units.d.ts +65 -0
- package/dist/resources/units.d.ts.map +1 -0
- package/dist/resources/units.js +53 -0
- package/dist/resources/units.js.map +1 -0
- package/dist/resources/variation-groups.d.ts +179 -0
- package/dist/resources/variation-groups.d.ts.map +1 -0
- package/dist/resources/variation-groups.js +69 -0
- package/dist/resources/variation-groups.js.map +1 -0
- package/dist/resources/vault-markets-adl.d.ts +85 -0
- package/dist/resources/vault-markets-adl.d.ts.map +1 -0
- package/dist/resources/vault-markets-adl.js +24 -0
- package/dist/resources/vault-markets-adl.js.map +1 -0
- package/dist/resources/vault-markets-agent.d.ts +96 -0
- package/dist/resources/vault-markets-agent.d.ts.map +1 -0
- package/dist/resources/vault-markets-agent.js +31 -0
- package/dist/resources/vault-markets-agent.js.map +1 -0
- package/dist/resources/vault-markets-alerts-hub.d.ts +90 -0
- package/dist/resources/vault-markets-alerts-hub.d.ts.map +1 -0
- package/dist/resources/vault-markets-alerts-hub.js +23 -0
- package/dist/resources/vault-markets-alerts-hub.js.map +1 -0
- package/dist/resources/vault-markets-analytics.d.ts +80 -0
- package/dist/resources/vault-markets-analytics.d.ts.map +1 -0
- package/dist/resources/vault-markets-analytics.js +68 -0
- package/dist/resources/vault-markets-analytics.js.map +1 -0
- package/dist/resources/vault-markets-bullion.d.ts +218 -0
- package/dist/resources/vault-markets-bullion.d.ts.map +1 -0
- package/dist/resources/vault-markets-bullion.js +50 -0
- package/dist/resources/vault-markets-bullion.js.map +1 -0
- package/dist/resources/vault-markets-channels.d.ts +88 -0
- package/dist/resources/vault-markets-channels.d.ts.map +1 -0
- package/dist/resources/vault-markets-channels.js +41 -0
- package/dist/resources/vault-markets-channels.js.map +1 -0
- package/dist/resources/vault-markets-credit.d.ts +53 -0
- package/dist/resources/vault-markets-credit.d.ts.map +1 -0
- package/dist/resources/vault-markets-credit.js +56 -0
- package/dist/resources/vault-markets-credit.js.map +1 -0
- package/dist/resources/vault-markets-curve-pools.d.ts +135 -0
- package/dist/resources/vault-markets-curve-pools.d.ts.map +1 -0
- package/dist/resources/vault-markets-curve-pools.js +39 -0
- package/dist/resources/vault-markets-curve-pools.js.map +1 -0
- package/dist/resources/vault-markets-floor.d.ts +59 -0
- package/dist/resources/vault-markets-floor.d.ts.map +1 -0
- package/dist/resources/vault-markets-floor.js +11 -0
- package/dist/resources/vault-markets-floor.js.map +1 -0
- package/dist/resources/vault-markets-follows.d.ts +205 -0
- package/dist/resources/vault-markets-follows.d.ts.map +1 -0
- package/dist/resources/vault-markets-follows.js +53 -0
- package/dist/resources/vault-markets-follows.js.map +1 -0
- package/dist/resources/vault-markets-grade-to-vault.d.ts +201 -0
- package/dist/resources/vault-markets-grade-to-vault.d.ts.map +1 -0
- package/dist/resources/vault-markets-grade-to-vault.js +55 -0
- package/dist/resources/vault-markets-grade-to-vault.js.map +1 -0
- package/dist/resources/vault-markets-grading.d.ts +32 -0
- package/dist/resources/vault-markets-grading.d.ts.map +1 -0
- package/dist/resources/vault-markets-grading.js +19 -0
- package/dist/resources/vault-markets-grading.js.map +1 -0
- package/dist/resources/vault-markets-hall.d.ts +121 -0
- package/dist/resources/vault-markets-hall.d.ts.map +1 -0
- package/dist/resources/vault-markets-hall.js +27 -0
- package/dist/resources/vault-markets-hall.js.map +1 -0
- package/dist/resources/vault-markets-health.d.ts +169 -0
- package/dist/resources/vault-markets-health.d.ts.map +1 -0
- package/dist/resources/vault-markets-health.js +15 -0
- package/dist/resources/vault-markets-health.js.map +1 -0
- package/dist/resources/vault-markets-home.d.ts +69 -0
- package/dist/resources/vault-markets-home.d.ts.map +1 -0
- package/dist/resources/vault-markets-home.js +19 -0
- package/dist/resources/vault-markets-home.js.map +1 -0
- package/dist/resources/vault-markets-index.d.ts +71 -0
- package/dist/resources/vault-markets-index.d.ts.map +1 -0
- package/dist/resources/vault-markets-index.js +59 -0
- package/dist/resources/vault-markets-index.js.map +1 -0
- package/dist/resources/vault-markets-inst.d.ts +205 -0
- package/dist/resources/vault-markets-inst.d.ts.map +1 -0
- package/dist/resources/vault-markets-inst.js +143 -0
- package/dist/resources/vault-markets-inst.js.map +1 -0
- package/dist/resources/vault-markets-joint-tod.d.ts +389 -0
- package/dist/resources/vault-markets-joint-tod.d.ts.map +1 -0
- package/dist/resources/vault-markets-joint-tod.js +105 -0
- package/dist/resources/vault-markets-joint-tod.js.map +1 -0
- package/dist/resources/vault-markets-liquidity.d.ts +185 -0
- package/dist/resources/vault-markets-liquidity.d.ts.map +1 -0
- package/dist/resources/vault-markets-liquidity.js +124 -0
- package/dist/resources/vault-markets-liquidity.js.map +1 -0
- package/dist/resources/vault-markets-marks.d.ts +53 -0
- package/dist/resources/vault-markets-marks.d.ts.map +1 -0
- package/dist/resources/vault-markets-marks.js +11 -0
- package/dist/resources/vault-markets-marks.js.map +1 -0
- package/dist/resources/vault-markets-missions.d.ts +75 -0
- package/dist/resources/vault-markets-missions.d.ts.map +1 -0
- package/dist/resources/vault-markets-missions.js +15 -0
- package/dist/resources/vault-markets-missions.js.map +1 -0
- package/dist/resources/vault-markets-mm.d.ts +280 -0
- package/dist/resources/vault-markets-mm.d.ts.map +1 -0
- package/dist/resources/vault-markets-mm.js +110 -0
- package/dist/resources/vault-markets-mm.js.map +1 -0
- package/dist/resources/vault-markets-mode.d.ts +111 -0
- package/dist/resources/vault-markets-mode.d.ts.map +1 -0
- package/dist/resources/vault-markets-mode.js +23 -0
- package/dist/resources/vault-markets-mode.js.map +1 -0
- package/dist/resources/vault-markets-ops.d.ts +88 -0
- package/dist/resources/vault-markets-ops.d.ts.map +1 -0
- package/dist/resources/vault-markets-ops.js +76 -0
- package/dist/resources/vault-markets-ops.js.map +1 -0
- package/dist/resources/vault-markets-oracle-dcm.d.ts +288 -0
- package/dist/resources/vault-markets-oracle-dcm.d.ts.map +1 -0
- package/dist/resources/vault-markets-oracle-dcm.js +48 -0
- package/dist/resources/vault-markets-oracle-dcm.js.map +1 -0
- package/dist/resources/vault-markets-p2p.d.ts +217 -0
- package/dist/resources/vault-markets-p2p.d.ts.map +1 -0
- package/dist/resources/vault-markets-p2p.js +72 -0
- package/dist/resources/vault-markets-p2p.js.map +1 -0
- package/dist/resources/vault-markets-paper.d.ts +222 -0
- package/dist/resources/vault-markets-paper.d.ts.map +1 -0
- package/dist/resources/vault-markets-paper.js +47 -0
- package/dist/resources/vault-markets-paper.js.map +1 -0
- package/dist/resources/vault-markets-pm.d.ts +159 -0
- package/dist/resources/vault-markets-pm.d.ts.map +1 -0
- package/dist/resources/vault-markets-pm.js +27 -0
- package/dist/resources/vault-markets-pm.js.map +1 -0
- package/dist/resources/vault-markets-pop-reports.d.ts +62 -0
- package/dist/resources/vault-markets-pop-reports.d.ts.map +1 -0
- package/dist/resources/vault-markets-pop-reports.js +11 -0
- package/dist/resources/vault-markets-pop-reports.js.map +1 -0
- package/dist/resources/vault-markets-price-widgets.d.ts +138 -0
- package/dist/resources/vault-markets-price-widgets.d.ts.map +1 -0
- package/dist/resources/vault-markets-price-widgets.js +31 -0
- package/dist/resources/vault-markets-price-widgets.js.map +1 -0
- package/dist/resources/vault-markets-pro.d.ts +234 -0
- package/dist/resources/vault-markets-pro.d.ts.map +1 -0
- package/dist/resources/vault-markets-pro.js +75 -0
- package/dist/resources/vault-markets-pro.js.map +1 -0
- package/dist/resources/vault-markets-receipt-tokens.d.ts +170 -0
- package/dist/resources/vault-markets-receipt-tokens.d.ts.map +1 -0
- package/dist/resources/vault-markets-receipt-tokens.js +44 -0
- package/dist/resources/vault-markets-receipt-tokens.js.map +1 -0
- package/dist/resources/vault-markets-reports.d.ts +54 -0
- package/dist/resources/vault-markets-reports.d.ts.map +1 -0
- package/dist/resources/vault-markets-reports.js +16 -0
- package/dist/resources/vault-markets-reports.js.map +1 -0
- package/dist/resources/vault-markets-set-goals.d.ts +219 -0
- package/dist/resources/vault-markets-set-goals.d.ts.map +1 -0
- package/dist/resources/vault-markets-set-goals.js +51 -0
- package/dist/resources/vault-markets-set-goals.js.map +1 -0
- package/dist/resources/vault-markets-social.d.ts +73 -0
- package/dist/resources/vault-markets-social.d.ts.map +1 -0
- package/dist/resources/vault-markets-social.js +84 -0
- package/dist/resources/vault-markets-social.js.map +1 -0
- package/dist/resources/vault-markets-stats.d.ts +177 -0
- package/dist/resources/vault-markets-stats.d.ts.map +1 -0
- package/dist/resources/vault-markets-stats.js +44 -0
- package/dist/resources/vault-markets-stats.js.map +1 -0
- package/dist/resources/vault-markets-supply.d.ts +99 -0
- package/dist/resources/vault-markets-supply.d.ts.map +1 -0
- package/dist/resources/vault-markets-supply.js +73 -0
- package/dist/resources/vault-markets-supply.js.map +1 -0
- package/dist/resources/vault-markets-tax-loss.d.ts +68 -0
- package/dist/resources/vault-markets-tax-loss.d.ts.map +1 -0
- package/dist/resources/vault-markets-tax-loss.js +11 -0
- package/dist/resources/vault-markets-tax-loss.js.map +1 -0
- package/dist/resources/vault-markets-title.d.ts +129 -0
- package/dist/resources/vault-markets-title.d.ts.map +1 -0
- package/dist/resources/vault-markets-title.js +94 -0
- package/dist/resources/vault-markets-title.js.map +1 -0
- package/dist/resources/vault-markets-unit-story.d.ts +105 -0
- package/dist/resources/vault-markets-unit-story.d.ts.map +1 -0
- package/dist/resources/vault-markets-unit-story.js +15 -0
- package/dist/resources/vault-markets-unit-story.js.map +1 -0
- package/dist/resources/vault-markets-valuation.d.ts +136 -0
- package/dist/resources/vault-markets-valuation.d.ts.map +1 -0
- package/dist/resources/vault-markets-valuation.js +37 -0
- package/dist/resources/vault-markets-valuation.js.map +1 -0
- package/dist/resources/vault-markets-vault-suggest.d.ts +92 -0
- package/dist/resources/vault-markets-vault-suggest.d.ts.map +1 -0
- package/dist/resources/vault-markets-vault-suggest.js +15 -0
- package/dist/resources/vault-markets-vault-suggest.js.map +1 -0
- package/dist/resources/vault-markets-widget.d.ts +101 -0
- package/dist/resources/vault-markets-widget.d.ts.map +1 -0
- package/dist/resources/vault-markets-widget.js +27 -0
- package/dist/resources/vault-markets-widget.js.map +1 -0
- package/dist/resources/vault-markets-world.d.ts +286 -0
- package/dist/resources/vault-markets-world.d.ts.map +1 -0
- package/dist/resources/vault-markets-world.js +63 -0
- package/dist/resources/vault-markets-world.js.map +1 -0
- package/dist/resources/vault-markets.d.ts +484 -0
- package/dist/resources/vault-markets.d.ts.map +1 -0
- package/dist/resources/vault-markets.js +269 -0
- package/dist/resources/vault-markets.js.map +1 -0
- package/dist/resources/video-requests.d.ts +44 -0
- package/dist/resources/video-requests.d.ts.map +1 -0
- package/dist/resources/video-requests.js +13 -0
- package/dist/resources/video-requests.js.map +1 -0
- package/dist/resources/web3.d.ts +439 -0
- package/dist/resources/web3.d.ts.map +1 -0
- package/dist/resources/web3.js +462 -0
- package/dist/resources/web3.js.map +1 -0
- package/dist/resources/wholesale.d.ts +23 -0
- package/dist/resources/wholesale.d.ts.map +1 -0
- package/dist/resources/wholesale.js +39 -0
- package/dist/resources/wholesale.js.map +1 -0
- package/dist/resources/world-account.d.ts +71 -0
- package/dist/resources/world-account.d.ts.map +1 -0
- package/dist/resources/world-account.js +67 -0
- package/dist/resources/world-account.js.map +1 -0
- package/dist/resources/world-arcade.d.ts +50 -0
- package/dist/resources/world-arcade.d.ts.map +1 -0
- package/dist/resources/world-arcade.js +11 -0
- package/dist/resources/world-arcade.js.map +1 -0
- package/dist/resources/world-aurora.d.ts +29 -0
- package/dist/resources/world-aurora.d.ts.map +1 -0
- package/dist/resources/world-aurora.js +11 -0
- package/dist/resources/world-aurora.js.map +1 -0
- package/dist/resources/world-capabilities.d.ts +154 -0
- package/dist/resources/world-capabilities.d.ts.map +1 -0
- package/dist/resources/world-capabilities.js +51 -0
- package/dist/resources/world-capabilities.js.map +1 -0
- package/dist/resources/world-chests.d.ts +23 -0
- package/dist/resources/world-chests.d.ts.map +1 -0
- package/dist/resources/world-chests.js +11 -0
- package/dist/resources/world-chests.js.map +1 -0
- package/dist/resources/world-contests.d.ts +72 -0
- package/dist/resources/world-contests.d.ts.map +1 -0
- package/dist/resources/world-contests.js +31 -0
- package/dist/resources/world-contests.js.map +1 -0
- package/dist/resources/world-conventions.d.ts +77 -0
- package/dist/resources/world-conventions.d.ts.map +1 -0
- package/dist/resources/world-conventions.js +51 -0
- package/dist/resources/world-conventions.js.map +1 -0
- package/dist/resources/world-creator.d.ts +94 -0
- package/dist/resources/world-creator.d.ts.map +1 -0
- package/dist/resources/world-creator.js +59 -0
- package/dist/resources/world-creator.js.map +1 -0
- package/dist/resources/world-fireflies.d.ts +23 -0
- package/dist/resources/world-fireflies.d.ts.map +1 -0
- package/dist/resources/world-fireflies.js +11 -0
- package/dist/resources/world-fireflies.js.map +1 -0
- package/dist/resources/world-games.d.ts +112 -0
- package/dist/resources/world-games.d.ts.map +1 -0
- package/dist/resources/world-games.js +55 -0
- package/dist/resources/world-games.js.map +1 -0
- package/dist/resources/world-grails.d.ts +15 -0
- package/dist/resources/world-grails.d.ts.map +1 -0
- package/dist/resources/world-grails.js +11 -0
- package/dist/resources/world-grails.js.map +1 -0
- package/dist/resources/world-hall.d.ts +83 -0
- package/dist/resources/world-hall.d.ts.map +1 -0
- package/dist/resources/world-hall.js +23 -0
- package/dist/resources/world-hall.js.map +1 -0
- package/dist/resources/world-homes.d.ts +55 -0
- package/dist/resources/world-homes.d.ts.map +1 -0
- package/dist/resources/world-homes.js +43 -0
- package/dist/resources/world-homes.js.map +1 -0
- package/dist/resources/world-hunt.d.ts +71 -0
- package/dist/resources/world-hunt.d.ts.map +1 -0
- package/dist/resources/world-hunt.js +19 -0
- package/dist/resources/world-hunt.js.map +1 -0
- package/dist/resources/world-kites.d.ts +23 -0
- package/dist/resources/world-kites.d.ts.map +1 -0
- package/dist/resources/world-kites.js +11 -0
- package/dist/resources/world-kites.js.map +1 -0
- package/dist/resources/world-lanterns.d.ts +23 -0
- package/dist/resources/world-lanterns.d.ts.map +1 -0
- package/dist/resources/world-lanterns.js +11 -0
- package/dist/resources/world-lanterns.js.map +1 -0
- package/dist/resources/world-live.d.ts +146 -0
- package/dist/resources/world-live.d.ts.map +1 -0
- package/dist/resources/world-live.js +47 -0
- package/dist/resources/world-live.js.map +1 -0
- package/dist/resources/world-parties.d.ts +60 -0
- package/dist/resources/world-parties.d.ts.map +1 -0
- package/dist/resources/world-parties.js +55 -0
- package/dist/resources/world-parties.js.map +1 -0
- package/dist/resources/world-places.d.ts +60 -0
- package/dist/resources/world-places.d.ts.map +1 -0
- package/dist/resources/world-places.js +59 -0
- package/dist/resources/world-places.js.map +1 -0
- package/dist/resources/world-provenance.d.ts +18 -0
- package/dist/resources/world-provenance.d.ts.map +1 -0
- package/dist/resources/world-provenance.js +11 -0
- package/dist/resources/world-provenance.js.map +1 -0
- package/dist/resources/world-spaces.d.ts +93 -0
- package/dist/resources/world-spaces.d.ts.map +1 -0
- package/dist/resources/world-spaces.js +75 -0
- package/dist/resources/world-spaces.js.map +1 -0
- package/dist/resources/world-streets.d.ts +91 -0
- package/dist/resources/world-streets.d.ts.map +1 -0
- package/dist/resources/world-streets.js +83 -0
- package/dist/resources/world-streets.js.map +1 -0
- package/dist/resources/world-trials.d.ts +64 -0
- package/dist/resources/world-trials.d.ts.map +1 -0
- package/dist/resources/world-trials.js +15 -0
- package/dist/resources/world-trials.js.map +1 -0
- package/dist/resources/world-wishes.d.ts +23 -0
- package/dist/resources/world-wishes.d.ts.map +1 -0
- package/dist/resources/world-wishes.js +11 -0
- package/dist/resources/world-wishes.js.map +1 -0
- package/dist/resources/world.d.ts +771 -0
- package/dist/resources/world.d.ts.map +1 -0
- package/dist/resources/world.js +233 -0
- package/dist/resources/world.js.map +1 -0
- package/dist/resources.d.ts +142 -0
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +153 -0
- package/dist/resources.js.map +1 -0
- package/dist/types.d.ts +32 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +10 -0
- package/dist/types.js.map +1 -0
- package/dist/webhooks.d.ts +80 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +153 -0
- package/dist/webhooks.js.map +1 -0
- package/package.json +60 -3
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import type { HttpClient, JsonObject } from './_shared.js';
|
|
2
|
+
/**
|
|
3
|
+
* Spatial scenes — an inventory arranged as a physical place.
|
|
4
|
+
*
|
|
5
|
+
* ── Read the geometry as REAL ────────────────────────────────────────
|
|
6
|
+
* Every dimension in a scene is metres, and matches the actual object: a
|
|
7
|
+
* trading card is 0.0635 x 0.0889, a PSA slab is 0.0826 x 0.1334 x 0.0064, an
|
|
8
|
+
* LP jacket is 0.314 square. That is deliberate and it is what makes these
|
|
9
|
+
* responses portable — you can build the same room in another engine and it
|
|
10
|
+
* will hold what this one holds.
|
|
11
|
+
*
|
|
12
|
+
* ── `pinned` is the field that matters ───────────────────────────────
|
|
13
|
+
* Placement is inherited from a layout solver and overridden by humans.
|
|
14
|
+
*
|
|
15
|
+
* pinned: true a person put it there. It will not move.
|
|
16
|
+
* pinned: false the solver chose. It MAY be somewhere else next time —
|
|
17
|
+
* adding stock reflows the unpinned remainder.
|
|
18
|
+
*
|
|
19
|
+
* So do not persist an unpinned placement as though it were a location. If you
|
|
20
|
+
* need a stable address for a physical copy, read the unit's `location`
|
|
21
|
+
* instead, which is written when something is placed in a warehouse scene.
|
|
22
|
+
*/
|
|
23
|
+
/** 'collection' — arranged for looking at. 'warehouse' — must match reality. */
|
|
24
|
+
export type SceneKind = 'shop' | 'collection' | 'warehouse';
|
|
25
|
+
/** Defaults closed; a collection routinely holds things that are not for sale. */
|
|
26
|
+
export type SceneVisibility = 'private' | 'unlisted' | 'public';
|
|
27
|
+
export declare class SpatialResource {
|
|
28
|
+
private http;
|
|
29
|
+
constructor(http: HttpClient);
|
|
30
|
+
/**
|
|
31
|
+
* The rooms this account has — one per market category with catalog-resolved
|
|
32
|
+
* stock, plus a warehouse.
|
|
33
|
+
*
|
|
34
|
+
* Rooms are created on first read rather than requiring setup, so this is
|
|
35
|
+
* safe to call as an entry point on a brand-new account.
|
|
36
|
+
*/
|
|
37
|
+
scenes(): Promise<JsonObject>;
|
|
38
|
+
/**
|
|
39
|
+
* Public rooms anyone can walk into — the directory behind world-hopping.
|
|
40
|
+
*
|
|
41
|
+
* A room appears here when its owner sets visibility to `public`, which is
|
|
42
|
+
* the act of publishing it. `unlisted` rooms are deliberately absent: that
|
|
43
|
+
* setting means "reachable with the link", not "list me". Rooms with no
|
|
44
|
+
* items are omitted, because an empty room is not a destination.
|
|
45
|
+
*
|
|
46
|
+
* Carries what a doorway needs and what a decision needs: name, slug,
|
|
47
|
+
* category, `itemCount`, up to four `previewImages`, `forSaleCount`, a
|
|
48
|
+
* `priceFromCents`/`priceToCents` band and `updatedAt`. The band is a BAND —
|
|
49
|
+
* the authority on what one object costs is
|
|
50
|
+
* `/api/public/spatial/{slug}/offers`, never this. Fetch the room itself
|
|
51
|
+
* from `/api/public/spatial/{slug}`.
|
|
52
|
+
*/
|
|
53
|
+
publicScenes(): Promise<JsonObject>;
|
|
54
|
+
/**
|
|
55
|
+
* One solved room: the container geometry, every placement, and the items.
|
|
56
|
+
*
|
|
57
|
+
* `solved.overflow` lists anything that did not fit. It is reported rather
|
|
58
|
+
* than dropped, so a non-empty array means the room is incomplete and the
|
|
59
|
+
* count on screen would otherwise be a lie.
|
|
60
|
+
*/
|
|
61
|
+
scene(sceneId: string): Promise<JsonObject>;
|
|
62
|
+
/** Start a room: a collection or a warehouse (private until made public). */
|
|
63
|
+
createScene(input: {
|
|
64
|
+
kind: 'collection' | 'warehouse';
|
|
65
|
+
name: string;
|
|
66
|
+
categorySlug?: string | null;
|
|
67
|
+
}): Promise<{
|
|
68
|
+
data: JsonObject;
|
|
69
|
+
}>;
|
|
70
|
+
/** Rename one of your rooms. */
|
|
71
|
+
renameScene(sceneId: string, name: string): Promise<{
|
|
72
|
+
data: JsonObject;
|
|
73
|
+
}>;
|
|
74
|
+
/** Make one of your rooms private, unlisted or public. */
|
|
75
|
+
setSceneVisibility(sceneId: string, visibility: 'private' | 'unlisted' | 'public'): Promise<{
|
|
76
|
+
data: JsonObject;
|
|
77
|
+
}>;
|
|
78
|
+
/** A room's layout settings: grouping, sorting, theme, overlay, arrival camera. */
|
|
79
|
+
updateSceneSettings(sceneId: string, settings: JsonObject): Promise<{
|
|
80
|
+
data: JsonObject;
|
|
81
|
+
}>;
|
|
82
|
+
/**
|
|
83
|
+
* A shared room, by its public slug — what a visitor sees.
|
|
84
|
+
*
|
|
85
|
+
* Same geometry and the same solved arrangement as `scene()`, REDACTED: no
|
|
86
|
+
* cost, no storage location, no listing status, because none of those are a
|
|
87
|
+
* visitor's business. Do not write code against this expecting the owner
|
|
88
|
+
* view's fields.
|
|
89
|
+
*
|
|
90
|
+
* Resolves rooms shared as `unlisted` as well as `public`. `unlisted` is
|
|
91
|
+
* absent from `publicScenes()` on purpose — it means "reachable with the
|
|
92
|
+
* link", and holding the link is the permission.
|
|
93
|
+
*
|
|
94
|
+
* `pinned` still means what it means: false is a solver's choice and may
|
|
95
|
+
* differ next time. A non-empty `solved.overflow` means the room is
|
|
96
|
+
* incomplete and `stats.itemCount` is larger than what actually drew.
|
|
97
|
+
*/
|
|
98
|
+
publicScene(slug: string): Promise<JsonObject>;
|
|
99
|
+
/**
|
|
100
|
+
* What is for sale in a shared room: price, stock, condition, grade.
|
|
101
|
+
*
|
|
102
|
+
* Correlate each offer to the object on the shelf by `itemId` — the same id
|
|
103
|
+
* the scene payload carries per item. Never by title; matching a room item to
|
|
104
|
+
* a listing by resemblance is how somebody gets sold the wrong card.
|
|
105
|
+
*
|
|
106
|
+
* ── This is a SECOND call because it has a second lifetime ───────────
|
|
107
|
+
* A room's shape is stable for minutes and is meant to be cached. A price is
|
|
108
|
+
* not — it changes when the seller edits a listing — so a quote taken from a
|
|
109
|
+
* cached response is a quote that may already be wrong. Re-read this before
|
|
110
|
+
* quoting or adding to a cart; do not persist it beside the room.
|
|
111
|
+
*
|
|
112
|
+
* `priceCents` is cents. `available` is remaining stock or null, and null
|
|
113
|
+
* means unknown rather than zero. An item in the room with no offer here is
|
|
114
|
+
* not for sale, and an empty array is the owner showing a collection rather
|
|
115
|
+
* than selling it — distinct from a 404, which is no such shared room.
|
|
116
|
+
*/
|
|
117
|
+
publicSceneOffers(slug: string): Promise<JsonObject>;
|
|
118
|
+
/** What a plot costs: price and weekly maintenance in cents, paid in CBX at spot. */
|
|
119
|
+
plotQuote(street: string, number: number): Promise<JsonObject>;
|
|
120
|
+
/** Your deeds (address, status, paidThrough, lease) and the leases you rent. */
|
|
121
|
+
property(): Promise<JsonObject>;
|
|
122
|
+
/** Buy a vacant plot from Crossly in EARNED CBX; your shop moves onto it. */
|
|
123
|
+
buyPlot(street: string, number: number): Promise<JsonObject>;
|
|
124
|
+
/** Pay a plot's maintenance forward, 1-12 weeks. */
|
|
125
|
+
payMaintenance(deedId: string, weeks: number): Promise<JsonObject>;
|
|
126
|
+
/** Offer a vacant plot you own for lease at a weekly rent (cents). */
|
|
127
|
+
offerLease(deedId: string, rentWeeklyCents: number): Promise<JsonObject>;
|
|
128
|
+
/** Take a plot on lease: pays the first week and moves your shop onto it. */
|
|
129
|
+
acceptLease(leaseId: string): Promise<JsonObject>;
|
|
130
|
+
/** Pay rent forward, 1-12 weeks. Waived while the owner is delinquent. */
|
|
131
|
+
payRent(leaseId: string, weeks: number): Promise<JsonObject>;
|
|
132
|
+
/** End a lease, as owner or tenant. */
|
|
133
|
+
endLease(leaseId: string): Promise<JsonObject>;
|
|
134
|
+
/** Your shop's staff (people holding a `staff` grant) and their weekly wages. */
|
|
135
|
+
shopStaff(): Promise<JsonObject>;
|
|
136
|
+
/** Shops you work in as staff. */
|
|
137
|
+
staffing(): Promise<JsonObject>;
|
|
138
|
+
/** Set (or clear with null) a staff member's weekly wage in cents. */
|
|
139
|
+
setStaffWage(grantId: string, wageWeeklyCents: number | null): Promise<JsonObject>;
|
|
140
|
+
/** Pay a staff member's wage forward, 1-4 weeks, from your EARNED CBX. */
|
|
141
|
+
payStaff(grantId: string, weeks: number): Promise<JsonObject>;
|
|
142
|
+
/** Plots for resale, cheapest first; `street` narrows to one street. */
|
|
143
|
+
deedListings(street?: string): Promise<JsonObject>;
|
|
144
|
+
/** List a plot you own for resale at an asking price in cents. */
|
|
145
|
+
listDeed(deedId: string, priceCents: number): Promise<JsonObject>;
|
|
146
|
+
/** Take your plot off the resale market. */
|
|
147
|
+
cancelDeedListing(listingId: string): Promise<JsonObject>;
|
|
148
|
+
/** Buy a plot on the resale market in EARNED CBX; the deed, its maintenance clock and any lease pass to you. */
|
|
149
|
+
buyDeed(listingId: string): Promise<JsonObject>;
|
|
150
|
+
/** What founding a street costs (premium + weekly upkeep, cents, paid in CBX), `cbx.open`, and your `refusal` or null. */
|
|
151
|
+
streetFounding(): Promise<JsonObject>;
|
|
152
|
+
/** Streets you hold or asked to found: status, upkeep, admission, occupancy, Crossly's review note. */
|
|
153
|
+
myStreets(): Promise<JsonObject>;
|
|
154
|
+
/** Ask to found a street (free; Crossly reviews the name). `admission`: open | apply | invite. */
|
|
155
|
+
requestStreet(input: {
|
|
156
|
+
name: string;
|
|
157
|
+
slug?: string;
|
|
158
|
+
admission?: 'open' | 'apply' | 'invite';
|
|
159
|
+
}): Promise<JsonObject>;
|
|
160
|
+
/** Found an approved street: pays the premium in EARNED CBX. 403 until CBX is minted. */
|
|
161
|
+
foundStreet(id: string): Promise<JsonObject>;
|
|
162
|
+
/** Pay a founded street's upkeep forward, 1-12 weeks, in CBX. */
|
|
163
|
+
payStreetUpkeep(id: string, weeks: number): Promise<JsonObject>;
|
|
164
|
+
/** Every street: slug, name, plotCount, occupied; `platform` is Main Street. */
|
|
165
|
+
streets(): Promise<JsonObject>;
|
|
166
|
+
/**
|
|
167
|
+
* A street plot by plot from the entrance. Each plot carries its `address`
|
|
168
|
+
* (`<street>/<number>`, stable while its shop stands there), a `label`
|
|
169
|
+
* ("12 Main Street"), and `shop` (the open shop's directory entry) or null.
|
|
170
|
+
* Open shops carry `life` (`soldToday`, `window`); the street carries
|
|
171
|
+
* `life.billboards` and `life.buskers`.
|
|
172
|
+
*/
|
|
173
|
+
street(slug: string): Promise<JsonObject>;
|
|
174
|
+
/** The shop at `<street>/<number>`: its `publicSlug` and `name`. 404 when vacant or not public. */
|
|
175
|
+
address(street: string, number: number): Promise<JsonObject>;
|
|
176
|
+
/** Your shop's addresses — one per street it stands on. */
|
|
177
|
+
shopAddresses(): Promise<JsonObject>;
|
|
178
|
+
/** Put your (public) shop on an open street; returns its plot `index` and `address`. */
|
|
179
|
+
claimStreetPlot(slug: string): Promise<JsonObject>;
|
|
180
|
+
/** Take your shop off a street. Its address may then go to another shop. */
|
|
181
|
+
leaveStreet(slug: string): Promise<JsonObject>;
|
|
182
|
+
/**
|
|
183
|
+
* A warehouse room as it stands: every rack with its location code, floor
|
|
184
|
+
* position (metres), capacity, stocked count and fill, and the items on it.
|
|
185
|
+
* Correlate racks by `id`; a `code` changes when a zone is relabelled.
|
|
186
|
+
*/
|
|
187
|
+
warehouse(sceneId: string): Promise<JsonObject>;
|
|
188
|
+
/**
|
|
189
|
+
* Stock movements in a room — where things WENT, not where they sit.
|
|
190
|
+
*
|
|
191
|
+
* One row per physical transition: the item, the node it came from, the node
|
|
192
|
+
* it went to, when, and what kind of move it was
|
|
193
|
+
* (`placed`/`moved`/`picked`/`shipped`/`received`/`removed`). This is the
|
|
194
|
+
* only surface that answers "was this shelf busy", and it exists because
|
|
195
|
+
* nothing else records a transition — a placement write overwrites the
|
|
196
|
+
* previous location as it stores the new one.
|
|
197
|
+
*
|
|
198
|
+
* ── Correlate on the node IDS ────────────────────────────────────
|
|
199
|
+
* `fromCode` / `toCode` are display snapshots of the location code AT THE
|
|
200
|
+
* TIME of the move ('A-3-2'). They are neither stable nor unique: a code is
|
|
201
|
+
* derived from the rack's position in the room, so renaming a zone rewrites
|
|
202
|
+
* every code beneath it, and two rooms readily produce the same string.
|
|
203
|
+
* Joining movements to shelves on the code silently merges the histories of
|
|
204
|
+
* unrelated racks. `fromNodeId` / `toNodeId` identify a place; the codes are
|
|
205
|
+
* for printing.
|
|
206
|
+
*
|
|
207
|
+
* A null `toNodeId` on a `shipped` or `picked` row means it left the
|
|
208
|
+
* building. That is a fact, not missing data.
|
|
209
|
+
*
|
|
210
|
+
* ── No employee attribution here ─────────────────────────────────
|
|
211
|
+
* Movements ARE attributed internally, and the dashboard shows the account
|
|
212
|
+
* owner and team admins who moved what. A token has no team role, so there
|
|
213
|
+
* is no honest way to tell whether its holder is the employer or one of the
|
|
214
|
+
* staff being recorded — and guessing permissively would make a PAT a route
|
|
215
|
+
* around a boundary the UI enforces. `meta.attributed` is always false and
|
|
216
|
+
* no actor field is returned.
|
|
217
|
+
*
|
|
218
|
+
* @param window ISO timestamps. Defaults to the last seven days; the server
|
|
219
|
+
* clamps the span to 90 days. `meta.truncated` is true when the window held
|
|
220
|
+
* more rows than one response carries, in which case the OLDEST were cut —
|
|
221
|
+
* narrow the window rather than paging backwards through it.
|
|
222
|
+
*/
|
|
223
|
+
movements(sceneId: string, window?: {
|
|
224
|
+
since?: string;
|
|
225
|
+
until?: string;
|
|
226
|
+
}): Promise<JsonObject>;
|
|
227
|
+
}
|
|
228
|
+
//# sourceMappingURL=spatial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../../src/resources/spatial.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,gFAAgF;AAChF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC;AAE5D,kFAAkF;AAClF,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEhE,qBAAa,eAAe;IACd,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;OAMG;IACH,MAAM;IAON;;;;;;;;;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EAAE,MAAM,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO;CAW3E"}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
export class SpatialResource {
|
|
2
|
+
http;
|
|
3
|
+
constructor(http) {
|
|
4
|
+
this.http = http;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The rooms this account has — one per market category with catalog-resolved
|
|
8
|
+
* stock, plus a warehouse.
|
|
9
|
+
*
|
|
10
|
+
* Rooms are created on first read rather than requiring setup, so this is
|
|
11
|
+
* safe to call as an entry point on a brand-new account.
|
|
12
|
+
*/
|
|
13
|
+
scenes() {
|
|
14
|
+
return this.http.request({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
path: '/v1/spatial/scenes',
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Public rooms anyone can walk into — the directory behind world-hopping.
|
|
21
|
+
*
|
|
22
|
+
* A room appears here when its owner sets visibility to `public`, which is
|
|
23
|
+
* the act of publishing it. `unlisted` rooms are deliberately absent: that
|
|
24
|
+
* setting means "reachable with the link", not "list me". Rooms with no
|
|
25
|
+
* items are omitted, because an empty room is not a destination.
|
|
26
|
+
*
|
|
27
|
+
* Carries what a doorway needs and what a decision needs: name, slug,
|
|
28
|
+
* category, `itemCount`, up to four `previewImages`, `forSaleCount`, a
|
|
29
|
+
* `priceFromCents`/`priceToCents` band and `updatedAt`. The band is a BAND —
|
|
30
|
+
* the authority on what one object costs is
|
|
31
|
+
* `/api/public/spatial/{slug}/offers`, never this. Fetch the room itself
|
|
32
|
+
* from `/api/public/spatial/{slug}`.
|
|
33
|
+
*/
|
|
34
|
+
publicScenes() {
|
|
35
|
+
return this.http.request({
|
|
36
|
+
method: 'GET',
|
|
37
|
+
path: '/v1/spatial/public',
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* One solved room: the container geometry, every placement, and the items.
|
|
42
|
+
*
|
|
43
|
+
* `solved.overflow` lists anything that did not fit. It is reported rather
|
|
44
|
+
* than dropped, so a non-empty array means the room is incomplete and the
|
|
45
|
+
* count on screen would otherwise be a lie.
|
|
46
|
+
*/
|
|
47
|
+
scene(sceneId) {
|
|
48
|
+
return this.http.request({
|
|
49
|
+
method: 'GET',
|
|
50
|
+
path: `/v1/spatial/scenes/${encodeURIComponent(sceneId)}`,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/** Start a room: a collection or a warehouse (private until made public). */
|
|
54
|
+
createScene(input) {
|
|
55
|
+
return this.http.request({ method: 'POST', path: '/v1/spatial/scenes', body: input });
|
|
56
|
+
}
|
|
57
|
+
/** Rename one of your rooms. */
|
|
58
|
+
renameScene(sceneId, name) {
|
|
59
|
+
return this.http.request({ method: 'POST', path: `/v1/spatial/scenes/${encodeURIComponent(sceneId)}/rename`, body: { name } });
|
|
60
|
+
}
|
|
61
|
+
/** Make one of your rooms private, unlisted or public. */
|
|
62
|
+
setSceneVisibility(sceneId, visibility) {
|
|
63
|
+
return this.http.request({ method: 'POST', path: `/v1/spatial/scenes/${encodeURIComponent(sceneId)}/visibility`, body: { visibility } });
|
|
64
|
+
}
|
|
65
|
+
/** A room's layout settings: grouping, sorting, theme, overlay, arrival camera. */
|
|
66
|
+
updateSceneSettings(sceneId, settings) {
|
|
67
|
+
return this.http.request({ method: 'PATCH', path: `/v1/spatial/scenes/${encodeURIComponent(sceneId)}/settings`, body: settings });
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* A shared room, by its public slug — what a visitor sees.
|
|
71
|
+
*
|
|
72
|
+
* Same geometry and the same solved arrangement as `scene()`, REDACTED: no
|
|
73
|
+
* cost, no storage location, no listing status, because none of those are a
|
|
74
|
+
* visitor's business. Do not write code against this expecting the owner
|
|
75
|
+
* view's fields.
|
|
76
|
+
*
|
|
77
|
+
* Resolves rooms shared as `unlisted` as well as `public`. `unlisted` is
|
|
78
|
+
* absent from `publicScenes()` on purpose — it means "reachable with the
|
|
79
|
+
* link", and holding the link is the permission.
|
|
80
|
+
*
|
|
81
|
+
* `pinned` still means what it means: false is a solver's choice and may
|
|
82
|
+
* differ next time. A non-empty `solved.overflow` means the room is
|
|
83
|
+
* incomplete and `stats.itemCount` is larger than what actually drew.
|
|
84
|
+
*/
|
|
85
|
+
publicScene(slug) {
|
|
86
|
+
return this.http.request({
|
|
87
|
+
method: 'GET',
|
|
88
|
+
path: `/v1/spatial/public/${encodeURIComponent(slug)}`,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* What is for sale in a shared room: price, stock, condition, grade.
|
|
93
|
+
*
|
|
94
|
+
* Correlate each offer to the object on the shelf by `itemId` — the same id
|
|
95
|
+
* the scene payload carries per item. Never by title; matching a room item to
|
|
96
|
+
* a listing by resemblance is how somebody gets sold the wrong card.
|
|
97
|
+
*
|
|
98
|
+
* ── This is a SECOND call because it has a second lifetime ───────────
|
|
99
|
+
* A room's shape is stable for minutes and is meant to be cached. A price is
|
|
100
|
+
* not — it changes when the seller edits a listing — so a quote taken from a
|
|
101
|
+
* cached response is a quote that may already be wrong. Re-read this before
|
|
102
|
+
* quoting or adding to a cart; do not persist it beside the room.
|
|
103
|
+
*
|
|
104
|
+
* `priceCents` is cents. `available` is remaining stock or null, and null
|
|
105
|
+
* means unknown rather than zero. An item in the room with no offer here is
|
|
106
|
+
* not for sale, and an empty array is the owner showing a collection rather
|
|
107
|
+
* than selling it — distinct from a 404, which is no such shared room.
|
|
108
|
+
*/
|
|
109
|
+
publicSceneOffers(slug) {
|
|
110
|
+
return this.http.request({
|
|
111
|
+
method: 'GET',
|
|
112
|
+
path: `/v1/spatial/public/${encodeURIComponent(slug)}/offers`,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/** What a plot costs: price and weekly maintenance in cents, paid in CBX at spot. */
|
|
116
|
+
plotQuote(street, number) {
|
|
117
|
+
return this.http.request({
|
|
118
|
+
method: 'GET',
|
|
119
|
+
path: `/v1/spatial/streets/${encodeURIComponent(street)}/plots/${Math.trunc(number)}/quote`,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/** Your deeds (address, status, paidThrough, lease) and the leases you rent. */
|
|
123
|
+
property() {
|
|
124
|
+
return this.http.request({ method: 'GET', path: '/v1/spatial/property' });
|
|
125
|
+
}
|
|
126
|
+
/** Buy a vacant plot from Crossly in EARNED CBX; your shop moves onto it. */
|
|
127
|
+
buyPlot(street, number) {
|
|
128
|
+
return this.http.request({
|
|
129
|
+
method: 'POST',
|
|
130
|
+
path: `/v1/spatial/streets/${encodeURIComponent(street)}/plots/${Math.trunc(number)}/buy`,
|
|
131
|
+
body: {},
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/** Pay a plot's maintenance forward, 1-12 weeks. */
|
|
135
|
+
payMaintenance(deedId, weeks) {
|
|
136
|
+
return this.http.request({
|
|
137
|
+
method: 'POST', path: `/v1/spatial/property/deeds/${encodeURIComponent(deedId)}/maintenance`, body: { weeks },
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/** Offer a vacant plot you own for lease at a weekly rent (cents). */
|
|
141
|
+
offerLease(deedId, rentWeeklyCents) {
|
|
142
|
+
return this.http.request({
|
|
143
|
+
method: 'POST', path: `/v1/spatial/property/deeds/${encodeURIComponent(deedId)}/lease`, body: { rentWeeklyCents },
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/** Take a plot on lease: pays the first week and moves your shop onto it. */
|
|
147
|
+
acceptLease(leaseId) {
|
|
148
|
+
return this.http.request({
|
|
149
|
+
method: 'POST', path: `/v1/spatial/property/leases/${encodeURIComponent(leaseId)}/accept`, body: {},
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/** Pay rent forward, 1-12 weeks. Waived while the owner is delinquent. */
|
|
153
|
+
payRent(leaseId, weeks) {
|
|
154
|
+
return this.http.request({
|
|
155
|
+
method: 'POST', path: `/v1/spatial/property/leases/${encodeURIComponent(leaseId)}/rent`, body: { weeks },
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/** End a lease, as owner or tenant. */
|
|
159
|
+
endLease(leaseId) {
|
|
160
|
+
return this.http.request({
|
|
161
|
+
method: 'POST', path: `/v1/spatial/property/leases/${encodeURIComponent(leaseId)}/end`, body: {},
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/** Your shop's staff (people holding a `staff` grant) and their weekly wages. */
|
|
165
|
+
shopStaff() {
|
|
166
|
+
return this.http.request({ method: 'GET', path: '/v1/spatial/shop/staff' });
|
|
167
|
+
}
|
|
168
|
+
/** Shops you work in as staff. */
|
|
169
|
+
staffing() {
|
|
170
|
+
return this.http.request({ method: 'GET', path: '/v1/spatial/staffing' });
|
|
171
|
+
}
|
|
172
|
+
/** Set (or clear with null) a staff member's weekly wage in cents. */
|
|
173
|
+
setStaffWage(grantId, wageWeeklyCents) {
|
|
174
|
+
return this.http.request({
|
|
175
|
+
method: 'PUT', path: `/v1/spatial/shop/staff/${encodeURIComponent(grantId)}/wage`, body: { wageWeeklyCents },
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/** Pay a staff member's wage forward, 1-4 weeks, from your EARNED CBX. */
|
|
179
|
+
payStaff(grantId, weeks) {
|
|
180
|
+
return this.http.request({
|
|
181
|
+
method: 'POST', path: `/v1/spatial/shop/staff/${encodeURIComponent(grantId)}/pay`, body: { weeks },
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
/** Plots for resale, cheapest first; `street` narrows to one street. */
|
|
185
|
+
deedListings(street) {
|
|
186
|
+
return this.http.request({ method: 'GET', path: '/v1/spatial/deeds/listings', query: street ? { street } : undefined });
|
|
187
|
+
}
|
|
188
|
+
/** List a plot you own for resale at an asking price in cents. */
|
|
189
|
+
listDeed(deedId, priceCents) {
|
|
190
|
+
return this.http.request({
|
|
191
|
+
method: 'POST', path: `/v1/spatial/property/deeds/${encodeURIComponent(deedId)}/list`, body: { priceCents },
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
/** Take your plot off the resale market. */
|
|
195
|
+
cancelDeedListing(listingId) {
|
|
196
|
+
return this.http.request({
|
|
197
|
+
method: 'POST', path: `/v1/spatial/property/listings/${encodeURIComponent(listingId)}/cancel`, body: {},
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
/** Buy a plot on the resale market in EARNED CBX; the deed, its maintenance clock and any lease pass to you. */
|
|
201
|
+
buyDeed(listingId) {
|
|
202
|
+
return this.http.request({
|
|
203
|
+
method: 'POST', path: `/v1/spatial/property/listings/${encodeURIComponent(listingId)}/buy`, body: {},
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/** What founding a street costs (premium + weekly upkeep, cents, paid in CBX), `cbx.open`, and your `refusal` or null. */
|
|
207
|
+
streetFounding() {
|
|
208
|
+
return this.http.request({ method: 'GET', path: '/v1/spatial/streets/founding' });
|
|
209
|
+
}
|
|
210
|
+
/** Streets you hold or asked to found: status, upkeep, admission, occupancy, Crossly's review note. */
|
|
211
|
+
myStreets() {
|
|
212
|
+
return this.http.request({ method: 'GET', path: '/v1/spatial/streets/mine' });
|
|
213
|
+
}
|
|
214
|
+
/** Ask to found a street (free; Crossly reviews the name). `admission`: open | apply | invite. */
|
|
215
|
+
requestStreet(input) {
|
|
216
|
+
return this.http.request({ method: 'POST', path: '/v1/spatial/streets/requests', body: input });
|
|
217
|
+
}
|
|
218
|
+
/** Found an approved street: pays the premium in EARNED CBX. 403 until CBX is minted. */
|
|
219
|
+
foundStreet(id) {
|
|
220
|
+
return this.http.request({ method: 'POST', path: `/v1/spatial/streets/requests/${encodeURIComponent(id)}/found`, body: {} });
|
|
221
|
+
}
|
|
222
|
+
/** Pay a founded street's upkeep forward, 1-12 weeks, in CBX. */
|
|
223
|
+
payStreetUpkeep(id, weeks) {
|
|
224
|
+
return this.http.request({ method: 'POST', path: `/v1/spatial/streets/owned/${encodeURIComponent(id)}/upkeep`, body: { weeks } });
|
|
225
|
+
}
|
|
226
|
+
/** Every street: slug, name, plotCount, occupied; `platform` is Main Street. */
|
|
227
|
+
streets() {
|
|
228
|
+
return this.http.request({ method: 'GET', path: '/v1/spatial/streets' });
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* A street plot by plot from the entrance. Each plot carries its `address`
|
|
232
|
+
* (`<street>/<number>`, stable while its shop stands there), a `label`
|
|
233
|
+
* ("12 Main Street"), and `shop` (the open shop's directory entry) or null.
|
|
234
|
+
* Open shops carry `life` (`soldToday`, `window`); the street carries
|
|
235
|
+
* `life.billboards` and `life.buskers`.
|
|
236
|
+
*/
|
|
237
|
+
street(slug) {
|
|
238
|
+
return this.http.request({ method: 'GET', path: `/v1/spatial/streets/${encodeURIComponent(slug)}` });
|
|
239
|
+
}
|
|
240
|
+
/** The shop at `<street>/<number>`: its `publicSlug` and `name`. 404 when vacant or not public. */
|
|
241
|
+
address(street, number) {
|
|
242
|
+
return this.http.request({
|
|
243
|
+
method: 'GET',
|
|
244
|
+
path: `/v1/spatial/address/${encodeURIComponent(street)}/${Math.trunc(number)}`,
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
/** Your shop's addresses — one per street it stands on. */
|
|
248
|
+
shopAddresses() {
|
|
249
|
+
return this.http.request({ method: 'GET', path: '/v1/spatial/shop/addresses' });
|
|
250
|
+
}
|
|
251
|
+
/** Put your (public) shop on an open street; returns its plot `index` and `address`. */
|
|
252
|
+
claimStreetPlot(slug) {
|
|
253
|
+
return this.http.request({
|
|
254
|
+
method: 'POST',
|
|
255
|
+
path: `/v1/spatial/streets/${encodeURIComponent(slug)}/claim`,
|
|
256
|
+
body: {},
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
/** Take your shop off a street. Its address may then go to another shop. */
|
|
260
|
+
leaveStreet(slug) {
|
|
261
|
+
return this.http.request({
|
|
262
|
+
method: 'DELETE',
|
|
263
|
+
path: `/v1/spatial/streets/${encodeURIComponent(slug)}/plot`,
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* A warehouse room as it stands: every rack with its location code, floor
|
|
268
|
+
* position (metres), capacity, stocked count and fill, and the items on it.
|
|
269
|
+
* Correlate racks by `id`; a `code` changes when a zone is relabelled.
|
|
270
|
+
*/
|
|
271
|
+
warehouse(sceneId) {
|
|
272
|
+
return this.http.request({
|
|
273
|
+
method: 'GET',
|
|
274
|
+
path: `/v1/spatial/scenes/${encodeURIComponent(sceneId)}/warehouse`,
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Stock movements in a room — where things WENT, not where they sit.
|
|
279
|
+
*
|
|
280
|
+
* One row per physical transition: the item, the node it came from, the node
|
|
281
|
+
* it went to, when, and what kind of move it was
|
|
282
|
+
* (`placed`/`moved`/`picked`/`shipped`/`received`/`removed`). This is the
|
|
283
|
+
* only surface that answers "was this shelf busy", and it exists because
|
|
284
|
+
* nothing else records a transition — a placement write overwrites the
|
|
285
|
+
* previous location as it stores the new one.
|
|
286
|
+
*
|
|
287
|
+
* ── Correlate on the node IDS ────────────────────────────────────
|
|
288
|
+
* `fromCode` / `toCode` are display snapshots of the location code AT THE
|
|
289
|
+
* TIME of the move ('A-3-2'). They are neither stable nor unique: a code is
|
|
290
|
+
* derived from the rack's position in the room, so renaming a zone rewrites
|
|
291
|
+
* every code beneath it, and two rooms readily produce the same string.
|
|
292
|
+
* Joining movements to shelves on the code silently merges the histories of
|
|
293
|
+
* unrelated racks. `fromNodeId` / `toNodeId` identify a place; the codes are
|
|
294
|
+
* for printing.
|
|
295
|
+
*
|
|
296
|
+
* A null `toNodeId` on a `shipped` or `picked` row means it left the
|
|
297
|
+
* building. That is a fact, not missing data.
|
|
298
|
+
*
|
|
299
|
+
* ── No employee attribution here ─────────────────────────────────
|
|
300
|
+
* Movements ARE attributed internally, and the dashboard shows the account
|
|
301
|
+
* owner and team admins who moved what. A token has no team role, so there
|
|
302
|
+
* is no honest way to tell whether its holder is the employer or one of the
|
|
303
|
+
* staff being recorded — and guessing permissively would make a PAT a route
|
|
304
|
+
* around a boundary the UI enforces. `meta.attributed` is always false and
|
|
305
|
+
* no actor field is returned.
|
|
306
|
+
*
|
|
307
|
+
* @param window ISO timestamps. Defaults to the last seven days; the server
|
|
308
|
+
* clamps the span to 90 days. `meta.truncated` is true when the window held
|
|
309
|
+
* more rows than one response carries, in which case the OLDEST were cut —
|
|
310
|
+
* narrow the window rather than paging backwards through it.
|
|
311
|
+
*/
|
|
312
|
+
movements(sceneId, window = {}) {
|
|
313
|
+
const q = new URLSearchParams();
|
|
314
|
+
if (window.since)
|
|
315
|
+
q.set('since', window.since);
|
|
316
|
+
if (window.until)
|
|
317
|
+
q.set('until', window.until);
|
|
318
|
+
const qs = q.toString();
|
|
319
|
+
return this.http.request({
|
|
320
|
+
method: 'GET',
|
|
321
|
+
path: `/v1/spatial/scenes/${encodeURIComponent(sceneId)}/movements${qs ? `?${qs}` : ''}`,
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
//# sourceMappingURL=spatial.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spatial.js","sourceRoot":"","sources":["../../src/resources/spatial.ts"],"names":[],"mappings":"AA8BA,MAAM,OAAO,eAAe;IACN;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;OAMG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,oBAAoB;SAC3B,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,oBAAoB;SAC3B,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK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