@augno/sdk 0.1.6 → 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 +5 -4
  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 +13 -18
  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 -66
  138. package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
  139. package/resources/catalog/item-categories/item-categories.d.ts +95 -66
  140. package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
  141. package/resources/catalog/item-categories/item-categories.js +37 -30
  142. package/resources/catalog/item-categories/item-categories.js.map +1 -1
  143. package/resources/catalog/item-categories/item-categories.mjs +37 -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 +142 -95
  181. package/resources/catalog/materials.d.mts.map +1 -1
  182. package/resources/catalog/materials.d.ts +142 -95
  183. package/resources/catalog/materials.d.ts.map +1 -1
  184. package/resources/catalog/materials.js +28 -19
  185. package/resources/catalog/materials.js.map +1 -1
  186. package/resources/catalog/materials.mjs +28 -19
  187. package/resources/catalog/materials.mjs.map +1 -1
  188. package/resources/catalog/parts.d.mts +131 -81
  189. package/resources/catalog/parts.d.mts.map +1 -1
  190. package/resources/catalog/parts.d.ts +131 -81
  191. package/resources/catalog/parts.d.ts.map +1 -1
  192. package/resources/catalog/parts.js +34 -21
  193. package/resources/catalog/parts.js.map +1 -1
  194. package/resources/catalog/parts.mjs +34 -21
  195. package/resources/catalog/parts.mjs.map +1 -1
  196. package/resources/catalog/product-lines.d.mts +145 -71
  197. package/resources/catalog/product-lines.d.mts.map +1 -1
  198. package/resources/catalog/product-lines.d.ts +145 -71
  199. package/resources/catalog/product-lines.d.ts.map +1 -1
  200. package/resources/catalog/product-lines.js +30 -26
  201. package/resources/catalog/product-lines.js.map +1 -1
  202. package/resources/catalog/product-lines.mjs +30 -26
  203. package/resources/catalog/product-lines.mjs.map +1 -1
  204. package/resources/catalog/products.d.mts +196 -104
  205. package/resources/catalog/products.d.mts.map +1 -1
  206. package/resources/catalog/products.d.ts +196 -104
  207. package/resources/catalog/products.d.ts.map +1 -1
  208. package/resources/catalog/products.js +24 -21
  209. package/resources/catalog/products.js.map +1 -1
  210. package/resources/catalog/products.mjs +24 -21
  211. package/resources/catalog/products.mjs.map +1 -1
  212. package/resources/catalog/properties/attributes.d.mts +97 -48
  213. package/resources/catalog/properties/attributes.d.mts.map +1 -1
  214. package/resources/catalog/properties/attributes.d.ts +97 -48
  215. package/resources/catalog/properties/attributes.d.ts.map +1 -1
  216. package/resources/catalog/properties/attributes.js +27 -20
  217. package/resources/catalog/properties/attributes.js.map +1 -1
  218. package/resources/catalog/properties/attributes.mjs +27 -20
  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 -48
  226. package/resources/catalog/properties/properties.d.mts.map +1 -1
  227. package/resources/catalog/properties/properties.d.ts +70 -48
  228. package/resources/catalog/properties/properties.d.ts.map +1 -1
  229. package/resources/catalog/properties/properties.js +18 -18
  230. package/resources/catalog/properties/properties.js.map +1 -1
  231. package/resources/catalog/properties/properties.mjs +18 -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 +123 -85
  242. package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
  243. package/resources/catalog/unit-groups/unit-groups.d.ts +123 -85
  244. package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
  245. package/resources/catalog/unit-groups/unit-groups.js +25 -25
  246. package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
  247. package/resources/catalog/unit-groups/unit-groups.mjs +25 -25
  248. package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
  249. package/resources/catalog/unit-groups/units.d.mts +75 -59
  250. package/resources/catalog/unit-groups/units.d.mts.map +1 -1
  251. package/resources/catalog/unit-groups/units.d.ts +75 -59
  252. package/resources/catalog/unit-groups/units.d.ts.map +1 -1
  253. package/resources/catalog/unit-groups/units.js +31 -30
  254. package/resources/catalog/unit-groups/units.js.map +1 -1
  255. package/resources/catalog/unit-groups/units.mjs +31 -30
  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 -64
  261. package/resources/catalog/units.d.mts.map +1 -1
  262. package/resources/catalog/units.d.ts +100 -64
  263. package/resources/catalog/units.d.ts.map +1 -1
  264. package/resources/catalog/units.js +25 -25
  265. package/resources/catalog/units.js.map +1 -1
  266. package/resources/catalog/units.mjs +25 -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 +95 -41
  315. package/resources/core/request-logs.d.mts.map +1 -1
  316. package/resources/core/request-logs.d.ts +95 -41
  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 +53 -32
  323. package/resources/core/sandboxes.d.mts.map +1 -1
  324. package/resources/core/sandboxes.d.ts +53 -32
  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 -44
  347. package/resources/finance/payment-terms.d.mts.map +1 -1
  348. package/resources/finance/payment-terms.d.ts +72 -44
  349. package/resources/finance/payment-terms.d.ts.map +1 -1
  350. package/resources/finance/payment-terms.js +32 -22
  351. package/resources/finance/payment-terms.js.map +1 -1
  352. package/resources/finance/payment-terms.mjs +32 -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 +175 -93
  358. package/resources/identity/account-users/account-users.d.mts.map +1 -1
  359. package/resources/identity/account-users/account-users.d.ts +175 -93
  360. package/resources/identity/account-users/account-users.d.ts.map +1 -1
  361. package/resources/identity/account-users/account-users.js +43 -30
  362. package/resources/identity/account-users/account-users.js.map +1 -1
  363. package/resources/identity/account-users/account-users.mjs +43 -30
  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 +84 -61
  392. package/resources/identity/roles.d.mts.map +1 -1
  393. package/resources/identity/roles.d.ts +84 -61
  394. package/resources/identity/roles.d.ts.map +1 -1
  395. package/resources/identity/roles.js +29 -27
  396. package/resources/identity/roles.js.map +1 -1
  397. package/resources/identity/roles.mjs +29 -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 +101 -64
  411. package/resources/operations/carriers/carriers.d.mts.map +1 -1
  412. package/resources/operations/carriers/carriers.d.ts +101 -64
  413. package/resources/operations/carriers/carriers.d.ts.map +1 -1
  414. package/resources/operations/carriers/carriers.js +28 -24
  415. package/resources/operations/carriers/carriers.js.map +1 -1
  416. package/resources/operations/carriers/carriers.mjs +28 -24
  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 +113 -69
  424. package/resources/operations/carriers/service-levels.d.mts.map +1 -1
  425. package/resources/operations/carriers/service-levels.d.ts +113 -69
  426. package/resources/operations/carriers/service-levels.d.ts.map +1 -1
  427. package/resources/operations/carriers/service-levels.js +34 -30
  428. package/resources/operations/carriers/service-levels.js.map +1 -1
  429. package/resources/operations/carriers/service-levels.mjs +34 -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 +132 -67
  448. package/resources/operations/locations.d.mts.map +1 -1
  449. package/resources/operations/locations.d.ts +132 -67
  450. package/resources/operations/locations.d.ts.map +1 -1
  451. package/resources/operations/locations.js +23 -20
  452. package/resources/operations/locations.js.map +1 -1
  453. package/resources/operations/locations.mjs +23 -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 -72
  461. package/resources/operations/scanning-stations.d.mts.map +1 -1
  462. package/resources/operations/scanning-stations.d.ts +143 -72
  463. package/resources/operations/scanning-stations.d.ts.map +1 -1
  464. package/resources/operations/scanning-stations.js +31 -25
  465. package/resources/operations/scanning-stations.js.map +1 -1
  466. package/resources/operations/scanning-stations.mjs +31 -25
  467. package/resources/operations/scanning-stations.mjs.map +1 -1
  468. package/resources/operations/shipping-terms.d.mts +121 -86
  469. package/resources/operations/shipping-terms.d.mts.map +1 -1
  470. package/resources/operations/shipping-terms.d.ts +121 -86
  471. package/resources/operations/shipping-terms.d.ts.map +1 -1
  472. package/resources/operations/shipping-terms.js +27 -26
  473. package/resources/operations/shipping-terms.js.map +1 -1
  474. package/resources/operations/shipping-terms.mjs +27 -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 +149 -66
  480. package/resources/sales/account-groups.d.mts.map +1 -1
  481. package/resources/sales/account-groups.d.ts +149 -66
  482. package/resources/sales/account-groups.d.ts.map +1 -1
  483. package/resources/sales/account-groups.js +29 -21
  484. package/resources/sales/account-groups.js.map +1 -1
  485. package/resources/sales/account-groups.mjs +29 -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 +96 -50
  496. package/resources/sales/addresses.d.mts.map +1 -1
  497. package/resources/sales/addresses.d.ts +96 -50
  498. package/resources/sales/addresses.d.ts.map +1 -1
  499. package/resources/sales/addresses.js +28 -19
  500. package/resources/sales/addresses.js.map +1 -1
  501. package/resources/sales/addresses.mjs +28 -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 +583 -288
  512. package/resources/sales/customers/customers.d.mts.map +1 -1
  513. package/resources/sales/customers/customers.d.ts +583 -288
  514. package/resources/sales/customers/customers.d.ts.map +1 -1
  515. package/resources/sales/customers/customers.js +52 -30
  516. package/resources/sales/customers/customers.js.map +1 -1
  517. package/resources/sales/customers/customers.mjs +52 -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 +115 -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 +167 -120
  609. package/src/resources/catalog/parts.ts +149 -99
  610. package/src/resources/catalog/product-lines.ts +159 -85
  611. package/src/resources/catalog/products.ts +211 -119
  612. package/src/resources/catalog/properties/attributes.ts +109 -82
  613. package/src/resources/catalog/properties/index.ts +4 -4
  614. package/src/resources/catalog/properties/properties.ts +83 -61
  615. package/src/resources/catalog/unit-groups/index.ts +4 -4
  616. package/src/resources/catalog/unit-groups/unit-groups.ts +140 -102
  617. package/src/resources/catalog/unit-groups/units.ts +94 -78
  618. package/src/resources/catalog/units.ts +113 -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 +154 -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 +113 -57
  626. package/src/resources/core/sandboxes.ts +58 -37
  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 +84 -56
  630. package/src/resources/identity/account-users/account-users.ts +190 -105
  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 +92 -69
  636. package/src/resources/index.ts +3 -2
  637. package/src/resources/operations/carriers/carriers.ts +109 -72
  638. package/src/resources/operations/carriers/index.ts +4 -4
  639. package/src/resources/operations/carriers/service-levels.ts +133 -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 +141 -76
  643. package/src/resources/operations/operations.ts +8 -8
  644. package/src/resources/operations/scanning-stations.ts +159 -88
  645. package/src/resources/operations/shipping-terms.ts +135 -100
  646. package/src/resources/sales/account-groups.ts +159 -76
  647. package/src/resources/sales/account-statuses.ts +48 -30
  648. package/src/resources/sales/addresses.ts +104 -58
  649. package/src/resources/sales/customers/actions.ts +15 -4
  650. package/src/resources/sales/customers/customers.ts +655 -347
  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
