@augno/sdk 0.13.4 → 0.14.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.
Files changed (425) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/package.json +1 -1
  3. package/resources/catalog/catalog.d.mts +10 -10
  4. package/resources/catalog/catalog.d.mts.map +1 -1
  5. package/resources/catalog/catalog.d.ts +10 -10
  6. package/resources/catalog/catalog.d.ts.map +1 -1
  7. package/resources/catalog/catalog.js +10 -10
  8. package/resources/catalog/catalog.js.map +1 -1
  9. package/resources/catalog/catalog.mjs +10 -10
  10. package/resources/catalog/catalog.mjs.map +1 -1
  11. package/resources/catalog/index.d.mts +5 -5
  12. package/resources/catalog/index.d.ts +5 -5
  13. package/resources/catalog/index.js +14 -14
  14. package/resources/catalog/index.js.map +1 -1
  15. package/resources/catalog/index.mjs +5 -5
  16. package/resources/catalog/item-categories/actions.d.mts +93 -0
  17. package/resources/catalog/item-categories/actions.d.mts.map +1 -0
  18. package/resources/catalog/item-categories/actions.d.ts +93 -0
  19. package/resources/catalog/item-categories/actions.d.ts.map +1 -0
  20. package/resources/catalog/item-categories/actions.js +35 -0
  21. package/resources/catalog/item-categories/actions.js.map +1 -0
  22. package/resources/catalog/item-categories/actions.mjs +31 -0
  23. package/resources/catalog/item-categories/actions.mjs.map +1 -0
  24. package/resources/catalog/item-categories/index.d.mts +1 -0
  25. package/resources/catalog/item-categories/index.d.mts.map +1 -1
  26. package/resources/catalog/item-categories/index.d.ts +1 -0
  27. package/resources/catalog/item-categories/index.d.ts.map +1 -1
  28. package/resources/catalog/item-categories/index.js +3 -1
  29. package/resources/catalog/item-categories/index.js.map +1 -1
  30. package/resources/catalog/item-categories/index.mjs +1 -0
  31. package/resources/catalog/item-categories/index.mjs.map +1 -1
  32. package/resources/catalog/item-categories/item-categories.d.mts +4 -0
  33. package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
  34. package/resources/catalog/item-categories/item-categories.d.ts +4 -0
  35. package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
  36. package/resources/catalog/item-categories/item-categories.js +4 -0
  37. package/resources/catalog/item-categories/item-categories.js.map +1 -1
  38. package/resources/catalog/item-categories/item-categories.mjs +4 -0
  39. package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
  40. package/resources/catalog/items/items.d.mts +1 -1
  41. package/resources/catalog/items/items.d.mts.map +1 -1
  42. package/resources/catalog/items/items.d.ts +1 -1
  43. package/resources/catalog/items/items.d.ts.map +1 -1
  44. package/resources/catalog/items/items.js.map +1 -1
  45. package/resources/catalog/items/items.mjs.map +1 -1
  46. package/resources/catalog/materials/actions.d.mts +118 -0
  47. package/resources/catalog/materials/actions.d.mts.map +1 -0
  48. package/resources/catalog/materials/actions.d.ts +118 -0
  49. package/resources/catalog/materials/actions.d.ts.map +1 -0
  50. package/resources/catalog/materials/actions.js +33 -0
  51. package/resources/catalog/materials/actions.js.map +1 -0
  52. package/resources/catalog/materials/actions.mjs +29 -0
  53. package/resources/catalog/materials/actions.mjs.map +1 -0
  54. package/resources/catalog/materials/index.d.mts +3 -0
  55. package/resources/catalog/materials/index.d.mts.map +1 -0
  56. package/resources/catalog/materials/index.d.ts +3 -0
  57. package/resources/catalog/materials/index.d.ts.map +1 -0
  58. package/resources/catalog/materials/index.js +9 -0
  59. package/resources/catalog/materials/index.js.map +1 -0
  60. package/resources/catalog/materials/index.mjs +4 -0
  61. package/resources/catalog/materials/index.mjs.map +1 -0
  62. package/resources/catalog/materials/materials.d.mts +483 -0
  63. package/resources/catalog/materials/materials.d.mts.map +1 -0
  64. package/resources/catalog/materials/materials.d.ts +483 -0
  65. package/resources/catalog/materials/materials.d.ts.map +1 -0
  66. package/resources/catalog/materials/materials.js +159 -0
  67. package/resources/catalog/materials/materials.js.map +1 -0
  68. package/resources/catalog/materials/materials.mjs +154 -0
  69. package/resources/catalog/materials/materials.mjs.map +1 -0
  70. package/resources/catalog/materials.d.mts +1 -478
  71. package/resources/catalog/materials.d.mts.map +1 -1
  72. package/resources/catalog/materials.d.ts +1 -478
  73. package/resources/catalog/materials.d.ts.map +1 -1
  74. package/resources/catalog/materials.js +2 -147
  75. package/resources/catalog/materials.js.map +1 -1
  76. package/resources/catalog/materials.mjs +1 -145
  77. package/resources/catalog/materials.mjs.map +1 -1
  78. package/resources/catalog/parts/actions.d.mts +108 -0
  79. package/resources/catalog/parts/actions.d.mts.map +1 -0
  80. package/resources/catalog/parts/actions.d.ts +108 -0
  81. package/resources/catalog/parts/actions.d.ts.map +1 -0
  82. package/resources/catalog/parts/actions.js +32 -0
  83. package/resources/catalog/parts/actions.js.map +1 -0
  84. package/resources/catalog/parts/actions.mjs +28 -0
  85. package/resources/catalog/parts/actions.mjs.map +1 -0
  86. package/resources/catalog/parts/index.d.mts +3 -0
  87. package/resources/catalog/parts/index.d.mts.map +1 -0
  88. package/resources/catalog/parts/index.d.ts +3 -0
  89. package/resources/catalog/parts/index.d.ts.map +1 -0
  90. package/resources/catalog/parts/index.js +9 -0
  91. package/resources/catalog/parts/index.js.map +1 -0
  92. package/resources/catalog/parts/index.mjs +4 -0
  93. package/resources/catalog/parts/index.mjs.map +1 -0
  94. package/resources/catalog/parts/parts.d.mts +362 -0
  95. package/resources/catalog/parts/parts.d.mts.map +1 -0
  96. package/resources/catalog/parts/parts.d.ts +362 -0
  97. package/resources/catalog/parts/parts.d.ts.map +1 -0
  98. package/resources/catalog/parts/parts.js +138 -0
  99. package/resources/catalog/parts/parts.js.map +1 -0
  100. package/resources/catalog/parts/parts.mjs +133 -0
  101. package/resources/catalog/parts/parts.mjs.map +1 -0
  102. package/resources/catalog/parts.d.mts +1 -357
  103. package/resources/catalog/parts.d.mts.map +1 -1
  104. package/resources/catalog/parts.d.ts +1 -357
  105. package/resources/catalog/parts.d.ts.map +1 -1
  106. package/resources/catalog/parts.js +2 -126
  107. package/resources/catalog/parts.js.map +1 -1
  108. package/resources/catalog/parts.mjs +1 -124
  109. package/resources/catalog/parts.mjs.map +1 -1
  110. package/resources/catalog/product-lines/actions.d.mts +82 -0
  111. package/resources/catalog/product-lines/actions.d.mts.map +1 -0
  112. package/resources/catalog/product-lines/actions.d.ts +82 -0
  113. package/resources/catalog/product-lines/actions.d.ts.map +1 -0
  114. package/resources/catalog/product-lines/actions.js +34 -0
  115. package/resources/catalog/product-lines/actions.js.map +1 -0
  116. package/resources/catalog/product-lines/actions.mjs +30 -0
  117. package/resources/catalog/product-lines/actions.mjs.map +1 -0
  118. package/resources/catalog/product-lines/index.d.mts +3 -0
  119. package/resources/catalog/product-lines/index.d.mts.map +1 -0
  120. package/resources/catalog/product-lines/index.d.ts +3 -0
  121. package/resources/catalog/product-lines/index.d.ts.map +1 -0
  122. package/resources/catalog/product-lines/index.js +9 -0
  123. package/resources/catalog/product-lines/index.js.map +1 -0
  124. package/resources/catalog/product-lines/index.mjs +4 -0
  125. package/resources/catalog/product-lines/index.mjs.map +1 -0
  126. package/resources/catalog/product-lines/product-lines.d.mts +448 -0
  127. package/resources/catalog/product-lines/product-lines.d.mts.map +1 -0
  128. package/resources/catalog/product-lines/product-lines.d.ts +448 -0
  129. package/resources/catalog/product-lines/product-lines.d.ts.map +1 -0
  130. package/resources/catalog/product-lines/product-lines.js +136 -0
  131. package/resources/catalog/product-lines/product-lines.js.map +1 -0
  132. package/resources/catalog/product-lines/product-lines.mjs +131 -0
  133. package/resources/catalog/product-lines/product-lines.mjs.map +1 -0
  134. package/resources/catalog/product-lines.d.mts +1 -443
  135. package/resources/catalog/product-lines.d.mts.map +1 -1
  136. package/resources/catalog/product-lines.d.ts +1 -443
  137. package/resources/catalog/product-lines.d.ts.map +1 -1
  138. package/resources/catalog/product-lines.js +2 -124
  139. package/resources/catalog/product-lines.js.map +1 -1
  140. package/resources/catalog/product-lines.mjs +1 -122
  141. package/resources/catalog/product-lines.mjs.map +1 -1
  142. package/resources/catalog/products/actions.d.mts +124 -0
  143. package/resources/catalog/products/actions.d.mts.map +1 -0
  144. package/resources/catalog/products/actions.d.ts +124 -0
  145. package/resources/catalog/products/actions.d.ts.map +1 -0
  146. package/resources/catalog/products/actions.js +33 -0
  147. package/resources/catalog/products/actions.js.map +1 -0
  148. package/resources/catalog/products/actions.mjs +29 -0
  149. package/resources/catalog/products/actions.mjs.map +1 -0
  150. package/resources/catalog/products/index.d.mts +3 -0
  151. package/resources/catalog/products/index.d.mts.map +1 -0
  152. package/resources/catalog/products/index.d.ts +3 -0
  153. package/resources/catalog/products/index.d.ts.map +1 -0
  154. package/resources/catalog/products/index.js +9 -0
  155. package/resources/catalog/products/index.js.map +1 -0
  156. package/resources/catalog/products/index.mjs +4 -0
  157. package/resources/catalog/products/index.mjs.map +1 -0
  158. package/resources/catalog/products/products.d.mts +585 -0
  159. package/resources/catalog/products/products.d.mts.map +1 -0
  160. package/resources/catalog/products/products.d.ts +585 -0
  161. package/resources/catalog/products/products.d.ts.map +1 -0
  162. package/resources/catalog/products/products.js +185 -0
  163. package/resources/catalog/products/products.js.map +1 -0
  164. package/resources/catalog/products/products.mjs +180 -0
  165. package/resources/catalog/products/products.mjs.map +1 -0
  166. package/resources/catalog/products.d.mts +1 -580
  167. package/resources/catalog/products.d.mts.map +1 -1
  168. package/resources/catalog/products.d.ts +1 -580
  169. package/resources/catalog/products.d.ts.map +1 -1
  170. package/resources/catalog/products.js +2 -173
  171. package/resources/catalog/products.js.map +1 -1
  172. package/resources/catalog/products.mjs +1 -171
  173. package/resources/catalog/products.mjs.map +1 -1
  174. package/resources/catalog/properties/actions.d.mts +86 -0
  175. package/resources/catalog/properties/actions.d.mts.map +1 -0
  176. package/resources/catalog/properties/actions.d.ts +86 -0
  177. package/resources/catalog/properties/actions.d.ts.map +1 -0
  178. package/resources/catalog/properties/actions.js +33 -0
  179. package/resources/catalog/properties/actions.js.map +1 -0
  180. package/resources/catalog/properties/actions.mjs +29 -0
  181. package/resources/catalog/properties/actions.mjs.map +1 -0
  182. package/resources/catalog/properties/index.d.mts +1 -0
  183. package/resources/catalog/properties/index.d.mts.map +1 -1
  184. package/resources/catalog/properties/index.d.ts +1 -0
  185. package/resources/catalog/properties/index.d.ts.map +1 -1
  186. package/resources/catalog/properties/index.js +3 -1
  187. package/resources/catalog/properties/index.js.map +1 -1
  188. package/resources/catalog/properties/index.mjs +1 -0
  189. package/resources/catalog/properties/index.mjs.map +1 -1
  190. package/resources/catalog/properties/properties.d.mts +4 -0
  191. package/resources/catalog/properties/properties.d.mts.map +1 -1
  192. package/resources/catalog/properties/properties.d.ts +4 -0
  193. package/resources/catalog/properties/properties.d.ts.map +1 -1
  194. package/resources/catalog/properties/properties.js +4 -0
  195. package/resources/catalog/properties/properties.js.map +1 -1
  196. package/resources/catalog/properties/properties.mjs +4 -0
  197. package/resources/catalog/properties/properties.mjs.map +1 -1
  198. package/resources/catalog/unit-groups/actions.d.mts +116 -0
  199. package/resources/catalog/unit-groups/actions.d.mts.map +1 -0
  200. package/resources/catalog/unit-groups/actions.d.ts +116 -0
  201. package/resources/catalog/unit-groups/actions.d.ts.map +1 -0
  202. package/resources/catalog/unit-groups/actions.js +39 -0
  203. package/resources/catalog/unit-groups/actions.js.map +1 -0
  204. package/resources/catalog/unit-groups/actions.mjs +35 -0
  205. package/resources/catalog/unit-groups/actions.mjs.map +1 -0
  206. package/resources/catalog/unit-groups/index.d.mts +1 -0
  207. package/resources/catalog/unit-groups/index.d.mts.map +1 -1
  208. package/resources/catalog/unit-groups/index.d.ts +1 -0
  209. package/resources/catalog/unit-groups/index.d.ts.map +1 -1
  210. package/resources/catalog/unit-groups/index.js +3 -1
  211. package/resources/catalog/unit-groups/index.js.map +1 -1
  212. package/resources/catalog/unit-groups/index.mjs +1 -0
  213. package/resources/catalog/unit-groups/index.mjs.map +1 -1
  214. package/resources/catalog/unit-groups/unit-groups.d.mts +9 -5
  215. package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
  216. package/resources/catalog/unit-groups/unit-groups.d.ts +9 -5
  217. package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
  218. package/resources/catalog/unit-groups/unit-groups.js +6 -2
  219. package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
  220. package/resources/catalog/unit-groups/unit-groups.mjs +6 -2
  221. package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
  222. package/resources/catalog/units/actions.d.mts +91 -0
  223. package/resources/catalog/units/actions.d.mts.map +1 -0
  224. package/resources/catalog/units/actions.d.ts +91 -0
  225. package/resources/catalog/units/actions.d.ts.map +1 -0
  226. package/resources/catalog/units/actions.js +37 -0
  227. package/resources/catalog/units/actions.js.map +1 -0
  228. package/resources/catalog/units/actions.mjs +33 -0
  229. package/resources/catalog/units/actions.mjs.map +1 -0
  230. package/resources/catalog/units/index.d.mts +3 -0
  231. package/resources/catalog/units/index.d.mts.map +1 -0
  232. package/resources/catalog/units/index.d.ts +3 -0
  233. package/resources/catalog/units/index.d.ts.map +1 -0
  234. package/resources/catalog/units/index.js +9 -0
  235. package/resources/catalog/units/index.js.map +1 -0
  236. package/resources/catalog/units/index.mjs +4 -0
  237. package/resources/catalog/units/index.mjs.map +1 -0
  238. package/resources/catalog/units/units.d.mts +449 -0
  239. package/resources/catalog/units/units.d.mts.map +1 -0
  240. package/resources/catalog/units/units.d.ts +449 -0
  241. package/resources/catalog/units/units.d.ts.map +1 -0
  242. package/resources/catalog/units/units.js +122 -0
  243. package/resources/catalog/units/units.js.map +1 -0
  244. package/resources/catalog/units/units.mjs +117 -0
  245. package/resources/catalog/units/units.mjs.map +1 -0
  246. package/resources/catalog/units.d.mts +1 -444
  247. package/resources/catalog/units.d.mts.map +1 -1
  248. package/resources/catalog/units.d.ts +1 -444
  249. package/resources/catalog/units.d.ts.map +1 -1
  250. package/resources/catalog/units.js +2 -110
  251. package/resources/catalog/units.js.map +1 -1
  252. package/resources/catalog/units.mjs +1 -108
  253. package/resources/catalog/units.mjs.map +1 -1
  254. package/resources/core/audit-events.d.mts +6 -6
  255. package/resources/core/audit-events.d.mts.map +1 -1
  256. package/resources/core/audit-events.d.ts +6 -6
  257. package/resources/core/audit-events.d.ts.map +1 -1
  258. package/resources/core/core.d.mts +6 -2
  259. package/resources/core/core.d.mts.map +1 -1
  260. package/resources/core/core.d.ts +6 -2
  261. package/resources/core/core.d.ts.map +1 -1
  262. package/resources/core/core.js +4 -0
  263. package/resources/core/core.js.map +1 -1
  264. package/resources/core/core.mjs +4 -0
  265. package/resources/core/core.mjs.map +1 -1
  266. package/resources/core/index.d.mts +1 -0
  267. package/resources/core/index.d.mts.map +1 -1
  268. package/resources/core/index.d.ts +1 -0
  269. package/resources/core/index.d.ts.map +1 -1
  270. package/resources/core/index.js +3 -1
  271. package/resources/core/index.js.map +1 -1
  272. package/resources/core/index.mjs +1 -0
  273. package/resources/core/index.mjs.map +1 -1
  274. package/resources/core/jobs.d.mts +236 -0
  275. package/resources/core/jobs.d.mts.map +1 -0
  276. package/resources/core/jobs.d.ts +236 -0
  277. package/resources/core/jobs.d.ts.map +1 -0
  278. package/resources/core/jobs.js +43 -0
  279. package/resources/core/jobs.js.map +1 -0
  280. package/resources/core/jobs.mjs +39 -0
  281. package/resources/core/jobs.mjs.map +1 -0
  282. package/resources/messaging/conversations/conversations.d.mts +3 -3
  283. package/resources/messaging/conversations/conversations.d.mts.map +1 -1
  284. package/resources/messaging/conversations/conversations.d.ts +3 -3
  285. package/resources/messaging/conversations/conversations.d.ts.map +1 -1
  286. package/resources/messaging/conversations/conversations.js.map +1 -1
  287. package/resources/messaging/conversations/conversations.mjs.map +1 -1
  288. package/resources/messaging/conversations/links.d.mts +2 -2
  289. package/resources/messaging/conversations/links.d.mts.map +1 -1
  290. package/resources/messaging/conversations/links.d.ts +2 -2
  291. package/resources/messaging/conversations/links.d.ts.map +1 -1
  292. package/resources/messaging/conversations/messages.d.mts +2 -2
  293. package/resources/messaging/conversations/messages.d.mts.map +1 -1
  294. package/resources/messaging/conversations/messages.d.ts +2 -2
  295. package/resources/messaging/conversations/messages.d.ts.map +1 -1
  296. package/resources/messaging/notifications/notifications.d.mts +2 -2
  297. package/resources/messaging/notifications/notifications.d.mts.map +1 -1
  298. package/resources/messaging/notifications/notifications.d.ts +2 -2
  299. package/resources/messaging/notifications/notifications.d.ts.map +1 -1
  300. package/resources/messaging/notifications/notifications.js.map +1 -1
  301. package/resources/messaging/notifications/notifications.mjs.map +1 -1
  302. package/resources/operations/demand-overrides.d.mts +1 -1
  303. package/resources/operations/demand-overrides.d.mts.map +1 -1
  304. package/resources/operations/demand-overrides.d.ts +1 -1
  305. package/resources/operations/demand-overrides.d.ts.map +1 -1
  306. package/resources/operations/index.d.mts +1 -1
  307. package/resources/operations/index.d.ts +1 -1
  308. package/resources/operations/index.js +8 -8
  309. package/resources/operations/index.js.map +1 -1
  310. package/resources/operations/index.mjs +1 -1
  311. package/resources/operations/locations/actions.d.mts +67 -0
  312. package/resources/operations/locations/actions.d.mts.map +1 -0
  313. package/resources/operations/locations/actions.d.ts +67 -0
  314. package/resources/operations/locations/actions.d.ts.map +1 -0
  315. package/resources/operations/locations/actions.js +27 -0
  316. package/resources/operations/locations/actions.js.map +1 -0
  317. package/resources/operations/locations/actions.mjs +23 -0
  318. package/resources/operations/locations/actions.mjs.map +1 -0
  319. package/resources/operations/locations/index.d.mts +3 -0
  320. package/resources/operations/locations/index.d.mts.map +1 -0
  321. package/resources/operations/locations/index.d.ts +3 -0
  322. package/resources/operations/locations/index.d.ts.map +1 -0
  323. package/resources/operations/locations/index.js +9 -0
  324. package/resources/operations/locations/index.js.map +1 -0
  325. package/resources/operations/locations/index.mjs +4 -0
  326. package/resources/operations/locations/index.mjs.map +1 -0
  327. package/resources/operations/locations/locations.d.mts +273 -0
  328. package/resources/operations/locations/locations.d.mts.map +1 -0
  329. package/resources/operations/locations/locations.d.ts +273 -0
  330. package/resources/operations/locations/locations.d.ts.map +1 -0
  331. package/resources/operations/locations/locations.js +113 -0
  332. package/resources/operations/locations/locations.js.map +1 -0
  333. package/resources/operations/locations/locations.mjs +108 -0
  334. package/resources/operations/locations/locations.mjs.map +1 -0
  335. package/resources/operations/locations.d.mts +1 -268
  336. package/resources/operations/locations.d.mts.map +1 -1
  337. package/resources/operations/locations.d.ts +1 -268
  338. package/resources/operations/locations.d.ts.map +1 -1
  339. package/resources/operations/locations.js +2 -101
  340. package/resources/operations/locations.js.map +1 -1
  341. package/resources/operations/locations.mjs +1 -99
  342. package/resources/operations/locations.mjs.map +1 -1
  343. package/resources/operations/operations.d.mts +2 -2
  344. package/resources/operations/operations.d.mts.map +1 -1
  345. package/resources/operations/operations.d.ts +2 -2
  346. package/resources/operations/operations.d.ts.map +1 -1
  347. package/resources/operations/operations.js +2 -2
  348. package/resources/operations/operations.js.map +1 -1
  349. package/resources/operations/operations.mjs +2 -2
  350. package/resources/operations/operations.mjs.map +1 -1
  351. package/resources/operations/scanning-stations.d.mts +12 -4
  352. package/resources/operations/scanning-stations.d.mts.map +1 -1
  353. package/resources/operations/scanning-stations.d.ts +12 -4
  354. package/resources/operations/scanning-stations.d.ts.map +1 -1
  355. package/resources/operations/shipping-terms.d.mts +1 -1
  356. package/resources/operations/shipping-terms.d.mts.map +1 -1
  357. package/resources/operations/shipping-terms.d.ts +1 -1
  358. package/resources/operations/shipping-terms.d.ts.map +1 -1
  359. package/resources/sales/customers/customers.d.mts +1 -1
  360. package/resources/sales/customers/customers.d.mts.map +1 -1
  361. package/resources/sales/customers/customers.d.ts +1 -1
  362. package/resources/sales/customers/customers.d.ts.map +1 -1
  363. package/resources/sales/sales-orders/lines/lines.d.mts +2 -2
  364. package/resources/sales/sales-orders/lines/lines.d.ts +2 -2
  365. package/resources/sales/sales-orders/sales-orders.d.mts +4 -4
  366. package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
  367. package/resources/sales/sales-orders/sales-orders.d.ts +4 -4
  368. package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
  369. package/src/resources/catalog/catalog.ts +51 -51
  370. package/src/resources/catalog/index.ts +5 -5
  371. package/src/resources/catalog/item-categories/actions.ts +112 -0
  372. package/src/resources/catalog/item-categories/index.ts +7 -0
  373. package/src/resources/catalog/item-categories/item-categories.ts +18 -0
  374. package/src/resources/catalog/items/items.ts +1 -1
  375. package/src/resources/catalog/materials/actions.ts +141 -0
  376. package/src/resources/catalog/materials/index.ts +22 -0
  377. package/src/resources/catalog/materials/materials.ts +633 -0
  378. package/src/resources/catalog/materials.ts +1 -611
  379. package/src/resources/catalog/parts/actions.ts +129 -0
  380. package/src/resources/catalog/parts/index.ts +20 -0
  381. package/src/resources/catalog/parts/parts.ts +476 -0
  382. package/src/resources/catalog/parts.ts +1 -454
  383. package/src/resources/catalog/product-lines/actions.ts +97 -0
  384. package/src/resources/catalog/product-lines/index.ts +21 -0
  385. package/src/resources/catalog/product-lines/product-lines.ts +552 -0
  386. package/src/resources/catalog/product-lines.ts +1 -532
  387. package/src/resources/catalog/products/actions.ts +148 -0
  388. package/src/resources/catalog/products/index.ts +22 -0
  389. package/src/resources/catalog/products/products.ts +816 -0
  390. package/src/resources/catalog/products.ts +1 -794
  391. package/src/resources/catalog/properties/actions.ts +102 -0
  392. package/src/resources/catalog/properties/index.ts +7 -0
  393. package/src/resources/catalog/properties/properties.ts +18 -0
  394. package/src/resources/catalog/unit-groups/actions.ts +139 -0
  395. package/src/resources/catalog/unit-groups/index.ts +8 -0
  396. package/src/resources/catalog/unit-groups/unit-groups.ts +25 -5
  397. package/src/resources/catalog/units/actions.ts +110 -0
  398. package/src/resources/catalog/units/index.ts +20 -0
  399. package/src/resources/catalog/units/units.ts +547 -0
  400. package/src/resources/catalog/units.ts +1 -532
  401. package/src/resources/core/audit-events.ts +8 -4
  402. package/src/resources/core/core.ts +17 -1
  403. package/src/resources/core/index.ts +9 -0
  404. package/src/resources/core/jobs.ts +321 -0
  405. package/src/resources/messaging/conversations/conversations.ts +6 -3
  406. package/src/resources/messaging/conversations/links.ts +4 -2
  407. package/src/resources/messaging/conversations/messages.ts +4 -2
  408. package/src/resources/messaging/notifications/notifications.ts +4 -2
  409. package/src/resources/operations/demand-overrides.ts +1 -1
  410. package/src/resources/operations/index.ts +1 -1
  411. package/src/resources/operations/locations/actions.ts +82 -0
  412. package/src/resources/operations/locations/index.ts +18 -0
  413. package/src/resources/operations/locations/locations.ts +344 -0
  414. package/src/resources/operations/locations.ts +1 -329
  415. package/src/resources/operations/operations.ts +11 -11
  416. package/src/resources/operations/scanning-stations.ts +12 -4
  417. package/src/resources/operations/shipping-terms.ts +1 -1
  418. package/src/resources/sales/customers/customers.ts +1 -1
  419. package/src/resources/sales/sales-orders/lines/lines.ts +2 -2
  420. package/src/resources/sales/sales-orders/sales-orders.ts +4 -4
  421. package/src/version.ts +1 -1
  422. package/version.d.mts +1 -1
  423. package/version.d.ts +1 -1
  424. package/version.js +1 -1
  425. package/version.mjs +1 -1
