@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.
Files changed (449) hide show
  1. package/README.md +8 -12
  2. package/dist/client.d.ts +3 -12
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +16 -86
  5. package/dist/client.js.map +1 -1
  6. package/dist/create-client-carnival.d.ts +44 -0
  7. package/dist/create-client-carnival.d.ts.map +1 -0
  8. package/dist/create-client-carnival.js +31 -0
  9. package/dist/create-client-carnival.js.map +1 -0
  10. package/dist/create-client-data-sync.d.ts +13 -0
  11. package/dist/create-client-data-sync.d.ts.map +1 -0
  12. package/dist/create-client-data-sync.js +7 -0
  13. package/dist/create-client-data-sync.js.map +1 -0
  14. package/dist/create-client-store-ops.d.ts +53 -0
  15. package/dist/create-client-store-ops.d.ts.map +1 -0
  16. package/dist/create-client-store-ops.js +27 -0
  17. package/dist/create-client-store-ops.js.map +1 -0
  18. package/dist/create-client.d.ts +57 -34
  19. package/dist/create-client.d.ts.map +1 -1
  20. package/dist/create-client.js +42 -26
  21. package/dist/create-client.js.map +1 -1
  22. package/dist/errors.d.ts +8 -18
  23. package/dist/errors.d.ts.map +1 -1
  24. package/dist/errors.js +17 -20
  25. package/dist/errors.js.map +1 -1
  26. package/dist/generated/api-types.d.ts +12567 -673
  27. package/dist/generated/api-types.d.ts.map +1 -1
  28. package/dist/generated/operations.d.ts +3337 -513
  29. package/dist/generated/operations.d.ts.map +1 -1
  30. package/dist/generated/operations.js +384 -31
  31. package/dist/generated/operations.js.map +1 -1
  32. package/dist/index.d.ts +21 -10
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +12 -5
  35. package/dist/index.js.map +1 -1
  36. package/dist/public-exports.d.ts +14 -5
  37. package/dist/public-exports.d.ts.map +1 -1
  38. package/dist/public-exports.js +5 -0
  39. package/dist/public-exports.js.map +1 -1
  40. package/dist/resources/account-billing.d.ts +26 -0
  41. package/dist/resources/account-billing.d.ts.map +1 -1
  42. package/dist/resources/account-billing.js +20 -0
  43. package/dist/resources/account-billing.js.map +1 -1
  44. package/dist/resources/account.d.ts +8 -85
  45. package/dist/resources/account.d.ts.map +1 -1
  46. package/dist/resources/account.js +14 -86
  47. package/dist/resources/account.js.map +1 -1
  48. package/dist/resources/ai-integrations.d.ts +36 -0
  49. package/dist/resources/ai-integrations.d.ts.map +1 -1
  50. package/dist/resources/ai-integrations.js +4 -0
  51. package/dist/resources/ai-integrations.js.map +1 -1
  52. package/dist/resources/analytics-benchmarks.d.ts +67 -0
  53. package/dist/resources/analytics-benchmarks.d.ts.map +1 -0
  54. package/dist/resources/analytics-benchmarks.js +24 -0
  55. package/dist/resources/analytics-benchmarks.js.map +1 -0
  56. package/dist/resources/analytics-goals.d.ts +100 -0
  57. package/dist/resources/analytics-goals.d.ts.map +1 -0
  58. package/dist/resources/analytics-goals.js +45 -0
  59. package/dist/resources/analytics-goals.js.map +1 -0
  60. package/dist/resources/analytics.d.ts +108 -0
  61. package/dist/resources/analytics.d.ts.map +1 -0
  62. package/dist/resources/analytics.js +110 -0
  63. package/dist/resources/analytics.js.map +1 -0
  64. package/dist/resources/automation-activity.d.ts +32 -0
  65. package/dist/resources/automation-activity.d.ts.map +1 -0
  66. package/dist/resources/automation-activity.js +26 -0
  67. package/dist/resources/automation-activity.js.map +1 -0
  68. package/dist/resources/automation-guardrails.d.ts +42 -0
  69. package/dist/resources/automation-guardrails.d.ts.map +1 -0
  70. package/dist/resources/automation-guardrails.js +31 -0
  71. package/dist/resources/automation-guardrails.js.map +1 -0
  72. package/dist/resources/automation.d.ts +1 -1
  73. package/dist/resources/automation.d.ts.map +1 -1
  74. package/dist/resources/books.d.ts +147 -1
  75. package/dist/resources/books.d.ts.map +1 -1
  76. package/dist/resources/books.js +53 -0
  77. package/dist/resources/books.js.map +1 -1
  78. package/dist/resources/branding.d.ts +38 -3
  79. package/dist/resources/branding.d.ts.map +1 -1
  80. package/dist/resources/branding.js +12 -2
  81. package/dist/resources/branding.js.map +1 -1
  82. package/dist/resources/buyer/after-purchase.d.ts +26 -4
  83. package/dist/resources/buyer/after-purchase.d.ts.map +1 -1
  84. package/dist/resources/buyer/after-purchase.js +26 -4
  85. package/dist/resources/buyer/after-purchase.js.map +1 -1
  86. package/dist/resources/buyer/catalog-surface.d.ts +291 -0
  87. package/dist/resources/buyer/catalog-surface.d.ts.map +1 -0
  88. package/dist/resources/buyer/catalog-surface.js +314 -0
  89. package/dist/resources/buyer/catalog-surface.js.map +1 -0
  90. package/dist/resources/buyer/commerce.d.ts +15 -3
  91. package/dist/resources/buyer/commerce.d.ts.map +1 -1
  92. package/dist/resources/buyer/commerce.js +15 -3
  93. package/dist/resources/buyer/commerce.js.map +1 -1
  94. package/dist/resources/buyer/gift-cards.d.ts +12 -2
  95. package/dist/resources/buyer/gift-cards.d.ts.map +1 -1
  96. package/dist/resources/buyer/gift-cards.js +12 -2
  97. package/dist/resources/buyer/gift-cards.js.map +1 -1
  98. package/dist/resources/buyer/xmarket.d.ts +2 -0
  99. package/dist/resources/buyer/xmarket.d.ts.map +1 -1
  100. package/dist/resources/buyer/xmarket.js +2 -0
  101. package/dist/resources/buyer/xmarket.js.map +1 -1
  102. package/dist/resources/buyer.d.ts +216 -244
  103. package/dist/resources/buyer.d.ts.map +1 -1
  104. package/dist/resources/buyer.js +192 -263
  105. package/dist/resources/buyer.js.map +1 -1
  106. package/dist/resources/calendar.d.ts +48 -0
  107. package/dist/resources/calendar.d.ts.map +1 -0
  108. package/dist/resources/calendar.js +23 -0
  109. package/dist/resources/calendar.js.map +1 -0
  110. package/dist/resources/campaigns.d.ts +212 -0
  111. package/dist/resources/campaigns.d.ts.map +1 -0
  112. package/dist/resources/campaigns.js +60 -0
  113. package/dist/resources/campaigns.js.map +1 -0
  114. package/dist/resources/catalog.d.ts +34 -162
  115. package/dist/resources/catalog.d.ts.map +1 -1
  116. package/dist/resources/catalog.js +46 -230
  117. package/dist/resources/catalog.js.map +1 -1
  118. package/dist/resources/categories.d.ts +10 -2
  119. package/dist/resources/categories.d.ts.map +1 -1
  120. package/dist/resources/categories.js.map +1 -1
  121. package/dist/resources/channel-inventory.d.ts +24 -0
  122. package/dist/resources/channel-inventory.d.ts.map +1 -1
  123. package/dist/resources/channel-inventory.js +14 -0
  124. package/dist/resources/channel-inventory.js.map +1 -1
  125. package/dist/resources/comms.d.ts +90 -17
  126. package/dist/resources/comms.d.ts.map +1 -1
  127. package/dist/resources/comms.js +68 -16
  128. package/dist/resources/comms.js.map +1 -1
  129. package/dist/resources/connection-health.d.ts +56 -0
  130. package/dist/resources/connection-health.d.ts.map +1 -0
  131. package/dist/resources/connection-health.js +19 -0
  132. package/dist/resources/connection-health.js.map +1 -0
  133. package/dist/resources/connection-panels.d.ts +37 -0
  134. package/dist/resources/connection-panels.d.ts.map +1 -0
  135. package/dist/resources/connection-panels.js +33 -0
  136. package/dist/resources/connection-panels.js.map +1 -0
  137. package/dist/resources/consignment.d.ts +248 -0
  138. package/dist/resources/consignment.d.ts.map +1 -0
  139. package/dist/resources/consignment.js +64 -0
  140. package/dist/resources/consignment.js.map +1 -0
  141. package/dist/resources/custom-data.d.ts +149 -0
  142. package/dist/resources/custom-data.d.ts.map +1 -0
  143. package/dist/resources/custom-data.js +112 -0
  144. package/dist/resources/custom-data.js.map +1 -0
  145. package/dist/resources/customers-types.d.ts +86 -0
  146. package/dist/resources/customers-types.d.ts.map +1 -1
  147. package/dist/resources/customers.d.ts +16 -1
  148. package/dist/resources/customers.d.ts.map +1 -1
  149. package/dist/resources/customers.js +32 -0
  150. package/dist/resources/customers.js.map +1 -1
  151. package/dist/resources/delist-outcomes.d.ts +77 -0
  152. package/dist/resources/delist-outcomes.d.ts.map +1 -0
  153. package/dist/resources/delist-outcomes.js +39 -0
  154. package/dist/resources/delist-outcomes.js.map +1 -0
  155. package/dist/resources/devices.d.ts +90 -0
  156. package/dist/resources/devices.d.ts.map +1 -1
  157. package/dist/resources/devices.js +36 -0
  158. package/dist/resources/devices.js.map +1 -1
  159. package/dist/resources/discount-programs.d.ts +175 -0
  160. package/dist/resources/discount-programs.d.ts.map +1 -1
  161. package/dist/resources/discount-programs.js +33 -0
  162. package/dist/resources/discount-programs.js.map +1 -1
  163. package/dist/resources/discount-promos.d.ts +80 -0
  164. package/dist/resources/discount-promos.d.ts.map +1 -0
  165. package/dist/resources/discount-promos.js +35 -0
  166. package/dist/resources/discount-promos.js.map +1 -0
  167. package/dist/resources/discovery.d.ts +12 -74
  168. package/dist/resources/discovery.d.ts.map +1 -1
  169. package/dist/resources/discovery.js +16 -81
  170. package/dist/resources/discovery.js.map +1 -1
  171. package/dist/resources/drops.d.ts +15 -3
  172. package/dist/resources/drops.d.ts.map +1 -1
  173. package/dist/resources/drops.js +15 -3
  174. package/dist/resources/drops.js.map +1 -1
  175. package/dist/resources/event-policies.d.ts +4 -3
  176. package/dist/resources/event-policies.d.ts.map +1 -1
  177. package/dist/resources/event-policies.js +4 -3
  178. package/dist/resources/event-policies.js.map +1 -1
  179. package/dist/resources/funding.d.ts +17 -0
  180. package/dist/resources/funding.d.ts.map +1 -1
  181. package/dist/resources/funding.js +12 -0
  182. package/dist/resources/funding.js.map +1 -1
  183. package/dist/resources/hub-agent-changes.d.ts +96 -0
  184. package/dist/resources/hub-agent-changes.d.ts.map +1 -0
  185. package/dist/resources/hub-agent-changes.js +34 -0
  186. package/dist/resources/hub-agent-changes.js.map +1 -0
  187. package/dist/resources/hub-programs.d.ts +40 -1
  188. package/dist/resources/hub-programs.d.ts.map +1 -1
  189. package/dist/resources/hub-programs.js +7 -0
  190. package/dist/resources/hub-programs.js.map +1 -1
  191. package/dist/resources/imports.d.ts +54 -0
  192. package/dist/resources/imports.d.ts.map +1 -1
  193. package/dist/resources/imports.js +15 -0
  194. package/dist/resources/imports.js.map +1 -1
  195. package/dist/resources/inventory-bulk-quantity.d.ts +24 -0
  196. package/dist/resources/inventory-bulk-quantity.d.ts.map +1 -0
  197. package/dist/resources/inventory-bulk-quantity.js +3 -0
  198. package/dist/resources/inventory-bulk-quantity.js.map +1 -0
  199. package/dist/resources/inventory-kits.d.ts +42 -0
  200. package/dist/resources/inventory-kits.d.ts.map +1 -0
  201. package/dist/resources/inventory-kits.js +29 -0
  202. package/dist/resources/inventory-kits.js.map +1 -0
  203. package/dist/resources/inventory-labels.d.ts +70 -0
  204. package/dist/resources/inventory-labels.d.ts.map +1 -0
  205. package/dist/resources/inventory-labels.js +34 -0
  206. package/dist/resources/inventory-labels.js.map +1 -0
  207. package/dist/resources/inventory-locations.d.ts +107 -0
  208. package/dist/resources/inventory-locations.d.ts.map +1 -0
  209. package/dist/resources/inventory-locations.js +63 -0
  210. package/dist/resources/inventory-locations.js.map +1 -0
  211. package/dist/resources/inventory-stale.d.ts +33 -0
  212. package/dist/resources/inventory-stale.d.ts.map +1 -0
  213. package/dist/resources/inventory-stale.js +3 -0
  214. package/dist/resources/inventory-stale.js.map +1 -0
  215. package/dist/resources/inventory.d.ts +144 -0
  216. package/dist/resources/inventory.d.ts.map +1 -0
  217. package/dist/resources/inventory.js +221 -0
  218. package/dist/resources/inventory.js.map +1 -0
  219. package/dist/resources/linear.d.ts +157 -0
  220. package/dist/resources/linear.d.ts.map +1 -0
  221. package/dist/resources/linear.js +77 -0
  222. package/dist/resources/linear.js.map +1 -0
  223. package/dist/resources/listing-automation.d.ts +59 -0
  224. package/dist/resources/listing-automation.d.ts.map +1 -0
  225. package/dist/resources/listing-automation.js +28 -0
  226. package/dist/resources/listing-automation.js.map +1 -0
  227. package/dist/resources/listing-defaults.d.ts +57 -0
  228. package/dist/resources/listing-defaults.d.ts.map +1 -0
  229. package/dist/resources/listing-defaults.js +20 -0
  230. package/dist/resources/listing-defaults.js.map +1 -0
  231. package/dist/resources/listing-duplicate.d.ts +46 -0
  232. package/dist/resources/listing-duplicate.d.ts.map +1 -0
  233. package/dist/resources/listing-duplicate.js +6 -0
  234. package/dist/resources/listing-duplicate.js.map +1 -0
  235. package/dist/resources/listing-issues.d.ts +73 -0
  236. package/dist/resources/listing-issues.d.ts.map +1 -0
  237. package/dist/resources/listing-issues.js +44 -0
  238. package/dist/resources/listing-issues.js.map +1 -0
  239. package/dist/resources/listing-list.d.ts +41 -0
  240. package/dist/resources/listing-list.d.ts.map +1 -0
  241. package/dist/resources/listing-list.js +13 -0
  242. package/dist/resources/listing-list.js.map +1 -0
  243. package/dist/resources/listing-photos.d.ts +59 -0
  244. package/dist/resources/listing-photos.d.ts.map +1 -0
  245. package/dist/resources/listing-photos.js +32 -0
  246. package/dist/resources/listing-photos.js.map +1 -0
  247. package/dist/resources/listing-proposals.d.ts +111 -0
  248. package/dist/resources/listing-proposals.d.ts.map +1 -0
  249. package/dist/resources/listing-proposals.js +70 -0
  250. package/dist/resources/listing-proposals.js.map +1 -0
  251. package/dist/resources/listing-revisions.d.ts +88 -0
  252. package/dist/resources/listing-revisions.d.ts.map +1 -0
  253. package/dist/resources/listing-revisions.js +57 -0
  254. package/dist/resources/listing-revisions.js.map +1 -0
  255. package/dist/resources/listing-schedule.d.ts +56 -0
  256. package/dist/resources/listing-schedule.d.ts.map +1 -0
  257. package/dist/resources/listing-schedule.js +40 -0
  258. package/dist/resources/listing-schedule.js.map +1 -0
  259. package/dist/resources/listing-word-rules.d.ts +96 -0
  260. package/dist/resources/listing-word-rules.d.ts.map +1 -0
  261. package/dist/resources/listing-word-rules.js +41 -0
  262. package/dist/resources/listing-word-rules.js.map +1 -0
  263. package/dist/resources/listings-csv.d.ts +105 -0
  264. package/dist/resources/listings-csv.d.ts.map +1 -0
  265. package/dist/resources/listings-csv.js +42 -0
  266. package/dist/resources/listings-csv.js.map +1 -0
  267. package/dist/resources/listings-search.d.ts +47 -0
  268. package/dist/resources/listings-search.d.ts.map +1 -0
  269. package/dist/resources/listings-search.js +2 -0
  270. package/dist/resources/listings-search.js.map +1 -0
  271. package/dist/resources/live-destinations.d.ts +89 -0
  272. package/dist/resources/live-destinations.d.ts.map +1 -0
  273. package/dist/resources/live-destinations.js +34 -0
  274. package/dist/resources/live-destinations.js.map +1 -0
  275. package/dist/resources/live-shows.d.ts +88 -2
  276. package/dist/resources/live-shows.d.ts.map +1 -1
  277. package/dist/resources/live-shows.js +21 -2
  278. package/dist/resources/live-shows.js.map +1 -1
  279. package/dist/resources/marketing.d.ts +141 -0
  280. package/dist/resources/marketing.d.ts.map +1 -0
  281. package/dist/resources/marketing.js +48 -0
  282. package/dist/resources/marketing.js.map +1 -0
  283. package/dist/resources/marketplace-ads.d.ts +214 -0
  284. package/dist/resources/marketplace-ads.d.ts.map +1 -0
  285. package/dist/resources/marketplace-ads.js +56 -0
  286. package/dist/resources/marketplace-ads.js.map +1 -0
  287. package/dist/resources/marketplace-fit.d.ts +58 -0
  288. package/dist/resources/marketplace-fit.d.ts.map +1 -0
  289. package/dist/resources/marketplace-fit.js +16 -0
  290. package/dist/resources/marketplace-fit.js.map +1 -0
  291. package/dist/resources/notion.d.ts +80 -0
  292. package/dist/resources/notion.d.ts.map +1 -0
  293. package/dist/resources/notion.js +54 -0
  294. package/dist/resources/notion.js.map +1 -0
  295. package/dist/resources/offer-rules.d.ts +125 -0
  296. package/dist/resources/offer-rules.d.ts.map +1 -0
  297. package/dist/resources/offer-rules.js +57 -0
  298. package/dist/resources/offer-rules.js.map +1 -0
  299. package/dist/resources/order-cancel-requests.d.ts +68 -0
  300. package/dist/resources/order-cancel-requests.d.ts.map +1 -0
  301. package/dist/resources/order-cancel-requests.js +32 -0
  302. package/dist/resources/order-cancel-requests.js.map +1 -0
  303. package/dist/resources/orders-bulk.d.ts +94 -0
  304. package/dist/resources/orders-bulk.d.ts.map +1 -0
  305. package/dist/resources/orders-bulk.js +58 -0
  306. package/dist/resources/orders-bulk.js.map +1 -0
  307. package/dist/resources/orders-ship-groups.d.ts +72 -0
  308. package/dist/resources/orders-ship-groups.d.ts.map +1 -0
  309. package/dist/resources/orders-ship-groups.js +29 -0
  310. package/dist/resources/orders-ship-groups.js.map +1 -0
  311. package/dist/resources/orders-types.d.ts +53 -0
  312. package/dist/resources/orders-types.d.ts.map +1 -1
  313. package/dist/resources/orders.d.ts +31 -48
  314. package/dist/resources/orders.d.ts.map +1 -1
  315. package/dist/resources/orders.js +19 -64
  316. package/dist/resources/orders.js.map +1 -1
  317. package/dist/resources/price-rules.d.ts +18 -0
  318. package/dist/resources/price-rules.d.ts.map +1 -1
  319. package/dist/resources/price-rules.js.map +1 -1
  320. package/dist/resources/publish-tasks.d.ts +32 -0
  321. package/dist/resources/publish-tasks.d.ts.map +1 -0
  322. package/dist/resources/publish-tasks.js +37 -0
  323. package/dist/resources/publish-tasks.js.map +1 -0
  324. package/dist/resources/rentals.d.ts +2 -2
  325. package/dist/resources/rentals.d.ts.map +1 -1
  326. package/dist/resources/rentals.js.map +1 -1
  327. package/dist/resources/reorder-points.d.ts +34 -0
  328. package/dist/resources/reorder-points.d.ts.map +1 -0
  329. package/dist/resources/reorder-points.js +20 -0
  330. package/dist/resources/reorder-points.js.map +1 -0
  331. package/dist/resources/restock-orders.d.ts +111 -0
  332. package/dist/resources/restock-orders.d.ts.map +1 -0
  333. package/dist/resources/restock-orders.js +67 -0
  334. package/dist/resources/restock-orders.js.map +1 -0
  335. package/dist/resources/returns.d.ts +92 -0
  336. package/dist/resources/returns.d.ts.map +1 -0
  337. package/dist/resources/returns.js +106 -0
  338. package/dist/resources/returns.js.map +1 -0
  339. package/dist/resources/seller-xmarket.d.ts +5 -5
  340. package/dist/resources/seller-xmarket.d.ts.map +1 -1
  341. package/dist/resources/seller-xmarket.js.map +1 -1
  342. package/dist/resources/sentry.d.ts +82 -0
  343. package/dist/resources/sentry.d.ts.map +1 -0
  344. package/dist/resources/sentry.js +49 -0
  345. package/dist/resources/sentry.js.map +1 -0
  346. package/dist/resources/sharing-schedules.d.ts +108 -0
  347. package/dist/resources/sharing-schedules.d.ts.map +1 -0
  348. package/dist/resources/sharing-schedules.js +34 -0
  349. package/dist/resources/sharing-schedules.js.map +1 -0
  350. package/dist/resources/shipping-add-ons-types.d.ts +63 -0
  351. package/dist/resources/shipping-add-ons-types.d.ts.map +1 -0
  352. package/dist/resources/shipping-add-ons-types.js +2 -0
  353. package/dist/resources/shipping-add-ons-types.js.map +1 -0
  354. package/dist/resources/slack-app.d.ts +66 -0
  355. package/dist/resources/slack-app.d.ts.map +1 -0
  356. package/dist/resources/slack-app.js +48 -0
  357. package/dist/resources/slack-app.js.map +1 -0
  358. package/dist/resources/stock-adjustments.d.ts +62 -0
  359. package/dist/resources/stock-adjustments.d.ts.map +1 -0
  360. package/dist/resources/stock-adjustments.js +35 -0
  361. package/dist/resources/stock-adjustments.js.map +1 -0
  362. package/dist/resources/stock-counts.d.ts +73 -0
  363. package/dist/resources/stock-counts.d.ts.map +1 -0
  364. package/dist/resources/stock-counts.js +45 -0
  365. package/dist/resources/stock-counts.js.map +1 -0
  366. package/dist/resources/store-credit.d.ts +119 -0
  367. package/dist/resources/store-credit.d.ts.map +1 -0
  368. package/dist/resources/store-credit.js +47 -0
  369. package/dist/resources/store-credit.js.map +1 -0
  370. package/dist/resources/store-reviews.d.ts +103 -0
  371. package/dist/resources/store-reviews.d.ts.map +1 -0
  372. package/dist/resources/store-reviews.js +39 -0
  373. package/dist/resources/store-reviews.js.map +1 -0
  374. package/dist/resources/store-settings-copy.d.ts +82 -0
  375. package/dist/resources/store-settings-copy.d.ts.map +1 -0
  376. package/dist/resources/store-settings-copy.js +56 -0
  377. package/dist/resources/store-settings-copy.js.map +1 -0
  378. package/dist/resources/store-setup.d.ts +49 -0
  379. package/dist/resources/store-setup.d.ts.map +1 -0
  380. package/dist/resources/store-setup.js +18 -0
  381. package/dist/resources/store-setup.js.map +1 -0
  382. package/dist/resources/storefront-site.d.ts +100 -0
  383. package/dist/resources/storefront-site.d.ts.map +1 -1
  384. package/dist/resources/storefront-site.js +26 -0
  385. package/dist/resources/storefront-site.js.map +1 -1
  386. package/dist/resources/storefronts.d.ts +58 -0
  387. package/dist/resources/storefronts.d.ts.map +1 -1
  388. package/dist/resources/storefronts.js +13 -0
  389. package/dist/resources/storefronts.js.map +1 -1
  390. package/dist/resources/stories-live-studio.d.ts +256 -1
  391. package/dist/resources/stories-live-studio.d.ts.map +1 -1
  392. package/dist/resources/stories-live-studio.js +65 -1
  393. package/dist/resources/stories-live-studio.js.map +1 -1
  394. package/dist/resources/supabase.d.ts +64 -0
  395. package/dist/resources/supabase.d.ts.map +1 -0
  396. package/dist/resources/supabase.js +35 -0
  397. package/dist/resources/supabase.js.map +1 -0
  398. package/dist/resources/tax.d.ts +128 -0
  399. package/dist/resources/tax.d.ts.map +1 -0
  400. package/dist/resources/tax.js +132 -0
  401. package/dist/resources/tax.js.map +1 -0
  402. package/dist/resources/team.d.ts +68 -1
  403. package/dist/resources/team.d.ts.map +1 -1
  404. package/dist/resources/team.js +65 -0
  405. package/dist/resources/team.js.map +1 -1
  406. package/dist/resources/templates.d.ts +19 -3
  407. package/dist/resources/templates.d.ts.map +1 -1
  408. package/dist/resources/templates.js +17 -2
  409. package/dist/resources/templates.js.map +1 -1
  410. package/dist/resources/units.d.ts +43 -1
  411. package/dist/resources/units.d.ts.map +1 -1
  412. package/dist/resources/units.js +17 -1
  413. package/dist/resources/units.js.map +1 -1
  414. package/dist/resources/variation-groups.js +10 -10
  415. package/dist/resources/variation-groups.js.map +1 -1
  416. package/dist/resources/vault-markets-mm.d.ts +6 -28
  417. package/dist/resources/vault-markets-mm.d.ts.map +1 -1
  418. package/dist/resources/vault-markets-mm.js.map +1 -1
  419. package/dist/resources/vault-markets-supply.d.ts +28 -0
  420. package/dist/resources/vault-markets-supply.d.ts.map +1 -1
  421. package/dist/resources/vault-markets-supply.js +12 -0
  422. package/dist/resources/vault-markets-supply.js.map +1 -1
  423. package/dist/resources/workflows-types.d.ts +115 -0
  424. package/dist/resources/workflows-types.d.ts.map +1 -1
  425. package/dist/resources/workflows.d.ts +26 -2
  426. package/dist/resources/workflows.d.ts.map +1 -1
  427. package/dist/resources/workflows.js +34 -0
  428. package/dist/resources/workflows.js.map +1 -1
  429. package/dist/resources/world-conventions.d.ts +3 -3
  430. package/dist/resources/world-conventions.d.ts.map +1 -1
  431. package/dist/resources/world-conventions.js.map +1 -1
  432. package/dist/resources.d.ts +36 -1
  433. package/dist/resources.d.ts.map +1 -1
  434. package/dist/resources.js +36 -1
  435. package/dist/resources.js.map +1 -1
  436. package/dist/settings-exports.d.ts +18 -0
  437. package/dist/settings-exports.d.ts.map +1 -0
  438. package/dist/settings-exports.js +14 -0
  439. package/dist/settings-exports.js.map +1 -0
  440. package/dist/transport/index.d.ts +85 -0
  441. package/dist/transport/index.d.ts.map +1 -0
  442. package/dist/transport/index.js +149 -0
  443. package/dist/transport/index.js.map +1 -0
  444. package/dist/types.d.ts +72 -2
  445. package/dist/types.d.ts.map +1 -1
  446. package/dist/webhooks.d.ts.map +1 -1
  447. package/dist/webhooks.js +14 -5
  448. package/dist/webhooks.js.map +1 -1
  449. package/package.json +4 -7