@@ -14,13 +14,43 @@ import { RequestOptions } from "../../../internal/request-options.js";
14
14
  export declare class Customers extends APIResource {
15
15
  actions: ActionsAPI.Actions;
16
16
  /**
17
- * Creates a customer account. Auto-generates a customer number if one is not
18
- * provided.
17
+ * Returns a paginated list of customers for the current account.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const listCustomer = await client.sales.customers.list();
22
+ * ```
23
+ */
24
+ list(query?: CustomerListParams | null | undefined, options?: RequestOptions): APIPromise<ListCustomer>;
25
+ /**
26
+ * Returns a customer by ID.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const customer = await client.sales.customers.retrieve(
31
+ * 'ac_0170df1ac58e4d24c66fc89f5f',
32
+ * );
33
+ * ```
34
+ */
35
+ retrieve(id: string, query?: CustomerRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Customer>;
36
+ /**
37
+ * Creates a customer account with its default addresses, fulfillment settings, and
38
+ * order policies.
39
+ *
40
+ * If `number` is omitted, the next sequential customer number is assigned
41
+ * automatically.
19
42
  *
20
43
  * @example
21
44
  * ```ts
22
45
  * const customer = await client.sales.customers.create({
23
- * bill_to_address: { name: 'Acme Inc.', country: 'US' },
46
+ * bill_to_address: {
47
+ * name: 'Acme Inc.',
48
+ * street_line_1: '123 Main St',
49
+ * locality: 'New York',
50
+ * state: 'NY',
51
+ * postal_code: '10001',
52
+ * country: 'US',
53
+ * },
24
54
  * customer_type_group_id: 'acgp_018e88072d1320808dc979cfac',
25
55
  * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
26
56
  * default_payment_term_id:
@@ -28,26 +58,24 @@ export declare class Customers extends APIResource {
28
58
  * default_shipping_term_id:
29
59
  * 'shtm_014341ab4bb5bf94d5b6936f86',
30
60
  * name: 'Acme Inc.',
31
- * ship_to_address: { name: 'Acme Inc.', country: 'US' },
61
+ * ship_to_address: {
62
+ * name: 'Acme Inc.',
63
+ * street_line_1: '123 Main St',
64
+ * locality: 'New York',
65
+ * state: 'NY',
66
+ * postal_code: '10001',
67
+ * country: 'US',
68
+ * },
32
69
  * note: 'Key enterprise account',
33
70
  * });
34
71
  * ```
35
72
  */
36
73
  create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<Customer>;
37
74
  /**
38
- * Returns a customer by ID.
75
+ * Partially updates a customer account.
39
76
  *
40
- * @example
41
- * ```ts
42
- * const customer = await client.sales.customers.retrieve(
43
- * 'ac_0170df1ac58e4d24c66fc89f5f',
44
- * );
45
- * ```
46
- */
47
- retrieve(id: string, query?: CustomerRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Customer>;
48
- /**
49
- * Partially updates a customer account. When a Stripe integration is active,
50
- * customer changes are synced to Stripe.
77
+ * Only the fields provided in the request are changed. Nullable fields can be set
78
+ * to `null` to clear their current value.
51
79
  *
52
80
  * @example
53
81
  * ```ts
@@ -57,23 +85,17 @@ export declare class Customers extends APIResource {
57
85
  * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
58
86
  * freight_policy: 'billed_freight',
59
87
  * name: 'Acme Corp Updated',
88
+ * note: 'Updated account notes',
60
89
  * },
61
90
  * );
62
91
  * ```
63
92
  */
64
93
  update(id: string, params?: CustomerUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Customer>;
65
94
  /**
66
- * Returns a paginated list of customers for the current account.
95
+ * Deletes a customer.
67
96
  *
68
- * @example
69
- * ```ts
70
- * const listCustomer = await client.sales.customers.list();
71
- * ```
72
- */
73
- list(query?: CustomerListParams | null | undefined, options?: RequestOptions): APIPromise<ListCustomer>;
74
- /**
75
- * Deletes a customer and associated account relations, addresses, and account
76
- * users.
97
+ * Fails with a conflict error if any sales orders still reference the customer;
98
+ * delete or reassign those orders, or merge the customer into another first.
77
99
  *
78
100
  * @example
79
101
  * ```ts
@@ -85,7 +107,11 @@ export declare class Customers extends APIResource {
85
107
  delete(id: string, options?: RequestOptions): APIPromise<CustomerDeleteResponse>;
86
108
  }
87
109
  /**
88
- * Account user with profile, role, and department.
110
+ * A user's membership in an account, carrying the account-specific status, role,
111
+ * and department.
112
+ *
113
+ * Profile fields (name, email, username, image URL) live on the expandable `user`
114
+ * sub-resource, which is shared across every account the user belongs to.
89
115
  */
90
116
  export interface AccountUser {
91
117
  /**
@@ -97,35 +123,29 @@ export interface AccountUser {
97
123
  */
98
124
  created_at: string;
99
125
  /**
100
- * Department resource.
126
+ * A functional area of a production operation, such as fabrication or packaging,
127
+ * that groups scanning stations and machines.
101
128
  */
102
129
  department: Department | null;
103
130
  /**
104
- * Email address.
105
- */
106
- email: string | null;
107
- /**
108
- * Profile image URL.
109
- */
110
- image_url: string | null;
111
- /**
112
- * When the user last used this account.
131
+ * When the user last accessed this account.
113
132
  */
114
133
  last_used_at: string | null;
115
- /**
116
- * Display name.
117
- */
118
- name: string | null;
119
134
  /**
120
135
  * Resource type identifier.
121
136
  */
122
137
  object: 'account_user';
123
138
  /**
124
- * Role resource.
139
+ * A named set of permissions that can be assigned to users to control what they
140
+ * can access.
125
141
  */
126
142
  role: APIKeysAPI.Role | null;
127
143
  /**
128
144
  * Account user status.
145
+ *
146
+ * - `active`: the user can access the account.
147
+ * - `disabled`: the user is locked out of the account.
148
+ * - `removed`: the user has been removed (soft-deleted) from the account.
129
149
  */
130
150
  status: 'active' | 'disabled' | 'removed';
131
151
  /**
@@ -133,12 +153,19 @@ export interface AccountUser {
133
153
  */
134
154
  updated_at: string;
135
155
  /**
136
- * Username.
156
+ * A user's global profile, shared across every account they belong to.
157
+ *
158
+ * Account-specific settings (status, role, department) live on the account user
159
+ * resource that links the user to each account.
137
160
  */
138
- username: string | null;
161
+ user: User | null;
139
162
  }
140
163
  /**
141
- * Carrier resource.
164
+ * A shipping carrier configured for fulfilling orders.
165
+ *
166
+ * Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
167
+ * through Shippo for live rating and label purchase; other carriers represent
168
+ * self-managed shipping methods such as will call or local delivery.
142
169
  */
143
170
  export interface Carrier {
144
171
  /**
@@ -146,11 +173,19 @@ export interface Carrier {
146
173
  */
147
174
  id: string;
148
175
  /**
149
- * Account number.
176
+ * Your account number with this carrier, used to connect UPS and USPS accounts.
150
177
  */
151
178
  account_number: string | null;
152
179
  /**
153
- * Carrier code.
180
+ * Well-known carrier identifier, set only for recognized carriers and absent for
181
+ * custom ones.
182
+ *
183
+ * - `fedex`, `ups`, `usps`: integrated carriers managed through Shippo (live
184
+ * rating and labels).
185
+ * - `will_call`: customer picks the order up; no carrier shipment.
186
+ * - `delivery`: delivered by your own vehicles/drivers.
187
+ * - `ltl`, `ltl1`: less-than-truckload freight carriers.
188
+ * - `freight_collect`: freight billed to and arranged by the receiver.
154
189
  */
155
190
  code: 'fedex' | 'ups' | 'usps' | 'will_call' | 'delivery' | 'ltl' | 'ltl1' | 'freight_collect' | null;
156
191
  /**
@@ -158,7 +193,8 @@ export interface Carrier {
158
193
  */
159
194
  created_at: string;
160
195
  /**
161
- * Customer portal visibility.
196
+ * Whether customers can see and select this carrier at checkout in the customer
197
+ * portal.
162
198
  */
163
199
  customer_portal_visibility: 'visible' | 'hidden';
164
200
  /**
@@ -166,7 +202,7 @@ export interface Carrier {
166
202
  */
167
203
  deleted_at: string | null;
168
204
  /**
169
- * Display name.
205
+ * Human-readable name for the carrier, unique among your account's carriers.
170
206
  */
171
207
  name: string;
172
208
  /**
@@ -188,6 +224,10 @@ export interface Carrier {
188
224
  }
189
225
  /**
190
226
  * Material consumed by a production step.
227
+ *
228
+ * Each consumption records one input item and how much of it the step uses.
229
+ * Consumptions also determine the production flow: when another step produces the
230
+ * consumed item, the two steps are linked upstream/downstream automatically.
191
231
  */
192
232
  export interface Consumption {
193
233
  /**
@@ -228,15 +268,17 @@ export interface Consumption {
228
268
  */
229
269
  export interface CreateCustomerRequest {
230
270
  /**
231
- * Request to create an address.
271
+ * Address details used to create an address, either directly or inline on another
272
+ * resource.
232
273
  */
233
274
  bill_to_address: AddressesAPI.AddressInput;
234
275
  /**
235
- * Customer type group ID.
276
+ * ID of the account group of type `type_group` that categorizes this customer (for
277
+ * example "Distributors").
236
278
  */
237
279
  customer_type_group_id: string;
238
280
  /**
239
- * Default carrier ID.
281
+ * ID of the default carrier for this customer's shipments.
240
282
  */
241
283
  default_carrier_id: string;
242
284
  /**
@@ -248,36 +290,45 @@ export interface CreateCustomerRequest {
248
290
  */
249
291
  default_shipping_term_id: string;
250
292
  /**
251
- * Display name.
293
+ * The customer's business name, as shown throughout the app and on documents.
252
294
  */
253
295
  name: string;
254
296
  /**
255
- * Request to create an address.
297
+ * Address details used to create an address, either directly or inline on another
298
+ * resource.
256
299
  */
257
300
  ship_to_address: AddressesAPI.AddressInput;
258
301
  /**
259
- * Carrier billing account number.
302
+ * Carrier billing account number charged when `carrier_billing_type` is
303
+ * `third_party`.
260
304
  */
261
305
  carrier_billing_account?: string;
262
306
  /**
263
- * Carrier billing type.
307
+ * Who pays the carrier for shipments.
308
+ *
309
+ * - `sender`: the shipper (you) pays the carrier.
310
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
264
311
  */
265
312
  carrier_billing_type?: 'sender' | 'third_party';
266
313
  /**
267
- * Commission policy.
314
+ * How sales commission applies to this customer's orders.
315
+ *
316
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
317
+ * - `commission_applied`: sales commission is calculated on this customer's
318
+ * orders.
268
319
  */
269
320
  commission_policy?: 'commission_applied' | 'commission_exempt';
270
321
  /**
271
- * QuantityInput represents a value with an associated unit for create/update
272
- * requests.
322
+ * A value with an associated unit, used in create and update requests.
273
323
  */
274
324
  credit_limit?: QuantityInput;
275
325
  /**
276
- * Price group IDs.
326
+ * IDs of the account groups of type `pricing_group` to assign to this customer,
327
+ * used to apply pricing rules.
277
328
  */
278
329
  customer_price_group_ids?: Array<string>;
279
330
  /**
280
- * Default priority code.
331
+ * Priority applied to new orders for this customer.
281
332
  */
282
333
  default_priority?: 'low' | 'normal' | 'high';
283
334
  /**
@@ -285,11 +336,12 @@ export interface CreateCustomerRequest {
285
336
  */
286
337
  default_sales_rep_id?: string;
287
338
  /**
288
- * Default service level ID.
339
+ * ID of the default carrier service level.
289
340
  */
290
341
  default_service_level_id?: string;
291
342
  /**
292
- * EDI status.
343
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
344
+ * documents with this customer.
293
345
  */
294
346
  edi_status?: 'enabled' | 'disabled';
295
347
  /**
@@ -297,15 +349,23 @@ export interface CreateCustomerRequest {
297
349
  */
298
350
  email?: string;
299
351
  /**
300
- * Freight policy.
352
+ * Whether this customer is billed for freight on their orders.
353
+ *
354
+ * - `free_freight`: the customer is not billed for freight.
355
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
356
+ * order.
301
357
  */
302
358
  freight_policy?: 'free_freight' | 'billed_freight';
303
359
  /**
304
- * Note.
360
+ * Free-form note about the customer.
305
361
  */
306
362
  note?: string;
307
363
  /**
308
- * Customer number. Auto-generated if omitted.
364
+ * Human-readable customer number used to identify the account, distinct from the
365
+ * `id`.
366
+ *
367
+ * Must be unique within your account. If omitted, the next sequential number is
368
+ * assigned automatically.
309
369
  */
310
370
  number?: string;
311
371
  /**
@@ -313,7 +373,12 @@ export interface CreateCustomerRequest {
313
373
  */
314
374
  phone?: string;
315
375
  /**
316
- * Account status code.
376
+ * Account status code, controlling whether the customer can transact.
377
+ *
378
+ * - `normal`: standard active account with no restrictions.
379
+ * - `preferred`: active account flagged as preferred.
380
+ * - `hold_shipment`: orders can be placed, but shipments are held.
381
+ * - `hold_all`: all activity is on hold.
317
382
  */
318
383
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
319
384
  /**
@@ -322,7 +387,8 @@ export interface CreateCustomerRequest {
322
387
  url?: string;
323
388
  }
324
389
  /**
325
- * Customer account.
390
+ * A business you sell to, with its contact details, default fulfillment settings,
391
+ * and order policies.
326
392
  */
327
393
  export interface Customer {
328
394
  /**
@@ -330,7 +396,8 @@ export interface Customer {
330
396
  */
331
397
  id: string;
332
398
  /**
333
- * Address with associated geolocation.
399
+ * A saved address that can be used for billing and shipping on sales orders,
400
+ * invoices, and shipments.
334
401
  */
335
402
  bill_to_address: APIKeysAPI.Address | null;
336
403
  /**
@@ -338,7 +405,11 @@ export interface Customer {
338
405
  */
339
406
  child_accounts: ListCustomer | null;
340
407
  /**
341
- * Commission policy.
408
+ * How sales commission applies to this customer's orders.
409
+ *
410
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
411
+ * - `commission_applied`: sales commission is calculated on this customer's
412
+ * orders.
342
413
  */
343
414
  commission_policy: 'commission_applied' | 'commission_exempt';
344
415
  /**
@@ -358,7 +429,8 @@ export interface Customer {
358
429
  */
359
430
  defaults: CustomerDefaults | null;
360
431
  /**
361
- * EDI status.
432
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
433
+ * documents with this customer.
362
434
  */
363
435
  edi_status: 'enabled' | 'disabled';
364
436
  /**
@@ -366,11 +438,11 @@ export interface Customer {
366
438
  */
367
439
  freight_preferences: CustomerFreightPreferences | null;
368
440
  /**
369
- * Display name.
441
+ * The customer's business name, as shown throughout the app and on documents.
370
442
  */
371
443
  name: string;
372
444
  /**
373
- * Note.
445
+ * Free-form note about the customer.
374
446
  */
375
447
  note: string | null;
376
448
  /**
@@ -378,7 +450,8 @@ export interface Customer {
378
450
  */
379
451
  notification_preferences: CustomerNotificationPreferences | null;
380
452
  /**
381
- * Customer number.
453
+ * Human-readable customer number used to identify the account, distinct from the
454
+ * `id`.
382
455
  */
383
456
  number: string;
384
457
  /**
@@ -386,7 +459,8 @@ export interface Customer {
386
459
  */
387
460
  object: 'customer';
388
461
  /**
389
- * Customer account.
462
+ * A business you sell to, with its contact details, default fulfillment settings,
463
+ * and order policies.
390
464
  */
391
465
  parent_account: Customer | null;
392
466
  /**
@@ -394,19 +468,30 @@ export interface Customer {
394
468
  */
395
469
  price_groups: AccountGroupsAPI.ListAccountGroup | null;
396
470
  /**
397
- * Customer relationship type.
471
+ * The customer's position in the account hierarchy.
472
+ *
473
+ * - `standalone`: no parent or child accounts.
474
+ * - `parent`: has one or more child accounts (see `child_accounts`).
475
+ * - `child`: belongs to a parent account (see `parent_account`).
398
476
  */
399
477
  relationship_type: 'standalone' | 'parent' | 'child';
400
478
  /**
401
- * Address with associated geolocation.
479
+ * A saved address that can be used for billing and shipping on sales orders,
480
+ * invoices, and shipments.
402
481
  */
403
482
  ship_to_address: APIKeysAPI.Address | null;
404
483
  /**
405
- * Account status code.
484
+ * Account status code, controlling whether the customer can transact.
485
+ *
486
+ * - `normal`: standard active account with no restrictions.
487
+ * - `preferred`: active account flagged as preferred.
488
+ * - `hold_shipment`: orders can be placed, but shipments are held.
489
+ * - `hold_all`: all activity is on hold.
406
490
  */
407
491
  status: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
408
492
  /**
409
- * Account group resource.
493
+ * A named grouping of customer accounts, used for pricing rules or to categorize
494
+ * accounts.
410
495
  */
411
496
  type: AccountGroupsAPI.AccountGroup | null;
412
497
  /**
@@ -444,19 +529,24 @@ export interface CustomerDefaults {
444
529
  */
445
530
  object: 'customer_defaults';
446
531
  /**
447
- * Payment term resource.
532
+ * A payment term describing when payment is due (e.g. `Net 30`), assignable to
533
+ * customers, sales orders, purchase orders, and invoices.
448
534
  */
449
535
  payment_term: PaymentTerm | null;
450
536
  /**
451
- * Priority level used by sales orders and picks.
537
+ * Priority level used to order work on sales orders, purchase orders, and picks.
452
538
  */
453
539
  priority: PrioritiesAPI.Priority | null;
454
540
  /**
455
- * Account user with profile, role, and department.
541
+ * A user's membership in an account, carrying the account-specific status, role,
542
+ * and department.
543
+ *
544
+ * Profile fields (name, email, username, image URL) live on the expandable `user`
545
+ * sub-resource, which is shared across every account the user belongs to.
456
546
  */
457
547
  sales_rep: AccountUser | null;
458
548
  /**
459
- * ShippingTerm resource.
549
+ * A shipping term defining how freight charges are calculated for an order.
460
550
  */
461
551
  shipping_term: ShippingTerm | null;
462
552
  }
@@ -465,15 +555,22 @@ export interface CustomerDefaults {
465
555
  */
466
556
  export interface CustomerFreightPreferences {
467
557
  /**
468
- * Carrier billing account number.
558
+ * Carrier billing account number charged when `billing_type` is `third_party`.
469
559
  */
470
560
  billing_account: string | null;
471
561
  /**
472
- * Carrier billing type.
562
+ * Who pays the carrier for shipments.
563
+ *
564
+ * - `sender`: the shipper (you) pays the carrier.
565
+ * - `third_party`: a third party is billed, using `billing_account`.
473
566
  */
474
567
  billing_type: 'sender' | 'third_party' | null;
475
568
  /**
476
- * Carrier resource.
569
+ * A shipping carrier configured for fulfilling orders.
570
+ *
571
+ * Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
572
+ * through Shippo for live rating and label purchase; other carriers represent
573
+ * self-managed shipping methods such as will call or local delivery.
477
574
  */
478
575
  carrier: Carrier | null;
479
576
  /**
@@ -485,7 +582,11 @@ export interface CustomerFreightPreferences {
485
582
  */
486
583
  service_level: ServiceLevel | null;
487
584
  /**
488
- * Freight policy.
585
+ * Freight policy applied to this customer's orders.
586
+ *
587
+ * - `free_freight`: the customer is not billed for freight.
588
+ * - `billed_freight`: freight is billed to the customer, unless overridden
589
+ * elsewhere.
489
590
  */
490
591
  status: 'free_freight' | 'billed_freight';
491
592
  }
@@ -503,7 +604,8 @@ export interface CustomerNotificationPreferences {
503
604
  object: 'customer_notification_preferences';
504
605
  }
505
606
  /**
506
- * Department resource.
607
+ * A functional area of a production operation, such as fabrication or packaging,
608
+ * that groups scanning stations and machines.
507
609
  */
508
610
  export interface Department {
509
611
  /**
@@ -515,7 +617,8 @@ export interface Department {
515
617
  */
516
618
  created_at: string;
517
619
  /**
518
- * Location resource.
620
+ * A physical storage location, such as a warehouse, aisle, or bin, arranged in a
621
+ * parent-child hierarchy.
519
622
  */
520
623
  location: Location | null;
521
624
  /**
@@ -523,11 +626,13 @@ export interface Department {
523
626
  */
524
627
  machines: ListMachine | null;
525
628
  /**
526
- * Display name.
629
+ * Display name of the department.
630
+ *
631
+ * Unique within the account.
527
632
  */
528
633
  name: string;
529
634
  /**
530
- * Notes about the department.
635
+ * Free-form notes about the department.
531
636
  */
532
637
  notes: string | null;
533
638
  /**
@@ -663,7 +768,8 @@ export interface ListServiceLevel {
663
768
  page_info: APIKeysAPI.PageInfo;
664
769
  }
665
770
  /**
666
- * Location resource.
771
+ * A physical storage location, such as a warehouse, aisle, or bin, arranged in a
772
+ * parent-child hierarchy.
667
773
  */
668
774
  export interface Location {
669
775
  /**
@@ -679,7 +785,7 @@ export interface Location {
679
785
  */
680
786
  created_at: string;
681
787
  /**
682
- * Display name.
788
+ * Display name of the location.
683
789
  */
684
790
  name: string;
685
791
  /**
@@ -687,20 +793,30 @@ export interface Location {
687
793
  */
688
794
  object: 'location';
689
795
  /**
690
- * Location resource.
796
+ * A physical storage location, such as a warehouse, aisle, or bin, arranged in a
797
+ * parent-child hierarchy.
691
798
  */
692
799
  parent: Location | null;
693
800
  /**
694
- * Location type code.
801
+ * Location type code, identifying this location's level in the storage hierarchy.
802
+ *
803
+ * - `building`: a building-level location.
804
+ * - `section`: a section within a building.
805
+ * - `aisle`: an aisle within a section.
806
+ * - `rack`: a rack within an aisle.
807
+ * - `shelf`: a shelf within a rack.
808
+ * - `bin`: a bin within a shelf.
695
809
  */
696
- type: 'building' | 'section' | 'aisle' | 'rack' | 'shelf' | 'bin';
810
+ type: LocationTypeCode;
697
811
  /**
698
812
  * Last-updated timestamp.
699
813
  */
700
814
  updated_at: string;
701
815
  }
816
+ export type LocationTypeCode = 'building' | 'section' | 'aisle' | 'rack' | 'shelf' | 'bin';
702
817
  /**
703
- * Machine within an account.
818
+ * A piece of production equipment, such as a CNC router or press, assigned to a
819
+ * department.
704
820
  */
705
821
  export interface Machine {
706
822
  /**
@@ -712,15 +828,18 @@ export interface Machine {
712
828
  */
713
829
  created_at: string;
714
830
  /**
715
- * Department resource.
831
+ * A functional area of a production operation, such as fabrication or packaging,
832
+ * that groups scanning stations and machines.
716
833
  */
717
834
  department: Department | null;
718
835
  /**
719
- * Display name.
836
+ * Display name of the machine.
837
+ *
838
+ * Unique within the account.
720
839
  */
721
840
  name: string;
722
841
  /**
723
- * Notes.
842
+ * Free-form notes about the machine.
724
843
  */
725
844
  notes: string | null;
726
845
  /**
@@ -728,7 +847,7 @@ export interface Machine {
728
847
  */
729
848
  object: 'machine';
730
849
  /**
731
- * Serial number.
850
+ * Serial number of the machine.
732
851
  */
733
852
  serial_number: string;
734
853
  /**
@@ -737,7 +856,8 @@ export interface Machine {
737
856
  updated_at: string;
738
857
  }
739
858
  /**
740
- * Payment term resource.
859
+ * A payment term describing when payment is due (e.g. `Net 30`), assignable to
860
+ * customers, sales orders, purchase orders, and invoices.
741
861
  */
742
862
  export interface PaymentTerm {
743
863
  /**
@@ -749,7 +869,7 @@ export interface PaymentTerm {
749
869
  */
750
870
  created_at: string;
751
871
  /**
752
- * Display name.
872
+ * Display name (e.g. `Net 30`).
753
873
  */
754
874
  name: string;
755
875
  /**
@@ -761,7 +881,7 @@ export interface PaymentTerm {
761
881
  */
762
882
  owner: APIKeysAPI.Owner | null;
763
883
  /**
764
- * Payment term status.
884
+ * Lifecycle status of the payment term.
765
885
  */
766
886
  status: 'active' | 'inactive';
767
887
  /**
@@ -770,7 +890,7 @@ export interface PaymentTerm {
770
890
  updated_at: string;
771
891
  }
772
892
  /**
773
- * Production output of a production step.
893
+ * The output of a production step: the item it produces and the quantity produced.
774
894
  */
775
895
  export interface ProductionOutput {
776
896
  /**
@@ -799,7 +919,8 @@ export interface ProductionOutput {
799
919
  updated_at: string;
800
920
  }
801
921
  /**
802
- * Production step with all nested data.
922
+ * A single stage of work in an item's production flow, with its output, material
923
+ * inputs, cost rates, and graph connections.
803
924
  */
804
925
  export interface ProductionStep {
805
926
  /**
@@ -807,7 +928,11 @@ export interface ProductionStep {
807
928
  */
808
929
  id: string;
809
930
  /**
810
- * Allowances as a decimal string.
931
+ * Allowance correction factor applied to labor time in cost calculations, as a
932
+ * decimal string.
933
+ *
934
+ * Effective labor time per unit is
935
+ * `labor_time × (1 + leveling_factor) × (1 + allowances)`.
811
936
  */
812
937
  allowances: string;
813
938
  /**
@@ -819,7 +944,8 @@ export interface ProductionStep {
819
944
  */
820
945
  created_at: string;
821
946
  /**
822
- * Department resource.
947
+ * A functional area of a production operation, such as fabrication or packaging,
948
+ * that groups scanning stations and machines.
823
949
  */
824
950
  department: Department | null;
825
951
  /**
@@ -827,15 +953,21 @@ export interface ProductionStep {
827
953
  */
828
954
  in_steps: ListProductionStep | null;
829
955
  /**
830
- * Rate resource.
956
+ * Value expressed as a ratio of two units, such as a price per kilogram or a
957
+ * throughput per hour.
831
958
  */
832
959
  labor_rate: ItemsAPI.Rate | null;
833
960
  /**
834
- * Rate resource.
961
+ * Value expressed as a ratio of two units, such as a price per kilogram or a
962
+ * throughput per hour.
835
963
  */
836
964
  labor_time: ItemsAPI.Rate | null;
837
965
  /**
838
- * Leveling factor as a decimal string.
966
+ * Leveling correction factor applied to labor time in cost calculations, as a
967
+ * decimal string.
968
+ *
969
+ * Effective labor time per unit is
970
+ * `labor_time × (1 + leveling_factor) × (1 + allowances)`.
839
971
  */
840
972
  leveling_factor: string;
841
973
  /**
@@ -843,11 +975,11 @@ export interface ProductionStep {
843
975
  */
844
976
  machines: ListMachine | null;
845
977
  /**
846
- * Display name.
978
+ * Display name of the step.
847
979
  */
848
980
  name: string;
849
981
  /**
850
- * Notes.
982
+ * Free-form notes about the step.
851
983
  */
852
984
  notes: string | null;
853
985
  /**
@@ -859,15 +991,17 @@ export interface ProductionStep {
859
991
  */
860
992
  out_steps: ListProductionStep | null;
861
993
  /**
862
- * Rate resource.
994
+ * Value expressed as a ratio of two units, such as a price per kilogram or a
995
+ * throughput per hour.
863
996
  */
864
997
  overhead_rate: ItemsAPI.Rate | null;
865
998
  /**
866
- * Production output of a production step.
999
+ * The output of a production step: the item it produces and the quantity produced.
867
1000
  */
868
1001
  production: ProductionOutput | null;
869
1002
  /**
870
- * Scanning station resource.
1003
+ * A station on the production floor where operators scan batches to perform a
1004
+ * batch operation, such as initializing or moving a batch.
871
1005
  */
872
1006
  scanning_station: ScanningStation | null;
873
1007
  /**
@@ -876,21 +1010,21 @@ export interface ProductionStep {
876
1010
  updated_at: string;
877
1011
  }
878
1012
  /**
879
- * QuantityInput represents a value with an associated unit for create/update
880
- * requests.
1013
+ * A value with an associated unit, used in create and update requests.
881
1014
  */
882
1015
  export interface QuantityInput {
883
1016
  /**
884
- * The unit ID for the value.
1017
+ * ID of the unit of measure for the value.
885
1018
  */
886
1019
  unit_id: string;
887
1020
  /**
888
- * The decimal value.
1021
+ * Decimal value, as a string to preserve precision.
889
1022
  */
890
1023
  value: string;
891
1024
  }
892
1025
  /**
893
- * Scanning station resource.
1026
+ * A station on the production floor where operators scan batches to perform a
1027
+ * batch operation, such as initializing or moving a batch.
894
1028
  */
895
1029
  export interface ScanningStation {
896
1030
  /**
@@ -902,23 +1036,31 @@ export interface ScanningStation {
902
1036
  */
903
1037
  created_at: string;
904
1038
  /**
905
- * Department resource.
1039
+ * A functional area of a production operation, such as fabrication or packaging,
1040
+ * that groups scanning stations and machines.
906
1041
  */
907
1042
  department: Department | null;
908
1043
  /**
909
- * Label size code.
1044
+ * Size of the labels printed at this station, given as width-by-height (for
1045
+ * example, `1x1`).
910
1046
  */
911
1047
  label_size: '1x1' | '1x3' | '1x4' | '2x4' | null;
912
1048
  /**
913
- * Label type code.
1049
+ * Type of label printed at this station.
1050
+ *
1051
+ * - `tag`: a label attached to the physical product.
1052
+ * - `traveler`: a routing sheet that accompanies the batch through every
1053
+ * production step.
914
1054
  */
915
1055
  label_type: 'tag' | 'traveler' | null;
916
1056
  /**
917
- * Display name.
1057
+ * Display name of the scanning station.
1058
+ *
1059
+ * Unique within the account.
918
1060
  */
919
1061
  name: string;
920
1062
  /**
921
- * Notes.
1063
+ * Free-form notes about the scanning station.
922
1064
  */
923
1065
  notes: string | null;
924
1066
  /**
@@ -926,7 +1068,10 @@ export interface ScanningStation {
926
1068
  */
927
1069
  object: 'scanning_station';
928
1070
  /**
929
- * Operator requirement behavior for this station.
1071
+ * Whether operators must perform a material check at this station.
1072
+ *
1073
+ * - `none`: no additional operator check is required.
1074
+ * - `material_check`: a material check is expected before the operation.
930
1075
  */
931
1076
  operator_requirement: 'none' | 'material_check';
932
1077
  /**
@@ -934,7 +1079,12 @@ export interface ScanningStation {
934
1079
  */
935
1080
  production_steps: ListProductionStep | null;
936
1081
  /**
937
- * Scanning station type.
1082
+ * Scanning station type, determining which batch operation the station performs.
1083
+ *
1084
+ * - `init_batch`: initializes a new batch.
1085
+ * - `merge_batch`: merges multiple batches into one.
1086
+ * - `move_batch`: moves a batch to another location or step.
1087
+ * - `split_batch`: splits a batch into multiple batches.
938
1088
  */
939
1089
  type: 'init_batch' | 'merge_batch' | 'move_batch' | 'split_batch';
940
1090
  /**
@@ -955,15 +1105,21 @@ export interface ServiceLevel {
955
1105
  */
956
1106
  created_at: string;
957
1107
  /**
958
- * Customer portal visibility.
1108
+ * Whether customers can see and select this service level at checkout in the
1109
+ * customer portal.
959
1110
  */
960
1111
  customer_portal_visibility: 'visible' | 'hidden';
961
1112
  /**
962
- * Default service level for the carrier.
1113
+ * Whether this is the carrier's default service level, pre-selected when the
1114
+ * carrier is chosen.
1115
+ *
1116
+ * Each carrier has at most one default; setting a new default clears the previous
1117
+ * one.
963
1118
  */
964
1119
  is_default: boolean;
965
1120
  /**
966
- * Display name.
1121
+ * Human-readable name for the service level, shown to customers at checkout when
1122
+ * the service level is visible.
967
1123
  */
968
1124
  name: string;
969
1125
  /**
@@ -975,7 +1131,10 @@ export interface ServiceLevel {
975
1131
  */
976
1132
  owner: APIKeysAPI.Owner | null;
977
1133
  /**
978
- * Service level token.
1134
+ * Carrier-specific code identifying this service level (e.g. `fedex_ground`,
1135
+ * `ups_next_day_air`).
1136
+ *
1137
+ * Values are carrier-defined, so any non-empty string is accepted.
979
1138
  */
980
1139
  service_level_token: string;
981
1140
  /**
@@ -984,7 +1143,7 @@ export interface ServiceLevel {
984
1143
  updated_at: string;
985
1144
  }
986
1145
  /**
987
- * ShippingTerm resource.
1146
+ * A shipping term defining how freight charges are calculated for an order.
988
1147
  */
989
1148
  export interface ShippingTerm {
990
1149
  /**
@@ -1008,7 +1167,8 @@ export interface ShippingTerm {
1008
1167
  */
1009
1168
  minimum_order_value: ItemsAPI.Quantity | null;
1010
1169
  /**
1011
- * Display name.
1170
+ * Human-readable name for the shipping term, used to identify it when assigning
1171
+ * shipping terms to customers and orders.
1012
1172
  */
1013
1173
  name: string;
1014
1174
  /**
@@ -1020,7 +1180,13 @@ export interface ShippingTerm {
1020
1180
  */
1021
1181
  owner: APIKeysAPI.Owner | null;
1022
1182
  /**
1023
- * Shipping term type.
1183
+ * Freight pricing model applied by this shipping term.
1184
+ *
1185
+ * - `free_freight`: no shipping cost to the buyer.
1186
+ * - `flat_rate_freight`: a fixed shipping cost regardless of order details (see
1187
+ * `flat_rate`).
1188
+ * - `carrier_rate_freight`: shipping cost is determined by the carrier's quoted
1189
+ * rate.
1024
1190
  */
1025
1191
  type: 'free_freight' | 'flat_rate_freight' | 'carrier_rate_freight';
1026
1192
  /**
@@ -1033,36 +1199,47 @@ export interface ShippingTerm {
1033
1199
  */
1034
1200
  export interface UpdateCustomerRequest {
1035
1201
  /**
1036
- * Bill-to address ID.
1202
+ * ID of an existing address to use as the default billing address.
1037
1203
  */
1038
1204
  bill_to_address_id?: string | null;
1039
1205
  /**
1040
- * Carrier billing account number.
1206
+ * Carrier billing account number charged when `carrier_billing_type` is
1207
+ * `third_party`.
1041
1208
  */
1042
1209
  carrier_billing_account?: string | null;
1043
1210
  /**
1044
- * Carrier billing type.
1211
+ * Who pays the carrier for shipments.
1212
+ *
1213
+ * - `sender`: the shipper (you) pays the carrier.
1214
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
1045
1215
  */
1046
1216
  carrier_billing_type?: 'sender' | 'third_party';
1047
1217
  /**
1048
- * Commission policy.
1218
+ * How sales commission applies to this customer's orders.
1219
+ *
1220
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
1221
+ * - `commission_applied`: sales commission is calculated on this customer's
1222
+ * orders.
1049
1223
  */
1050
1224
  commission_policy?: 'commission_applied' | 'commission_exempt';
1051
1225
  /**
1052
- * QuantityInput represents a value with an associated unit for create/update
1053
- * requests.
1226
+ * A value with an associated unit, used in create and update requests.
1054
1227
  */
1055
1228
  credit_limit?: QuantityInput | null;
1056
1229
  /**
1057
- * Price group IDs. Replaces all existing price groups when provided.
1230
+ * IDs of the account groups of type `pricing_group` to assign to this customer,
1231
+ * used to apply pricing rules.
1232
+ *
1233
+ * When provided, replaces the customer's full set of existing price groups.
1058
1234
  */
1059
1235
  customer_price_group_ids?: Array<string>;
1060
1236
  /**
1061
- * Customer type group ID.
1237
+ * ID of the account group of type `type_group` that categorizes this customer (for
1238
+ * example "Distributors").
1062
1239
  */
1063
1240
  customer_type_group_id?: string;
1064
1241
  /**
1065
- * Default carrier ID.
1242
+ * ID of the default carrier for this customer's shipments.
1066
1243
  */
1067
1244
  default_carrier_id?: string;
1068
1245
  /**
@@ -1070,7 +1247,7 @@ export interface UpdateCustomerRequest {
1070
1247
  */
1071
1248
  default_payment_term_id?: string;
1072
1249
  /**
1073
- * Default priority code.
1250
+ * Priority applied to new orders for this customer.
1074
1251
  */
1075
1252
  default_priority?: 'low' | 'normal' | 'high';
1076
1253
  /**
@@ -1078,7 +1255,7 @@ export interface UpdateCustomerRequest {
1078
1255
  */
1079
1256
  default_sales_rep_id?: string | null;
1080
1257
  /**
1081
- * Default service level ID.
1258
+ * ID of the default carrier service level.
1082
1259
  */
1083
1260
  default_service_level_id?: string | null;
1084
1261
  /**
@@ -1086,59 +1263,218 @@ export interface UpdateCustomerRequest {
1086
1263
  */
1087
1264
  default_shipping_term_id?: string;
1088
1265
  /**
1089
- * EDI status.
1266
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
1267
+ * documents with this customer.
1090
1268
  */
1091
1269
  edi_status?: 'enabled' | 'disabled';
1092
1270
  /**
1093
- * Email address. Send null to clear.
1271
+ * Email address.
1094
1272
  */
1095
1273
  email?: string | null;
1096
1274
  /**
1097
- * Freight policy.
1275
+ * Whether this customer is billed for freight on their orders.
1276
+ *
1277
+ * - `free_freight`: the customer is not billed for freight.
1278
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
1279
+ * order.
1098
1280
  */
1099
1281
  freight_policy?: 'free_freight' | 'billed_freight';
1100
1282
  /**
1101
- * Customer name.
1283
+ * The customer's business name, as shown throughout the app and on documents.
1102
1284
  */
1103
1285
  name?: string;
1104
1286
  /**
1105
- * Note.
1287
+ * Free-form note about the customer.
1106
1288
  */
1107
1289
  note?: string | null;
1108
1290
  /**
1109
- * Customer number.
1291
+ * Human-readable customer number used to identify the account, distinct from the
1292
+ * `id`.
1293
+ *
1294
+ * Must be unique within your account.
1110
1295
  */
1111
1296
  number?: string;
1112
1297
  /**
1113
- * Phone number. Send null to clear.
1298
+ * Phone number.
1114
1299
  */
1115
1300
  phone?: string | null;
1116
1301
  /**
1117
- * Ship-to address ID.
1302
+ * ID of an existing address to use as the default shipping address.
1118
1303
  */
1119
1304
  ship_to_address_id?: string | null;
1120
1305
  /**
1121
- * Account status code.
1306
+ * Account status code, controlling whether the customer can transact.
1307
+ *
1308
+ * - `normal`: standard active account with no restrictions.
1309
+ * - `preferred`: active account flagged as preferred.
1310
+ * - `hold_shipment`: orders can be placed, but shipments are held.
1311
+ * - `hold_all`: all activity is on hold.
1122
1312
  */
1123
1313
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1124
1314
  /**
1125
- * Website URL. Send null to clear.
1315
+ * Website URL.
1126
1316
  */
1127
1317
  url?: string | null;
1128
1318
  }
1319
+ /**
1320
+ * A user's global profile, shared across every account they belong to.
1321
+ *
1322
+ * Account-specific settings (status, role, department) live on the account user
1323
+ * resource that links the user to each account.
1324
+ */
1325
+ export interface User {
1326
+ /**
1327
+ * User ID.
1328
+ */
1329
+ id: string;
1330
+ /**
1331
+ * Creation timestamp.
1332
+ */
1333
+ created_at: string;
1334
+ /**
1335
+ * Email address.
1336
+ */
1337
+ email: string | null;
1338
+ /**
1339
+ * When the user verified their email address.
1340
+ */
1341
+ email_verified_at: string | null;
1342
+ /**
1343
+ * URL of the user's profile image.
1344
+ */
1345
+ image_url: string | null;
1346
+ /**
1347
+ * User's full display name.
1348
+ */
1349
+ name: string | null;
1350
+ /**
1351
+ * Resource type identifier.
1352
+ */
1353
+ object: 'user';
1354
+ /**
1355
+ * Last updated timestamp.
1356
+ */
1357
+ updated_at: string;
1358
+ /**
1359
+ * Username.
1360
+ */
1361
+ username: string | null;
1362
+ }
1129
1363
  export interface CustomerDeleteResponse {
1130
1364
  }
1365
+ export interface CustomerListParams {
1366
+ /**
1367
+ * Filter by default carrier IDs.
1368
+ */
1369
+ carrier_ids?: Array<string>;
1370
+ /**
1371
+ * Filter to customers with any address in this city (exact match).
1372
+ *
1373
+ * When combined with `state` or `postal_code`, a single address must match all
1374
+ * provided values.
1375
+ */
1376
+ city?: string;
1377
+ /**
1378
+ * Filter by commission policy.
1379
+ */
1380
+ commission_status_codes?: Array<'commission_applied' | 'commission_exempt'>;
1381
+ /**
1382
+ * Opaque cursor token identifying where the page of results starts.
1383
+ *
1384
+ * Use the `cursor` value embedded in a previous response's `next_page_url` or
1385
+ * `previous_page_url` to fetch the adjacent page. Omit to start from the first
1386
+ * page.
1387
+ */
1388
+ cursor?: string;
1389
+ /**
1390
+ * Filter by customer type group IDs (the account group of type `type_group`
1391
+ * returned in the customer's `type` field).
1392
+ */
1393
+ customer_group_ids?: Array<string>;
1394
+ /**
1395
+ * Filter to customers created at or before this timestamp (inclusive).
1396
+ */
1397
+ end_date?: string;
1398
+ /**
1399
+ * Filter by freight policy.
1400
+ */
1401
+ freight_status_codes?: Array<'free_freight' | 'billed_freight'>;
1402
+ /**
1403
+ * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1404
+ * `null`.
1405
+ */
1406
+ include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.sales_rep.user' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
1407
+ /**
1408
+ * Maximum number of results to return in a single page.
1409
+ */
1410
+ limit?: number;
1411
+ /**
1412
+ * Filter by whether the customer has child accounts.
1413
+ */
1414
+ parent_account_status?: 'parent' | 'non_parent';
1415
+ /**
1416
+ * Filter by default payment term IDs.
1417
+ */
1418
+ payment_term_ids?: Array<string>;
1419
+ /**
1420
+ * Filter to customers with any address in this postal code (exact match).
1421
+ */
1422
+ postal_code?: string;
1423
+ /**
1424
+ * Filter to customers that belong to any of these pricing groups.
1425
+ */
1426
+ pricing_group_ids?: Array<string>;
1427
+ /**
1428
+ * Free-text search term used to filter results.
1429
+ *
1430
+ * Which fields are matched against the term varies by endpoint.
1431
+ */
1432
+ q?: string;
1433
+ /**
1434
+ * Filter by default sales rep IDs.
1435
+ */
1436
+ sales_rep_ids?: Array<string>;
1437
+ /**
1438
+ * Filter by default service level IDs.
1439
+ */
1440
+ service_level_ids?: Array<string>;
1441
+ /**
1442
+ * Filter by default shipping term IDs.
1443
+ */
1444
+ shipping_term_ids?: Array<string>;
1445
+ /**
1446
+ * Filter to customers created at or after this timestamp (inclusive).
1447
+ */
1448
+ start_date?: string;
1449
+ /**
1450
+ * Filter to customers with any address in this state (exact match).
1451
+ */
1452
+ state?: string;
1453
+ /**
1454
+ * Filter by account status codes.
1455
+ */
1456
+ status_codes?: Array<'normal' | 'preferred' | 'hold_shipment' | 'hold_all'>;
1457
+ }
1458
+ export interface CustomerRetrieveParams {
1459
+ /**
1460
+ * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1461
+ * `null`.
1462
+ */
1463
+ include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.sales_rep.user' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
1464
+ }
1131
1465
  export interface CustomerCreateParams {
1132
1466
  /**
1133
- * Body param: Request to create an address.
1467
+ * Body param: Address details used to create an address, either directly or inline
1468
+ * on another resource.
1134
1469
  */
1135
1470
  bill_to_address: AddressesAPI.AddressInput;
1136
1471
  /**
1137
- * Body param: Customer type group ID.
1472
+ * Body param: ID of the account group of type `type_group` that categorizes this
1473
+ * customer (for example "Distributors").
1138
1474
  */
1139
1475
  customer_type_group_id: string;
1140
1476
  /**
1141
- * Body param: Default carrier ID.
1477
+ * Body param: ID of the default carrier for this customer's shipments.
1142
1478
  */
1143
1479
  default_carrier_id: string;
1144
1480
  /**
@@ -1150,41 +1486,51 @@ export interface CustomerCreateParams {
1150
1486
  */
1151
1487
  default_shipping_term_id: string;
1152
1488
  /**
1153
- * Body param: Display name.
1489
+ * Body param: The customer's business name, as shown throughout the app and on
1490
+ * documents.
1154
1491
  */
1155
1492
  name: string;
1156
1493
  /**
1157
- * Body param: Request to create an address.
1494
+ * Body param: Address details used to create an address, either directly or inline
1495
+ * on another resource.
1158
1496
  */
1159
1497
  ship_to_address: AddressesAPI.AddressInput;
1160
1498
  /**
1161
1499
  * Query param: Sub-objects to expand in the response. When omitted, sub-objects
1162
1500
  * are returned as `null`.
1163
1501
  */
1164
- include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
1502
+ include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.sales_rep.user' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
1165
1503
  /**
1166
- * Body param: Carrier billing account number.
1504
+ * Body param: Carrier billing account number charged when `carrier_billing_type`
1505
+ * is `third_party`.
1167
1506
  */
1168
1507
  carrier_billing_account?: string;
1169
1508
  /**
1170
- * Body param: Carrier billing type.
1509
+ * Body param: Who pays the carrier for shipments.
1510
+ *
1511
+ * - `sender`: the shipper (you) pays the carrier.
1512
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
1171
1513
  */
1172
1514
  carrier_billing_type?: 'sender' | 'third_party';
1173
1515
  /**
1174
- * Body param: Commission policy.
1516
+ * Body param: How sales commission applies to this customer's orders.
1517
+ *
1518
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
1519
+ * - `commission_applied`: sales commission is calculated on this customer's
1520
+ * orders.
1175
1521
  */
1176
1522
  commission_policy?: 'commission_applied' | 'commission_exempt';
1177
1523
  /**
1178
- * Body param: QuantityInput represents a value with an associated unit for
1179
- * create/update requests.
1524
+ * Body param: A value with an associated unit, used in create and update requests.
1180
1525
  */
1181
1526
  credit_limit?: QuantityInput;
1182
1527
  /**
1183
- * Body param: Price group IDs.
1528
+ * Body param: IDs of the account groups of type `pricing_group` to assign to this
1529
+ * customer, used to apply pricing rules.
1184
1530
  */
1185
1531
  customer_price_group_ids?: Array<string>;
1186
1532
  /**
1187
- * Body param: Default priority code.
1533
+ * Body param: Priority applied to new orders for this customer.
1188
1534
  */
1189
1535
  default_priority?: 'low' | 'normal' | 'high';
1190
1536
  /**
@@ -1192,11 +1538,12 @@ export interface CustomerCreateParams {
1192
1538
  */
1193
1539
  default_sales_rep_id?: string;
1194
1540
  /**
1195
- * Body param: Default service level ID.
1541
+ * Body param: ID of the default carrier service level.
1196
1542
  */
1197
1543
  default_service_level_id?: string;
1198
1544
  /**
1199
- * Body param: EDI status.
1545
+ * Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
1546
+ * orders and documents with this customer.
1200
1547
  */
1201
1548
  edi_status?: 'enabled' | 'disabled';
1202
1549
  /**
@@ -1204,15 +1551,23 @@ export interface CustomerCreateParams {
1204
1551
  */
1205
1552
  email?: string;
1206
1553
  /**
1207
- * Body param: Freight policy.
1554
+ * Body param: Whether this customer is billed for freight on their orders.
1555
+ *
1556
+ * - `free_freight`: the customer is not billed for freight.
1557
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
1558
+ * order.
1208
1559
  */
1209
1560
  freight_policy?: 'free_freight' | 'billed_freight';
1210
1561
  /**
1211
- * Body param: Note.
1562
+ * Body param: Free-form note about the customer.
1212
1563
  */
1213
1564
  note?: string;
1214
1565
  /**
1215
- * Body param: Customer number. Auto-generated if omitted.
1566
+ * Body param: Human-readable customer number used to identify the account,
1567
+ * distinct from the `id`.
1568
+ *
1569
+ * Must be unique within your account. If omitted, the next sequential number is
1570
+ * assigned automatically.
1216
1571
  */
1217
1572
  number?: string;
1218
1573
  /**
@@ -1220,7 +1575,12 @@ export interface CustomerCreateParams {
1220
1575
  */
1221
1576
  phone?: string;
1222
1577
  /**
1223
- * Body param: Account status code.
1578
+ * Body param: Account status code, controlling whether the customer can transact.
1579
+ *
1580
+ * - `normal`: standard active account with no restrictions.
1581
+ * - `preferred`: active account flagged as preferred.
1582
+ * - `hold_shipment`: orders can be placed, but shipments are held.
1583
+ * - `hold_all`: all activity is on hold.
1224
1584
  */
1225
1585
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1226
1586
  /**
@@ -1228,50 +1588,54 @@ export interface CustomerCreateParams {
1228
1588
  */
1229
1589
  url?: string;
1230
1590
  }
1231
- export interface CustomerRetrieveParams {
1232
- /**
1233
- * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1234
- * `null`.
1235
- */
1236
- include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
1237
- }
1238
1591
  export interface CustomerUpdateParams {
1239
1592
  /**
1240
1593
  * Query param: Sub-objects to expand in the response. When omitted, sub-objects
1241
1594
  * are returned as `null`.
1242
1595
  */
1243
- include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
1596
+ include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.sales_rep.user' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
1244
1597
  /**
1245
- * Body param: Bill-to address ID.
1598
+ * Body param: ID of an existing address to use as the default billing address.
1246
1599
  */
1247
1600
  bill_to_address_id?: string | null;
1248
1601
  /**
1249
- * Body param: Carrier billing account number.
1602
+ * Body param: Carrier billing account number charged when `carrier_billing_type`
1603
+ * is `third_party`.
1250
1604
  */
1251
1605
  carrier_billing_account?: string | null;
1252
1606
  /**
1253
- * Body param: Carrier billing type.
1607
+ * Body param: Who pays the carrier for shipments.
1608
+ *
1609
+ * - `sender`: the shipper (you) pays the carrier.
1610
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
1254
1611
  */
1255
1612
  carrier_billing_type?: 'sender' | 'third_party';
1256
1613
  /**
1257
- * Body param: Commission policy.
1614
+ * Body param: How sales commission applies to this customer's orders.
1615
+ *
1616
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
1617
+ * - `commission_applied`: sales commission is calculated on this customer's
1618
+ * orders.
1258
1619
  */
1259
1620
  commission_policy?: 'commission_applied' | 'commission_exempt';
1260
1621
  /**
1261
- * Body param: QuantityInput represents a value with an associated unit for
1262
- * create/update requests.
1622
+ * Body param: A value with an associated unit, used in create and update requests.
1263
1623
  */
1264
1624
  credit_limit?: QuantityInput | null;
1265
1625
  /**
1266
- * Body param: Price group IDs. Replaces all existing price groups when provided.
1626
+ * Body param: IDs of the account groups of type `pricing_group` to assign to this
1627
+ * customer, used to apply pricing rules.
1628
+ *
1629
+ * When provided, replaces the customer's full set of existing price groups.
1267
1630
  */
1268
1631
  customer_price_group_ids?: Array<string>;
1269
1632
  /**
1270
- * Body param: Customer type group ID.
1633
+ * Body param: ID of the account group of type `type_group` that categorizes this
1634
+ * customer (for example "Distributors").
1271
1635
  */
1272
1636
  customer_type_group_id?: string;
1273
1637
  /**
1274
- * Body param: Default carrier ID.
1638
+ * Body param: ID of the default carrier for this customer's shipments.
1275
1639
  */
1276
1640
  default_carrier_id?: string;
1277
1641
  /**
@@ -1279,7 +1643,7 @@ export interface CustomerUpdateParams {
1279
1643
  */
1280
1644
  default_payment_term_id?: string;
1281
1645
  /**
1282
- * Body param: Default priority code.
1646
+ * Body param: Priority applied to new orders for this customer.
1283
1647
  */
1284
1648
  default_priority?: 'low' | 'normal' | 'high';
1285
1649
  /**
@@ -1287,7 +1651,7 @@ export interface CustomerUpdateParams {
1287
1651
  */
1288
1652
  default_sales_rep_id?: string | null;
1289
1653
  /**
1290
- * Body param: Default service level ID.
1654
+ * Body param: ID of the default carrier service level.
1291
1655
  */
1292
1656
  default_service_level_id?: string | null;
1293
1657
  /**
@@ -1295,131 +1659,62 @@ export interface CustomerUpdateParams {
1295
1659
  */
1296
1660
  default_shipping_term_id?: string;
1297
1661
  /**
1298
- * Body param: EDI status.
1662
+ * Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
1663
+ * orders and documents with this customer.
1299
1664
  */
1300
1665
  edi_status?: 'enabled' | 'disabled';
1301
1666
  /**
1302
- * Body param: Email address. Send null to clear.
1667
+ * Body param: Email address.
1303
1668
  */
1304
1669
  email?: string | null;
1305
1670
  /**
1306
- * Body param: Freight policy.
1671
+ * Body param: Whether this customer is billed for freight on their orders.
1672
+ *
1673
+ * - `free_freight`: the customer is not billed for freight.
1674
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
1675
+ * order.
1307
1676
  */
1308
1677
  freight_policy?: 'free_freight' | 'billed_freight';
1309
1678
  /**
1310
- * Body param: Customer name.
1679
+ * Body param: The customer's business name, as shown throughout the app and on
1680
+ * documents.
1311
1681
  */
1312
1682
  name?: string;
1313
1683
  /**
1314
- * Body param: Note.
1684
+ * Body param: Free-form note about the customer.
1315
1685
  */
1316
1686
  note?: string | null;
1317
1687
  /**
1318
- * Body param: Customer number.
1688
+ * Body param: Human-readable customer number used to identify the account,
1689
+ * distinct from the `id`.
1690
+ *
1691
+ * Must be unique within your account.
1319
1692
  */
1320
1693
  number?: string;
1321
1694
  /**
1322
- * Body param: Phone number. Send null to clear.
1695
+ * Body param: Phone number.
1323
1696
  */
1324
1697
  phone?: string | null;
1325
1698
  /**
1326
- * Body param: Ship-to address ID.
1699
+ * Body param: ID of an existing address to use as the default shipping address.
1327
1700
  */
1328
1701
  ship_to_address_id?: string | null;
1329
1702
  /**
1330
- * Body param: Account status code.
1703
+ * Body param: Account status code, controlling whether the customer can transact.
1704
+ *
1705
+ * - `normal`: standard active account with no restrictions.
1706
+ * - `preferred`: active account flagged as preferred.
1707
+ * - `hold_shipment`: orders can be placed, but shipments are held.
1708
+ * - `hold_all`: all activity is on hold.
1331
1709
  */
1332
1710
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1333
1711
  /**
1334
- * Body param: Website URL. Send null to clear.
1712
+ * Body param: Website URL.
1335
1713
  */
1336
1714
  url?: string | null;
1337
1715
  }
1338
- export interface CustomerListParams {
1339
- /**
1340
- * Filter by carrier IDs.
1341
- */
1342
- carrier_ids?: Array<string>;
1343
- /**
1344
- * Filter by city.
1345
- */
1346
- city?: string;
1347
- /**
1348
- * Filter by commission status codes.
1349
- */
1350
- commission_status_codes?: Array<'commission_applied' | 'commission_exempt'>;
1351
- /**
1352
- * Cursor token used to retrieve the next or previous page of results.
1353
- */
1354
- cursor?: string;
1355
- /**
1356
- * Filter by customer group IDs.
1357
- */
1358
- customer_group_ids?: Array<string>;
1359
- /**
1360
- * Filter by end date (created before).
1361
- */
1362
- end_date?: string;
1363
- /**
1364
- * Filter by freight status codes.
1365
- */
1366
- freight_status_codes?: Array<'free_freight' | 'billed_freight'>;
1367
- /**
1368
- * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1369
- * `null`.
1370
- */
1371
- include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
1372
- /**
1373
- * Maximum number of results per page (default: 100, max: 1000).
1374
- */
1375
- limit?: number;
1376
- /**
1377
- * Filter by whether the customer has child accounts.
1378
- */
1379
- parent_account_status?: 'parent' | 'non_parent';
1380
- /**
1381
- * Filter by payment term IDs.
1382
- */
1383
- payment_term_ids?: Array<string>;
1384
- /**
1385
- * Filter by postal code.
1386
- */
1387
- postal_code?: string;
1388
- /**
1389
- * Filter by pricing group IDs.
1390
- */
1391
- pricing_group_ids?: Array<string>;
1392
- /**
1393
- * Search query used to filter results.
1394
- */
1395
- q?: string;
1396
- /**
1397
- * Filter by sales rep IDs.
1398
- */
1399
- sales_rep_ids?: Array<string>;
1400
- /**
1401
- * Filter by service level IDs.
1402
- */
1403
- service_level_ids?: Array<string>;
1404
- /**
1405
- * Filter by shipping term IDs.
1406
- */
1407
- shipping_term_ids?: Array<string>;
1408
- /**
1409
- * Filter by start date (created after).
1410
- */
1411
- start_date?: string;
1412
- /**
1413
- * Filter by state.
1414
- */
1415
- state?: string;
1416
- /**
1417
- * Filter by status codes.
1418
- */
1419
- status_codes?: Array<'normal' | 'preferred' | 'hold_shipment' | 'hold_all'>;
1420
- }
1421
1716
  export declare namespace Customers {
1422
- export { type AccountUser as AccountUser, type Carrier as Carrier, type Consumption as Consumption, type CreateCustomerRequest as CreateCustomerRequest, type Customer as Customer, type CustomerContactInfo as CustomerContactInfo, type CustomerDefaults as CustomerDefaults, type CustomerFreightPreferences as CustomerFreightPreferences, type CustomerNotificationPreferences as CustomerNotificationPreferences, type Department as Department, type ListConsumption as ListConsumption, type ListCustomer as ListCustomer, type ListLocation as ListLocation, type ListMachine as ListMachine, type ListProductionStep as ListProductionStep, type ListScanningStation as ListScanningStation, type ListServiceLevel as ListServiceLevel, type Location as Location, type Machine as Machine, type PaymentTerm as PaymentTerm, type ProductionOutput as ProductionOutput, type ProductionStep as ProductionStep, type QuantityInput as QuantityInput, type ScanningStation as ScanningStation, type ServiceLevel as ServiceLevel, type ShippingTerm as ShippingTerm, type UpdateCustomerRequest as UpdateCustomerRequest, type CustomerDeleteResponse as CustomerDeleteResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, };
1717
+ export { type AccountUser as AccountUser, type Carrier as Carrier, type Consumption as Consumption, type CreateCustomerRequest as CreateCustomerRequest, type Customer as Customer, type CustomerContactInfo as CustomerContactInfo, type CustomerDefaults as CustomerDefaults, type CustomerFreightPreferences as CustomerFreightPreferences, type CustomerNotificationPreferences as CustomerNotificationPreferences, type Department as Department, type ListConsumption as ListConsumption, type ListCustomer as ListCustomer, type ListLocation as ListLocation, type ListMachine as ListMachine, type ListProductionStep as ListProductionStep, type ListScanningStation as ListScanningStation, type ListServiceLevel as ListServiceLevel, type Location as Location, type LocationTypeCode as LocationTypeCode, type Machine as Machine, type PaymentTerm as PaymentTerm, type ProductionOutput as ProductionOutput, type ProductionStep as ProductionStep, type QuantityInput as QuantityInput, type ScanningStation as ScanningStation, type ServiceLevel as ServiceLevel, type ShippingTerm as ShippingTerm, type UpdateCustomerRequest as UpdateCustomerRequest, type User as User, type CustomerDeleteResponse as CustomerDeleteResponse, type CustomerListParams as CustomerListParams, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, };
1423
1718
  export { Actions as Actions, type MergeCustomersRequest as MergeCustomersRequest, type ActionMergeParams as ActionMergeParams, };
1424
1719
  }
1425
1720
  //# sourceMappingURL=customers.d.ts.map