@@ -1,445 +1,2 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as APIKeysAPI from "../auth/api-keys/api-keys.js";
3
- import { APIPromise } from "../../core/api-promise.js";
4
- import { RequestOptions } from "../../internal/request-options.js";
5
- /**
6
- * List and manage units.
7
- */
8
- export declare class Units extends APIResource {
9
- /**
10
- * Returns a paginated list of units for the current account, including both
11
- * account-owned and global system units.
12
- *
13
- * This endpoint requires the permission: `units:read`.
14
- *
15
- * @example
16
- * ```ts
17
- * const listUnit = await client.catalog.units.list();
18
- * ```
19
- */
20
- list(query?: UnitListParams | null | undefined, options?: RequestOptions): APIPromise<ListUnit>;
21
- /**
22
- * Returns a unit by ID, including both account-owned and global system units.
23
- *
24
- * This endpoint requires the permission: `units:read`.
25
- *
26
- * @example
27
- * ```ts
28
- * const unit = await client.catalog.units.retrieve(
29
- * 'un_82bd37dae5po',
30
- * );
31
- * ```
32
- */
33
- retrieve(id: string, query?: UnitRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Unit>;
34
- /**
35
- * Creates a unit of measurement owned by your account, in addition to the system
36
- * units the platform already provides.
37
- *
38
- * The name and abbreviation must each be unique within the account. A unit created
39
- * here is never a base unit, so its conversion ratio is interpreted relative to
40
- * the base unit of the chosen dimension.
41
- *
42
- * This endpoint requires the permission: `units:create`.
43
- *
44
- * @example
45
- * ```ts
46
- * const unit = await client.catalog.units.create({
47
- * abbreviation: 'g',
48
- * name: 'Gram',
49
- * offset_denominator: '1',
50
- * offset_numerator: '0',
51
- * ratio_denominator: '1',
52
- * ratio_numerator: '1',
53
- * type: 'mass',
54
- * });
55
- * ```
56
- */
57
- create(params: UnitCreateParams, options?: RequestOptions): APIPromise<Unit>;
58
- /**
59
- * Partially updates a unit owned by your account.
60
- *
61
- * System units cannot be modified, and a unit's dimension is fixed once it is
62
- * created.
63
- *
64
- * This endpoint requires the permission: `units:update`.
65
- *
66
- * @example
67
- * ```ts
68
- * const unit = await client.catalog.units.update(
69
- * 'un_82bd37dae5po',
70
- * {
71
- * abbreviation: 'kg',
72
- * name: 'Kilogram',
73
- * offset_denominator: '1',
74
- * offset_numerator: '0',
75
- * ratio_denominator: '1',
76
- * ratio_numerator: '1000',
77
- * },
78
- * );
79
- * ```
80
- */
81
- update(id: string, params?: UnitUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Unit>;
82
- /**
83
- * Deletes a unit owned by your account.
84
- *
85
- * The unit is also removed from every unit group it belongs to. System units,
86
- * which are shared across all accounts, cannot be deleted.
87
- *
88
- * This endpoint requires the permission: `units:delete`.
89
- *
90
- * @example
91
- * ```ts
92
- * const unit = await client.catalog.units.delete(
93
- * 'un_82bd37dae5po',
94
- * );
95
- * ```
96
- */
97
- delete(id: string, options?: RequestOptions): APIPromise<UnitDeleteResponse>;
98
- }
99
- /**
100
- * Request to create a unit.
101
- */
102
- export interface CreateUnitRequest {
103
- /**
104
- * Short abbreviation for the unit (e.g. "g").
105
- *
106
- * Must be unique within the account.
107
- */
108
- abbreviation: string;
109
- /**
110
- * Display name of the unit (e.g. "Gram").
111
- *
112
- * Must be unique within the account.
113
- */
114
- name: string;
115
- /**
116
- * Denominator of the conversion offset.
117
- *
118
- * Must not be zero, so send `1` when the unit has no offset.
119
- */
120
- offset_denominator: string;
121
- /**
122
- * Numerator of the conversion offset, applied after the ratio for scales that do
123
- * not share a zero point, such as temperature.
124
- *
125
- * Send `0` for units that convert by ratio alone.
126
- */
127
- offset_numerator: string;
128
- /**
129
- * Denominator of the ratio that converts a quantity in this unit into the
130
- * dimension's base unit.
131
- *
132
- * Must not be zero.
133
- */
134
- ratio_denominator: string;
135
- /**
136
- * Numerator of the ratio that converts a quantity in this unit into the
137
- * dimension's base unit.
138
- *
139
- * A quantity is converted with
140
- * `value × (ratio_numerator / ratio_denominator) + (offset_numerator / offset_denominator)`,
141
- * so a kilogram in a gram-based dimension has a numerator of `1000` and a
142
- * denominator of `1`.
143
- */
144
- ratio_numerator: string;
145
- /**
146
- * The dimension this unit measures, such as mass, volume, or currency.
147
- *
148
- * Units can only be converted to other units of the same dimension, and the
149
- * dimension cannot be changed after the unit is created.
150
- */
151
- type: 'currency' | 'quantity' | 'time' | 'mass' | 'volume' | 'length' | 'temperature' | 'area';
152
- }
153
- /**
154
- * A single page of resources, together with the metadata needed to page through
155
- * the rest of the result set.
156
- */
157
- export interface ListUnit {
158
- /**
159
- * Resources in this page.
160
- */
161
- data: Array<Unit>;
162
- /**
163
- * Resource type identifier.
164
- */
165
- object: 'list';
166
- /**
167
- * PageInfo describes where the current page sits within a paginated result set and
168
- * how to move to the adjacent pages.
169
- *
170
- * Page a list by following the URLs below rather than assembling cursors yourself.
171
- * For a top-level list endpoint the URL repeats the original request's query
172
- * string with only the cursor swapped, so following it preserves the same filters,
173
- * search term, and page size.
174
- */
175
- page_info: APIKeysAPI.PageInfo;
176
- }
177
- /**
178
- * Unit of measurement used for conversions and product quantities.
179
- */
180
- export interface Unit {
181
- /**
182
- * Unit ID.
183
- */
184
- id: string;
185
- /**
186
- * Short abbreviation for the unit (e.g. "g", "kg").
187
- */
188
- abbreviation: string;
189
- /**
190
- * When this unit was created.
191
- */
192
- created_at: string;
193
- /**
194
- * Whether this is the base unit for its dimension.
195
- *
196
- * Every other unit's conversion ratio is expressed relative to the base unit. Base
197
- * units are platform-defined; units created through the API are never base units.
198
- */
199
- is_base_unit: boolean;
200
- /**
201
- * Display name of the unit (e.g. "Gram", "Kilogram").
202
- */
203
- name: string;
204
- /**
205
- * Resource type identifier.
206
- */
207
- object: 'unit';
208
- /**
209
- * Denominator of the conversion offset applied after the ratio.
210
- *
211
- * Never zero; a unit with no offset carries a numerator of `0` over a denominator
212
- * of `1`.
213
- */
214
- offset_denominator: string;
215
- /**
216
- * Numerator of the conversion offset, applied after the ratio for scales that do
217
- * not share a zero point, such as temperature.
218
- *
219
- * Zero for units that convert by ratio alone.
220
- */
221
- offset_numerator: string;
222
- /**
223
- * Owner describes the provenance of a resource.
224
- */
225
- owner: APIKeysAPI.Owner | null;
226
- /**
227
- * Denominator of the ratio that converts a quantity in this unit into the
228
- * dimension's base unit.
229
- *
230
- * Cannot be zero.
231
- */
232
- ratio_denominator: string;
233
- /**
234
- * Numerator of the ratio that converts a quantity in this unit into the
235
- * dimension's base unit.
236
- *
237
- * A quantity is converted with
238
- * `value × (ratio_numerator / ratio_denominator) + (offset_numerator / offset_denominator)`,
239
- * so a kilogram in a gram-based dimension has a numerator of `1000` and a
240
- * denominator of `1`.
241
- */
242
- ratio_numerator: string;
243
- /**
244
- * The dimension this unit measures, such as mass, volume, or currency.
245
- *
246
- * A unit can only be converted to another unit of the same dimension. The
247
- * `quantity` dimension is for discrete countable items rather than a physical
248
- * measure.
249
- */
250
- type: 'currency' | 'quantity' | 'time' | 'mass' | 'volume' | 'length' | 'temperature' | 'area';
251
- /**
252
- * When this unit was last updated.
253
- */
254
- updated_at: string;
255
- }
256
- /**
257
- * Request to partially update a unit.
258
- */
259
- export interface UpdateUnitRequest {
260
- /**
261
- * Short abbreviation for the unit.
262
- *
263
- * Must be unique within the account.
264
- */
265
- abbreviation?: string;
266
- /**
267
- * Display name of the unit.
268
- *
269
- * Must be unique within the account.
270
- */
271
- name?: string;
272
- /**
273
- * Denominator of the conversion offset.
274
- *
275
- * Must not be zero.
276
- */
277
- offset_denominator?: string;
278
- /**
279
- * Numerator of the conversion offset, applied after the ratio for scales that do
280
- * not share a zero point, such as temperature.
281
- */
282
- offset_numerator?: string;
283
- /**
284
- * Denominator of the ratio that converts a quantity in this unit into the
285
- * dimension's base unit.
286
- *
287
- * Must not be zero.
288
- */
289
- ratio_denominator?: string;
290
- /**
291
- * Numerator of the ratio that converts a quantity in this unit into the
292
- * dimension's base unit.
293
- *
294
- * A quantity is converted with
295
- * `value × (ratio_numerator / ratio_denominator) + (offset_numerator / offset_denominator)`.
296
- */
297
- ratio_numerator?: string;
298
- }
299
- export interface UnitDeleteResponse {
300
- }
301
- export interface UnitListParams {
302
- /**
303
- * Opaque cursor token identifying where the page of results starts.
304
- *
305
- * Use the `cursor` value embedded in a previous response's `next_page_url` or
306
- * `previous_page_url` to fetch the adjacent page. Omit to start from the first
307
- * page.
308
- */
309
- cursor?: string;
310
- /**
311
- * Sub-objects to expand in the response. When omitted, sub-objects are returned as
312
- * `null`.
313
- */
314
- include?: Array<'owner' | 'owner.account'>;
315
- /**
316
- * Maximum number of results to return in a single page.
317
- */
318
- limit?: number;
319
- /**
320
- * Free-text search term used to filter results.
321
- *
322
- * Which fields are matched against the term varies by endpoint.
323
- */
324
- q?: string;
325
- /**
326
- * Filter by unit dimension.
327
- */
328
- type?: 'currency' | 'quantity' | 'time' | 'mass' | 'volume' | 'length' | 'temperature' | 'area';
329
- /**
330
- * Return only units that belong to at least one of the given unit groups.
331
- */
332
- unit_group_ids?: Array<string>;
333
- }
334
- export interface UnitRetrieveParams {
335
- /**
336
- * Sub-objects to expand in the response. When omitted, sub-objects are returned as
337
- * `null`.
338
- */
339
- include?: Array<'owner' | 'owner.account'>;
340
- }
341
- export interface UnitCreateParams {
342
- /**
343
- * Body param: Short abbreviation for the unit (e.g. "g").
344
- *
345
- * Must be unique within the account.
346
- */
347
- abbreviation: string;
348
- /**
349
- * Body param: Display name of the unit (e.g. "Gram").
350
- *
351
- * Must be unique within the account.
352
- */
353
- name: string;
354
- /**
355
- * Body param: Denominator of the conversion offset.
356
- *
357
- * Must not be zero, so send `1` when the unit has no offset.
358
- */
359
- offset_denominator: string;
360
- /**
361
- * Body param: Numerator of the conversion offset, applied after the ratio for
362
- * scales that do not share a zero point, such as temperature.
363
- *
364
- * Send `0` for units that convert by ratio alone.
365
- */
366
- offset_numerator: string;
367
- /**
368
- * Body param: Denominator of the ratio that converts a quantity in this unit into
369
- * the dimension's base unit.
370
- *
371
- * Must not be zero.
372
- */
373
- ratio_denominator: string;
374
- /**
375
- * Body param: Numerator of the ratio that converts a quantity in this unit into
376
- * the dimension's base unit.
377
- *
378
- * A quantity is converted with
379
- * `value × (ratio_numerator / ratio_denominator) + (offset_numerator / offset_denominator)`,
380
- * so a kilogram in a gram-based dimension has a numerator of `1000` and a
381
- * denominator of `1`.
382
- */
383
- ratio_numerator: string;
384
- /**
385
- * Body param: The dimension this unit measures, such as mass, volume, or currency.
386
- *
387
- * Units can only be converted to other units of the same dimension, and the
388
- * dimension cannot be changed after the unit is created.
389
- */
390
- type: 'currency' | 'quantity' | 'time' | 'mass' | 'volume' | 'length' | 'temperature' | 'area';
391
- /**
392
- * Query param: Sub-objects to expand in the response. When omitted, sub-objects
393
- * are returned as `null`.
394
- */
395
- include?: Array<'owner' | 'owner.account'>;
396
- }
397
- export interface UnitUpdateParams {
398
- /**
399
- * Query param: Sub-objects to expand in the response. When omitted, sub-objects
400
- * are returned as `null`.
401
- */
402
- include?: Array<'owner' | 'owner.account'>;
403
- /**
404
- * Body param: Short abbreviation for the unit.
405
- *
406
- * Must be unique within the account.
407
- */
408
- abbreviation?: string;
409
- /**
410
- * Body param: Display name of the unit.
411
- *
412
- * Must be unique within the account.
413
- */
414
- name?: string;
415
- /**
416
- * Body param: Denominator of the conversion offset.
417
- *
418
- * Must not be zero.
419
- */
420
- offset_denominator?: string;
421
- /**
422
- * Body param: Numerator of the conversion offset, applied after the ratio for
423
- * scales that do not share a zero point, such as temperature.
424
- */
425
- offset_numerator?: string;
426
- /**
427
- * Body param: Denominator of the ratio that converts a quantity in this unit into
428
- * the dimension's base unit.
429
- *
430
- * Must not be zero.
431
- */
432
- ratio_denominator?: string;
433
- /**
434
- * Body param: Numerator of the ratio that converts a quantity in this unit into
435
- * the dimension's base unit.
436
- *
437
- * A quantity is converted with
438
- * `value × (ratio_numerator / ratio_denominator) + (offset_numerator / offset_denominator)`.
439
- */
440
- ratio_numerator?: string;
441
- }
442
- export declare namespace Units {
443
- export { type CreateUnitRequest as CreateUnitRequest, type ListUnit as ListUnit, type Unit as Unit, type UpdateUnitRequest as UpdateUnitRequest, type UnitDeleteResponse as UnitDeleteResponse, type UnitListParams as UnitListParams, type UnitRetrieveParams as UnitRetrieveParams, type UnitCreateParams as UnitCreateParams, type UnitUpdateParams as UnitUpdateParams, };
444
- }
1
+ export * from "./units/index.js";
445
2
  //# sourceMappingURL=units.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../src/resources/catalog/units.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAInG;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAInB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAK5E;;;;;;;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B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
1
+ {"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../src/resources/catalog/units.ts"],"names":[],"mappings":""}
@@ -1,114 +1,6 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Units = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const path_1 = require("../../internal/utils/path.js");
7
- /**
8
- * List and manage units.
9
- */
10
- class Units extends resource_1.APIResource {
11
- /**
12
- * Returns a paginated list of units for the current account, including both
13
- * account-owned and global system units.
14
- *
15
- * This endpoint requires the permission: `units:read`.
16
- *
17
- * @example
18
- * ```ts
19
- * const listUnit = await client.catalog.units.list();
20
- * ```
21
- */
22
- list(query = {}, options) {
23
- return this._client.get('/v1/catalog/units', { query, ...options });
24
- }
25
- /**
26
- * Returns a unit by ID, including both account-owned and global system units.
27
- *
28
- * This endpoint requires the permission: `units:read`.
29
- *
30
- * @example
31
- * ```ts
32
- * const unit = await client.catalog.units.retrieve(
33
- * 'un_82bd37dae5po',
34
- * );
35
- * ```
36
- */
37
- retrieve(id, query = {}, options) {
38
- return this._client.get((0, path_1.path) `/v1/catalog/units/${id}`, { query, ...options });
39
- }
40
- /**
41
- * Creates a unit of measurement owned by your account, in addition to the system
42
- * units the platform already provides.
43
- *
44
- * The name and abbreviation must each be unique within the account. A unit created
45
- * here is never a base unit, so its conversion ratio is interpreted relative to
46
- * the base unit of the chosen dimension.
47
- *
48
- * This endpoint requires the permission: `units:create`.
49
- *
50
- * @example
51
- * ```ts
52
- * const unit = await client.catalog.units.create({
53
- * abbreviation: 'g',
54
- * name: 'Gram',
55
- * offset_denominator: '1',
56
- * offset_numerator: '0',
57
- * ratio_denominator: '1',
58
- * ratio_numerator: '1',
59
- * type: 'mass',
60
- * });
61
- * ```
62
- */
63
- create(params, options) {
64
- const { include, ...body } = params;
65
- return this._client.post('/v1/catalog/units', { query: { include }, body, ...options });
66
- }
67
- /**
68
- * Partially updates a unit owned by your account.
69
- *
70
- * System units cannot be modified, and a unit's dimension is fixed once it is
71
- * created.
72
- *
73
- * This endpoint requires the permission: `units:update`.
74
- *
75
- * @example
76
- * ```ts
77
- * const unit = await client.catalog.units.update(
78
- * 'un_82bd37dae5po',
79
- * {
80
- * abbreviation: 'kg',
81
- * name: 'Kilogram',
82
- * offset_denominator: '1',
83
- * offset_numerator: '0',
84
- * ratio_denominator: '1',
85
- * ratio_numerator: '1000',
86
- * },
87
- * );
88
- * ```
89
- */
90
- update(id, params = {}, options) {
91
- const { include, ...body } = params ?? {};
92
- return this._client.patch((0, path_1.path) `/v1/catalog/units/${id}`, { query: { include }, body, ...options });
93
- }
94
- /**
95
- * Deletes a unit owned by your account.
96
- *
97
- * The unit is also removed from every unit group it belongs to. System units,
98
- * which are shared across all accounts, cannot be deleted.
99
- *
100
- * This endpoint requires the permission: `units:delete`.
101
- *
102
- * @example
103
- * ```ts
104
- * const unit = await client.catalog.units.delete(
105
- * 'un_82bd37dae5po',
106
- * );
107
- * ```
108
- */
109
- delete(id, options) {
110
- return this._client.delete((0, path_1.path) `/v1/catalog/units/${id}`, options);
111
- }
112
- }
113
- exports.Units = Units;
4
+ const tslib_1 = require("../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./units/index.js"), exports);
114
6
  //# sourceMappingURL=units.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"units.js","sourceRoot":"","sources":["../../src/resources/catalog/units.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AC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AAlHD,sBAkHC"}
