@augno/sdk 0.1.9 → 0.7.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 (670) hide show
  1. package/CHANGELOG.md +4 -9
  2. package/README.md +27 -0
  3. package/api-promise.d.mts +0 -1
  4. package/api-promise.d.mts.map +1 -1
  5. package/api-promise.d.ts +0 -1
  6. package/api-promise.d.ts.map +1 -1
  7. package/api-promise.mjs +0 -1
  8. package/api-promise.mjs.map +1 -1
  9. package/client.d.mts +4 -1
  10. package/client.d.mts.map +1 -1
  11. package/client.d.ts +4 -1
  12. package/client.d.ts.map +1 -1
  13. package/client.js +9 -1
  14. package/client.js.map +1 -1
  15. package/client.mjs +9 -1
  16. package/client.mjs.map +1 -1
  17. package/core/api-promise.d.mts.map +1 -1
  18. package/core/api-promise.d.ts.map +1 -1
  19. package/core/api-promise.mjs.map +1 -1
  20. package/core/error.mjs.map +1 -1
  21. package/core/resource.d.mts.map +1 -1
  22. package/core/resource.d.ts.map +1 -1
  23. package/core/uploads.d.mts.map +1 -1
  24. package/core/uploads.d.ts.map +1 -1
  25. package/core/uploads.mjs.map +1 -1
  26. package/error.d.mts +0 -1
  27. package/error.d.mts.map +1 -1
  28. package/error.d.ts +0 -1
  29. package/error.d.ts.map +1 -1
  30. package/error.mjs +0 -1
  31. package/error.mjs.map +1 -1
  32. package/index.d.mts.map +1 -1
  33. package/index.d.ts.map +1 -1
  34. package/index.mjs.map +1 -1
  35. package/internal/headers.mjs.map +1 -1
  36. package/internal/parse.d.mts.map +1 -1
  37. package/internal/parse.d.ts.map +1 -1
  38. package/internal/parse.mjs.map +1 -1
  39. package/internal/qs/formats.d.mts.map +1 -1
  40. package/internal/qs/formats.d.ts.map +1 -1
  41. package/internal/qs/index.d.mts +2 -2
  42. package/internal/qs/index.d.mts.map +1 -1
  43. package/internal/qs/index.d.ts +2 -2
  44. package/internal/qs/index.d.ts.map +1 -1
  45. package/internal/qs/index.mjs.map +1 -1
  46. package/internal/qs/stringify.d.mts.map +1 -1
  47. package/internal/qs/stringify.d.ts.map +1 -1
  48. package/internal/qs/stringify.mjs.map +1 -1
  49. package/internal/qs/utils.d.mts.map +1 -1
  50. package/internal/qs/utils.d.ts.map +1 -1
  51. package/internal/qs/utils.mjs.map +1 -1
  52. package/internal/request-options.d.mts.map +1 -1
  53. package/internal/request-options.d.ts.map +1 -1
  54. package/internal/shims.d.mts +0 -6
  55. package/internal/shims.d.mts.map +1 -1
  56. package/internal/shims.d.ts +0 -6
  57. package/internal/shims.d.ts.map +1 -1
  58. package/internal/to-file.d.mts.map +1 -1
  59. package/internal/to-file.d.ts.map +1 -1
  60. package/internal/to-file.mjs.map +1 -1
  61. package/internal/types.d.mts +4 -4
  62. package/internal/types.d.mts.map +1 -1
  63. package/internal/types.d.ts +4 -4
  64. package/internal/types.d.ts.map +1 -1
  65. package/internal/uploads.d.mts.map +1 -1
  66. package/internal/uploads.d.ts.map +1 -1
  67. package/internal/uploads.mjs.map +1 -1
  68. package/internal/utils/base64.mjs.map +1 -1
  69. package/internal/utils/log.d.mts.map +1 -1
  70. package/internal/utils/log.d.ts.map +1 -1
  71. package/internal/utils/log.mjs.map +1 -1
  72. package/internal/utils/path.mjs.map +1 -1
  73. package/internal/utils/query.mjs.map +1 -1
  74. package/internal/utils/values.mjs.map +1 -1
  75. package/internal/utils.d.mts.map +1 -1
  76. package/internal/utils.d.ts.map +1 -1
  77. package/internal/utils.mjs.map +1 -1
  78. package/package.json +3 -3
  79. package/resource.d.mts +0 -1
  80. package/resource.d.mts.map +1 -1
  81. package/resource.d.ts +0 -1
  82. package/resource.d.ts.map +1 -1
  83. package/resource.mjs +0 -1
  84. package/resource.mjs.map +1 -1
  85. package/resources/auth/api-keys/actions.d.mts +26 -5
  86. package/resources/auth/api-keys/actions.d.mts.map +1 -1
  87. package/resources/auth/api-keys/actions.d.ts +26 -5
  88. package/resources/auth/api-keys/actions.d.ts.map +1 -1
  89. package/resources/auth/api-keys/actions.js +4 -1
  90. package/resources/auth/api-keys/actions.js.map +1 -1
  91. package/resources/auth/api-keys/actions.mjs +4 -1
  92. package/resources/auth/api-keys/actions.mjs.map +1 -1
  93. package/resources/auth/api-keys/api-keys.d.mts +134 -70
  94. package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
  95. package/resources/auth/api-keys/api-keys.d.ts +134 -70
  96. package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
  97. package/resources/auth/api-keys/api-keys.js +24 -22
  98. package/resources/auth/api-keys/api-keys.js.map +1 -1
  99. package/resources/auth/api-keys/api-keys.mjs +24 -22
  100. package/resources/auth/api-keys/api-keys.mjs.map +1 -1
  101. package/resources/auth/api-keys/index.d.mts +1 -1
  102. package/resources/auth/api-keys/index.d.mts.map +1 -1
  103. package/resources/auth/api-keys/index.d.ts +1 -1
  104. package/resources/auth/api-keys/index.d.ts.map +1 -1
  105. package/resources/auth/api-keys/index.mjs.map +1 -1
  106. package/resources/auth/api-keys.d.mts.map +1 -1
  107. package/resources/auth/api-keys.d.ts.map +1 -1
  108. package/resources/auth/api-keys.mjs.map +1 -1
  109. package/resources/auth/auth.d.mts +1 -1
  110. package/resources/auth/auth.d.mts.map +1 -1
  111. package/resources/auth/auth.d.ts +1 -1
  112. package/resources/auth/auth.d.ts.map +1 -1
  113. package/resources/auth/auth.mjs.map +1 -1
  114. package/resources/auth/index.d.mts +1 -1
  115. package/resources/auth/index.d.mts.map +1 -1
  116. package/resources/auth/index.d.ts +1 -1
  117. package/resources/auth/index.d.ts.map +1 -1
  118. package/resources/auth/index.mjs.map +1 -1
  119. package/resources/auth.d.mts.map +1 -1
  120. package/resources/auth.d.ts.map +1 -1
  121. package/resources/auth.mjs.map +1 -1
  122. package/resources/catalog/catalog.d.mts +9 -9
  123. package/resources/catalog/catalog.d.mts.map +1 -1
  124. package/resources/catalog/catalog.d.ts +9 -9
  125. package/resources/catalog/catalog.d.ts.map +1 -1
  126. package/resources/catalog/catalog.mjs.map +1 -1
  127. package/resources/catalog/index.d.mts +9 -9
  128. package/resources/catalog/index.d.mts.map +1 -1
  129. package/resources/catalog/index.d.ts +9 -9
  130. package/resources/catalog/index.d.ts.map +1 -1
  131. package/resources/catalog/index.mjs.map +1 -1
  132. package/resources/catalog/item-categories/index.d.mts +1 -1
  133. package/resources/catalog/item-categories/index.d.mts.map +1 -1
  134. package/resources/catalog/item-categories/index.d.ts +1 -1
  135. package/resources/catalog/item-categories/index.d.ts.map +1 -1
  136. package/resources/catalog/item-categories/index.mjs.map +1 -1
  137. package/resources/catalog/item-categories/item-categories.d.mts +95 -65
  138. package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
  139. package/resources/catalog/item-categories/item-categories.d.ts +95 -65
  140. package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
  141. package/resources/catalog/item-categories/item-categories.js +38 -30
  142. package/resources/catalog/item-categories/item-categories.js.map +1 -1
  143. package/resources/catalog/item-categories/item-categories.mjs +38 -30
  144. package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
  145. package/resources/catalog/item-categories/properties.d.mts +9 -4
  146. package/resources/catalog/item-categories/properties.d.mts.map +1 -1
  147. package/resources/catalog/item-categories/properties.d.ts +9 -4
  148. package/resources/catalog/item-categories/properties.d.ts.map +1 -1
  149. package/resources/catalog/item-categories/properties.js +9 -4
  150. package/resources/catalog/item-categories/properties.js.map +1 -1
  151. package/resources/catalog/item-categories/properties.mjs +9 -4
  152. package/resources/catalog/item-categories/properties.mjs.map +1 -1
  153. package/resources/catalog/item-categories.d.mts.map +1 -1
  154. package/resources/catalog/item-categories.d.ts.map +1 -1
  155. package/resources/catalog/item-categories.mjs.map +1 -1
  156. package/resources/catalog/items/attributes.d.mts +3 -2
  157. package/resources/catalog/items/attributes.d.mts.map +1 -1
  158. package/resources/catalog/items/attributes.d.ts +3 -2
  159. package/resources/catalog/items/attributes.d.ts.map +1 -1
  160. package/resources/catalog/items/attributes.js +3 -2
  161. package/resources/catalog/items/attributes.js.map +1 -1
  162. package/resources/catalog/items/attributes.mjs +3 -2
  163. package/resources/catalog/items/attributes.mjs.map +1 -1
  164. package/resources/catalog/items/index.d.mts +1 -1
  165. package/resources/catalog/items/index.d.mts.map +1 -1
  166. package/resources/catalog/items/index.d.ts +1 -1
  167. package/resources/catalog/items/index.d.ts.map +1 -1
  168. package/resources/catalog/items/index.mjs.map +1 -1
  169. package/resources/catalog/items/items.d.mts +88 -52
  170. package/resources/catalog/items/items.d.mts.map +1 -1
  171. package/resources/catalog/items/items.d.ts +88 -52
  172. package/resources/catalog/items/items.d.ts.map +1 -1
  173. package/resources/catalog/items/items.js +24 -21
  174. package/resources/catalog/items/items.js.map +1 -1
  175. package/resources/catalog/items/items.mjs +24 -21
  176. package/resources/catalog/items/items.mjs.map +1 -1
  177. package/resources/catalog/items.d.mts.map +1 -1
  178. package/resources/catalog/items.d.ts.map +1 -1
  179. package/resources/catalog/items.mjs.map +1 -1
  180. package/resources/catalog/materials.d.mts +134 -87
  181. package/resources/catalog/materials.d.mts.map +1 -1
  182. package/resources/catalog/materials.d.ts +134 -87
  183. package/resources/catalog/materials.d.ts.map +1 -1
  184. package/resources/catalog/materials.js +29 -19
  185. package/resources/catalog/materials.js.map +1 -1
  186. package/resources/catalog/materials.mjs +29 -19
  187. package/resources/catalog/materials.mjs.map +1 -1
  188. package/resources/catalog/parts.d.mts +127 -74
  189. package/resources/catalog/parts.d.mts.map +1 -1
  190. package/resources/catalog/parts.d.ts +127 -74
  191. package/resources/catalog/parts.d.ts.map +1 -1
  192. package/resources/catalog/parts.js +34 -20
  193. package/resources/catalog/parts.js.map +1 -1
  194. package/resources/catalog/parts.mjs +34 -20
  195. package/resources/catalog/parts.mjs.map +1 -1
  196. package/resources/catalog/product-lines.d.mts +145 -70
  197. package/resources/catalog/product-lines.d.mts.map +1 -1
  198. package/resources/catalog/product-lines.d.ts +145 -70
  199. package/resources/catalog/product-lines.d.ts.map +1 -1
  200. package/resources/catalog/product-lines.js +31 -26
  201. package/resources/catalog/product-lines.js.map +1 -1
  202. package/resources/catalog/product-lines.mjs +31 -26
  203. package/resources/catalog/product-lines.mjs.map +1 -1
  204. package/resources/catalog/products.d.mts +187 -90
  205. package/resources/catalog/products.d.mts.map +1 -1
  206. package/resources/catalog/products.d.ts +187 -90
  207. package/resources/catalog/products.d.ts.map +1 -1
  208. package/resources/catalog/products.js +25 -20
  209. package/resources/catalog/products.js.map +1 -1
  210. package/resources/catalog/products.mjs +25 -20
  211. package/resources/catalog/products.mjs.map +1 -1
  212. package/resources/catalog/properties/attributes.d.mts +96 -44
  213. package/resources/catalog/properties/attributes.d.mts.map +1 -1
  214. package/resources/catalog/properties/attributes.d.ts +96 -44
  215. package/resources/catalog/properties/attributes.d.ts.map +1 -1
  216. package/resources/catalog/properties/attributes.js +31 -21
  217. package/resources/catalog/properties/attributes.js.map +1 -1
  218. package/resources/catalog/properties/attributes.mjs +31 -21
  219. package/resources/catalog/properties/attributes.mjs.map +1 -1
  220. package/resources/catalog/properties/index.d.mts +2 -2
  221. package/resources/catalog/properties/index.d.mts.map +1 -1
  222. package/resources/catalog/properties/index.d.ts +2 -2
  223. package/resources/catalog/properties/index.d.ts.map +1 -1
  224. package/resources/catalog/properties/index.mjs.map +1 -1
  225. package/resources/catalog/properties/properties.d.mts +70 -47
  226. package/resources/catalog/properties/properties.d.mts.map +1 -1
  227. package/resources/catalog/properties/properties.d.ts +70 -47
  228. package/resources/catalog/properties/properties.d.ts.map +1 -1
  229. package/resources/catalog/properties/properties.js +19 -18
  230. package/resources/catalog/properties/properties.js.map +1 -1
  231. package/resources/catalog/properties/properties.mjs +19 -18
  232. package/resources/catalog/properties/properties.mjs.map +1 -1
  233. package/resources/catalog/properties.d.mts.map +1 -1
  234. package/resources/catalog/properties.d.ts.map +1 -1
  235. package/resources/catalog/properties.mjs.map +1 -1
  236. package/resources/catalog/unit-groups/index.d.mts +2 -2
  237. package/resources/catalog/unit-groups/index.d.mts.map +1 -1
  238. package/resources/catalog/unit-groups/index.d.ts +2 -2
  239. package/resources/catalog/unit-groups/index.d.ts.map +1 -1
  240. package/resources/catalog/unit-groups/index.mjs.map +1 -1
  241. package/resources/catalog/unit-groups/unit-groups.d.mts +130 -83
  242. package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
  243. package/resources/catalog/unit-groups/unit-groups.d.ts +130 -83
  244. package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
  245. package/resources/catalog/unit-groups/unit-groups.js +33 -24
  246. package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
  247. package/resources/catalog/unit-groups/unit-groups.mjs +33 -24
  248. package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
  249. package/resources/catalog/unit-groups/units.d.mts +78 -54
  250. package/resources/catalog/unit-groups/units.d.mts.map +1 -1
  251. package/resources/catalog/unit-groups/units.d.ts +78 -54
  252. package/resources/catalog/unit-groups/units.d.ts.map +1 -1
  253. package/resources/catalog/unit-groups/units.js +34 -25
  254. package/resources/catalog/unit-groups/units.js.map +1 -1
  255. package/resources/catalog/unit-groups/units.mjs +34 -25
  256. package/resources/catalog/unit-groups/units.mjs.map +1 -1
  257. package/resources/catalog/unit-groups.d.mts.map +1 -1
  258. package/resources/catalog/unit-groups.d.ts.map +1 -1
  259. package/resources/catalog/unit-groups.mjs.map +1 -1
  260. package/resources/catalog/units.d.mts +100 -63
  261. package/resources/catalog/units.d.mts.map +1 -1
  262. package/resources/catalog/units.d.ts +100 -63
  263. package/resources/catalog/units.d.ts.map +1 -1
  264. package/resources/catalog/units.js +26 -25
  265. package/resources/catalog/units.js.map +1 -1
  266. package/resources/catalog/units.mjs +26 -25
  267. package/resources/catalog/units.mjs.map +1 -1
  268. package/resources/catalog.d.mts.map +1 -1
  269. package/resources/catalog.d.ts.map +1 -1
  270. package/resources/catalog.mjs.map +1 -1
  271. package/resources/core/addresses/actions.d.mts +12 -5
  272. package/resources/core/addresses/actions.d.mts.map +1 -1
  273. package/resources/core/addresses/actions.d.ts +12 -5
  274. package/resources/core/addresses/actions.d.ts.map +1 -1
  275. package/resources/core/addresses/actions.mjs.map +1 -1
  276. package/resources/core/addresses/addresses.d.mts +5 -2
  277. package/resources/core/addresses/addresses.d.mts.map +1 -1
  278. package/resources/core/addresses/addresses.d.ts +5 -2
  279. package/resources/core/addresses/addresses.d.ts.map +1 -1
  280. package/resources/core/addresses/addresses.js.map +1 -1
  281. package/resources/core/addresses/addresses.mjs.map +1 -1
  282. package/resources/core/addresses/index.d.mts.map +1 -1
  283. package/resources/core/addresses/index.d.ts.map +1 -1
  284. package/resources/core/addresses/index.mjs.map +1 -1
  285. package/resources/core/addresses.d.mts.map +1 -1
  286. package/resources/core/addresses.d.ts.map +1 -1
  287. package/resources/core/addresses.mjs.map +1 -1
  288. package/resources/core/audit-events.d.mts +78 -34
  289. package/resources/core/audit-events.d.mts.map +1 -1
  290. package/resources/core/audit-events.d.ts +78 -34
  291. package/resources/core/audit-events.d.ts.map +1 -1
  292. package/resources/core/audit-events.js +13 -10
  293. package/resources/core/audit-events.js.map +1 -1
  294. package/resources/core/audit-events.mjs +13 -10
  295. package/resources/core/audit-events.mjs.map +1 -1
  296. package/resources/core/core.d.mts +4 -4
  297. package/resources/core/core.d.mts.map +1 -1
  298. package/resources/core/core.d.ts +4 -4
  299. package/resources/core/core.d.ts.map +1 -1
  300. package/resources/core/core.mjs.map +1 -1
  301. package/resources/core/email-logs.d.mts +31 -21
  302. package/resources/core/email-logs.d.mts.map +1 -1
  303. package/resources/core/email-logs.d.ts +31 -21
  304. package/resources/core/email-logs.d.ts.map +1 -1
  305. package/resources/core/email-logs.js +10 -10
  306. package/resources/core/email-logs.js.map +1 -1
  307. package/resources/core/email-logs.mjs +10 -10
  308. package/resources/core/email-logs.mjs.map +1 -1
  309. package/resources/core/index.d.mts +4 -4
  310. package/resources/core/index.d.mts.map +1 -1
  311. package/resources/core/index.d.ts +4 -4
  312. package/resources/core/index.d.ts.map +1 -1
  313. package/resources/core/index.mjs.map +1 -1
  314. package/resources/core/request-logs.d.mts +87 -48
  315. package/resources/core/request-logs.d.mts.map +1 -1
  316. package/resources/core/request-logs.d.ts +87 -48
  317. package/resources/core/request-logs.d.ts.map +1 -1
  318. package/resources/core/request-logs.js +10 -10
  319. package/resources/core/request-logs.js.map +1 -1
  320. package/resources/core/request-logs.mjs +10 -10
  321. package/resources/core/request-logs.mjs.map +1 -1
  322. package/resources/core/sandboxes.d.mts +52 -31
  323. package/resources/core/sandboxes.d.mts.map +1 -1
  324. package/resources/core/sandboxes.d.ts +52 -31
  325. package/resources/core/sandboxes.d.ts.map +1 -1
  326. package/resources/core/sandboxes.js +20 -13
  327. package/resources/core/sandboxes.js.map +1 -1
  328. package/resources/core/sandboxes.mjs +20 -13
  329. package/resources/core/sandboxes.mjs.map +1 -1
  330. package/resources/core.d.mts.map +1 -1
  331. package/resources/core.d.ts.map +1 -1
  332. package/resources/core.mjs.map +1 -1
  333. package/resources/finance/finance.d.mts +69 -35
  334. package/resources/finance/finance.d.mts.map +1 -1
  335. package/resources/finance/finance.d.ts +69 -35
  336. package/resources/finance/finance.d.ts.map +1 -1
  337. package/resources/finance/finance.js +10 -10
  338. package/resources/finance/finance.js.map +1 -1
  339. package/resources/finance/finance.mjs +10 -10
  340. package/resources/finance/finance.mjs.map +1 -1
  341. package/resources/finance/index.d.mts +2 -2
  342. package/resources/finance/index.d.mts.map +1 -1
  343. package/resources/finance/index.d.ts +2 -2
  344. package/resources/finance/index.d.ts.map +1 -1
  345. package/resources/finance/index.mjs.map +1 -1
  346. package/resources/finance/payment-terms.d.mts +72 -43
  347. package/resources/finance/payment-terms.d.mts.map +1 -1
  348. package/resources/finance/payment-terms.d.ts +72 -43
  349. package/resources/finance/payment-terms.d.ts.map +1 -1
  350. package/resources/finance/payment-terms.js +33 -22
  351. package/resources/finance/payment-terms.js.map +1 -1
  352. package/resources/finance/payment-terms.mjs +33 -22
  353. package/resources/finance/payment-terms.mjs.map +1 -1
  354. package/resources/finance.d.mts.map +1 -1
  355. package/resources/finance.d.ts.map +1 -1
  356. package/resources/finance.mjs.map +1 -1
  357. package/resources/identity/account-users/account-users.d.mts +166 -79
  358. package/resources/identity/account-users/account-users.d.mts.map +1 -1
  359. package/resources/identity/account-users/account-users.d.ts +166 -79
  360. package/resources/identity/account-users/account-users.d.ts.map +1 -1
  361. package/resources/identity/account-users/account-users.js +43 -25
  362. package/resources/identity/account-users/account-users.js.map +1 -1
  363. package/resources/identity/account-users/account-users.mjs +43 -25
  364. package/resources/identity/account-users/account-users.mjs.map +1 -1
  365. package/resources/identity/account-users/actions.d.mts +13 -3
  366. package/resources/identity/account-users/actions.d.mts.map +1 -1
  367. package/resources/identity/account-users/actions.d.ts +13 -3
  368. package/resources/identity/account-users/actions.d.ts.map +1 -1
  369. package/resources/identity/account-users/actions.js +13 -3
  370. package/resources/identity/account-users/actions.js.map +1 -1
  371. package/resources/identity/account-users/actions.mjs +13 -3
  372. package/resources/identity/account-users/actions.mjs.map +1 -1
  373. package/resources/identity/account-users/index.d.mts +1 -1
  374. package/resources/identity/account-users/index.d.mts.map +1 -1
  375. package/resources/identity/account-users/index.d.ts +1 -1
  376. package/resources/identity/account-users/index.d.ts.map +1 -1
  377. package/resources/identity/account-users/index.mjs.map +1 -1
  378. package/resources/identity/account-users.d.mts.map +1 -1
  379. package/resources/identity/account-users.d.ts.map +1 -1
  380. package/resources/identity/account-users.mjs.map +1 -1
  381. package/resources/identity/identity.d.mts +2 -2
  382. package/resources/identity/identity.d.mts.map +1 -1
  383. package/resources/identity/identity.d.ts +2 -2
  384. package/resources/identity/identity.d.ts.map +1 -1
  385. package/resources/identity/identity.mjs.map +1 -1
  386. package/resources/identity/index.d.mts +2 -2
  387. package/resources/identity/index.d.mts.map +1 -1
  388. package/resources/identity/index.d.ts +2 -2
  389. package/resources/identity/index.d.ts.map +1 -1
  390. package/resources/identity/index.mjs.map +1 -1
  391. package/resources/identity/roles.d.mts +88 -61
  392. package/resources/identity/roles.d.mts.map +1 -1
  393. package/resources/identity/roles.d.ts +88 -61
  394. package/resources/identity/roles.d.ts.map +1 -1
  395. package/resources/identity/roles.js +33 -27
  396. package/resources/identity/roles.js.map +1 -1
  397. package/resources/identity/roles.mjs +33 -27
  398. package/resources/identity/roles.mjs.map +1 -1
  399. package/resources/identity.d.mts.map +1 -1
  400. package/resources/identity.d.ts.map +1 -1
  401. package/resources/identity.mjs.map +1 -1
  402. package/resources/index.d.mts +2 -1
  403. package/resources/index.d.mts.map +1 -1
  404. package/resources/index.d.ts +2 -1
  405. package/resources/index.d.ts.map +1 -1
  406. package/resources/index.js +3 -1
  407. package/resources/index.js.map +1 -1
  408. package/resources/index.mjs +1 -0
  409. package/resources/index.mjs.map +1 -1
  410. package/resources/operations/carriers/carriers.d.mts +88 -59
  411. package/resources/operations/carriers/carriers.d.mts.map +1 -1
  412. package/resources/operations/carriers/carriers.d.ts +88 -59
  413. package/resources/operations/carriers/carriers.d.ts.map +1 -1
  414. package/resources/operations/carriers/carriers.js +29 -21
  415. package/resources/operations/carriers/carriers.js.map +1 -1
  416. package/resources/operations/carriers/carriers.mjs +29 -21
  417. package/resources/operations/carriers/carriers.mjs.map +1 -1
  418. package/resources/operations/carriers/index.d.mts +2 -2
  419. package/resources/operations/carriers/index.d.mts.map +1 -1
  420. package/resources/operations/carriers/index.d.ts +2 -2
  421. package/resources/operations/carriers/index.d.ts.map +1 -1
  422. package/resources/operations/carriers/index.mjs.map +1 -1
  423. package/resources/operations/carriers/service-levels.d.mts +115 -68
  424. package/resources/operations/carriers/service-levels.d.mts.map +1 -1
  425. package/resources/operations/carriers/service-levels.d.ts +115 -68
  426. package/resources/operations/carriers/service-levels.d.ts.map +1 -1
  427. package/resources/operations/carriers/service-levels.js +37 -30
  428. package/resources/operations/carriers/service-levels.js.map +1 -1
  429. package/resources/operations/carriers/service-levels.mjs +37 -30
  430. package/resources/operations/carriers/service-levels.mjs.map +1 -1
  431. package/resources/operations/carriers.d.mts.map +1 -1
  432. package/resources/operations/carriers.d.ts.map +1 -1
  433. package/resources/operations/carriers.mjs.map +1 -1
  434. package/resources/operations/index.d.mts +4 -4
  435. package/resources/operations/index.d.mts.map +1 -1
  436. package/resources/operations/index.d.ts +4 -4
  437. package/resources/operations/index.d.ts.map +1 -1
  438. package/resources/operations/index.mjs.map +1 -1
  439. package/resources/operations/location-types.d.mts +33 -18
  440. package/resources/operations/location-types.d.mts.map +1 -1
  441. package/resources/operations/location-types.d.ts +33 -18
  442. package/resources/operations/location-types.d.ts.map +1 -1
  443. package/resources/operations/location-types.js +12 -12
  444. package/resources/operations/location-types.js.map +1 -1
  445. package/resources/operations/location-types.mjs +12 -12
  446. package/resources/operations/location-types.mjs.map +1 -1
  447. package/resources/operations/locations.d.mts +131 -65
  448. package/resources/operations/locations.d.mts.map +1 -1
  449. package/resources/operations/locations.d.ts +131 -65
  450. package/resources/operations/locations.d.ts.map +1 -1
  451. package/resources/operations/locations.js +24 -20
  452. package/resources/operations/locations.js.map +1 -1
  453. package/resources/operations/locations.mjs +24 -20
  454. package/resources/operations/locations.mjs.map +1 -1
  455. package/resources/operations/operations.d.mts +4 -4
  456. package/resources/operations/operations.d.mts.map +1 -1
  457. package/resources/operations/operations.d.ts +4 -4
  458. package/resources/operations/operations.d.ts.map +1 -1
  459. package/resources/operations/operations.mjs.map +1 -1
  460. package/resources/operations/scanning-stations.d.mts +143 -69
  461. package/resources/operations/scanning-stations.d.mts.map +1 -1
  462. package/resources/operations/scanning-stations.d.ts +143 -69
  463. package/resources/operations/scanning-stations.d.ts.map +1 -1
  464. package/resources/operations/scanning-stations.js +32 -23
  465. package/resources/operations/scanning-stations.js.map +1 -1
  466. package/resources/operations/scanning-stations.mjs +32 -23
  467. package/resources/operations/scanning-stations.mjs.map +1 -1
  468. package/resources/operations/shipping-terms.d.mts +117 -81
  469. package/resources/operations/shipping-terms.d.mts.map +1 -1
  470. package/resources/operations/shipping-terms.d.ts +117 -81
  471. package/resources/operations/shipping-terms.d.ts.map +1 -1
  472. package/resources/operations/shipping-terms.js +28 -26
  473. package/resources/operations/shipping-terms.js.map +1 -1
  474. package/resources/operations/shipping-terms.mjs +28 -26
  475. package/resources/operations/shipping-terms.mjs.map +1 -1
  476. package/resources/operations.d.mts.map +1 -1
  477. package/resources/operations.d.ts.map +1 -1
  478. package/resources/operations.mjs.map +1 -1
  479. package/resources/sales/account-groups.d.mts +111 -80
  480. package/resources/sales/account-groups.d.mts.map +1 -1
  481. package/resources/sales/account-groups.d.ts +111 -80
  482. package/resources/sales/account-groups.d.ts.map +1 -1
  483. package/resources/sales/account-groups.js +30 -21
  484. package/resources/sales/account-groups.js.map +1 -1
  485. package/resources/sales/account-groups.mjs +30 -21
  486. package/resources/sales/account-groups.mjs.map +1 -1
  487. package/resources/sales/account-statuses.d.mts +41 -23
  488. package/resources/sales/account-statuses.d.mts.map +1 -1
  489. package/resources/sales/account-statuses.d.ts +41 -23
  490. package/resources/sales/account-statuses.d.ts.map +1 -1
  491. package/resources/sales/account-statuses.js +16 -13
  492. package/resources/sales/account-statuses.js.map +1 -1
  493. package/resources/sales/account-statuses.mjs +16 -13
  494. package/resources/sales/account-statuses.mjs.map +1 -1
  495. package/resources/sales/addresses.d.mts +83 -36
  496. package/resources/sales/addresses.d.mts.map +1 -1
  497. package/resources/sales/addresses.d.ts +83 -36
  498. package/resources/sales/addresses.d.ts.map +1 -1
  499. package/resources/sales/addresses.js +29 -19
  500. package/resources/sales/addresses.js.map +1 -1
  501. package/resources/sales/addresses.mjs +29 -19
  502. package/resources/sales/addresses.mjs.map +1 -1
  503. package/resources/sales/customers/actions.d.mts +15 -5
  504. package/resources/sales/customers/actions.d.mts.map +1 -1
  505. package/resources/sales/customers/actions.d.ts +15 -5
  506. package/resources/sales/customers/actions.d.ts.map +1 -1
  507. package/resources/sales/customers/actions.js +6 -2
  508. package/resources/sales/customers/actions.js.map +1 -1
  509. package/resources/sales/customers/actions.mjs +6 -2
  510. package/resources/sales/customers/actions.mjs.map +1 -1
  511. package/resources/sales/customers/customers.d.mts +588 -291
  512. package/resources/sales/customers/customers.d.mts.map +1 -1
  513. package/resources/sales/customers/customers.d.ts +588 -291
  514. package/resources/sales/customers/customers.d.ts.map +1 -1
  515. package/resources/sales/customers/customers.js +58 -30
  516. package/resources/sales/customers/customers.js.map +1 -1
  517. package/resources/sales/customers/customers.mjs +58 -30
  518. package/resources/sales/customers/customers.mjs.map +1 -1
  519. package/resources/sales/customers/index.d.mts +1 -1
  520. package/resources/sales/customers/index.d.mts.map +1 -1
  521. package/resources/sales/customers/index.d.ts +1 -1
  522. package/resources/sales/customers/index.d.ts.map +1 -1
  523. package/resources/sales/customers/index.js.map +1 -1
  524. package/resources/sales/customers/index.mjs.map +1 -1
  525. package/resources/sales/customers.d.mts.map +1 -1
  526. package/resources/sales/customers.d.ts.map +1 -1
  527. package/resources/sales/customers.mjs.map +1 -1
  528. package/resources/sales/index.d.mts +6 -6
  529. package/resources/sales/index.d.mts.map +1 -1
  530. package/resources/sales/index.d.ts +6 -6
  531. package/resources/sales/index.d.ts.map +1 -1
  532. package/resources/sales/index.js.map +1 -1
  533. package/resources/sales/index.mjs.map +1 -1
  534. package/resources/sales/priorities.d.mts +31 -21
  535. package/resources/sales/priorities.d.mts.map +1 -1
  536. package/resources/sales/priorities.d.ts +31 -21
  537. package/resources/sales/priorities.d.ts.map +1 -1
  538. package/resources/sales/priorities.js +10 -10
  539. package/resources/sales/priorities.js.map +1 -1
  540. package/resources/sales/priorities.mjs +10 -10
  541. package/resources/sales/priorities.mjs.map +1 -1
  542. package/resources/sales/sales-orders.d.mts +877 -7
  543. package/resources/sales/sales-orders.d.mts.map +1 -1
  544. package/resources/sales/sales-orders.d.ts +877 -7
  545. package/resources/sales/sales-orders.d.ts.map +1 -1
  546. package/resources/sales/sales-orders.js +45 -3
  547. package/resources/sales/sales-orders.js.map +1 -1
  548. package/resources/sales/sales-orders.mjs +45 -3
  549. package/resources/sales/sales-orders.mjs.map +1 -1
  550. package/resources/sales/sales.d.mts +8 -8
  551. package/resources/sales/sales.d.mts.map +1 -1
  552. package/resources/sales/sales.d.ts +8 -8
  553. package/resources/sales/sales.d.ts.map +1 -1
  554. package/resources/sales/sales.js.map +1 -1
  555. package/resources/sales/sales.mjs.map +1 -1
  556. package/resources/sales.d.mts.map +1 -1
  557. package/resources/sales.d.ts.map +1 -1
  558. package/resources/sales.mjs.map +1 -1
  559. package/resources/settings/index.d.mts +3 -0
  560. package/resources/settings/index.d.mts.map +1 -0
  561. package/resources/settings/index.d.ts +3 -0
  562. package/resources/settings/index.d.ts.map +1 -0
  563. package/resources/settings/index.js +9 -0
  564. package/resources/settings/index.js.map +1 -0
  565. package/resources/settings/index.mjs +4 -0
  566. package/resources/settings/index.mjs.map +1 -0
  567. package/resources/settings/integrations.d.mts +238 -0
  568. package/resources/settings/integrations.d.mts.map +1 -0
  569. package/resources/settings/integrations.d.ts +238 -0
  570. package/resources/settings/integrations.d.ts.map +1 -0
  571. package/resources/settings/integrations.js +80 -0
  572. package/resources/settings/integrations.js.map +1 -0
  573. package/resources/settings/integrations.mjs +76 -0
  574. package/resources/settings/integrations.mjs.map +1 -0
  575. package/resources/settings/settings.d.mts +10 -0
  576. package/resources/settings/settings.d.mts.map +1 -0
  577. package/resources/settings/settings.d.ts +10 -0
  578. package/resources/settings/settings.d.ts.map +1 -0
  579. package/resources/settings/settings.js +17 -0
  580. package/resources/settings/settings.js.map +1 -0
  581. package/resources/settings/settings.mjs +12 -0
  582. package/resources/settings/settings.mjs.map +1 -0
  583. package/resources/settings.d.mts +2 -0
  584. package/resources/settings.d.mts.map +1 -0
  585. package/resources/settings.d.ts +2 -0
  586. package/resources/settings.d.ts.map +1 -0
  587. package/resources/settings.js +6 -0
  588. package/resources/settings.js.map +1 -0
  589. package/resources/settings.mjs +3 -0
  590. package/resources/settings.mjs.map +1 -0
  591. package/resources.d.mts.map +1 -1
  592. package/resources.d.ts.map +1 -1
  593. package/resources.mjs.map +1 -1
  594. package/src/client.ts +13 -3
  595. package/src/resources/auth/api-keys/actions.ts +28 -5
  596. package/src/resources/auth/api-keys/api-keys.ts +142 -78
  597. package/src/resources/auth/api-keys/index.ts +1 -1
  598. package/src/resources/auth/auth.ts +1 -1
  599. package/src/resources/auth/index.ts +1 -1
  600. package/src/resources/catalog/catalog.ts +18 -18
  601. package/src/resources/catalog/index.ts +18 -18
  602. package/src/resources/catalog/item-categories/index.ts +2 -2
  603. package/src/resources/catalog/item-categories/item-categories.ts +116 -86
  604. package/src/resources/catalog/item-categories/properties.ts +9 -4
  605. package/src/resources/catalog/items/attributes.ts +3 -2
  606. package/src/resources/catalog/items/index.ts +2 -2
  607. package/src/resources/catalog/items/items.ts +111 -75
  608. package/src/resources/catalog/materials.ts +159 -112
  609. package/src/resources/catalog/parts.ts +145 -92
  610. package/src/resources/catalog/product-lines.ts +160 -85
  611. package/src/resources/catalog/products.ts +205 -108
  612. package/src/resources/catalog/properties/attributes.ts +110 -58
  613. package/src/resources/catalog/properties/index.ts +4 -4
  614. package/src/resources/catalog/properties/properties.ts +84 -61
  615. package/src/resources/catalog/unit-groups/index.ts +4 -4
  616. package/src/resources/catalog/unit-groups/unit-groups.ts +144 -97
  617. package/src/resources/catalog/unit-groups/units.ts +97 -73
  618. package/src/resources/catalog/units.ts +114 -77
  619. package/src/resources/core/addresses/actions.ts +12 -5
  620. package/src/resources/core/addresses/addresses.ts +5 -2
  621. package/src/resources/core/audit-events.ts +142 -47
  622. package/src/resources/core/core.ts +5 -5
  623. package/src/resources/core/email-logs.ts +39 -29
  624. package/src/resources/core/index.ts +5 -5
  625. package/src/resources/core/request-logs.ts +104 -64
  626. package/src/resources/core/sandboxes.ts +57 -36
  627. package/src/resources/finance/finance.ts +78 -44
  628. package/src/resources/finance/index.ts +4 -4
  629. package/src/resources/finance/payment-terms.ts +85 -56
  630. package/src/resources/identity/account-users/account-users.ts +180 -93
  631. package/src/resources/identity/account-users/actions.ts +13 -3
  632. package/src/resources/identity/account-users/index.ts +2 -2
  633. package/src/resources/identity/identity.ts +4 -4
  634. package/src/resources/identity/index.ts +4 -4
  635. package/src/resources/identity/roles.ts +96 -69
  636. package/src/resources/index.ts +3 -2
  637. package/src/resources/operations/carriers/carriers.ts +97 -68
  638. package/src/resources/operations/carriers/index.ts +4 -4
  639. package/src/resources/operations/carriers/service-levels.ts +136 -89
  640. package/src/resources/operations/index.ts +8 -8
  641. package/src/resources/operations/location-types.ts +38 -23
  642. package/src/resources/operations/locations.ts +140 -74
  643. package/src/resources/operations/operations.ts +8 -8
  644. package/src/resources/operations/scanning-stations.ts +160 -86
  645. package/src/resources/operations/shipping-terms.ts +134 -98
  646. package/src/resources/sales/account-groups.ts +122 -91
  647. package/src/resources/sales/account-statuses.ts +48 -30
  648. package/src/resources/sales/addresses.ts +91 -44
  649. package/src/resources/sales/customers/actions.ts +15 -4
  650. package/src/resources/sales/customers/customers.ts +660 -351
  651. package/src/resources/sales/customers/index.ts +4 -2
  652. package/src/resources/sales/index.ts +25 -6
  653. package/src/resources/sales/priorities.ts +39 -29
  654. package/src/resources/sales/sales-orders.ts +1113 -21
  655. package/src/resources/sales/sales.ts +44 -6
  656. package/src/resources/settings/index.ts +13 -0
  657. package/src/resources/settings/integrations.ts +291 -0
  658. package/src/resources/settings/settings.ts +33 -0
  659. package/src/resources/settings.ts +3 -0
  660. package/src/version.ts +1 -1
  661. package/uploads.d.mts +0 -1
  662. package/uploads.d.mts.map +1 -1
  663. package/uploads.d.ts +0 -1
  664. package/uploads.d.ts.map +1 -1
  665. package/uploads.mjs +0 -1
  666. package/uploads.mjs.map +1 -1
  667. package/version.d.mts +1 -1
  668. package/version.d.ts +1 -1
  669. package/version.js +1 -1
  670. package/version.mjs +1 -1