@@ -0,0 +1,33 @@
1
+ /** GET /v1/inventory/stale: the read of Listings › Stale (the stale inventory playbook). */
2
+ /** How long a listing has been live, since its first channel went live: 60, 90 (default) or 180 days. */
3
+ export type StaleDays = 60 | 90 | 180;
4
+ export interface StaleListingRow {
5
+ id: string;
6
+ title: string | null;
7
+ imageUrl: string | null;
8
+ priceCents: number | null;
9
+ currency: string | null;
10
+ firstLiveAt: string;
11
+ daysListed: number;
12
+ /** Known cost of the linked stock still on the shelf, in cents; null when none is known (never $0). */
13
+ costCents: number | null;
14
+ likes: number;
15
+ }
16
+ export interface StaleListingsPage {
17
+ days: StaleDays;
18
+ items: StaleListingRow[];
19
+ total: number;
20
+ page: number;
21
+ pageSize: number;
22
+ /** Known cost tied up in the whole stale set (each stock item once), in cents. */
23
+ costTiedUpCents: number;
24
+ costUnknownCount: number;
25
+ }
26
+ /** A type alias, not an interface, so it passes as the request's query record. */
27
+ export type StaleListingsParams = {
28
+ days?: StaleDays;
29
+ page?: number;
30
+ /** 1-100, default 25. */
31
+ pageSize?: number;
32
+ };
33
+ //# sourceMappingURL=inventory-stale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory-stale.d.ts","sourceRoot":"","sources":["../../src/resources/inventory-stale.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAE5F,yGAAyG;AACzG,MAAM,MAAM,SAAS,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;AAEtC,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,uGAAuG;IACvG,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,kFAAkF;IAClF,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,kFAAkF;AAClF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** GET /v1/inventory/stale: the read of Listings › Stale (the stale inventory playbook). */
2
+ export {};
3
+ //# sourceMappingURL=inventory-stale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory-stale.js","sourceRoot":"","sources":["../../src/resources/inventory-stale.ts"],"names":[],"mappings":"AAAA,4FAA4F"}
@@ -0,0 +1,144 @@
1
+ /**
2
+ * The SDK's inventory resource (`client.inventory`), split out of catalog.ts at the 650-line cap; catalog.ts
3
+ * re-exports it.
4
+ */
5
+ import type { HttpClient, IdempotencyOpts, JsonObject, PaginationParams, Platform } from './_shared.js';
6
+ import type { StaleListingsPage, StaleListingsParams } from './inventory-stale.js';
7
+ import type { GetInventoryAgingResponse, GetInventorySellThroughResponse } from '../generated/api-types.js';
8
+ import type { BulkQuantityBody, BulkQuantityResult } from './inventory-bulk-quantity.js';
9
+ export declare class InventoryResource {
10
+ private http;
11
+ constructor(http: HttpClient);
12
+ /**
13
+ * Unsold stock by days since first listed (unlisted, 0-7, 7-30, 30-90, 90+): items, units, known cost (items
14
+ * without a cost counted separately) and listed value. Requires `analytics:read`. The full inventory page
15
+ * (worst listings, shelf history, velocity) is `analytics.inventory()`.
16
+ */
17
+ aging(): Promise<GetInventoryAgingResponse>;
18
+ /**
19
+ * Cohort sell-through: of the items first listed in the window (default 30-60 days ago), the share sold within
20
+ * 30 days of listing (`rate`, over `n` mature items; `immature` ones left out), and the change vs the previous
21
+ * window in percentage points (`pp`).
22
+ */
23
+ sellThrough(params?: {
24
+ start?: string;
25
+ end?: string;
26
+ }): Promise<GetInventorySellThroughResponse>;
27
+ /**
28
+ * Stale listings: active listings live at least `days` (60, 90 default, 180) since they first went live, oldest
29
+ * first, with known shelf cost (null when unknown) and the cost tied up in the whole set. Requires `analytics:read`.
30
+ */
31
+ stale(params?: StaleListingsParams): Promise<{
32
+ data: StaleListingsPage;
33
+ }>;
34
+ /** Portfolio value of unsold stock over time, oldest first. */
35
+ valueHistory(params?: {
36
+ days?: number;
37
+ }): Promise<{
38
+ data: {
39
+ points: JsonObject[];
40
+ collectingSince: string | null;
41
+ };
42
+ }>;
43
+ /**
44
+ * `kind`: physical goods or Web3 assets (NFTs from a linked wallet); omit for both.
45
+ * `platforms`: comma list ("ebay,vinted") — items live on any of them;
46
+ * `platformMode: 'not_listed'` inverts it (live on none).
47
+ * `sku`: exact SKU lookup. `updatedSince` (ISO 8601): only items created or changed since then, oldest
48
+ * change first: poll with the `updatedAt` of the last item you saw.
49
+ */
50
+ list(params?: PaginationParams & {
51
+ search?: string;
52
+ status?: 'active' | 'sold' | 'archived';
53
+ kind?: 'physical' | 'web3';
54
+ platforms?: string;
55
+ platformMode?: 'listed' | 'not_listed';
56
+ sku?: string;
57
+ updatedSince?: string;
58
+ assignee?: string;
59
+ kits?: 'true' | 'false';
60
+ }): Promise<JsonObject>;
61
+ /** Items that are the same physical thing → one. Stock is not summed; the rest are archived. */
62
+ merge(body: {
63
+ keepItemId: string;
64
+ mergeItemIds: string[];
65
+ }, opts?: IdempotencyOpts): Promise<JsonObject>;
66
+ get(id: string): Promise<JsonObject>;
67
+ getActivity(id: string, params?: {
68
+ limit?: number;
69
+ }): Promise<JsonObject>;
70
+ /**
71
+ * Create an item. `costBasisCents`: what one unit costs you (net profit). `supplier`: where it comes from,
72
+ * `{ name, kind: 'retailer' | 'wholesale', productUrl, productId, sku, handlingTimeDays, shipFromRegion }`
73
+ * (undeclared kind = retailer). Crossly never orders from the supplier; the source decides which marketplaces may
74
+ * carry the item (dropship policy) and the listing's handling time. Both also settable with `update`.
75
+ * `reorderPoint` ("Reorder at"), `parLevel` ("Restock to") and `preferredSupplier` feed the To restock list
76
+ * (`reorderPoints.list()`); also settable with `update` (null clears).
77
+ */
78
+ create(body: JsonObject, opts?: IdempotencyOpts): Promise<JsonObject>;
79
+ /** Edit a listing. `storefrontId` (optional, Crossly only) moves its Crossly copy into that store. */
80
+ update(id: string, body: JsonObject, opts?: IdempotencyOpts): Promise<JsonObject>;
81
+ archive(id: string, opts?: IdempotencyOpts): Promise<JsonObject>;
82
+ /**
83
+ * Import a CSV.
84
+ *
85
+ * Rows whose `sku` matches an item already on file UPDATE that item; rows
86
+ * without a usable SKU are added. That is what makes export → edit → import
87
+ * an update rather than a second copy of everything — strip the sku column
88
+ * and you will insert duplicates.
89
+ *
90
+ * Pass `dryRun: true` first. The response reports how many rows would be
91
+ * added, updated and skipped without writing anything, which is the
92
+ * difference between catching a bad mapping and finding it in the seller's
93
+ * catalogue afterwards.
94
+ */
95
+ importCsv(body: {
96
+ csv: string;
97
+ dryRun?: boolean;
98
+ }, opts?: IdempotencyOpts): Promise<JsonObject>;
99
+ /** Export inventory as CSV text. Round-trips back through `importCsv`. */
100
+ exportCsv(body?: {
101
+ itemIds?: string[];
102
+ }): Promise<string>;
103
+ bulkLabels(body: JsonObject, opts?: IdempotencyOpts): Promise<JsonObject>;
104
+ /**
105
+ * Set / add / subtract stock across many items at once.
106
+ *
107
+ * Separate from `bulkLabels` and friends because stock is mirrored by the
108
+ * marketplaces: the numbers change immediately, and the returned
109
+ * `bulkJobId` tracks the push to every live listing. Anything dropping to 0
110
+ * is delisted rather than left buyable.
111
+ *
112
+ * Two bodies: `{ ids, mode, value }` applies one value to every id;
113
+ * `{ mode: 'set', items: [{ id, quantity }] }` sets each item to its own
114
+ * stock (1-5000 items, each id once). Either is one call and one bulkJobId.
115
+ *
116
+ * `skipped` counts ids that did not move — already at that number, or not
117
+ * this seller's.
118
+ */
119
+ bulkQuantity(body: BulkQuantityBody, opts?: IdempotencyOpts): Promise<BulkQuantityResult>;
120
+ bulkArchive(ids: string[], opts?: IdempotencyOpts): Promise<JsonObject>;
121
+ /** Undo bulkArchive: items return as active (stock left) or sold_out. */
122
+ bulkRestore(ids: string[], opts?: IdempotencyOpts): Promise<JsonObject>;
123
+ bulkDelete(body: JsonObject, opts?: IdempotencyOpts): Promise<JsonObject>;
124
+ labelsStats(): Promise<JsonObject>;
125
+ labelsRename(body: {
126
+ from: string;
127
+ to: string;
128
+ }, opts?: IdempotencyOpts): Promise<JsonObject>;
129
+ /** Distinct brands + main categories across inventory. */
130
+ facets(): Promise<JsonObject>;
131
+ /** Filter → matching id list. Canonical bulk-action driver. */
132
+ ids(params?: {
133
+ status?: string;
134
+ search?: string;
135
+ category?: string;
136
+ platform?: Platform;
137
+ labels?: string;
138
+ }): Promise<JsonObject>;
139
+ /** Check whether a SKU is already used on this user's inventory. */
140
+ skuExists(sku: string): Promise<JsonObject>;
141
+ /** All distinct labels across this user's inventory. */
142
+ labels(): Promise<JsonObject>;
143
+ }
144
+ //# sourceMappingURL=inventory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory.d.ts","sourceRoot":"","sources":["../../src/resources/inventory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxG,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAC5G,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAEzF,qBAAa,iBAAiB;IAChB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;OAIG;IACH,KAAK;IAGL;;;;OAIG;IACH,WAAW,CAAC,MAAM,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAO;IAOzD;;;OAGG;IACH,KAAK,CAAC,MAAM,GAAE,mBAAwB;cACH,iBAAiB;;IAEpD,+DAA+D;IAC/D,YAAY,CAAC,MAAM,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAO;cACR;YAAE,MAAM,EAAE,UAAU,EAAE,CAAC;YAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE;;IAO3F;;;;;;OAMG;IACH,IAAI,CACF,MAAM,GAAE,gBAAgB,GAAG;QACzB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAA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B,EAAE,IAAI,GAAE,eAAoB;IAQ/D,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,IAAI,GAAE,eAAoB;IAQrD,yEAAyE;IACzE,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,IAAI,GAAE,eAAoB;IAQrD,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,GAAE,eAAoB;IAQvD,WAAW;IAMX,YAAY,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,GAAE,eAAoB;IAU3E,0DAA0D;IAC1D,MAAM;IAGN,+DAA+D;IAC/D,GAAG,CAAC,MAAM,GAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO;IAG9G,oEAAoE;IACpE,SAAS,CAAC,GAAG,EAAE,MAAM;IAGrB,wDAAwD;IACxD,MAAM;CAGP"}
@@ -0,0 +1,221 @@
1
+ export class InventoryResource {
2
+ http;
3
+ constructor(http) {
4
+ this.http = http;
5
+ }
6
+ /**
7
+ * Unsold stock by days since first listed (unlisted, 0-7, 7-30, 30-90, 90+): items, units, known cost (items
8
+ * without a cost counted separately) and listed value. Requires `analytics:read`. The full inventory page
9
+ * (worst listings, shelf history, velocity) is `analytics.inventory()`.
10
+ */
11
+ aging() {
12
+ return this.http.request({ method: 'GET', path: '/v1/inventory/aging' });
13
+ }
14
+ /**
15
+ * Cohort sell-through: of the items first listed in the window (default 30-60 days ago), the share sold within
16
+ * 30 days of listing (`rate`, over `n` mature items; `immature` ones left out), and the change vs the previous
17
+ * window in percentage points (`pp`).
18
+ */
19
+ sellThrough(params = {}) {
20
+ return this.http.request({
21
+ method: 'GET',
22
+ path: '/v1/inventory/sell-through',
23
+ query: params,
24
+ });
25
+ }
26
+ /**
27
+ * Stale listings: active listings live at least `days` (60, 90 default, 180) since they first went live, oldest
28
+ * first, with known shelf cost (null when unknown) and the cost tied up in the whole set. Requires `analytics:read`.
29
+ */
30
+ stale(params = {}) {
31
+ return this.http.request({ method: 'GET', path: '/v1/inventory/stale', query: params });
32
+ }
33
+ /** Portfolio value of unsold stock over time, oldest first. */
34
+ valueHistory(params = {}) {
35
+ return this.http.request({
36
+ method: 'GET',
37
+ path: '/v1/inventory/value-history',
38
+ query: params,
39
+ });
40
+ }
41
+ /**
42
+ * `kind`: physical goods or Web3 assets (NFTs from a linked wallet); omit for both.
43
+ * `platforms`: comma list ("ebay,vinted") — items live on any of them;
44
+ * `platformMode: 'not_listed'` inverts it (live on none).
45
+ * `sku`: exact SKU lookup. `updatedSince` (ISO 8601): only items created or changed since then, oldest
46
+ * change first: poll with the `updatedAt` of the last item you saw.
47
+ */
48
+ list(params = {}) {
49
+ return this.http.request({ method: 'GET', path: '/v1/inventory', query: params });
50
+ }
51
+ /** Items that are the same physical thing → one. Stock is not summed; the rest are archived. */
52
+ merge(body, opts = {}) {
53
+ return this.http.request({
54
+ method: 'POST',
55
+ path: '/v1/inventory/merge',
56
+ body,
57
+ idempotencyKey: opts.idempotencyKey,
58
+ });
59
+ }
60
+ get(id) {
61
+ return this.http.request({ method: 'GET', path: `/v1/inventory/${encodeURIComponent(id)}` });
62
+ }
63
+ getActivity(id, params = {}) {
64
+ return this.http.request({
65
+ method: 'GET',
66
+ path: `/v1/inventory/${encodeURIComponent(id)}/activity`,
67
+ query: params,
68
+ });
69
+ }
70
+ /**
71
+ * Create an item. `costBasisCents`: what one unit costs you (net profit). `supplier`: where it comes from,
72
+ * `{ name, kind: 'retailer' | 'wholesale', productUrl, productId, sku, handlingTimeDays, shipFromRegion }`
73
+ * (undeclared kind = retailer). Crossly never orders from the supplier; the source decides which marketplaces may
74
+ * carry the item (dropship policy) and the listing's handling time. Both also settable with `update`.
75
+ * `reorderPoint` ("Reorder at"), `parLevel` ("Restock to") and `preferredSupplier` feed the To restock list
76
+ * (`reorderPoints.list()`); also settable with `update` (null clears).
77
+ */
78
+ create(body, opts = {}) {
79
+ return this.http.request({
80
+ method: 'POST',
81
+ path: '/v1/inventory',
82
+ body,
83
+ idempotencyKey: opts.idempotencyKey,
84
+ });
85
+ }
86
+ /** Edit a listing. `storefrontId` (optional, Crossly only) moves its Crossly copy into that store. */
87
+ update(id, body, opts = {}) {
88
+ return this.http.request({
89
+ method: 'PATCH',
90
+ path: `/v1/inventory/${encodeURIComponent(id)}`,
91
+ body,
92
+ idempotencyKey: opts.idempotencyKey,
93
+ });
94
+ }
95
+ archive(id, opts = {}) {
96
+ return this.http.request({
97
+ method: 'DELETE',
98
+ path: `/v1/inventory/${encodeURIComponent(id)}`,
99
+ idempotencyKey: opts.idempotencyKey,
100
+ });
101
+ }
102
+ // ─── Spreadsheet round-trip ────────────────────────────────────────────
103
+ /**
104
+ * Import a CSV.
105
+ *
106
+ * Rows whose `sku` matches an item already on file UPDATE that item; rows
107
+ * without a usable SKU are added. That is what makes export → edit → import
108
+ * an update rather than a second copy of everything — strip the sku column
109
+ * and you will insert duplicates.
110
+ *
111
+ * Pass `dryRun: true` first. The response reports how many rows would be
112
+ * added, updated and skipped without writing anything, which is the
113
+ * difference between catching a bad mapping and finding it in the seller's
114
+ * catalogue afterwards.
115
+ */
116
+ importCsv(body, opts = {}) {
117
+ return this.http.request({
118
+ method: 'POST',
119
+ path: '/v1/inventory/csv/import',
120
+ body,
121
+ idempotencyKey: opts.idempotencyKey,
122
+ });
123
+ }
124
+ /** Export inventory as CSV text. Round-trips back through `importCsv`. */
125
+ exportCsv(body = {}) {
126
+ return this.http.request({
127
+ method: 'POST',
128
+ path: '/v1/inventory/csv/export',
129
+ body,
130
+ });
131
+ }
132
+ // ─── Bulk inventory operations ─────────────────────────────────────────
133
+ bulkLabels(body, opts = {}) {
134
+ return this.http.request({
135
+ method: 'POST',
136
+ path: '/v1/inventory/bulk-labels',
137
+ body,
138
+ idempotencyKey: opts.idempotencyKey,
139
+ });
140
+ }
141
+ /**
142
+ * Set / add / subtract stock across many items at once.
143
+ *
144
+ * Separate from `bulkLabels` and friends because stock is mirrored by the
145
+ * marketplaces: the numbers change immediately, and the returned
146
+ * `bulkJobId` tracks the push to every live listing. Anything dropping to 0
147
+ * is delisted rather than left buyable.
148
+ *
149
+ * Two bodies: `{ ids, mode, value }` applies one value to every id;
150
+ * `{ mode: 'set', items: [{ id, quantity }] }` sets each item to its own
151
+ * stock (1-5000 items, each id once). Either is one call and one bulkJobId.
152
+ *
153
+ * `skipped` counts ids that did not move — already at that number, or not
154
+ * this seller's.
155
+ */
156
+ bulkQuantity(body, opts = {}) {
157
+ return this.http.request({
158
+ method: 'POST',
159
+ path: '/v1/inventory/bulk-quantity',
160
+ body,
161
+ idempotencyKey: opts.idempotencyKey,
162
+ });
163
+ }
164
+ bulkArchive(ids, opts = {}) {
165
+ return this.http.request({
166
+ method: 'POST',
167
+ path: '/v1/inventory/bulk-archive',
168
+ body: { ids },
169
+ idempotencyKey: opts.idempotencyKey,
170
+ });
171
+ }
172
+ /** Undo bulkArchive: items return as active (stock left) or sold_out. */
173
+ bulkRestore(ids, opts = {}) {
174
+ return this.http.request({
175
+ method: 'POST',
176
+ path: '/v1/inventory/bulk-restore',
177
+ body: { ids },
178
+ idempotencyKey: opts.idempotencyKey,
179
+ });
180
+ }
181
+ bulkDelete(body, opts = {}) {
182
+ return this.http.request({
183
+ method: 'POST',
184
+ path: '/v1/inventory/bulk-delete',
185
+ body,
186
+ idempotencyKey: opts.idempotencyKey,
187
+ });
188
+ }
189
+ labelsStats() {
190
+ return this.http.request({
191
+ method: 'GET',
192
+ path: '/v1/inventory/labels/stats',
193
+ });
194
+ }
195
+ labelsRename(body, opts = {}) {
196
+ return this.http.request({
197
+ method: 'POST',
198
+ path: '/v1/inventory/labels/rename',
199
+ body,
200
+ idempotencyKey: opts.idempotencyKey,
201
+ });
202
+ }
203
+ // ─── Discovery helpers (facets / ids / sku / labels) ──────────────────
204
+ /** Distinct brands + main categories across inventory. */
205
+ facets() {
206
+ return this.http.request({ method: 'GET', path: '/v1/inventory/facets' });
207
+ }
208
+ /** Filter → matching id list. Canonical bulk-action driver. */
209
+ ids(params = {}) {
210
+ return this.http.request({ method: 'GET', path: '/v1/inventory/ids', query: params });
211
+ }
212
+ /** Check whether a SKU is already used on this user's inventory. */
213
+ skuExists(sku) {
214
+ return this.http.request({ method: 'GET', path: '/v1/inventory/sku-exists', query: { sku } });
215
+ }
216
+ /** All distinct labels across this user's inventory. */
217
+ labels() {
218
+ return this.http.request({ method: 'GET', path: '/v1/inventory/labels' });
219
+ }
220
+ }
221
+ //# sourceMappingURL=inventory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory.js","sourceRoot":"","sources":["../../src/resources/inventory.ts"],"names":[],"mappings":"AASA,MAAM,OAAO,iBAAiB;IACR;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;OAIG;IACH,KAAK;QACH,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAA4B,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC,CAAC;IACtG,CAAC;IACD;;;;OAIG;IACH,WAAW,CAAC,SAA2C,EAAE;QACvD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAkC;YACxD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,4BAA4B;YAClC,KAAK,EAAE,MAAM;SACd,CAAC,CAAC;IACL,CAAC;IACD;;;OAGG;IACH,KAAK,CAAC,SAA8B,EAAE;QACpC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAA8B,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACvH,CAAC;IACD,+DAA+D;IAC/D,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,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC,CAAC;IACL,CAAC;IAED,yEAAyE;IACzE,0DAA0D;IAC1D,MAAM;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CAAC;IACxF,CAAC;IACD,+DAA+D;IAC/D,GAAG,CAAC,SAAwG,EAAE;QAC5G,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACpG,CAAC;IACD,oEAAoE;IACpE,SAAS,CAAC,GAAW;QACnB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,0BAA0B,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IAC5G,CAAC;IACD,wDAAwD;IACxD,MAAM;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CAAC;IACxF,CAAC;CACF"}
@@ -0,0 +1,157 @@
1
+ /**
2
+ * `crossly.linear`: the store's Linear integration over /v1 (Settings › Integrations › Linear).
3
+ *
4
+ * status() GET /v1/integrations/linear `integrations:read`
5
+ * teams() GET /v1/integrations/linear/teams `integrations:read`
6
+ * projects(teamId) GET /v1/integrations/linear/teams/{teamId}/projects `integrations:read`
7
+ * labels(teamId) GET /v1/integrations/linear/teams/{teamId}/labels `integrations:read`
8
+ * update(patch) PATCH /v1/integrations/linear `integrations:write`
9
+ * disconnect() DELETE /v1/integrations/linear `integrations:write`
10
+ * issues(filter?) GET /v1/integrations/linear/issues `integrations:read`
11
+ * createIssue(input) POST /v1/integrations/linear/issues `integrations:write`
12
+ *
13
+ * Connecting a workspace needs a person in a browser (Linear's consent screen): `status().settingsUrl` is the page.
14
+ * Per store: `storefrontId`, else the client's store, else the default store. A token is never returned.
15
+ */
16
+ import type { HttpClient, StoreOpts } from './_shared.js';
17
+ export type LinearEventKey = 'publish_failed' | 'connection_lost' | 'return_requested' | 'automation_failed' | 'low_stock';
18
+ export type LinearRecordType = 'listing' | 'order' | 'inventory_item' | 'workflow' | 'connection';
19
+ export interface LinearConnection {
20
+ id: string;
21
+ status: 'active' | 'revoked' | string;
22
+ organizationName: string | null;
23
+ organizationUrlKey: string | null;
24
+ workspaceUrl: string | null;
25
+ team: {
26
+ id: string;
27
+ name: string | null;
28
+ key: string | null;
29
+ } | null;
30
+ project: {
31
+ id: string;
32
+ name: string | null;
33
+ } | null;
34
+ labelIds: string[];
35
+ events: Record<LinearEventKey, boolean>;
36
+ scopes: string[];
37
+ openIssues: number;
38
+ lastIssueAt: string | null;
39
+ lastError: string | null;
40
+ connectedAt: string;
41
+ updatedAt: string;
42
+ }
43
+ export interface LinearEventRule {
44
+ key: LinearEventKey;
45
+ label: string;
46
+ description: string;
47
+ events: string[];
48
+ defaultOn: boolean;
49
+ }
50
+ export interface LinearStatus {
51
+ /** False when this Crossly deployment has no Linear OAuth app. */
52
+ configured: boolean;
53
+ storefrontId: string;
54
+ connection: LinearConnection | null;
55
+ eventRules: LinearEventRule[];
56
+ callbackUrl: string;
57
+ webhookUrl: string;
58
+ /** Settings › Integrations › Linear, where a person connects the workspace. */
59
+ settingsUrl: string;
60
+ }
61
+ export interface LinearTeam {
62
+ id: string;
63
+ name: string;
64
+ key: string;
65
+ }
66
+ export interface LinearProject {
67
+ id: string;
68
+ name: string;
69
+ }
70
+ export interface LinearLabel {
71
+ id: string;
72
+ name: string;
73
+ color: string | null;
74
+ }
75
+ export interface LinearIssue {
76
+ id: string;
77
+ /** A LinearEventKey, or `manual`. */
78
+ eventKey: string;
79
+ recordType: LinearRecordType | null;
80
+ recordId: string | null;
81
+ state: 'open' | 'resolved' | string;
82
+ title: string;
83
+ linearIssueId: string | null;
84
+ /** e.g. `OPS-123`. */
85
+ identifier: string | null;
86
+ url: string | null;
87
+ /** How many times the problem happened while the issue was open. */
88
+ occurrences: number;
89
+ createdAt: string;
90
+ resolvedAt: string | null;
91
+ }
92
+ export interface LinearSettingsPatch extends StoreOpts {
93
+ teamId?: string | null;
94
+ projectId?: string | null;
95
+ labelIds?: string[];
96
+ events?: Partial<Record<LinearEventKey, boolean>>;
97
+ }
98
+ export interface LinearIssuesFilter extends StoreOpts {
99
+ recordType?: LinearRecordType;
100
+ recordId?: string;
101
+ state?: 'open' | 'resolved';
102
+ limit?: number;
103
+ }
104
+ export interface CreateLinearIssueInput extends StoreOpts {
105
+ recordType: LinearRecordType;
106
+ recordId: string;
107
+ title?: string;
108
+ description?: string;
109
+ /** 0 none, 1 urgent, 2 high, 3 medium, 4 low. */
110
+ priority?: 0 | 1 | 2 | 3 | 4;
111
+ /** A team of the connected workspace; default the connection's team. */
112
+ teamId?: string;
113
+ }
114
+ export type LinearStatusResponse = LinearStatus;
115
+ export type LinearTeamList = {
116
+ data: LinearTeam[];
117
+ };
118
+ export type LinearProjectList = {
119
+ data: LinearProject[];
120
+ };
121
+ export type LinearLabelList = {
122
+ data: LinearLabel[];
123
+ };
124
+ export type LinearConnectionResponse = {
125
+ connection: LinearConnection;
126
+ };
127
+ export type LinearDisconnectResponse = {
128
+ disconnected: boolean;
129
+ revokedAtLinear: boolean;
130
+ };
131
+ export type LinearIssueList = {
132
+ data: LinearIssue[];
133
+ };
134
+ export type LinearIssueResponse = {
135
+ issue: LinearIssue;
136
+ };
137
+ export declare class LinearResource {
138
+ private http;
139
+ constructor(http: HttpClient);
140
+ /** Whether Linear is connected for the store, the team/project/labels, the event toggles and the open issues. */
141
+ status(opts?: StoreOpts): Promise<LinearStatus>;
142
+ /** Teams in the connected workspace. */
143
+ teams(opts?: StoreOpts): Promise<LinearTeamList>;
144
+ /** A team's projects. */
145
+ projects(teamId: string, opts?: StoreOpts): Promise<LinearProjectList>;
146
+ /** A team's labels plus the workspace's labels. */
147
+ labels(teamId: string, opts?: StoreOpts): Promise<LinearLabelList>;
148
+ /** Set the team, project, labels and event toggles. */
149
+ update(patch: LinearSettingsPatch): Promise<LinearConnectionResponse>;
150
+ /** Disconnect the workspace: the token is revoked at Linear. Issues already filed stay in Linear. */
151
+ disconnect(opts?: StoreOpts): Promise<LinearDisconnectResponse>;
152
+ /** Issues Crossly filed for the store, newest first. */
153
+ issues(filter?: LinearIssuesFilter): Promise<LinearIssueList>;
154
+ /** Create a Linear issue from a record; the description links back to it in Crossly. */
155
+ createIssue(input: CreateLinearIssueInput): Promise<LinearIssueResponse>;
156
+ }
157
+ //# sourceMappingURL=linear.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear.d.ts","sourceRoot":"","sources":["../../src/resources/linear.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,MAAM,cAAc,GACtB,gBAAgB,GAChB,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,GACnB,WAAW,CAAC;AAEhB,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,OAAO,GAAG,gBAAgB,GAAG,UAAU,GAAG,YAAY,CAAC;AAElG,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACtC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAA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