1
+ {"version":3,"file":"units.js","sourceRoot":"","sources":["../../src/resources/catalog/units.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
@@ -1,110 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { path } from "../../internal/utils/path.mjs";
4
- /**
5
- * List and manage units.
6
- */
7
- export class Units extends APIResource {
8
- /**
9
- * Returns a paginated list of units for the current account, including both
10
- * account-owned and global system units.
11
- *
12
- * This endpoint requires the permission: `units:read`.
13
- *
14
- * @example
15
- * ```ts
16
- * const listUnit = await client.catalog.units.list();
17
- * ```
18
- */
19
- list(query = {}, options) {
20
- return this._client.get('/v1/catalog/units', { query, ...options });
21
- }
22
- /**
23
- * Returns a unit by ID, including both account-owned and global system units.
24
- *
25
- * This endpoint requires the permission: `units:read`.
26
- *
27
- * @example
28
- * ```ts
29
- * const unit = await client.catalog.units.retrieve(
30
- * 'un_82bd37dae5po',
31
- * );
32
- * ```
33
- */
34
- retrieve(id, query = {}, options) {
35
- return this._client.get(path `/v1/catalog/units/${id}`, { query, ...options });
36
- }
37
- /**
38
- * Creates a unit of measurement owned by your account, in addition to the system
39
- * units the platform already provides.
40
- *
41
- * The name and abbreviation must each be unique within the account. A unit created
42
- * here is never a base unit, so its conversion ratio is interpreted relative to
43
- * the base unit of the chosen dimension.
44
- *
45
- * This endpoint requires the permission: `units:create`.
46
- *
47
- * @example
48
- * ```ts
49
- * const unit = await client.catalog.units.create({
50
- * abbreviation: 'g',
51
- * name: 'Gram',
52
- * offset_denominator: '1',
53
- * offset_numerator: '0',
54
- * ratio_denominator: '1',
55
- * ratio_numerator: '1',
56
- * type: 'mass',
57
- * });
58
- * ```
59
- */
60
- create(params, options) {
61
- const { include, ...body } = params;
62
- return this._client.post('/v1/catalog/units', { query: { include }, body, ...options });
63
- }
64
- /**
65
- * Partially updates a unit owned by your account.
66
- *
67
- * System units cannot be modified, and a unit's dimension is fixed once it is
68
- * created.
69
- *
70
- * This endpoint requires the permission: `units:update`.
71
- *
72
- * @example
73
- * ```ts
74
- * const unit = await client.catalog.units.update(
75
- * 'un_82bd37dae5po',
76
- * {
77
- * abbreviation: 'kg',
78
- * name: 'Kilogram',
79
- * offset_denominator: '1',
80
- * offset_numerator: '0',
81
- * ratio_denominator: '1',
82
- * ratio_numerator: '1000',
83
- * },
84
- * );
85
- * ```
86
- */
87
- update(id, params = {}, options) {
88
- const { include, ...body } = params ?? {};
89
- return this._client.patch(path `/v1/catalog/units/${id}`, { query: { include }, body, ...options });
90
- }
91
- /**
92
- * Deletes a unit owned by your account.
93
- *
94
- * The unit is also removed from every unit group it belongs to. System units,
95
- * which are shared across all accounts, cannot be deleted.
96
- *
97
- * This endpoint requires the permission: `units:delete`.
98
- *
99
- * @example
100
- * ```ts
101
- * const unit = await client.catalog.units.delete(
102
- * 'un_82bd37dae5po',
103
- * );
104
- * ```
105
- */
106
- delete(id, options) {
107
- return this._client.delete(path `/v1/catalog/units/${id}`, options);
108
- }
109
- }
2
+ export * from "./units/index.mjs";
110
3
  //# sourceMappingURL=units.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"units.mjs","sourceRoot":"","sources":["../../src/resources/catalog/units.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,QAA2C,EAAE,EAAE,OAAwB;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,O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