@@ -19,27 +19,18 @@ export class Customers extends APIResource {
19
19
  actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
20
20
 
21
21
  /**
22
- * Creates a customer account. Auto-generates a customer number if one is not
23
- * provided.
22
+ * Returns a paginated list of customers for the current account.
24
23
  *
25
24
  * @example
26
25
  * ```ts
27
- * const customer = await client.sales.customers.create({
28
- * bill_to_address: { name: 'Acme Inc.', country: 'US' },
29
- * customer_type_group_id: 'acgp_018e88072d1320808dc979cfac',
30
- * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
31
- * default_payment_term_id:
32
- * 'pytm_018694d6601ea771cd1b52e890',
33
- * default_shipping_term_id:
34
- * 'shtm_014341ab4bb5bf94d5b6936f86',
35
- * name: 'Acme Inc.',
36
- * ship_to_address: { name: 'Acme Inc.', country: 'US' },
37
- * });
26
+ * const listCustomer = await client.sales.customers.list();
38
27
  * ```
39
28
  */
40
- create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<Customer> {
41
- const { include, ...body } = params;
42
- return this._client.post('/v1/sales/customers', { query: { include }, body, ...options });
29
+ list(
30
+ query: CustomerListParams | null | undefined = {},
31
+ options?: RequestOptions,
32
+ ): APIPromise<ListCustomer> {
33
+ return this._client.get('/v1/sales/customers', { query, ...options });
43
34
  }
44
35
 
45
36
  /**
@@ -61,13 +52,63 @@ export class Customers extends APIResource {
61
52
  }
62
53
 
63
54
  /**
64
- * Partially updates a customer account. When a Stripe integration is active,
65
- * customer changes are synced to Stripe.
55
+ * Creates a customer account with its default addresses, fulfillment settings, and
56
+ * order policies.
57
+ *
58
+ * If `number` is omitted, the next sequential customer number is assigned
59
+ * automatically.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const customer = await client.sales.customers.create({
64
+ * bill_to_address: {
65
+ * name: 'Acme Inc.',
66
+ * street_line_1: '123 Main St',
67
+ * locality: 'New York',
68
+ * state: 'NY',
69
+ * postal_code: '10001',
70
+ * country: 'US',
71
+ * },
72
+ * customer_type_group_id: 'acgp_018e88072d1320808dc979cfac',
73
+ * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
74
+ * default_payment_term_id:
75
+ * 'pytm_018694d6601ea771cd1b52e890',
76
+ * default_shipping_term_id:
77
+ * 'shtm_014341ab4bb5bf94d5b6936f86',
78
+ * name: 'Acme Inc.',
79
+ * ship_to_address: {
80
+ * name: 'Acme Inc.',
81
+ * street_line_1: '123 Main St',
82
+ * locality: 'New York',
83
+ * state: 'NY',
84
+ * postal_code: '10001',
85
+ * country: 'US',
86
+ * },
87
+ * note: 'Key enterprise account',
88
+ * });
89
+ * ```
90
+ */
91
+ create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<Customer> {
92
+ const { include, ...body } = params;
93
+ return this._client.post('/v1/sales/customers', { query: { include }, body, ...options });
94
+ }
95
+
96
+ /**
97
+ * Partially updates a customer account.
98
+ *
99
+ * Only the fields provided in the request are changed. Nullable fields can be set
100
+ * to `null` to clear their current value.
66
101
  *
67
102
  * @example
68
103
  * ```ts
69
104
  * const customer = await client.sales.customers.update(
70
105
  * 'ac_0170df1ac58e4d24c66fc89f5f',
106
+ * {
107
+ * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
108
+ * freight_policy: 'billed_freight',
109
+ * name: 'Acme Corp Updated',
110
+ * note: 'Updated account notes',
111
+ * },
71
112
  * );
72
113
  * ```
73
114
  */
@@ -81,23 +122,10 @@ export class Customers extends APIResource {
81
122
  }
82
123
 
83
124
  /**
84
- * Returns a paginated list of customers for the current account.
125
+ * Deletes a customer.
85
126
  *
86
- * @example
87
- * ```ts
88
- * const listCustomer = await client.sales.customers.list();
89
- * ```
90
- */
91
- list(
92
- query: CustomerListParams | null | undefined = {},
93
- options?: RequestOptions,
94
- ): APIPromise<ListCustomer> {
95
- return this._client.get('/v1/sales/customers', { query, ...options });
96
- }
97
-
98
- /**
99
- * Deletes a customer and associated account relations, addresses, and account
100
- * users.
127
+ * Fails with a conflict error if any sales orders still reference the customer;
128
+ * delete or reassign those orders, or merge the customer into another first.
101
129
  *
102
130
  * @example
103
131
  * ```ts
@@ -112,7 +140,11 @@ export class Customers extends APIResource {
112
140
  }
113
141
 
114
142
  /**
115
- * Account user with profile, role, and department.
143
+ * A user's membership in an account, carrying the account-specific status, role,
144
+ * and department.
145
+ *
146
+ * Profile fields (name, email, username, image URL) live on the expandable `user`
147
+ * sub-resource, which is shared across every account the user belongs to.
116
148
  */
117
149
  export interface AccountUser {
118
150
  /**
@@ -126,42 +158,33 @@ export interface AccountUser {
126
158
  created_at: string;
127
159
 
128
160
  /**
129
- * Department resource.
161
+ * A functional area of a production operation, such as fabrication or packaging,
162
+ * that groups scanning stations and machines.
130
163
  */
131
164
  department: Department | null;
132
165
 
133
166
  /**
134
- * Email address.
135
- */
136
- email: string | null;
137
-
138
- /**
139
- * Profile image URL.
140
- */
141
- image_url: string | null;
142
-
143
- /**
144
- * When the user last used this account.
167
+ * When the user last accessed this account.
145
168
  */
146
169
  last_used_at: string | null;
147
170
 
148
- /**
149
- * Display name.
150
- */
151
- name: string | null;
152
-
153
171
  /**
154
172
  * Resource type identifier.
155
173
  */
156
174
  object: 'account_user';
157
175
 
158
176
  /**
159
- * Role resource.
177
+ * A named set of permissions that can be assigned to users to control what they
178
+ * can access.
160
179
  */
161
180
  role: APIKeysAPI.Role | null;
162
181
 
163
182
  /**
164
183
  * Account user status.
184
+ *
185
+ * - `active`: the user can access the account.
186
+ * - `disabled`: the user is locked out of the account.
187
+ * - `removed`: the user has been removed (soft-deleted) from the account.
165
188
  */
166
189
  status: 'active' | 'disabled' | 'removed';
167
190
 
@@ -171,18 +194,20 @@ export interface AccountUser {
171
194
  updated_at: string;
172
195
 
173
196
  /**
174
- * Underlying user ID.
175
- */
176
- user_id: string;
177
-
178
- /**
179
- * Username.
197
+ * A user's global profile, shared across every account they belong to.
198
+ *
199
+ * Account-specific settings (status, role, department) live on the account user
200
+ * resource that links the user to each account.
180
201
  */
181
- username: string | null;
202
+ user: User | null;
182
203
  }
183
204
 
184
205
  /**
185
- * Carrier resource.
206
+ * A shipping carrier configured for fulfilling orders.
207
+ *
208
+ * Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
209
+ * through Shippo for live rating and label purchase; other carriers represent
210
+ * self-managed shipping methods such as will call or local delivery.
186
211
  */
187
212
  export interface Carrier {
188
213
  /**
@@ -191,12 +216,20 @@ export interface Carrier {
191
216
  id: string;
192
217
 
193
218
  /**
194
- * Account number.
219
+ * Your account number with this carrier, used to connect UPS and USPS accounts.
195
220
  */
196
221
  account_number: string | null;
197
222
 
198
223
  /**
199
- * Carrier code.
224
+ * Well-known carrier identifier, set only for recognized carriers and absent for
225
+ * custom ones.
226
+ *
227
+ * - `fedex`, `ups`, `usps`: integrated carriers managed through Shippo (live
228
+ * rating and labels).
229
+ * - `will_call`: customer picks the order up; no carrier shipment.
230
+ * - `delivery`: delivered by your own vehicles/drivers.
231
+ * - `ltl`, `ltl1`: less-than-truckload freight carriers.
232
+ * - `freight_collect`: freight billed to and arranged by the receiver.
200
233
  */
201
234
  code: 'fedex' | 'ups' | 'usps' | 'will_call' | 'delivery' | 'ltl' | 'ltl1' | 'freight_collect' | null;
202
235
 
@@ -206,7 +239,8 @@ export interface Carrier {
206
239
  created_at: string;
207
240
 
208
241
  /**
209
- * Customer portal visibility.
242
+ * Whether customers can see and select this carrier at checkout in the customer
243
+ * portal.
210
244
  */
211
245
  customer_portal_visibility: 'visible' | 'hidden';
212
246
 
@@ -216,7 +250,7 @@ export interface Carrier {
216
250
  deleted_at: string | null;
217
251
 
218
252
  /**
219
- * Display name.
253
+ * Human-readable name for the carrier, unique among your account's carriers.
220
254
  */
221
255
  name: string;
222
256
 
@@ -243,6 +277,10 @@ export interface Carrier {
243
277
 
244
278
  /**
245
279
  * Material consumed by a production step.
280
+ *
281
+ * Each consumption records one input item and how much of it the step uses.
282
+ * Consumptions also determine the production flow: when another step produces the
283
+ * consumed item, the two steps are linked upstream/downstream automatically.
246
284
  */
247
285
  export interface Consumption {
248
286
  /**
@@ -291,17 +329,19 @@ export interface Consumption {
291
329
  */
292
330
  export interface CreateCustomerRequest {
293
331
  /**
294
- * Request to create an address.
332
+ * Address details used to create an address, either directly or inline on another
333
+ * resource.
295
334
  */
296
335
  bill_to_address: AddressesAPI.AddressInput;
297
336
 
298
337
  /**
299
- * Customer type group ID.
338
+ * ID of the account group of type `type_group` that categorizes this customer (for
339
+ * example "Distributors").
300
340
  */
301
341
  customer_type_group_id: string;
302
342
 
303
343
  /**
304
- * Default carrier ID.
344
+ * ID of the default carrier for this customer's shipments.
305
345
  */
306
346
  default_carrier_id: string;
307
347
 
@@ -316,43 +356,52 @@ export interface CreateCustomerRequest {
316
356
  default_shipping_term_id: string;
317
357
 
318
358
  /**
319
- * Display name.
359
+ * The customer's business name, as shown throughout the app and on documents.
320
360
  */
321
361
  name: string;
322
362
 
323
363
  /**
324
- * Request to create an address.
364
+ * Address details used to create an address, either directly or inline on another
365
+ * resource.
325
366
  */
326
367
  ship_to_address: AddressesAPI.AddressInput;
327
368
 
328
369
  /**
329
- * Carrier billing account number.
370
+ * Carrier billing account number charged when `carrier_billing_type` is
371
+ * `third_party`.
330
372
  */
331
373
  carrier_billing_account?: string;
332
374
 
333
375
  /**
334
- * Carrier billing type.
376
+ * Who pays the carrier for shipments.
377
+ *
378
+ * - `sender`: the shipper (you) pays the carrier.
379
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
335
380
  */
336
381
  carrier_billing_type?: 'sender' | 'third_party';
337
382
 
338
383
  /**
339
- * Commission policy.
384
+ * How sales commission applies to this customer's orders.
385
+ *
386
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
387
+ * - `commission_applied`: sales commission is calculated on this customer's
388
+ * orders.
340
389
  */
341
390
  commission_policy?: 'commission_applied' | 'commission_exempt';
342
391
 
343
392
  /**
344
- * QuantityInput represents a value with an associated unit for create/update
345
- * requests.
393
+ * A value with an associated unit, used in create and update requests.
346
394
  */
347
395
  credit_limit?: QuantityInput;
348
396
 
349
397
  /**
350
- * Price group IDs.
398
+ * IDs of the account groups of type `pricing_group` to assign to this customer,
399
+ * used to apply pricing rules.
351
400
  */
352
401
  customer_price_group_ids?: Array<string>;
353
402
 
354
403
  /**
355
- * Default priority code.
404
+ * Priority applied to new orders for this customer.
356
405
  */
357
406
  default_priority?: 'low' | 'normal' | 'high';
358
407
 
@@ -362,12 +411,13 @@ export interface CreateCustomerRequest {
362
411
  default_sales_rep_id?: string;
363
412
 
364
413
  /**
365
- * Default service level ID.
414
+ * ID of the default carrier service level.
366
415
  */
367
416
  default_service_level_id?: string;
368
417
 
369
418
  /**
370
- * EDI status.
419
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
420
+ * documents with this customer.
371
421
  */
372
422
  edi_status?: 'enabled' | 'disabled';
373
423
 
@@ -377,17 +427,25 @@ export interface CreateCustomerRequest {
377
427
  email?: string;
378
428
 
379
429
  /**
380
- * Freight policy.
430
+ * Whether this customer is billed for freight on their orders.
431
+ *
432
+ * - `free_freight`: the customer is not billed for freight.
433
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
434
+ * order.
381
435
  */
382
436
  freight_policy?: 'free_freight' | 'billed_freight';
383
437
 
384
438
  /**
385
- * Note.
439
+ * Free-form note about the customer.
386
440
  */
387
441
  note?: string;
388
442
 
389
443
  /**
390
- * Customer number. Auto-generated if omitted.
444
+ * Human-readable customer number used to identify the account, distinct from the
445
+ * `id`.
446
+ *
447
+ * Must be unique within your account. If omitted, the next sequential number is
448
+ * assigned automatically.
391
449
  */
392
450
  number?: string;
393
451
 
@@ -397,7 +455,12 @@ export interface CreateCustomerRequest {
397
455
  phone?: string;
398
456
 
399
457
  /**
400
- * Account status code.
458
+ * Account status code, controlling whether the customer can transact.
459
+ *
460
+ * - `normal`: standard active account with no restrictions.
461
+ * - `preferred`: active account flagged as preferred.
462
+ * - `hold_shipment`: orders can be placed, but shipments are held.
463
+ * - `hold_all`: all activity is on hold.
401
464
  */
402
465
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
403
466
 
@@ -408,7 +471,8 @@ export interface CreateCustomerRequest {
408
471
  }
409
472
 
410
473
  /**
411
- * Customer account.
474
+ * A business you sell to, with its contact details, default fulfillment settings,
475
+ * and order policies.
412
476
  */
413
477
  export interface Customer {
414
478
  /**
@@ -417,7 +481,8 @@ export interface Customer {
417
481
  id: string;
418
482
 
419
483
  /**
420
- * Address with associated geolocation.
484
+ * A saved address that can be used for billing and shipping on sales orders,
485
+ * invoices, and shipments.
421
486
  */
422
487
  bill_to_address: APIKeysAPI.Address | null;
423
488
 
@@ -427,7 +492,11 @@ export interface Customer {
427
492
  child_accounts: ListCustomer | null;
428
493
 
429
494
  /**
430
- * Commission policy.
495
+ * How sales commission applies to this customer's orders.
496
+ *
497
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
498
+ * - `commission_applied`: sales commission is calculated on this customer's
499
+ * orders.
431
500
  */
432
501
  commission_policy: 'commission_applied' | 'commission_exempt';
433
502
 
@@ -452,7 +521,8 @@ export interface Customer {
452
521
  defaults: CustomerDefaults | null;
453
522
 
454
523
  /**
455
- * EDI status.
524
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
525
+ * documents with this customer.
456
526
  */
457
527
  edi_status: 'enabled' | 'disabled';
458
528
 
@@ -462,12 +532,12 @@ export interface Customer {
462
532
  freight_preferences: CustomerFreightPreferences | null;
463
533
 
464
534
  /**
465
- * Display name.
535
+ * The customer's business name, as shown throughout the app and on documents.
466
536
  */
467
537
  name: string;
468
538
 
469
539
  /**
470
- * Note.
540
+ * Free-form note about the customer.
471
541
  */
472
542
  note: string | null;
473
543
 
@@ -477,7 +547,8 @@ export interface Customer {
477
547
  notification_preferences: CustomerNotificationPreferences | null;
478
548
 
479
549
  /**
480
- * Customer number.
550
+ * Human-readable customer number used to identify the account, distinct from the
551
+ * `id`.
481
552
  */
482
553
  number: string;
483
554
 
@@ -487,7 +558,8 @@ export interface Customer {
487
558
  object: 'customer';
488
559
 
489
560
  /**
490
- * Customer account.
561
+ * A business you sell to, with its contact details, default fulfillment settings,
562
+ * and order policies.
491
563
  */
492
564
  parent_account: Customer | null;
493
565
 
@@ -497,22 +569,33 @@ export interface Customer {
497
569
  price_groups: AccountGroupsAPI.ListAccountGroup | null;
498
570
 
499
571
  /**
500
- * Customer relationship type.
572
+ * The customer's position in the account hierarchy.
573
+ *
574
+ * - `standalone`: no parent or child accounts.
575
+ * - `parent`: has one or more child accounts (see `child_accounts`).
576
+ * - `child`: belongs to a parent account (see `parent_account`).
501
577
  */
502
578
  relationship_type: 'standalone' | 'parent' | 'child';
503
579
 
504
580
  /**
505
- * Address with associated geolocation.
581
+ * A saved address that can be used for billing and shipping on sales orders,
582
+ * invoices, and shipments.
506
583
  */
507
584
  ship_to_address: APIKeysAPI.Address | null;
508
585
 
509
586
  /**
510
- * Account status code.
587
+ * Account status code, controlling whether the customer can transact.
588
+ *
589
+ * - `normal`: standard active account with no restrictions.
590
+ * - `preferred`: active account flagged as preferred.
591
+ * - `hold_shipment`: orders can be placed, but shipments are held.
592
+ * - `hold_all`: all activity is on hold.
511
593
  */
512
594
  status: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
513
595
 
514
596
  /**
515
- * Account group resource.
597
+ * A named grouping of customer accounts, used for pricing rules or to categorize
598
+ * accounts.
516
599
  */
517
600
  type: AccountGroupsAPI.AccountGroup | null;
518
601
 
@@ -557,22 +640,27 @@ export interface CustomerDefaults {
557
640
  object: 'customer_defaults';
558
641
 
559
642
  /**
560
- * Payment term resource.
643
+ * A payment term describing when payment is due (e.g. `Net 30`), assignable to
644
+ * customers, sales orders, purchase orders, and invoices.
561
645
  */
562
646
  payment_term: PaymentTerm | null;
563
647
 
564
648
  /**
565
- * Priority level used by sales orders and picks.
649
+ * Priority level used to order work on sales orders, purchase orders, and picks.
566
650
  */
567
651
  priority: PrioritiesAPI.Priority | null;
568
652
 
569
653
  /**
570
- * Account user with profile, role, and department.
654
+ * A user's membership in an account, carrying the account-specific status, role,
655
+ * and department.
656
+ *
657
+ * Profile fields (name, email, username, image URL) live on the expandable `user`
658
+ * sub-resource, which is shared across every account the user belongs to.
571
659
  */
572
660
  sales_rep: AccountUser | null;
573
661
 
574
662
  /**
575
- * ShippingTerm resource.
663
+ * A shipping term defining how freight charges are calculated for an order.
576
664
  */
577
665
  shipping_term: ShippingTerm | null;
578
666
  }
@@ -582,17 +670,24 @@ export interface CustomerDefaults {
582
670
  */
583
671
  export interface CustomerFreightPreferences {
584
672
  /**
585
- * Carrier billing account number.
673
+ * Carrier billing account number charged when `billing_type` is `third_party`.
586
674
  */
587
675
  billing_account: string | null;
588
676
 
589
677
  /**
590
- * Carrier billing type.
678
+ * Who pays the carrier for shipments.
679
+ *
680
+ * - `sender`: the shipper (you) pays the carrier.
681
+ * - `third_party`: a third party is billed, using `billing_account`.
591
682
  */
592
683
  billing_type: 'sender' | 'third_party' | null;
593
684
 
594
685
  /**
595
- * Carrier resource.
686
+ * A shipping carrier configured for fulfilling orders.
687
+ *
688
+ * Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
689
+ * through Shippo for live rating and label purchase; other carriers represent
690
+ * self-managed shipping methods such as will call or local delivery.
596
691
  */
597
692
  carrier: Carrier | null;
598
693
 
@@ -607,7 +702,11 @@ export interface CustomerFreightPreferences {
607
702
  service_level: ServiceLevel | null;
608
703
 
609
704
  /**
610
- * Freight policy.
705
+ * Freight policy applied to this customer's orders.
706
+ *
707
+ * - `free_freight`: the customer is not billed for freight.
708
+ * - `billed_freight`: freight is billed to the customer, unless overridden
709
+ * elsewhere.
611
710
  */
612
711
  status: 'free_freight' | 'billed_freight';
613
712
  }
@@ -628,7 +727,8 @@ export interface CustomerNotificationPreferences {
628
727
  }
629
728
 
630
729
  /**
631
- * Department resource.
730
+ * A functional area of a production operation, such as fabrication or packaging,
731
+ * that groups scanning stations and machines.
632
732
  */
633
733
  export interface Department {
634
734
  /**
@@ -642,7 +742,8 @@ export interface Department {
642
742
  created_at: string;
643
743
 
644
744
  /**
645
- * Location resource.
745
+ * A physical storage location, such as a warehouse, aisle, or bin, arranged in a
746
+ * parent-child hierarchy.
646
747
  */
647
748
  location: Location | null;
648
749
 
@@ -652,12 +753,14 @@ export interface Department {
652
753
  machines: ListMachine | null;
653
754
 
654
755
  /**
655
- * Display name.
756
+ * Display name of the department.
757
+ *
758
+ * Unique within the account.
656
759
  */
657
760
  name: string;
658
761
 
659
762
  /**
660
- * Notes about the department.
763
+ * Free-form notes about the department.
661
764
  */
662
765
  notes: string | null;
663
766
 
@@ -818,7 +921,8 @@ export interface ListServiceLevel {
818
921
  }
819
922
 
820
923
  /**
821
- * Location resource.
924
+ * A physical storage location, such as a warehouse, aisle, or bin, arranged in a
925
+ * parent-child hierarchy.
822
926
  */
823
927
  export interface Location {
824
928
  /**
@@ -837,7 +941,7 @@ export interface Location {
837
941
  created_at: string;
838
942
 
839
943
  /**
840
- * Display name.
944
+ * Display name of the location.
841
945
  */
842
946
  name: string;
843
947
 
@@ -847,14 +951,22 @@ export interface Location {
847
951
  object: 'location';
848
952
 
849
953
  /**
850
- * Location resource.
954
+ * A physical storage location, such as a warehouse, aisle, or bin, arranged in a
955
+ * parent-child hierarchy.
851
956
  */
852
957
  parent: Location | null;
853
958
 
854
959
  /**
855
- * Location type code.
960
+ * Location type code, identifying this location's level in the storage hierarchy.
961
+ *
962
+ * - `building`: a building-level location.
963
+ * - `section`: a section within a building.
964
+ * - `aisle`: an aisle within a section.
965
+ * - `rack`: a rack within an aisle.
966
+ * - `shelf`: a shelf within a rack.
967
+ * - `bin`: a bin within a shelf.
856
968
  */
857
- type: 'building' | 'section' | 'aisle' | 'rack' | 'shelf' | 'bin';
969
+ type: LocationTypeCode;
858
970
 
859
971
  /**
860
972
  * Last-updated timestamp.
@@ -862,8 +974,11 @@ export interface Location {
862
974
  updated_at: string;
863
975
  }
864
976
 
977
+ export type LocationTypeCode = 'building' | 'section' | 'aisle' | 'rack' | 'shelf' | 'bin';
978
+
865
979
  /**
866
- * Machine within an account.
980
+ * A piece of production equipment, such as a CNC router or press, assigned to a
981
+ * department.
867
982
  */
868
983
  export interface Machine {
869
984
  /**
@@ -877,17 +992,20 @@ export interface Machine {
877
992
  created_at: string;
878
993
 
879
994
  /**
880
- * Department resource.
995
+ * A functional area of a production operation, such as fabrication or packaging,
996
+ * that groups scanning stations and machines.
881
997
  */
882
998
  department: Department | null;
883
999
 
884
1000
  /**
885
- * Display name.
1001
+ * Display name of the machine.
1002
+ *
1003
+ * Unique within the account.
886
1004
  */
887
1005
  name: string;
888
1006
 
889
1007
  /**
890
- * Notes.
1008
+ * Free-form notes about the machine.
891
1009
  */
892
1010
  notes: string | null;
893
1011
 
@@ -897,7 +1015,7 @@ export interface Machine {
897
1015
  object: 'machine';
898
1016
 
899
1017
  /**
900
- * Serial number.
1018
+ * Serial number of the machine.
901
1019
  */
902
1020
  serial_number: string;
903
1021
 
@@ -908,7 +1026,8 @@ export interface Machine {
908
1026
  }
909
1027
 
910
1028
  /**
911
- * Payment term resource.
1029
+ * A payment term describing when payment is due (e.g. `Net 30`), assignable to
1030
+ * customers, sales orders, purchase orders, and invoices.
912
1031
  */
913
1032
  export interface PaymentTerm {
914
1033
  /**
@@ -922,7 +1041,7 @@ export interface PaymentTerm {
922
1041
  created_at: string;
923
1042
 
924
1043
  /**
925
- * Display name.
1044
+ * Display name (e.g. `Net 30`).
926
1045
  */
927
1046
  name: string;
928
1047
 
@@ -937,7 +1056,7 @@ export interface PaymentTerm {
937
1056
  owner: APIKeysAPI.Owner | null;
938
1057
 
939
1058
  /**
940
- * Payment term status.
1059
+ * Lifecycle status of the payment term.
941
1060
  */
942
1061
  status: 'active' | 'inactive';
943
1062
 
@@ -948,7 +1067,7 @@ export interface PaymentTerm {
948
1067
  }
949
1068
 
950
1069
  /**
951
- * Production output of a production step.
1070
+ * The output of a production step: the item it produces and the quantity produced.
952
1071
  */
953
1072
  export interface ProductionOutput {
954
1073
  /**
@@ -983,7 +1102,8 @@ export interface ProductionOutput {
983
1102
  }
984
1103
 
985
1104
  /**
986
- * Production step with all nested data.
1105
+ * A single stage of work in an item's production flow, with its output, material
1106
+ * inputs, cost rates, and graph connections.
987
1107
  */
988
1108
  export interface ProductionStep {
989
1109
  /**
@@ -992,7 +1112,11 @@ export interface ProductionStep {
992
1112
  id: string;
993
1113
 
994
1114
  /**
995
- * Allowances as a decimal string.
1115
+ * Allowance correction factor applied to labor time in cost calculations, as a
1116
+ * decimal string.
1117
+ *
1118
+ * Effective labor time per unit is
1119
+ * `labor_time × (1 + leveling_factor) × (1 + allowances)`.
996
1120
  */
997
1121
  allowances: string;
998
1122
 
@@ -1007,7 +1131,8 @@ export interface ProductionStep {
1007
1131
  created_at: string;
1008
1132
 
1009
1133
  /**
1010
- * Department resource.
1134
+ * A functional area of a production operation, such as fabrication or packaging,
1135
+ * that groups scanning stations and machines.
1011
1136
  */
1012
1137
  department: Department | null;
1013
1138
 
@@ -1017,17 +1142,23 @@ export interface ProductionStep {
1017
1142
  in_steps: ListProductionStep | null;
1018
1143
 
1019
1144
  /**
1020
- * Rate resource.
1145
+ * Value expressed as a ratio of two units, such as a price per kilogram or a
1146
+ * throughput per hour.
1021
1147
  */
1022
1148
  labor_rate: ItemsAPI.Rate | null;
1023
1149
 
1024
1150
  /**
1025
- * Rate resource.
1151
+ * Value expressed as a ratio of two units, such as a price per kilogram or a
1152
+ * throughput per hour.
1026
1153
  */
1027
1154
  labor_time: ItemsAPI.Rate | null;
1028
1155
 
1029
1156
  /**
1030
- * Leveling factor as a decimal string.
1157
+ * Leveling correction factor applied to labor time in cost calculations, as a
1158
+ * decimal string.
1159
+ *
1160
+ * Effective labor time per unit is
1161
+ * `labor_time × (1 + leveling_factor) × (1 + allowances)`.
1031
1162
  */
1032
1163
  leveling_factor: string;
1033
1164
 
@@ -1037,12 +1168,12 @@ export interface ProductionStep {
1037
1168
  machines: ListMachine | null;
1038
1169
 
1039
1170
  /**
1040
- * Display name.
1171
+ * Display name of the step.
1041
1172
  */
1042
1173
  name: string;
1043
1174
 
1044
1175
  /**
1045
- * Notes.
1176
+ * Free-form notes about the step.
1046
1177
  */
1047
1178
  notes: string | null;
1048
1179
 
@@ -1057,17 +1188,19 @@ export interface ProductionStep {
1057
1188
  out_steps: ListProductionStep | null;
1058
1189
 
1059
1190
  /**
1060
- * Rate resource.
1191
+ * Value expressed as a ratio of two units, such as a price per kilogram or a
1192
+ * throughput per hour.
1061
1193
  */
1062
1194
  overhead_rate: ItemsAPI.Rate | null;
1063
1195
 
1064
1196
  /**
1065
- * Production output of a production step.
1197
+ * The output of a production step: the item it produces and the quantity produced.
1066
1198
  */
1067
1199
  production: ProductionOutput | null;
1068
1200
 
1069
1201
  /**
1070
- * Scanning station resource.
1202
+ * A station on the production floor where operators scan batches to perform a
1203
+ * batch operation, such as initializing or moving a batch.
1071
1204
  */
1072
1205
  scanning_station: ScanningStation | null;
1073
1206
 
@@ -1078,23 +1211,23 @@ export interface ProductionStep {
1078
1211
  }
1079
1212
 
1080
1213
  /**
1081
- * QuantityInput represents a value with an associated unit for create/update
1082
- * requests.
1214
+ * A value with an associated unit, used in create and update requests.
1083
1215
  */
1084
1216
  export interface QuantityInput {
1085
1217
  /**
1086
- * The unit ID for the value.
1218
+ * ID of the unit of measure for the value.
1087
1219
  */
1088
1220
  unit_id: string;
1089
1221
 
1090
1222
  /**
1091
- * The decimal value.
1223
+ * Decimal value, as a string to preserve precision.
1092
1224
  */
1093
1225
  value: string;
1094
1226
  }
1095
1227
 
1096
1228
  /**
1097
- * Scanning station resource.
1229
+ * A station on the production floor where operators scan batches to perform a
1230
+ * batch operation, such as initializing or moving a batch.
1098
1231
  */
1099
1232
  export interface ScanningStation {
1100
1233
  /**
@@ -1108,27 +1241,35 @@ export interface ScanningStation {
1108
1241
  created_at: string;
1109
1242
 
1110
1243
  /**
1111
- * Department resource.
1244
+ * A functional area of a production operation, such as fabrication or packaging,
1245
+ * that groups scanning stations and machines.
1112
1246
  */
1113
1247
  department: Department | null;
1114
1248
 
1115
1249
  /**
1116
- * Label size code.
1250
+ * Size of the labels printed at this station, given as width-by-height (for
1251
+ * example, `1x1`).
1117
1252
  */
1118
1253
  label_size: '1x1' | '1x3' | '1x4' | '2x4' | null;
1119
1254
 
1120
1255
  /**
1121
- * Label type code.
1256
+ * Type of label printed at this station.
1257
+ *
1258
+ * - `tag`: a label attached to the physical product.
1259
+ * - `traveler`: a routing sheet that accompanies the batch through every
1260
+ * production step.
1122
1261
  */
1123
1262
  label_type: 'tag' | 'traveler' | null;
1124
1263
 
1125
1264
  /**
1126
- * Display name.
1265
+ * Display name of the scanning station.
1266
+ *
1267
+ * Unique within the account.
1127
1268
  */
1128
1269
  name: string;
1129
1270
 
1130
1271
  /**
1131
- * Notes.
1272
+ * Free-form notes about the scanning station.
1132
1273
  */
1133
1274
  notes: string | null;
1134
1275
 
@@ -1138,7 +1279,10 @@ export interface ScanningStation {
1138
1279
  object: 'scanning_station';
1139
1280
 
1140
1281
  /**
1141
- * Operator requirement behavior for this station.
1282
+ * Whether operators must perform a material check at this station.
1283
+ *
1284
+ * - `none`: no additional operator check is required.
1285
+ * - `material_check`: a material check is expected before the operation.
1142
1286
  */
1143
1287
  operator_requirement: 'none' | 'material_check';
1144
1288
 
@@ -1148,7 +1292,12 @@ export interface ScanningStation {
1148
1292
  production_steps: ListProductionStep | null;
1149
1293
 
1150
1294
  /**
1151
- * Scanning station type.
1295
+ * Scanning station type, determining which batch operation the station performs.
1296
+ *
1297
+ * - `init_batch`: initializes a new batch.
1298
+ * - `merge_batch`: merges multiple batches into one.
1299
+ * - `move_batch`: moves a batch to another location or step.
1300
+ * - `split_batch`: splits a batch into multiple batches.
1152
1301
  */
1153
1302
  type: 'init_batch' | 'merge_batch' | 'move_batch' | 'split_batch';
1154
1303
 
@@ -1173,17 +1322,23 @@ export interface ServiceLevel {
1173
1322
  created_at: string;
1174
1323
 
1175
1324
  /**
1176
- * Customer portal visibility.
1325
+ * Whether customers can see and select this service level at checkout in the
1326
+ * customer portal.
1177
1327
  */
1178
1328
  customer_portal_visibility: 'visible' | 'hidden';
1179
1329
 
1180
1330
  /**
1181
- * Default service level for the carrier.
1331
+ * Whether this is the carrier's default service level, pre-selected when the
1332
+ * carrier is chosen.
1333
+ *
1334
+ * Each carrier has at most one default; setting a new default clears the previous
1335
+ * one.
1182
1336
  */
1183
1337
  is_default: boolean;
1184
1338
 
1185
1339
  /**
1186
- * Display name.
1340
+ * Human-readable name for the service level, shown to customers at checkout when
1341
+ * the service level is visible.
1187
1342
  */
1188
1343
  name: string;
1189
1344
 
@@ -1198,7 +1353,10 @@ export interface ServiceLevel {
1198
1353
  owner: APIKeysAPI.Owner | null;
1199
1354
 
1200
1355
  /**
1201
- * Service level token.
1356
+ * Carrier-specific code identifying this service level (e.g. `fedex_ground`,
1357
+ * `ups_next_day_air`).
1358
+ *
1359
+ * Values are carrier-defined, so any non-empty string is accepted.
1202
1360
  */
1203
1361
  service_level_token: string;
1204
1362
 
@@ -1209,7 +1367,7 @@ export interface ServiceLevel {
1209
1367
  }
1210
1368
 
1211
1369
  /**
1212
- * ShippingTerm resource.
1370
+ * A shipping term defining how freight charges are calculated for an order.
1213
1371
  */
1214
1372
  export interface ShippingTerm {
1215
1373
  /**
@@ -1238,7 +1396,8 @@ export interface ShippingTerm {
1238
1396
  minimum_order_value: ItemsAPI.Quantity | null;
1239
1397
 
1240
1398
  /**
1241
- * Display name.
1399
+ * Human-readable name for the shipping term, used to identify it when assigning
1400
+ * shipping terms to customers and orders.
1242
1401
  */
1243
1402
  name: string;
1244
1403
 
@@ -1253,7 +1412,13 @@ export interface ShippingTerm {
1253
1412
  owner: APIKeysAPI.Owner | null;
1254
1413
 
1255
1414
  /**
1256
- * Shipping term type.
1415
+ * Freight pricing model applied by this shipping term.
1416
+ *
1417
+ * - `free_freight`: no shipping cost to the buyer.
1418
+ * - `flat_rate_freight`: a fixed shipping cost regardless of order details (see
1419
+ * `flat_rate`).
1420
+ * - `carrier_rate_freight`: shipping cost is determined by the carrier's quoted
1421
+ * rate.
1257
1422
  */
1258
1423
  type: 'free_freight' | 'flat_rate_freight' | 'carrier_rate_freight';
1259
1424
 
@@ -1268,43 +1433,54 @@ export interface ShippingTerm {
1268
1433
  */
1269
1434
  export interface UpdateCustomerRequest {
1270
1435
  /**
1271
- * Bill-to address ID.
1436
+ * ID of an existing address to use as the default billing address.
1272
1437
  */
1273
1438
  bill_to_address_id?: string | null;
1274
1439
 
1275
1440
  /**
1276
- * Carrier billing account number.
1441
+ * Carrier billing account number charged when `carrier_billing_type` is
1442
+ * `third_party`.
1277
1443
  */
1278
1444
  carrier_billing_account?: string | null;
1279
1445
 
1280
1446
  /**
1281
- * Carrier billing type.
1447
+ * Who pays the carrier for shipments.
1448
+ *
1449
+ * - `sender`: the shipper (you) pays the carrier.
1450
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
1282
1451
  */
1283
1452
  carrier_billing_type?: 'sender' | 'third_party';
1284
1453
 
1285
1454
  /**
1286
- * Commission policy.
1455
+ * How sales commission applies to this customer's orders.
1456
+ *
1457
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
1458
+ * - `commission_applied`: sales commission is calculated on this customer's
1459
+ * orders.
1287
1460
  */
1288
1461
  commission_policy?: 'commission_applied' | 'commission_exempt';
1289
1462
 
1290
1463
  /**
1291
- * QuantityInput represents a value with an associated unit for create/update
1292
- * requests.
1464
+ * A value with an associated unit, used in create and update requests.
1293
1465
  */
1294
1466
  credit_limit?: QuantityInput | null;
1295
1467
 
1296
1468
  /**
1297
- * Price group IDs. Replaces all existing price groups when provided.
1469
+ * IDs of the account groups of type `pricing_group` to assign to this customer,
1470
+ * used to apply pricing rules.
1471
+ *
1472
+ * When provided, replaces the customer's full set of existing price groups.
1298
1473
  */
1299
1474
  customer_price_group_ids?: Array<string>;
1300
1475
 
1301
1476
  /**
1302
- * Customer type group ID.
1477
+ * ID of the account group of type `type_group` that categorizes this customer (for
1478
+ * example "Distributors").
1303
1479
  */
1304
1480
  customer_type_group_id?: string;
1305
1481
 
1306
1482
  /**
1307
- * Default carrier ID.
1483
+ * ID of the default carrier for this customer's shipments.
1308
1484
  */
1309
1485
  default_carrier_id?: string;
1310
1486
 
@@ -1314,7 +1490,7 @@ export interface UpdateCustomerRequest {
1314
1490
  default_payment_term_id?: string;
1315
1491
 
1316
1492
  /**
1317
- * Default priority code.
1493
+ * Priority applied to new orders for this customer.
1318
1494
  */
1319
1495
  default_priority?: 'low' | 'normal' | 'high';
1320
1496
 
@@ -1324,7 +1500,7 @@ export interface UpdateCustomerRequest {
1324
1500
  default_sales_rep_id?: string | null;
1325
1501
 
1326
1502
  /**
1327
- * Default service level ID.
1503
+ * ID of the default carrier service level.
1328
1504
  */
1329
1505
  default_service_level_id?: string | null;
1330
1506
 
@@ -1334,97 +1510,171 @@ export interface UpdateCustomerRequest {
1334
1510
  default_shipping_term_id?: string;
1335
1511
 
1336
1512
  /**
1337
- * EDI status.
1513
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
1514
+ * documents with this customer.
1338
1515
  */
1339
1516
  edi_status?: 'enabled' | 'disabled';
1340
1517
 
1341
1518
  /**
1342
- * Email address. Send null to clear.
1519
+ * Email address.
1343
1520
  */
1344
1521
  email?: string | null;
1345
1522
 
1346
1523
  /**
1347
- * Freight policy.
1524
+ * Whether this customer is billed for freight on their orders.
1525
+ *
1526
+ * - `free_freight`: the customer is not billed for freight.
1527
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
1528
+ * order.
1348
1529
  */
1349
1530
  freight_policy?: 'free_freight' | 'billed_freight';
1350
1531
 
1351
1532
  /**
1352
- * Customer name.
1533
+ * The customer's business name, as shown throughout the app and on documents.
1353
1534
  */
1354
1535
  name?: string;
1355
1536
 
1356
1537
  /**
1357
- * Note.
1538
+ * Free-form note about the customer.
1358
1539
  */
1359
1540
  note?: string | null;
1360
1541
 
1361
1542
  /**
1362
- * Customer number.
1543
+ * Human-readable customer number used to identify the account, distinct from the
1544
+ * `id`.
1545
+ *
1546
+ * Must be unique within your account.
1363
1547
  */
1364
1548
  number?: string;
1365
1549
 
1366
1550
  /**
1367
- * Phone number. Send null to clear.
1551
+ * Phone number.
1368
1552
  */
1369
1553
  phone?: string | null;
1370
1554
 
1371
1555
  /**
1372
- * Ship-to address ID.
1556
+ * ID of an existing address to use as the default shipping address.
1373
1557
  */
1374
1558
  ship_to_address_id?: string | null;
1375
1559
 
1376
1560
  /**
1377
- * Account status code.
1561
+ * Account status code, controlling whether the customer can transact.
1562
+ *
1563
+ * - `normal`: standard active account with no restrictions.
1564
+ * - `preferred`: active account flagged as preferred.
1565
+ * - `hold_shipment`: orders can be placed, but shipments are held.
1566
+ * - `hold_all`: all activity is on hold.
1378
1567
  */
1379
1568
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1380
1569
 
1381
1570
  /**
1382
- * Website URL. Send null to clear.
1571
+ * Website URL.
1383
1572
  */
1384
1573
  url?: string | null;
1385
1574
  }
1386
1575
 
1576
+ /**
1577
+ * A user's global profile, shared across every account they belong to.
1578
+ *
1579
+ * Account-specific settings (status, role, department) live on the account user
1580
+ * resource that links the user to each account.
1581
+ */
1582
+ export interface User {
1583
+ /**
1584
+ * User ID.
1585
+ */
1586
+ id: string;
1587
+
1588
+ /**
1589
+ * Creation timestamp.
1590
+ */
1591
+ created_at: string;
1592
+
1593
+ /**
1594
+ * Email address.
1595
+ */
1596
+ email: string | null;
1597
+
1598
+ /**
1599
+ * When the user verified their email address.
1600
+ */
1601
+ email_verified_at: string | null;
1602
+
1603
+ /**
1604
+ * URL of the user's profile image.
1605
+ */
1606
+ image_url: string | null;
1607
+
1608
+ /**
1609
+ * User's full display name.
1610
+ */
1611
+ name: string | null;
1612
+
1613
+ /**
1614
+ * Resource type identifier.
1615
+ */
1616
+ object: 'user';
1617
+
1618
+ /**
1619
+ * Last updated timestamp.
1620
+ */
1621
+ updated_at: string;
1622
+
1623
+ /**
1624
+ * Username.
1625
+ */
1626
+ username: string | null;
1627
+ }
1628
+
1387
1629
  export interface CustomerDeleteResponse {}
1388
1630
 
1389
- export interface CustomerCreateParams {
1631
+ export interface CustomerListParams {
1390
1632
  /**
1391
- * Body param: Request to create an address.
1633
+ * Filter by default carrier IDs.
1392
1634
  */
1393
- bill_to_address: AddressesAPI.AddressInput;
1635
+ carrier_ids?: Array<string>;
1394
1636
 
1395
1637
  /**
1396
- * Body param: Customer type group ID.
1638
+ * Filter to customers with any address in this city (exact match).
1639
+ *
1640
+ * When combined with `state` or `postal_code`, a single address must match all
1641
+ * provided values.
1397
1642
  */
1398
- customer_type_group_id: string;
1643
+ city?: string;
1399
1644
 
1400
1645
  /**
1401
- * Body param: Default carrier ID.
1646
+ * Filter by commission policy.
1402
1647
  */
1403
- default_carrier_id: string;
1648
+ commission_status_codes?: Array<'commission_applied' | 'commission_exempt'>;
1404
1649
 
1405
1650
  /**
1406
- * Body param: Default payment term ID.
1651
+ * Opaque cursor token identifying where the page of results starts.
1652
+ *
1653
+ * Use the `cursor` value embedded in a previous response's `next_page_url` or
1654
+ * `previous_page_url` to fetch the adjacent page. Omit to start from the first
1655
+ * page.
1407
1656
  */
1408
- default_payment_term_id: string;
1657
+ cursor?: string;
1409
1658
 
1410
1659
  /**
1411
- * Body param: Default shipping term ID.
1660
+ * Filter by customer type group IDs (the account group of type `type_group`
1661
+ * returned in the customer's `type` field).
1412
1662
  */
1413
- default_shipping_term_id: string;
1663
+ customer_group_ids?: Array<string>;
1414
1664
 
1415
1665
  /**
1416
- * Body param: Display name.
1666
+ * Filter to customers created at or before this timestamp (inclusive).
1417
1667
  */
1418
- name: string;
1668
+ end_date?: string;
1419
1669
 
1420
1670
  /**
1421
- * Body param: Request to create an address.
1671
+ * Filter by freight policy.
1422
1672
  */
1423
- ship_to_address: AddressesAPI.AddressInput;
1673
+ freight_status_codes?: Array<'free_freight' | 'billed_freight'>;
1424
1674
 
1425
1675
  /**
1426
- * Query param: Sub-objects to expand in the response. When omitted, sub-objects
1427
- * are returned as `null`.
1676
+ * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1677
+ * `null`.
1428
1678
  */
1429
1679
  include?: Array<
1430
1680
  | 'bill_to_address'
@@ -1436,6 +1686,7 @@ export interface CustomerCreateParams {
1436
1686
  | 'defaults.payment_term'
1437
1687
  | 'defaults.shipping_term'
1438
1688
  | 'defaults.sales_rep'
1689
+ | 'defaults.sales_rep.user'
1439
1690
  | 'defaults.priority'
1440
1691
  | 'contact_info'
1441
1692
  | 'freight_preferences'
@@ -1447,85 +1698,66 @@ export interface CustomerCreateParams {
1447
1698
  >;
1448
1699
 
1449
1700
  /**
1450
- * Body param: Carrier billing account number.
1701
+ * Maximum number of results to return in a single page.
1451
1702
  */
1452
- carrier_billing_account?: string;
1453
-
1454
- /**
1455
- * Body param: Carrier billing type.
1456
- */
1457
- carrier_billing_type?: 'sender' | 'third_party';
1458
-
1459
- /**
1460
- * Body param: Commission policy.
1461
- */
1462
- commission_policy?: 'commission_applied' | 'commission_exempt';
1463
-
1464
- /**
1465
- * Body param: QuantityInput represents a value with an associated unit for
1466
- * create/update requests.
1467
- */
1468
- credit_limit?: QuantityInput;
1469
-
1470
- /**
1471
- * Body param: Price group IDs.
1472
- */
1473
- customer_price_group_ids?: Array<string>;
1703
+ limit?: number;
1474
1704
 
1475
1705
  /**
1476
- * Body param: Default priority code.
1706
+ * Filter by whether the customer has child accounts.
1477
1707
  */
1478
- default_priority?: 'low' | 'normal' | 'high';
1708
+ parent_account_status?: 'parent' | 'non_parent';
1479
1709
 
1480
1710
  /**
1481
- * Body param: The ID of the account user to assign as the default sales rep.
1711
+ * Filter by default payment term IDs.
1482
1712
  */
1483
- default_sales_rep_id?: string;
1713
+ payment_term_ids?: Array<string>;
1484
1714
 
1485
1715
  /**
1486
- * Body param: Default service level ID.
1716
+ * Filter to customers with any address in this postal code (exact match).
1487
1717
  */
1488
- default_service_level_id?: string;
1718
+ postal_code?: string;
1489
1719
 
1490
1720
  /**
1491
- * Body param: EDI status.
1721
+ * Filter to customers that belong to any of these pricing groups.
1492
1722
  */
1493
- edi_status?: 'enabled' | 'disabled';
1723
+ pricing_group_ids?: Array<string>;
1494
1724
 
1495
1725
  /**
1496
- * Body param: Email address.
1726
+ * Free-text search term used to filter results.
1727
+ *
1728
+ * Which fields are matched against the term varies by endpoint.
1497
1729
  */
1498
- email?: string;
1730
+ q?: string;
1499
1731
 
1500
1732
  /**
1501
- * Body param: Freight policy.
1733
+ * Filter by default sales rep IDs.
1502
1734
  */
1503
- freight_policy?: 'free_freight' | 'billed_freight';
1735
+ sales_rep_ids?: Array<string>;
1504
1736
 
1505
1737
  /**
1506
- * Body param: Note.
1738
+ * Filter by default service level IDs.
1507
1739
  */
1508
- note?: string;
1740
+ service_level_ids?: Array<string>;
1509
1741
 
1510
1742
  /**
1511
- * Body param: Customer number. Auto-generated if omitted.
1743
+ * Filter by default shipping term IDs.
1512
1744
  */
1513
- number?: string;
1745
+ shipping_term_ids?: Array<string>;
1514
1746
 
1515
1747
  /**
1516
- * Body param: Phone number.
1748
+ * Filter to customers created at or after this timestamp (inclusive).
1517
1749
  */
1518
- phone?: string;
1750
+ start_date?: string;
1519
1751
 
1520
1752
  /**
1521
- * Body param: Account status code.
1753
+ * Filter to customers with any address in this state (exact match).
1522
1754
  */
1523
- status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1755
+ state?: string;
1524
1756
 
1525
1757
  /**
1526
- * Body param: Website URL.
1758
+ * Filter by account status codes.
1527
1759
  */
1528
- url?: string;
1760
+ status_codes?: Array<'normal' | 'preferred' | 'hold_shipment' | 'hold_all'>;
1529
1761
  }
1530
1762
 
1531
1763
  export interface CustomerRetrieveParams {
@@ -1543,6 +1775,7 @@ export interface CustomerRetrieveParams {
1543
1775
  | 'defaults.payment_term'
1544
1776
  | 'defaults.shipping_term'
1545
1777
  | 'defaults.sales_rep'
1778
+ | 'defaults.sales_rep.user'
1546
1779
  | 'defaults.priority'
1547
1780
  | 'contact_info'
1548
1781
  | 'freight_preferences'
@@ -1554,7 +1787,46 @@ export interface CustomerRetrieveParams {
1554
1787
  >;
1555
1788
  }
1556
1789
 
1557
- export interface CustomerUpdateParams {
1790
+ export interface CustomerCreateParams {
1791
+ /**
1792
+ * Body param: Address details used to create an address, either directly or inline
1793
+ * on another resource.
1794
+ */
1795
+ bill_to_address: AddressesAPI.AddressInput;
1796
+
1797
+ /**
1798
+ * Body param: ID of the account group of type `type_group` that categorizes this
1799
+ * customer (for example "Distributors").
1800
+ */
1801
+ customer_type_group_id: string;
1802
+
1803
+ /**
1804
+ * Body param: ID of the default carrier for this customer's shipments.
1805
+ */
1806
+ default_carrier_id: string;
1807
+
1808
+ /**
1809
+ * Body param: Default payment term ID.
1810
+ */
1811
+ default_payment_term_id: string;
1812
+
1813
+ /**
1814
+ * Body param: Default shipping term ID.
1815
+ */
1816
+ default_shipping_term_id: string;
1817
+
1818
+ /**
1819
+ * Body param: The customer's business name, as shown throughout the app and on
1820
+ * documents.
1821
+ */
1822
+ name: string;
1823
+
1824
+ /**
1825
+ * Body param: Address details used to create an address, either directly or inline
1826
+ * on another resource.
1827
+ */
1828
+ ship_to_address: AddressesAPI.AddressInput;
1829
+
1558
1830
  /**
1559
1831
  * Query param: Sub-objects to expand in the response. When omitted, sub-objects
1560
1832
  * are returned as `null`.
@@ -1569,6 +1841,7 @@ export interface CustomerUpdateParams {
1569
1841
  | 'defaults.payment_term'
1570
1842
  | 'defaults.shipping_term'
1571
1843
  | 'defaults.sales_rep'
1844
+ | 'defaults.sales_rep.user'
1572
1845
  | 'defaults.priority'
1573
1846
  | 'contact_info'
1574
1847
  | 'freight_preferences'
@@ -1580,241 +1853,275 @@ export interface CustomerUpdateParams {
1580
1853
  >;
1581
1854
 
1582
1855
  /**
1583
- * Body param: Bill-to address ID.
1584
- */
1585
- bill_to_address_id?: string | null;
1586
-
1587
- /**
1588
- * Body param: Carrier billing account number.
1856
+ * Body param: Carrier billing account number charged when `carrier_billing_type`
1857
+ * is `third_party`.
1589
1858
  */
1590
- carrier_billing_account?: string | null;
1859
+ carrier_billing_account?: string;
1591
1860
 
1592
1861
  /**
1593
- * Body param: Carrier billing type.
1862
+ * Body param: Who pays the carrier for shipments.
1863
+ *
1864
+ * - `sender`: the shipper (you) pays the carrier.
1865
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
1594
1866
  */
1595
1867
  carrier_billing_type?: 'sender' | 'third_party';
1596
1868
 
1597
1869
  /**
1598
- * Body param: Commission policy.
1870
+ * Body param: How sales commission applies to this customer's orders.
1871
+ *
1872
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
1873
+ * - `commission_applied`: sales commission is calculated on this customer's
1874
+ * orders.
1599
1875
  */
1600
1876
  commission_policy?: 'commission_applied' | 'commission_exempt';
1601
1877
 
1602
1878
  /**
1603
- * Body param: QuantityInput represents a value with an associated unit for
1604
- * create/update requests.
1879
+ * Body param: A value with an associated unit, used in create and update requests.
1605
1880
  */
1606
- credit_limit?: QuantityInput | null;
1881
+ credit_limit?: QuantityInput;
1607
1882
 
1608
1883
  /**
1609
- * Body param: Price group IDs. Replaces all existing price groups when provided.
1884
+ * Body param: IDs of the account groups of type `pricing_group` to assign to this
1885
+ * customer, used to apply pricing rules.
1610
1886
  */
1611
1887
  customer_price_group_ids?: Array<string>;
1612
1888
 
1613
1889
  /**
1614
- * Body param: Customer type group ID.
1615
- */
1616
- customer_type_group_id?: string;
1617
-
1618
- /**
1619
- * Body param: Default carrier ID.
1620
- */
1621
- default_carrier_id?: string;
1622
-
1623
- /**
1624
- * Body param: Default payment term ID.
1890
+ * Body param: Priority applied to new orders for this customer.
1625
1891
  */
1626
- default_payment_term_id?: string;
1892
+ default_priority?: 'low' | 'normal' | 'high';
1627
1893
 
1628
1894
  /**
1629
- * Body param: Default priority code.
1895
+ * Body param: The ID of the account user to assign as the default sales rep.
1630
1896
  */
1631
- default_priority?: 'low' | 'normal' | 'high';
1897
+ default_sales_rep_id?: string;
1632
1898
 
1633
1899
  /**
1634
- * Body param: The ID of the account user to assign as the default sales rep.
1900
+ * Body param: ID of the default carrier service level.
1635
1901
  */
1636
- default_sales_rep_id?: string | null;
1902
+ default_service_level_id?: string;
1637
1903
 
1638
1904
  /**
1639
- * Body param: Default service level ID.
1905
+ * Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
1906
+ * orders and documents with this customer.
1640
1907
  */
1641
- default_service_level_id?: string | null;
1908
+ edi_status?: 'enabled' | 'disabled';
1642
1909
 
1643
1910
  /**
1644
- * Body param: Default shipping term ID.
1911
+ * Body param: Email address.
1645
1912
  */
1646
- default_shipping_term_id?: string;
1913
+ email?: string;
1647
1914
 
1648
1915
  /**
1649
- * Body param: EDI status.
1916
+ * Body param: Whether this customer is billed for freight on their orders.
1917
+ *
1918
+ * - `free_freight`: the customer is not billed for freight.
1919
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
1920
+ * order.
1650
1921
  */
1651
- edi_status?: 'enabled' | 'disabled';
1922
+ freight_policy?: 'free_freight' | 'billed_freight';
1652
1923
 
1653
1924
  /**
1654
- * Body param: Email address. Send null to clear.
1925
+ * Body param: Free-form note about the customer.
1655
1926
  */
1656
- email?: string | null;
1927
+ note?: string;
1657
1928
 
1658
1929
  /**
1659
- * Body param: Freight policy.
1930
+ * Body param: Human-readable customer number used to identify the account,
1931
+ * distinct from the `id`.
1932
+ *
1933
+ * Must be unique within your account. If omitted, the next sequential number is
1934
+ * assigned automatically.
1660
1935
  */
1661
- freight_policy?: 'free_freight' | 'billed_freight';
1936
+ number?: string;
1662
1937
 
1663
1938
  /**
1664
- * Body param: Customer name.
1939
+ * Body param: Phone number.
1665
1940
  */
1666
- name?: string;
1941
+ phone?: string;
1667
1942
 
1668
1943
  /**
1669
- * Body param: Note.
1944
+ * Body param: Account status code, controlling whether the customer can transact.
1945
+ *
1946
+ * - `normal`: standard active account with no restrictions.
1947
+ * - `preferred`: active account flagged as preferred.
1948
+ * - `hold_shipment`: orders can be placed, but shipments are held.
1949
+ * - `hold_all`: all activity is on hold.
1670
1950
  */
1671
- note?: string | null;
1951
+ status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1672
1952
 
1673
1953
  /**
1674
- * Body param: Customer number.
1954
+ * Body param: Website URL.
1675
1955
  */
1676
- number?: string;
1956
+ url?: string;
1957
+ }
1677
1958
 
1959
+ export interface CustomerUpdateParams {
1678
1960
  /**
1679
- * Body param: Phone number. Send null to clear.
1961
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
1962
+ * are returned as `null`.
1680
1963
  */
1681
- phone?: string | null;
1964
+ include?: Array<
1965
+ | 'bill_to_address'
1966
+ | 'ship_to_address'
1967
+ | 'type'
1968
+ | 'parent_account'
1969
+ | 'freight_preferences.carrier'
1970
+ | 'freight_preferences.service_level'
1971
+ | 'defaults.payment_term'
1972
+ | 'defaults.shipping_term'
1973
+ | 'defaults.sales_rep'
1974
+ | 'defaults.sales_rep.user'
1975
+ | 'defaults.priority'
1976
+ | 'contact_info'
1977
+ | 'freight_preferences'
1978
+ | 'defaults'
1979
+ | 'notification_preferences'
1980
+ | 'price_groups'
1981
+ | 'child_accounts'
1982
+ | 'credit_limit'
1983
+ >;
1682
1984
 
1683
1985
  /**
1684
- * Body param: Ship-to address ID.
1986
+ * Body param: ID of an existing address to use as the default billing address.
1685
1987
  */
1686
- ship_to_address_id?: string | null;
1988
+ bill_to_address_id?: string | null;
1687
1989
 
1688
1990
  /**
1689
- * Body param: Account status code.
1991
+ * Body param: Carrier billing account number charged when `carrier_billing_type`
1992
+ * is `third_party`.
1690
1993
  */
1691
- status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1994
+ carrier_billing_account?: string | null;
1692
1995
 
1693
1996
  /**
1694
- * Body param: Website URL. Send null to clear.
1997
+ * Body param: Who pays the carrier for shipments.
1998
+ *
1999
+ * - `sender`: the shipper (you) pays the carrier.
2000
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
1695
2001
  */
1696
- url?: string | null;
1697
- }
2002
+ carrier_billing_type?: 'sender' | 'third_party';
1698
2003
 
1699
- export interface CustomerListParams {
1700
2004
  /**
1701
- * Filter by carrier IDs.
2005
+ * Body param: How sales commission applies to this customer's orders.
2006
+ *
2007
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
2008
+ * - `commission_applied`: sales commission is calculated on this customer's
2009
+ * orders.
1702
2010
  */
1703
- carrier_ids?: Array<string>;
2011
+ commission_policy?: 'commission_applied' | 'commission_exempt';
1704
2012
 
1705
2013
  /**
1706
- * Filter by city.
2014
+ * Body param: A value with an associated unit, used in create and update requests.
1707
2015
  */
1708
- city?: string;
2016
+ credit_limit?: QuantityInput | null;
1709
2017
 
1710
2018
  /**
1711
- * Filter by commission status codes.
2019
+ * Body param: IDs of the account groups of type `pricing_group` to assign to this
2020
+ * customer, used to apply pricing rules.
2021
+ *
2022
+ * When provided, replaces the customer's full set of existing price groups.
1712
2023
  */
1713
- commission_status_codes?: Array<'commission_applied' | 'commission_exempt'>;
2024
+ customer_price_group_ids?: Array<string>;
1714
2025
 
1715
2026
  /**
1716
- * Cursor token used to retrieve the next or previous page of results.
2027
+ * Body param: ID of the account group of type `type_group` that categorizes this
2028
+ * customer (for example "Distributors").
1717
2029
  */
1718
- cursor?: string;
2030
+ customer_type_group_id?: string;
1719
2031
 
1720
2032
  /**
1721
- * Filter by customer group IDs.
2033
+ * Body param: ID of the default carrier for this customer's shipments.
1722
2034
  */
1723
- customer_group_ids?: Array<string>;
2035
+ default_carrier_id?: string;
1724
2036
 
1725
2037
  /**
1726
- * Filter by end date (created before).
2038
+ * Body param: Default payment term ID.
1727
2039
  */
1728
- end_date?: string;
2040
+ default_payment_term_id?: string;
1729
2041
 
1730
2042
  /**
1731
- * Filter by freight status codes.
2043
+ * Body param: Priority applied to new orders for this customer.
1732
2044
  */
1733
- freight_status_codes?: Array<'free_freight' | 'billed_freight'>;
2045
+ default_priority?: 'low' | 'normal' | 'high';
1734
2046
 
1735
2047
  /**
1736
- * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1737
- * `null`.
2048
+ * Body param: The ID of the account user to assign as the default sales rep.
1738
2049
  */
1739
- include?: Array<
1740
- | 'bill_to_address'
1741
- | 'ship_to_address'
1742
- | 'type'
1743
- | 'parent_account'
1744
- | 'freight_preferences.carrier'
1745
- | 'freight_preferences.service_level'
1746
- | 'defaults.payment_term'
1747
- | 'defaults.shipping_term'
1748
- | 'defaults.sales_rep'
1749
- | 'defaults.priority'
1750
- | 'contact_info'
1751
- | 'freight_preferences'
1752
- | 'defaults'
1753
- | 'notification_preferences'
1754
- | 'price_groups'
1755
- | 'child_accounts'
1756
- | 'credit_limit'
1757
- >;
2050
+ default_sales_rep_id?: string | null;
1758
2051
 
1759
2052
  /**
1760
- * Maximum number of results per page (default: 100, max: 1000).
2053
+ * Body param: ID of the default carrier service level.
1761
2054
  */
1762
- limit?: number;
2055
+ default_service_level_id?: string | null;
1763
2056
 
1764
2057
  /**
1765
- * Filter by whether the customer has child accounts.
2058
+ * Body param: Default shipping term ID.
1766
2059
  */
1767
- parent_account_status?: 'parent' | 'non_parent';
2060
+ default_shipping_term_id?: string;
1768
2061
 
1769
2062
  /**
1770
- * Filter by payment term IDs.
2063
+ * Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
2064
+ * orders and documents with this customer.
1771
2065
  */
1772
- payment_term_ids?: Array<string>;
2066
+ edi_status?: 'enabled' | 'disabled';
1773
2067
 
1774
2068
  /**
1775
- * Filter by postal code.
2069
+ * Body param: Email address.
1776
2070
  */
1777
- postal_code?: string;
2071
+ email?: string | null;
1778
2072
 
1779
2073
  /**
1780
- * Filter by pricing group IDs.
2074
+ * Body param: Whether this customer is billed for freight on their orders.
2075
+ *
2076
+ * - `free_freight`: the customer is not billed for freight.
2077
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
2078
+ * order.
1781
2079
  */
1782
- pricing_group_ids?: Array<string>;
2080
+ freight_policy?: 'free_freight' | 'billed_freight';
1783
2081
 
1784
2082
  /**
1785
- * Search query used to filter results.
2083
+ * Body param: The customer's business name, as shown throughout the app and on
2084
+ * documents.
1786
2085
  */
1787
- q?: string;
2086
+ name?: string;
1788
2087
 
1789
2088
  /**
1790
- * Filter by sales rep IDs.
2089
+ * Body param: Free-form note about the customer.
1791
2090
  */
1792
- sales_rep_ids?: Array<string>;
2091
+ note?: string | null;
1793
2092
 
1794
2093
  /**
1795
- * Filter by service level IDs.
2094
+ * Body param: Human-readable customer number used to identify the account,
2095
+ * distinct from the `id`.
2096
+ *
2097
+ * Must be unique within your account.
1796
2098
  */
1797
- service_level_ids?: Array<string>;
2099
+ number?: string;
1798
2100
 
1799
2101
  /**
1800
- * Filter by shipping term IDs.
2102
+ * Body param: Phone number.
1801
2103
  */
1802
- shipping_term_ids?: Array<string>;
2104
+ phone?: string | null;
1803
2105
 
1804
2106
  /**
1805
- * Filter by start date (created after).
2107
+ * Body param: ID of an existing address to use as the default shipping address.
1806
2108
  */
1807
- start_date?: string;
2109
+ ship_to_address_id?: string | null;
1808
2110
 
1809
2111
  /**
1810
- * Filter by state.
2112
+ * Body param: Account status code, controlling whether the customer can transact.
2113
+ *
2114
+ * - `normal`: standard active account with no restrictions.
2115
+ * - `preferred`: active account flagged as preferred.
2116
+ * - `hold_shipment`: orders can be placed, but shipments are held.
2117
+ * - `hold_all`: all activity is on hold.
1811
2118
  */
1812
- state?: string;
2119
+ status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1813
2120
 
1814
2121
  /**
1815
- * Filter by status codes.
2122
+ * Body param: Website URL.
1816
2123
  */
1817
- status_codes?: Array<'normal' | 'preferred' | 'hold_shipment' | 'hold_all'>;
2124
+ url?: string | null;
1818
2125
  }
1819
2126
 
1820
2127
  Customers.Actions = Actions;
@@ -1839,6 +2146,7 @@ export declare namespace Customers {
1839
2146
  type ListScanningStation as ListScanningStation,
1840
2147
  type ListServiceLevel as ListServiceLevel,
1841
2148
  type Location as Location,
2149
+ type LocationTypeCode as LocationTypeCode,
1842
2150
  type Machine as Machine,
1843
2151
  type PaymentTerm as PaymentTerm,
1844
2152
  type ProductionOutput as ProductionOutput,
@@ -1848,11 +2156,12 @@ export declare namespace Customers {
1848
2156
  type ServiceLevel as ServiceLevel,
1849
2157
  type ShippingTerm as ShippingTerm,
1850
2158
  type UpdateCustomerRequest as UpdateCustomerRequest,
2159
+ type User as User,
1851
2160
  type CustomerDeleteResponse as CustomerDeleteResponse,
1852
- type CustomerCreateParams as CustomerCreateParams,
2161
+ type CustomerListParams as CustomerListParams,
1853
2162
  type CustomerRetrieveParams as CustomerRetrieveParams,
2163
+ type CustomerCreateParams as CustomerCreateParams,
1854
2164
  type CustomerUpdateParams as CustomerUpdateParams,
1855
- type CustomerListParams as CustomerListParams,
1856
2165
  };
1857
2166
 
1858
2167
  export {