@endora-commerce/contracts 0.110.0 → 0.111.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 (347) hide show
  1. package/dist/accept-language.d.ts +31 -0
  2. package/dist/accept-language.js +64 -0
  3. package/dist/admin-actions.d.ts +2 -0
  4. package/dist/admin-actions.js +18 -0
  5. package/dist/admin-contributions.d.ts +37 -5
  6. package/dist/admin-contributions.js +9 -2
  7. package/dist/admin-roles.d.ts +9 -0
  8. package/dist/admin.d.ts +37 -0
  9. package/dist/admin.js +19 -0
  10. package/dist/api-keys.d.ts +22 -0
  11. package/dist/api-keys.js +4 -0
  12. package/dist/assets-library.d.ts +19 -0
  13. package/dist/assets-library.js +14 -0
  14. package/dist/auth.d.ts +9 -0
  15. package/dist/auth.js +9 -0
  16. package/dist/carts.d.ts +30 -1
  17. package/dist/carts.js +20 -5
  18. package/dist/catalog.d.ts +61 -22
  19. package/dist/catalog.js +32 -6
  20. package/dist/cms.d.ts +33 -3
  21. package/dist/cms.js +15 -0
  22. package/dist/command-hooks.d.ts +301 -0
  23. package/dist/command-hooks.js +248 -0
  24. package/dist/comparisons.d.ts +14 -14
  25. package/dist/credit-limits.d.ts +21 -0
  26. package/dist/credit-limits.js +21 -0
  27. package/dist/crm.d.ts +81 -55
  28. package/dist/crm.js +15 -5
  29. package/dist/custom-fields.d.ts +403 -49
  30. package/dist/custom-fields.js +127 -0
  31. package/dist/customer-accounts.d.ts +138 -0
  32. package/dist/customer-accounts.js +4 -0
  33. package/dist/customer-notifications.d.ts +143 -0
  34. package/dist/customer-notifications.js +41 -0
  35. package/dist/customers.d.ts +52 -0
  36. package/dist/customers.js +53 -0
  37. package/dist/dictionary.d.ts +53 -0
  38. package/dist/dictionary.js +25 -0
  39. package/dist/document-templates.d.ts +4 -4
  40. package/dist/email.d.ts +34 -0
  41. package/dist/email.js +6 -0
  42. package/dist/errors.d.ts +312 -2
  43. package/dist/errors.js +377 -2
  44. package/dist/forms.d.ts +88 -88
  45. package/dist/i18n.d.ts +34 -0
  46. package/dist/i18n.js +15 -0
  47. package/dist/index.d.ts +7 -1
  48. package/dist/index.js +12 -1
  49. package/dist/invoice-ledger.d.ts +6 -6
  50. package/dist/invoices.d.ts +126 -0
  51. package/dist/invoices.js +49 -0
  52. package/dist/line-bounds.d.ts +53 -0
  53. package/dist/line-bounds.js +65 -0
  54. package/dist/megamenu.d.ts +27 -27
  55. package/dist/mfa.d.ts +86 -0
  56. package/dist/mfa.js +90 -0
  57. package/dist/modules.d.ts +21 -5
  58. package/dist/modules.js +60 -3
  59. package/dist/orders.d.ts +141 -0
  60. package/dist/orders.js +80 -3
  61. package/dist/organization-hooks.d.ts +99 -0
  62. package/dist/organization-hooks.js +22 -0
  63. package/dist/organization-registry-lookup.d.ts +5 -5
  64. package/dist/organization-roles.d.ts +1 -0
  65. package/dist/organization-roles.js +7 -0
  66. package/dist/organizations.d.ts +954 -17
  67. package/dist/organizations.js +229 -8
  68. package/dist/price-books.d.ts +173 -25
  69. package/dist/price-books.js +41 -0
  70. package/dist/price-lists.d.ts +5 -2
  71. package/dist/product-feeds.d.ts +157 -8
  72. package/dist/product-feeds.js +41 -2
  73. package/dist/product-scopes.d.ts +17 -0
  74. package/dist/product-scopes.js +31 -5
  75. package/dist/projects.d.ts +61 -28
  76. package/dist/projects.js +47 -9
  77. package/dist/promotions.d.ts +157 -5
  78. package/dist/promotions.js +23 -1
  79. package/dist/pwa.d.ts +39 -0
  80. package/dist/quick-order.d.ts +9 -3
  81. package/dist/quick-order.js +4 -3
  82. package/dist/quote-requests.d.ts +168 -5
  83. package/dist/quote-requests.js +69 -8
  84. package/dist/record-references.d.ts +15 -15
  85. package/dist/returns.d.ts +6 -0
  86. package/dist/returns.js +4 -2
  87. package/dist/sales-channels.d.ts +34 -3
  88. package/dist/sales-channels.js +16 -1
  89. package/dist/schema-extensions.d.ts +36 -0
  90. package/dist/schema-extensions.js +29 -0
  91. package/dist/seo.d.ts +2 -2
  92. package/dist/settings.d.ts +44 -2
  93. package/dist/settings.js +17 -2
  94. package/dist/shopping-lists.d.ts +39 -1
  95. package/dist/shopping-lists.js +37 -3
  96. package/dist/storefront-cache-tags.d.ts +10 -0
  97. package/dist/tasks.d.ts +21 -21
  98. package/dist/taxes.d.ts +27 -0
  99. package/dist/taxes.js +4 -0
  100. package/dist/transactional-emails.d.ts +39 -13
  101. package/dist/webhooks.d.ts +75 -0
  102. package/dist/webhooks.js +24 -0
  103. package/package.json +4 -2
  104. package/dist/actor.d.ts.map +0 -1
  105. package/dist/actor.js.map +0 -1
  106. package/dist/addresses.d.ts.map +0 -1
  107. package/dist/addresses.js.map +0 -1
  108. package/dist/admin-actions.d.ts.map +0 -1
  109. package/dist/admin-actions.js.map +0 -1
  110. package/dist/admin-contributions.d.ts.map +0 -1
  111. package/dist/admin-contributions.js.map +0 -1
  112. package/dist/admin-feedback.d.ts.map +0 -1
  113. package/dist/admin-feedback.js.map +0 -1
  114. package/dist/admin-i18n.d.ts.map +0 -1
  115. package/dist/admin-i18n.js.map +0 -1
  116. package/dist/admin-name.d.ts.map +0 -1
  117. package/dist/admin-name.js.map +0 -1
  118. package/dist/admin-notifications.d.ts.map +0 -1
  119. package/dist/admin-notifications.js.map +0 -1
  120. package/dist/admin-preferences.d.ts.map +0 -1
  121. package/dist/admin-preferences.js.map +0 -1
  122. package/dist/admin-roles.d.ts.map +0 -1
  123. package/dist/admin-roles.js.map +0 -1
  124. package/dist/admin-search.d.ts.map +0 -1
  125. package/dist/admin-search.js.map +0 -1
  126. package/dist/admin-users.d.ts.map +0 -1
  127. package/dist/admin-users.js.map +0 -1
  128. package/dist/admin.d.ts.map +0 -1
  129. package/dist/admin.js.map +0 -1
  130. package/dist/analytics.d.ts.map +0 -1
  131. package/dist/analytics.js.map +0 -1
  132. package/dist/api-keys.d.ts.map +0 -1
  133. package/dist/api-keys.js.map +0 -1
  134. package/dist/assets-library.d.ts.map +0 -1
  135. package/dist/assets-library.js.map +0 -1
  136. package/dist/audit-logs.d.ts.map +0 -1
  137. package/dist/audit-logs.js.map +0 -1
  138. package/dist/auth.d.ts.map +0 -1
  139. package/dist/auth.js.map +0 -1
  140. package/dist/blog.d.ts.map +0 -1
  141. package/dist/blog.js.map +0 -1
  142. package/dist/capabilities.d.ts.map +0 -1
  143. package/dist/capabilities.js.map +0 -1
  144. package/dist/carts.d.ts.map +0 -1
  145. package/dist/carts.js.map +0 -1
  146. package/dist/catalog.d.ts.map +0 -1
  147. package/dist/catalog.js.map +0 -1
  148. package/dist/cms-brand.d.ts.map +0 -1
  149. package/dist/cms-brand.js.map +0 -1
  150. package/dist/cms-contact-form.d.ts.map +0 -1
  151. package/dist/cms-contact-form.js.map +0 -1
  152. package/dist/cms.d.ts.map +0 -1
  153. package/dist/cms.js.map +0 -1
  154. package/dist/common.d.ts.map +0 -1
  155. package/dist/common.js.map +0 -1
  156. package/dist/comparisons.d.ts.map +0 -1
  157. package/dist/comparisons.js.map +0 -1
  158. package/dist/credentials.d.ts.map +0 -1
  159. package/dist/credentials.js.map +0 -1
  160. package/dist/credit-limits.d.ts.map +0 -1
  161. package/dist/credit-limits.js.map +0 -1
  162. package/dist/crm-rich-text.d.ts.map +0 -1
  163. package/dist/crm-rich-text.js.map +0 -1
  164. package/dist/crm.d.ts.map +0 -1
  165. package/dist/crm.js.map +0 -1
  166. package/dist/currencies.d.ts.map +0 -1
  167. package/dist/currencies.js.map +0 -1
  168. package/dist/custom-fields.d.ts.map +0 -1
  169. package/dist/custom-fields.js.map +0 -1
  170. package/dist/customer-accounts.d.ts.map +0 -1
  171. package/dist/customer-accounts.js.map +0 -1
  172. package/dist/customers.d.ts.map +0 -1
  173. package/dist/customers.js.map +0 -1
  174. package/dist/dictionary.d.ts.map +0 -1
  175. package/dist/dictionary.js.map +0 -1
  176. package/dist/document-templates.d.ts.map +0 -1
  177. package/dist/document-templates.js.map +0 -1
  178. package/dist/document-values.d.ts.map +0 -1
  179. package/dist/document-values.js.map +0 -1
  180. package/dist/email-address.d.ts.map +0 -1
  181. package/dist/email-address.js.map +0 -1
  182. package/dist/email.d.ts.map +0 -1
  183. package/dist/email.js.map +0 -1
  184. package/dist/envelopes.d.ts.map +0 -1
  185. package/dist/envelopes.js.map +0 -1
  186. package/dist/environment-inputs.d.ts.map +0 -1
  187. package/dist/environment-inputs.js.map +0 -1
  188. package/dist/erp-connector.d.ts.map +0 -1
  189. package/dist/erp-connector.js.map +0 -1
  190. package/dist/errors.d.ts.map +0 -1
  191. package/dist/errors.js.map +0 -1
  192. package/dist/forms-logic.d.ts.map +0 -1
  193. package/dist/forms-logic.fixtures.d.ts.map +0 -1
  194. package/dist/forms-logic.fixtures.js.map +0 -1
  195. package/dist/forms-logic.js.map +0 -1
  196. package/dist/forms.d.ts.map +0 -1
  197. package/dist/forms.js.map +0 -1
  198. package/dist/google-analytics.d.ts.map +0 -1
  199. package/dist/google-analytics.js.map +0 -1
  200. package/dist/google-tag-manager.d.ts.map +0 -1
  201. package/dist/google-tag-manager.js.map +0 -1
  202. package/dist/i18n.d.ts.map +0 -1
  203. package/dist/i18n.js.map +0 -1
  204. package/dist/import-export.d.ts.map +0 -1
  205. package/dist/import-export.js.map +0 -1
  206. package/dist/index.d.ts.map +0 -1
  207. package/dist/index.js.map +0 -1
  208. package/dist/inventory.d.ts.map +0 -1
  209. package/dist/inventory.js.map +0 -1
  210. package/dist/invoice-ledger.d.ts.map +0 -1
  211. package/dist/invoice-ledger.js.map +0 -1
  212. package/dist/invoices.d.ts.map +0 -1
  213. package/dist/invoices.js.map +0 -1
  214. package/dist/kernel.d.ts.map +0 -1
  215. package/dist/kernel.js.map +0 -1
  216. package/dist/languages.d.ts.map +0 -1
  217. package/dist/languages.js.map +0 -1
  218. package/dist/line-groups.d.ts.map +0 -1
  219. package/dist/line-groups.js.map +0 -1
  220. package/dist/linkedin-ads.d.ts.map +0 -1
  221. package/dist/linkedin-ads.js.map +0 -1
  222. package/dist/localized-name.d.ts.map +0 -1
  223. package/dist/localized-name.js.map +0 -1
  224. package/dist/megamenu.d.ts.map +0 -1
  225. package/dist/megamenu.js.map +0 -1
  226. package/dist/meta-ads.d.ts.map +0 -1
  227. package/dist/meta-ads.js.map +0 -1
  228. package/dist/mfa.d.ts.map +0 -1
  229. package/dist/mfa.js.map +0 -1
  230. package/dist/modules.d.ts.map +0 -1
  231. package/dist/modules.js.map +0 -1
  232. package/dist/money-decimal.d.ts.map +0 -1
  233. package/dist/money-decimal.js.map +0 -1
  234. package/dist/money-input.d.ts.map +0 -1
  235. package/dist/money-input.js.map +0 -1
  236. package/dist/newsletter.d.ts.map +0 -1
  237. package/dist/newsletter.js.map +0 -1
  238. package/dist/order-minimums.d.ts.map +0 -1
  239. package/dist/order-minimums.js.map +0 -1
  240. package/dist/orders.d.ts.map +0 -1
  241. package/dist/orders.js.map +0 -1
  242. package/dist/organization-registry-lookup.d.ts.map +0 -1
  243. package/dist/organization-registry-lookup.js.map +0 -1
  244. package/dist/organization-roles.d.ts.map +0 -1
  245. package/dist/organization-roles.js.map +0 -1
  246. package/dist/organizations.d.ts.map +0 -1
  247. package/dist/organizations.js.map +0 -1
  248. package/dist/page-builder-props.d.ts.map +0 -1
  249. package/dist/page-builder-props.js.map +0 -1
  250. package/dist/page-builder-values.d.ts.map +0 -1
  251. package/dist/page-builder-values.js.map +0 -1
  252. package/dist/pagination.d.ts.map +0 -1
  253. package/dist/pagination.js.map +0 -1
  254. package/dist/payment-methods.d.ts.map +0 -1
  255. package/dist/payment-methods.js.map +0 -1
  256. package/dist/payment-return-url.d.ts.map +0 -1
  257. package/dist/payment-return-url.js.map +0 -1
  258. package/dist/payments.d.ts.map +0 -1
  259. package/dist/payments.js.map +0 -1
  260. package/dist/pim-connector.d.ts.map +0 -1
  261. package/dist/pim-connector.js.map +0 -1
  262. package/dist/pim-field-path.d.ts.map +0 -1
  263. package/dist/pim-field-path.js.map +0 -1
  264. package/dist/pim-locale-mapping.d.ts.map +0 -1
  265. package/dist/pim-locale-mapping.js.map +0 -1
  266. package/dist/platform-info.d.ts.map +0 -1
  267. package/dist/platform-info.js.map +0 -1
  268. package/dist/platform-language.d.ts.map +0 -1
  269. package/dist/platform-language.js.map +0 -1
  270. package/dist/price-book-decimal.d.ts.map +0 -1
  271. package/dist/price-book-decimal.js.map +0 -1
  272. package/dist/price-books.d.ts.map +0 -1
  273. package/dist/price-books.js.map +0 -1
  274. package/dist/price-lists.d.ts.map +0 -1
  275. package/dist/price-lists.js.map +0 -1
  276. package/dist/product-feeds.d.ts.map +0 -1
  277. package/dist/product-feeds.js.map +0 -1
  278. package/dist/product-scope-model.d.ts.map +0 -1
  279. package/dist/product-scope-model.js.map +0 -1
  280. package/dist/product-scope-overrides.d.ts.map +0 -1
  281. package/dist/product-scope-overrides.js.map +0 -1
  282. package/dist/product-scoped-values.d.ts.map +0 -1
  283. package/dist/product-scoped-values.js.map +0 -1
  284. package/dist/product-scopes.d.ts.map +0 -1
  285. package/dist/product-scopes.js.map +0 -1
  286. package/dist/product-summary-text.d.ts.map +0 -1
  287. package/dist/product-summary-text.js.map +0 -1
  288. package/dist/product-tax-rates.d.ts.map +0 -1
  289. package/dist/product-tax-rates.js.map +0 -1
  290. package/dist/product-url-keys.d.ts.map +0 -1
  291. package/dist/product-url-keys.js.map +0 -1
  292. package/dist/product-value-resolver.d.ts.map +0 -1
  293. package/dist/product-value-resolver.js.map +0 -1
  294. package/dist/projects.d.ts.map +0 -1
  295. package/dist/projects.js.map +0 -1
  296. package/dist/promotions.d.ts.map +0 -1
  297. package/dist/promotions.js.map +0 -1
  298. package/dist/prompt-actions.d.ts.map +0 -1
  299. package/dist/prompt-actions.js.map +0 -1
  300. package/dist/pwa.d.ts.map +0 -1
  301. package/dist/pwa.js.map +0 -1
  302. package/dist/quick-order.d.ts.map +0 -1
  303. package/dist/quick-order.js.map +0 -1
  304. package/dist/quote-requests.d.ts.map +0 -1
  305. package/dist/quote-requests.js.map +0 -1
  306. package/dist/record-references.d.ts.map +0 -1
  307. package/dist/record-references.js.map +0 -1
  308. package/dist/record-rich-text.d.ts.map +0 -1
  309. package/dist/record-rich-text.js.map +0 -1
  310. package/dist/returns.d.ts.map +0 -1
  311. package/dist/returns.js.map +0 -1
  312. package/dist/sales-channels.d.ts.map +0 -1
  313. package/dist/sales-channels.js.map +0 -1
  314. package/dist/saved-list-views.d.ts.map +0 -1
  315. package/dist/saved-list-views.js.map +0 -1
  316. package/dist/scope-notice.d.ts.map +0 -1
  317. package/dist/scope-notice.js.map +0 -1
  318. package/dist/scoped-write-encoding.d.ts.map +0 -1
  319. package/dist/scoped-write-encoding.js.map +0 -1
  320. package/dist/search.d.ts.map +0 -1
  321. package/dist/search.js.map +0 -1
  322. package/dist/seo.d.ts.map +0 -1
  323. package/dist/seo.js.map +0 -1
  324. package/dist/settings.d.ts.map +0 -1
  325. package/dist/settings.js.map +0 -1
  326. package/dist/shipments.d.ts.map +0 -1
  327. package/dist/shipments.js.map +0 -1
  328. package/dist/shipping-methods.d.ts.map +0 -1
  329. package/dist/shipping-methods.js.map +0 -1
  330. package/dist/shopping-lists.d.ts.map +0 -1
  331. package/dist/shopping-lists.js.map +0 -1
  332. package/dist/storefront-cache-tags.d.ts.map +0 -1
  333. package/dist/storefront-cache-tags.js.map +0 -1
  334. package/dist/storefront-language-path.d.ts.map +0 -1
  335. package/dist/storefront-language-path.js.map +0 -1
  336. package/dist/storefront-value-overrides.d.ts.map +0 -1
  337. package/dist/storefront-value-overrides.js.map +0 -1
  338. package/dist/tasks.d.ts.map +0 -1
  339. package/dist/tasks.js.map +0 -1
  340. package/dist/taxes.d.ts.map +0 -1
  341. package/dist/taxes.js.map +0 -1
  342. package/dist/text-normalization.d.ts.map +0 -1
  343. package/dist/text-normalization.js.map +0 -1
  344. package/dist/transactional-emails.d.ts.map +0 -1
  345. package/dist/transactional-emails.js.map +0 -1
  346. package/dist/webhooks.d.ts.map +0 -1
  347. package/dist/webhooks.js.map +0 -1
package/dist/errors.d.ts CHANGED
@@ -15,6 +15,7 @@ export declare const ERROR_CODES: {
15
15
  readonly VERSION_CONFLICT: "VERSION_CONFLICT";
16
16
  readonly AMOUNT_PRECISION_EXCEEDED: "AMOUNT_PRECISION_EXCEEDED";
17
17
  readonly UNIT_PRICE_PRECISION_EXCEEDED: "UNIT_PRICE_PRECISION_EXCEEDED";
18
+ readonly LINE_QUANTITY_EXCEEDED: "LINE_QUANTITY_EXCEEDED";
18
19
  readonly FILTER_NOT_ALLOWED: "FILTER_NOT_ALLOWED";
19
20
  readonly PRODUCT_NOT_FOUND: "PRODUCT_NOT_FOUND";
20
21
  readonly PRICE_ORDERING_UNAVAILABLE: "PRICE_ORDERING_UNAVAILABLE";
@@ -58,6 +59,11 @@ export declare const ERROR_CODES: {
58
59
  readonly IMPORT_PROFILE_REQUIRED: "IMPORT_PROFILE_REQUIRED";
59
60
  readonly IMPORT_PROFILE_NOT_FOUND: "IMPORT_PROFILE_NOT_FOUND";
60
61
  readonly IMPORT_PROFILE_NAME_TAKEN: "IMPORT_PROFILE_NAME_TAKEN";
62
+ /**
63
+ * 405 — the entity is export-only, so its adapter accepts no import
64
+ * (`details.entity`). Raised as `VALIDATION_FAILED` until issue #644 (#86).
65
+ */
66
+ readonly IMPORT_NOT_SUPPORTED: "IMPORT_NOT_SUPPORTED";
61
67
  readonly SELF_LINK_NOT_ALLOWED: "SELF_LINK_NOT_ALLOWED";
62
68
  readonly LINK_ALREADY_EXISTS: "LINK_ALREADY_EXISTS";
63
69
  readonly TARGET_PRODUCT_NOT_FOUND: "TARGET_PRODUCT_NOT_FOUND";
@@ -72,6 +78,52 @@ export declare const ERROR_CODES: {
72
78
  readonly MIN_NOT_MET: "MIN_NOT_MET";
73
79
  readonly MAX_EXCEEDED: "MAX_EXCEEDED";
74
80
  readonly UNKNOWN_OPTION: "UNKNOWN_OPTION";
81
+ /** 409 — another attribute already has this key (`details.attributeKey`). */
82
+ readonly ATTRIBUTE_KEY_TAKEN: "ATTRIBUTE_KEY_TAKEN";
83
+ /**
84
+ * 409 — the value type cannot change while products hold values (`details.attributeKey`);
85
+ * token `page_builder` — never to or from Page Builder content (issue #1218).
86
+ */
87
+ readonly ATTRIBUTE_VALUE_TYPE_LOCKED: "ATTRIBUTE_VALUE_TYPE_LOCKED";
88
+ /**
89
+ * 409 — the attribute is still in use, so it is not deleted: token `attribute_sets`
90
+ * (`details.attributeSetCount`) or `products` (`details.productCount`), with `attributeKey`.
91
+ */
92
+ readonly ATTRIBUTE_IN_USE: "ATTRIBUTE_IN_USE";
93
+ /** 409 — the attribute already has an option with this value (`details.attributeKey`, `value`). */
94
+ readonly ATTRIBUTE_OPTION_VALUE_TAKEN: "ATTRIBUTE_OPTION_VALUE_TAKEN";
95
+ /** 409 — a second default option where one is allowed (`details.attributeKey`, `value`). */
96
+ readonly ATTRIBUTE_DEFAULT_OPTION_TAKEN: "ATTRIBUTE_DEFAULT_OPTION_TAKEN";
97
+ /** 400 — the attribute's type takes no options (`details.attributeKey`, `valueType`). */
98
+ readonly ATTRIBUTE_OPTIONS_NOT_SUPPORTED: "ATTRIBUTE_OPTIONS_NOT_SUPPORTED";
99
+ /**
100
+ * 409 — products carry the option, so it is not deleted (`details.attributeKey`, `value`;
101
+ * token `products` with `productCount`).
102
+ */
103
+ readonly ATTRIBUTE_OPTION_IN_USE: "ATTRIBUTE_OPTION_IN_USE";
104
+ /** 400 — the attribute's stored type cannot be shown as a slider (`details.attributeKey`, `valueType`). */
105
+ readonly ATTRIBUTE_SLIDER_NOT_SUPPORTED: "ATTRIBUTE_SLIDER_NOT_SUPPORTED";
106
+ /** 400 — the product's attribute set requires values it lacks (`details.attributeKeys`, joined). */
107
+ readonly ATTRIBUTE_VALUES_REQUIRED: "ATTRIBUTE_VALUES_REQUIRED";
108
+ /**
109
+ * 422 — the product's type takes no minimum order quantity (`details.field`
110
+ * `minOrderQuantity`, `productType`; per channel also `channelId`).
111
+ */
112
+ readonly MIN_ORDER_QUANTITY_NOT_SUPPORTED_FOR_TYPE: "MIN_ORDER_QUANTITY_NOT_SUPPORTED_FOR_TYPE";
113
+ /** 409 — a sibling category already has this slug (`details.slug`, `parentCategoryId`). */
114
+ readonly CATEGORY_SLUG_TAKEN: "CATEGORY_SLUG_TAKEN";
115
+ /** 409 — the category still has subcategories, so it is not deleted (`details.categoryId`, `childCount`). */
116
+ readonly CATEGORY_HAS_CHILDREN: "CATEGORY_HAS_CHILDREN";
117
+ /** 409 — a category is moved beneath its own descendant (`details.categoryId`, `parentCategoryId`). */
118
+ readonly CATEGORY_MOVE_CYCLE: "CATEGORY_MOVE_CYCLE";
119
+ /** 409 — the child is already in the group (`details.parentProductId`, `childProductId`, `childSku`). */
120
+ readonly GROUPED_ITEM_ALREADY_EXISTS: "GROUPED_ITEM_ALREADY_EXISTS";
121
+ /**
122
+ * 400 — a stored Page Builder content attribute is patched to switch on a capability it
123
+ * holds off (`details.attributeKey`, `capabilities` joined). Issue #1218 (#86); on create
124
+ * the same rule judges the request and stays `VALIDATION_FAILED`.
125
+ */
126
+ readonly CONTENT_ATTRIBUTE_CAPABILITY_LOCKED: "CONTENT_ATTRIBUTE_CAPABILITY_LOCKED";
75
127
  readonly RFQ_NOT_DRAFT: "RFQ_NOT_DRAFT";
76
128
  readonly RFQ_EMPTY: "RFQ_EMPTY";
77
129
  readonly RFQ_NOT_QUOTED: "RFQ_NOT_QUOTED";
@@ -82,6 +134,12 @@ export declare const ERROR_CODES: {
82
134
  readonly RFQ_PRICE_PROPOSAL_NOT_ALLOWED: "RFQ_PRICE_PROPOSAL_NOT_ALLOWED";
83
135
  readonly RFQ_SAVED_VIEW_NAME_TAKEN: "RFQ_SAVED_VIEW_NAME_TAKEN";
84
136
  readonly RFQ_SALES_CHANNEL_NOT_ALLOWED: "RFQ_SALES_CHANNEL_NOT_ALLOWED";
137
+ /**
138
+ * 422 — one-click buy is not available to the buyer. `details.code` is the
139
+ * eligibility reason (`setting_disabled`, `missing_defaults`), repeated as
140
+ * `details.reason`.
141
+ */
142
+ readonly ONE_CLICK_UNAVAILABLE: "ONE_CLICK_UNAVAILABLE";
85
143
  readonly QUOTE_INCOMPLETE: "QUOTE_INCOMPLETE";
86
144
  readonly QUOTE_VALIDITY_ENDED: "QUOTE_VALIDITY_ENDED";
87
145
  /** The quote PDF is larger than an e-mail may carry; `details.maxBytes` names the limit. */
@@ -96,6 +154,10 @@ export declare const ERROR_CODES: {
96
154
  readonly SHOPPING_LIST_CANNOT_DELETE_DEFAULT: "SHOPPING_LIST_CANNOT_DELETE_DEFAULT";
97
155
  readonly SHOPPING_LIST_CANNOT_DELETE_LAST: "SHOPPING_LIST_CANNOT_DELETE_LAST";
98
156
  readonly ORGANIZATION_TAX_ID_EXISTS: "ORGANIZATION_TAX_ID_EXISTS";
157
+ readonly ORGANIZATION_TAX_ID_SCOPE_DUPLICATES: "ORGANIZATION_TAX_ID_SCOPE_DUPLICATES";
158
+ readonly ORGANIZATION_CONVERSION_REFUSED: "ORGANIZATION_CONVERSION_REFUSED";
159
+ readonly ORGANIZATION_TAX_ID_CHANGE_REFUSED: "ORGANIZATION_TAX_ID_CHANGE_REFUSED";
160
+ readonly ORGANIZATION_WRITE_CONTENDED: "ORGANIZATION_WRITE_CONTENDED";
99
161
  readonly ORGANIZATION_HAS_CHILDREN: "ORGANIZATION_HAS_CHILDREN";
100
162
  readonly ORGANIZATION_TREE_INVALID: "ORGANIZATION_TREE_INVALID";
101
163
  readonly ORGANIZATION_PERMISSION_REQUIRED: "ORGANIZATION_PERMISSION_REQUIRED";
@@ -132,6 +194,12 @@ export declare const ERROR_CODES: {
132
194
  readonly CUSTOMER_NOT_DELETED: "CUSTOMER_NOT_DELETED";
133
195
  readonly CUSTOMER_RESTORE_WINDOW_ELAPSED: "CUSTOMER_RESTORE_WINDOW_ELAPSED";
134
196
  readonly ORG_OWNER_DEPLETION: "ORG_OWNER_DEPLETION";
197
+ /**
198
+ * Issue #652 (D-292): `PATCH /api/v1/me/customer/preferred-language` names a
199
+ * language the request's sales channel does not offer (422). Owned by
200
+ * `customers`.
201
+ */
202
+ readonly PREFERRED_LANGUAGE_NOT_OFFERED: "PREFERRED_LANGUAGE_NOT_OFFERED";
135
203
  readonly CART_EMPTY: "CART_EMPTY";
136
204
  readonly CART_LINE_CAP_EXCEEDED: "CART_LINE_CAP_EXCEEDED";
137
205
  readonly CART_COUPON_REJECTED: "CART_COUPON_REJECTED";
@@ -167,6 +235,21 @@ export declare const ERROR_CODES: {
167
235
  readonly CART_ALREADY_TERMINAL: "CART_ALREADY_TERMINAL";
168
236
  readonly STOCK_UNAVAILABLE: "STOCK_UNAVAILABLE";
169
237
  readonly PROMOTION_INVALID: "PROMOTION_INVALID";
238
+ /**
239
+ * 409 — a promotion's usage limit was reached between the cart and placement
240
+ * (`details.promotionId`; with a coupon, token `with_coupon` and `couponCode`).
241
+ */
242
+ readonly PROMOTION_USAGE_LIMIT_REACHED: "PROMOTION_USAGE_LIMIT_REACHED";
243
+ /** 409 — another coupon already has this code (`details.couponCode`). */
244
+ readonly PROMOTION_COUPON_CODE_TAKEN: "PROMOTION_COUPON_CODE_TAKEN";
245
+ /** 400 — the length and format hold fewer unique codes than asked for (`details.requested`, `generated`). */
246
+ readonly PROMOTION_COUPON_SPACE_EXHAUSTED: "PROMOTION_COUPON_SPACE_EXHAUSTED";
247
+ /** 409 — another named promotion rule already has this name (`details.name`). */
248
+ readonly PROMOTION_RULE_NAME_TAKEN: "PROMOTION_RULE_NAME_TAKEN";
249
+ /** 409 — a named rule promotions use is not deleted (`details.ruleId`, `promotionCount`). */
250
+ readonly PROMOTION_RULE_IN_USE: "PROMOTION_RULE_IN_USE";
251
+ /** 400 — a criterion names an attribute not flagged usable in promotion rules (`details.attributeKey`). */
252
+ readonly PROMOTION_ATTRIBUTE_NOT_ELIGIBLE: "PROMOTION_ATTRIBUTE_NOT_ELIGIBLE";
170
253
  readonly ORGANIZATION_SUSPENDED: "ORGANIZATION_SUSPENDED";
171
254
  readonly ORDER_NOT_FOUND: "ORDER_NOT_FOUND";
172
255
  readonly ORDER_NOT_CANCELLABLE: "ORDER_NOT_CANCELLABLE";
@@ -185,6 +268,25 @@ export declare const ERROR_CODES: {
185
268
  readonly ORDER_COMMENTS_CLOSED: "ORDER_COMMENTS_CLOSED";
186
269
  /** The order has no lines, so there is nothing to copy into a quote request. */
187
270
  readonly ORDER_CLONE_NO_LINES: "ORDER_CLONE_NO_LINES";
271
+ /** 409 — another order status already has this code (`details.statusCode`). */
272
+ readonly ORDER_STATUS_CODE_TAKEN: "ORDER_STATUS_CODE_TAKEN";
273
+ /**
274
+ * 409 / 422 — a terminal status cannot have outgoing transitions: marking a
275
+ * status with them terminal (token `mark_terminal`, `details.outgoingCount`) or
276
+ * adding one from a terminal status (token `add_transition`, `details.toStatusCode`).
277
+ */
278
+ readonly ORDER_STATUS_TERMINAL_HAS_TRANSITIONS: "ORDER_STATUS_TERMINAL_HAS_TRANSITIONS";
279
+ /** 409 — the initial (token `initial`) or a system (token `system`) status is not deleted. */
280
+ readonly ORDER_STATUS_NOT_DELETABLE: "ORDER_STATUS_NOT_DELETABLE";
281
+ /** 409 — orders are in the status, so it is not deleted (`details.statusCode`, `orderCount`). */
282
+ readonly ORDER_STATUS_IN_USE: "ORDER_STATUS_IN_USE";
283
+ /**
284
+ * 422 — the external API intake refused one or more lines; `details` stays the
285
+ * per-line array of `{ path, issue, sku }` (`SKU_NOT_IN_ASSORTMENT`, `PRICE_UNAVAILABLE`).
286
+ */
287
+ readonly ORDER_INTAKE_LINES_REFUSED: "ORDER_INTAKE_LINES_REFUSED";
288
+ /** 409 — another intake for the same API key holds its lock; retry with the same Idempotency-Key. */
289
+ readonly ORDER_INTAKE_BUSY: "ORDER_INTAKE_BUSY";
188
290
  /** 422 — the basket handed to placement belongs to another sales channel (feature 154). */
189
291
  readonly ORDER_SALES_CHANNEL_MISMATCH: "ORDER_SALES_CHANNEL_MISMATCH";
190
292
  /**
@@ -207,10 +309,75 @@ export declare const ERROR_CODES: {
207
309
  readonly INVOICE_NUMBER_PATTERN_COLLIDES: "INVOICE_NUMBER_PATTERN_COLLIDES";
208
310
  readonly INVOICE_NUMBER_ALREADY_ISSUED: "INVOICE_NUMBER_ALREADY_ISSUED";
209
311
  readonly INVOICE_ORDER_REFUNDED: "INVOICE_ORDER_REFUNDED";
312
+ /** 422 — the seller's VAT number and company data are not configured (`details.setting`). */
313
+ readonly INVOICE_SELLER_DATA_MISSING: "INVOICE_SELLER_DATA_MISSING";
314
+ /**
315
+ * 422 — a correction asked for in another currency than the corrected
316
+ * invoice's (`details.requestedCurrency`, `invoiceCurrency`, `originalInvoiceId`).
317
+ */
318
+ readonly INVOICE_CORRECTION_CURRENCY_MISMATCH: "INVOICE_CORRECTION_CURRENCY_MISMATCH";
319
+ /**
320
+ * 400 — the correction total is more than its lines add up to, or (token
321
+ * `below_charges`) less than the charges it credits (`details.total`,
322
+ * `linesTotal`, `currency`).
323
+ */
324
+ readonly INVOICE_CORRECTION_TOTAL_EXCEEDS_LINES: "INVOICE_CORRECTION_TOTAL_EXCEEDS_LINES";
325
+ /**
326
+ * 422 — the correction credits more goods at one VAT rate than the invoice
327
+ * still charges there (`details.taxRate`, `vatRatePercent`, `remaining`, `currency`).
328
+ */
329
+ readonly INVOICE_CORRECTION_EXCEEDS_RATE_REMAINING: "INVOICE_CORRECTION_EXCEEDS_RATE_REMAINING";
330
+ /**
331
+ * 422 — the correction credits more of an order charge than the invoice still
332
+ * charges for it; the token is the charge, `delivery` or `payment_surcharge`
333
+ * (`details.chargeKind`, `remaining`, `currency`).
334
+ */
335
+ readonly INVOICE_CORRECTION_EXCEEDS_CHARGE_REMAINING: "INVOICE_CORRECTION_EXCEEDS_CHARGE_REMAINING";
210
336
  readonly INVALID_TRANSITION: "INVALID_TRANSITION";
211
337
  readonly RETURN_LINE_NOT_RETURNABLE: "RETURN_LINE_NOT_RETURNABLE";
212
338
  readonly RETURN_SAVED_VIEW_NAME_TAKEN: "RETURN_SAVED_VIEW_NAME_TAKEN";
339
+ /**
340
+ * 409 — the shipment, or the order's latest one, was already generated
341
+ * successfully. `details.code` names the refused write: `generate`
342
+ * (`details.orderId`, `shipmentId`) or `mark_failed` (`details.shipmentId`,
343
+ * `orderId`, `status`).
344
+ */
345
+ readonly SHIPMENT_ALREADY_GENERATED: "SHIPMENT_ALREADY_GENERATED";
213
346
  readonly RETURN_ALTERNATIVE_RESOLUTION_CONSENT_REQUIRED: "RETURN_ALTERNATIVE_RESOLUTION_CONSENT_REQUIRED";
347
+ /** 422 — the order is not completed yet, so it takes no return (`details.orderId`). */
348
+ readonly RETURN_ORDER_NOT_ELIGIBLE: "RETURN_ORDER_NOT_ELIGIBLE";
349
+ /** 422 — more is asked for than the line can still return (`details.orderItemId`, `requested`, `remaining`). */
350
+ readonly RETURN_QUANTITY_EXCEEDS_RETURNABLE: "RETURN_QUANTITY_EXCEEDS_RETURNABLE";
351
+ /** 422 — the chosen reason exists but is switched off (`details.reasonId`); an unknown one stays `VALIDATION_FAILED`. */
352
+ readonly RETURN_REASON_INACTIVE: "RETURN_REASON_INACTIVE";
353
+ /** 409 — the case is in a terminal status, so it takes no more comments (`details.returnCaseId`, `statusCode`). */
354
+ readonly RETURN_COMMENTS_CLOSED: "RETURN_COMMENTS_CLOSED";
355
+ /** 409 — the case is in a terminal status, so it takes no delivery method (`details.returnCaseId`, `statusCode`). */
356
+ readonly RETURN_CASE_CLOSED: "RETURN_CASE_CLOSED";
357
+ /** 422 — the return delivery method is not offered (`details.returnDeliveryMethodId`). */
358
+ readonly RETURN_DELIVERY_METHOD_UNAVAILABLE: "RETURN_DELIVERY_METHOD_UNAVAILABLE";
359
+ /** 409 — another return of the order is being settled; retryable (`details.orderId`). */
360
+ readonly RETURN_SETTLEMENT_IN_PROGRESS: "RETURN_SETTLEMENT_IN_PROGRESS";
361
+ /**
362
+ * 422 — a refund above what may be refunded, for a line (`details.returnCaseItemId`)
363
+ * or a charge (token `delivery` / `surcharge`); `requested`, `maximum` as
364
+ * two-decimal strings and `currency`.
365
+ */
366
+ readonly RETURN_REFUND_EXCEEDS_PAID: "RETURN_REFUND_EXCEEDS_PAID";
367
+ /** 502 — the payment gateway refused the refund (`details.settlementState`, `failureReason`, `providerDetails`). */
368
+ readonly RETURN_REFUND_GATEWAY_FAILED: "RETURN_REFUND_GATEWAY_FAILED";
369
+ /** 409 — another return status already has this code (`details.statusCode`). */
370
+ readonly RETURN_STATUS_CODE_TAKEN: "RETURN_STATUS_CODE_TAKEN";
371
+ /**
372
+ * 409 / 422 — a terminal status cannot have outgoing transitions: marking a
373
+ * status with them terminal (token `mark_terminal`, `details.outgoingCount`) or
374
+ * adding one from a terminal status (token `add_transition`, `details.toStatusCode`).
375
+ */
376
+ readonly RETURN_STATUS_TERMINAL_HAS_TRANSITIONS: "RETURN_STATUS_TERMINAL_HAS_TRANSITIONS";
377
+ /** 409 — the initial status (token `initial`) is not deleted (`details.statusCode`). */
378
+ readonly RETURN_STATUS_NOT_DELETABLE: "RETURN_STATUS_NOT_DELETABLE";
379
+ /** 409 — cases are in the status, so it is not deleted (`details.statusCode`, `caseCount`). */
380
+ readonly RETURN_STATUS_IN_USE: "RETURN_STATUS_IN_USE";
214
381
  readonly CREDIT_LIMIT_NOT_GRANTED: "CREDIT_LIMIT_NOT_GRANTED";
215
382
  readonly CREDIT_LIMIT_ALREADY_GRANTED: "CREDIT_LIMIT_ALREADY_GRANTED";
216
383
  readonly LIMIT_INSUFFICIENT: "LIMIT_INSUFFICIENT";
@@ -219,6 +386,24 @@ export declare const ERROR_CODES: {
219
386
  readonly ACTIVE_RESERVATIONS_EXIST: "ACTIVE_RESERVATIONS_EXIST";
220
387
  readonly ALREADY_SUBSCRIBED: "ALREADY_SUBSCRIBED";
221
388
  readonly PRODUCT_IN_STOCK: "PRODUCT_IN_STOCK";
389
+ /** 422 — an active automation cannot be edited; pause it first (`details.automationId`, `status`). */
390
+ readonly NEWSLETTER_AUTOMATION_ACTIVE: "NEWSLETTER_AUTOMATION_ACTIVE";
391
+ /** 422 — only a draft or scheduled campaign can be edited (`details.campaignId`, `status`). */
392
+ readonly NEWSLETTER_CAMPAIGN_NOT_EDITABLE: "NEWSLETTER_CAMPAIGN_NOT_EDITABLE";
393
+ /** 422 — only a draft or scheduled campaign can be cancelled (`details.campaignId`, `status`). */
394
+ readonly NEWSLETTER_CAMPAIGN_NOT_CANCELLABLE: "NEWSLETTER_CAMPAIGN_NOT_CANCELLABLE";
395
+ /** 422 — a campaign cannot be sent while no sending provider is configured. */
396
+ readonly NEWSLETTER_PROVIDER_NOT_CONFIGURED: "NEWSLETTER_PROVIDER_NOT_CONFIGURED";
397
+ /** 409 — a custom field with this key already exists (`details.key`). */
398
+ readonly NEWSLETTER_CUSTOM_FIELD_KEY_TAKEN: "NEWSLETTER_CUSTOM_FIELD_KEY_TAKEN";
399
+ /** 409 — an email block with this code already exists (`details.blockCode`). */
400
+ readonly NEWSLETTER_EMAIL_BLOCK_CODE_TAKEN: "NEWSLETTER_EMAIL_BLOCK_CODE_TAKEN";
401
+ /** 422 — a system email block cannot be deleted (`details.blockId`, `blockCode`). */
402
+ readonly NEWSLETTER_EMAIL_BLOCK_SYSTEM: "NEWSLETTER_EMAIL_BLOCK_SYSTEM";
403
+ /** 409 — a tag with this code already exists (`details.tagCode`). */
404
+ readonly NEWSLETTER_TAG_CODE_TAKEN: "NEWSLETTER_TAG_CODE_TAKEN";
405
+ /** 409 — a campaign or an automation uses the tag, so it cannot be deleted (`details.tagId`, `tagCode`). */
406
+ readonly NEWSLETTER_TAG_IN_USE: "NEWSLETTER_TAG_IN_USE";
222
407
  readonly API_KEY_OUT_OF_SCOPE: "API_KEY_OUT_OF_SCOPE";
223
408
  /** An administrator asked for an API key scope their own role does not hold. */
224
409
  readonly API_KEY_SCOPE_NOT_HELD: "API_KEY_SCOPE_NOT_HELD";
@@ -230,6 +415,14 @@ export declare const ERROR_CODES: {
230
415
  readonly WEBHOOK_EVENT_TYPE_NOT_DELIVERABLE: "WEBHOOK_EVENT_TYPE_NOT_DELIVERABLE";
231
416
  readonly API_KEY_NOT_BOUND: "API_KEY_NOT_BOUND";
232
417
  readonly API_KEY_CHANNEL_MISMATCH: "API_KEY_CHANNEL_MISMATCH";
418
+ /**
419
+ * 422 — the bound key's service account exists in the bound organization but
420
+ * is blocked (token `blocked`) or deleted / anonymized (token `removed`)
421
+ * (`details.field`, `customerAccountId`, `organizationId`). Raised only when
422
+ * it is the sole binding problem; otherwise the aggregate `VALIDATION_FAILED`
423
+ * lists it (issue #644, #86).
424
+ */
425
+ readonly API_KEY_SERVICE_ACCOUNT_INACTIVE: "API_KEY_SERVICE_ACCOUNT_INACTIVE";
233
426
  readonly IDEMPOTENCY_KEY_REQUIRED: "IDEMPOTENCY_KEY_REQUIRED";
234
427
  readonly IDEMPOTENCY_KEY_REUSED: "IDEMPOTENCY_KEY_REUSED";
235
428
  readonly SKU_NOT_IN_ASSORTMENT: "SKU_NOT_IN_ASSORTMENT";
@@ -345,7 +538,6 @@ export declare const ERROR_CODES: {
345
538
  readonly ASSET_LEGACY_LOCATOR_CANNOT_HARDEN: "ASSET_LEGACY_LOCATOR_CANNOT_HARDEN";
346
539
  readonly ASSET_FILE_MISSING: "ASSET_FILE_MISSING";
347
540
  readonly ASSET_GONE: "ASSET_GONE";
348
- readonly ASSET_ACCESS_DENIED: "ASSET_ACCESS_DENIED";
349
541
  readonly ASSET_REPLACE_KIND_MISMATCH: "ASSET_REPLACE_KIND_MISMATCH";
350
542
  readonly ASSET_LEGACY_CANNOT_REPLACE: "ASSET_LEGACY_CANNOT_REPLACE";
351
543
  readonly ASSET_REPLACE_CONFLICT: "ASSET_REPLACE_CONFLICT";
@@ -382,6 +574,12 @@ export declare const ERROR_CODES: {
382
574
  readonly MEGAMENU_LANGUAGE_NOT_IN_CHANNEL_SCOPE: "MEGAMENU_LANGUAGE_NOT_IN_CHANNEL_SCOPE";
383
575
  readonly MEGAMENU_TARGET_OUT_OF_SCOPE: "MEGAMENU_TARGET_OUT_OF_SCOPE";
384
576
  readonly MEGAMENU_ASSET_KIND_MISMATCH: "MEGAMENU_ASSET_KIND_MISMATCH";
577
+ /**
578
+ * 400 — a free-URL asset item: importing an asset from a URL is not supported
579
+ * yet, so the asset is uploaded to the Assets Library and referenced by id
580
+ * (`details.itemId`). `VALIDATION_FAILED` until issue #640 (#86).
581
+ */
582
+ readonly MEGAMENU_ASSET_URL_UNSUPPORTED: "MEGAMENU_ASSET_URL_UNSUPPORTED";
385
583
  readonly MEGAMENU_REFERENCED: "MEGAMENU_REFERENCED";
386
584
  readonly MEGAMENU_DEPTH_EXCEEDED: "MEGAMENU_DEPTH_EXCEEDED";
387
585
  readonly MEGAMENU_KIND_NOT_ALLOWED_AS_TAB: "MEGAMENU_KIND_NOT_ALLOWED_AS_TAB";
@@ -423,7 +621,16 @@ export declare const ERROR_CODES: {
423
621
  readonly DICTIONARY_FALLBACK_CYCLE: "DICTIONARY_FALLBACK_CYCLE";
424
622
  readonly DICTIONARY_CODE_IMMUTABLE: "DICTIONARY_CODE_IMMUTABLE";
425
623
  readonly DICTIONARY_TRANSLATION_LANGUAGE_INACTIVE: "DICTIONARY_TRANSLATION_LANGUAGE_INACTIVE";
624
+ /** 409 — an entry with this code already exists in the dictionary. */
625
+ readonly DICTIONARY_ENTRY_CODE_TAKEN: "DICTIONARY_ENTRY_CODE_TAKEN";
626
+ /** 409 — an inactive entry cannot be made the dictionary's default. */
627
+ readonly DICTIONARY_DEFAULT_ENTRY_INACTIVE: "DICTIONARY_DEFAULT_ENTRY_INACTIVE";
426
628
  readonly MODULE_DISABLED: "MODULE_DISABLED";
629
+ readonly COMMAND_EXTENSION_UNCLAIMED: "COMMAND_EXTENSION_UNCLAIMED";
630
+ readonly COMMAND_HOOK_CYCLE: "COMMAND_HOOK_CYCLE";
631
+ readonly COMMAND_HOOK_DATA_MISSING: "COMMAND_HOOK_DATA_MISSING";
632
+ /** A retry of a command outbox row that is not dead (176 P4): only a failed delivery can be retried. */
633
+ readonly COMMAND_OUTBOX_NOT_DEAD: "COMMAND_OUTBOX_NOT_DEAD";
427
634
  /** No manifest and no registry row answer to this module id. */
428
635
  readonly MODULE_NOT_FOUND: "MODULE_NOT_FOUND";
429
636
  /**
@@ -460,7 +667,14 @@ export declare const ERROR_CODES: {
460
667
  * same "there is nothing here to switch, ever", same carried reason.
461
668
  */
462
669
  readonly TRANSACTIONAL_EMAIL_NOT_DEACTIVATABLE: "TRANSACTIONAL_EMAIL_NOT_DEACTIVATABLE";
670
+ /** 409 — a system email block cannot be deleted (`details.blockId`, `blockCode`). */
671
+ readonly TRANSACTIONAL_EMAIL_SYSTEM_BLOCK: "TRANSACTIONAL_EMAIL_SYSTEM_BLOCK";
672
+ /** 409 — a system email template cannot be deleted (`details.templateId`, `templateCode`). */
673
+ readonly TRANSACTIONAL_EMAIL_SYSTEM_TEMPLATE: "TRANSACTIONAL_EMAIL_SYSTEM_TEMPLATE";
463
674
  readonly BULK_TOO_LARGE: "BULK_TOO_LARGE";
675
+ readonly BULK_OPERATION_RUNNING: "BULK_OPERATION_RUNNING";
676
+ readonly BULK_OPERATION_ALREADY_REVERTED: "BULK_OPERATION_ALREADY_REVERTED";
677
+ readonly BULK_OPERATION_NOT_REVERSIBLE: "BULK_OPERATION_NOT_REVERSIBLE";
464
678
  readonly ATTRIBUTE_NOT_MASS_EDITABLE: "ATTRIBUTE_NOT_MASS_EDITABLE";
465
679
  readonly SELECTION_TOO_LARGE: "SELECTION_TOO_LARGE";
466
680
  /**
@@ -491,6 +705,21 @@ export declare const ERROR_CODES: {
491
705
  readonly MFA_REAUTH_REQUIRED: "MFA_REAUTH_REQUIRED";
492
706
  readonly MFA_NOT_ENABLED: "MFA_NOT_ENABLED";
493
707
  readonly MFA_SOCIAL_LAST_CREDENTIAL: "MFA_SOCIAL_LAST_CREDENTIAL";
708
+ /**
709
+ * Issue #935 — removing the account's last second factor is refused while
710
+ * a requirement is in force: `mfa.admin.totp_enforced` or a role's
711
+ * `requiresTwoFactor` for an administrator, `mfa.storefront.totp_enforced`
712
+ * at the request's sales channel or the organization's policy for a
713
+ * customer. Raised by the self-service `POST …/mfa/disable`.
714
+ */
715
+ readonly MFA_LAST_FACTOR_REQUIRED: "MFA_LAST_FACTOR_REQUIRED";
716
+ /**
717
+ * Issue #1279 — the one answer of `POST /api/v1/auth/customer/oauth/exchange`
718
+ * for a hand-off code it will not redeem: unknown, expired, already used,
719
+ * presented with another browser's binding or on another sales channel, or
720
+ * withdrawn with the account's pending sign-ins.
721
+ */
722
+ readonly MFA_FEDERATED_HANDOFF_INVALID: "MFA_FEDERATED_HANDOFF_INVALID";
494
723
  readonly CUSTOM_FIELD_NOT_FOUND: "CUSTOM_FIELD_NOT_FOUND";
495
724
  readonly CUSTOM_FIELD_KEY_CONFLICT: "CUSTOM_FIELD_KEY_CONFLICT";
496
725
  readonly CUSTOM_FIELD_DEFINITION_INVALID: "CUSTOM_FIELD_DEFINITION_INVALID";
@@ -537,6 +766,19 @@ export declare const ERROR_CODES: {
537
766
  * from `PRODUCT_FEED_ERROR_CODES` (feature 067, FR-087, FR-095, FR-096).
538
767
  */
539
768
  readonly PRODUCT_FEED_TAXONOMY_CONFLICT: "PRODUCT_FEED_TAXONOMY_CONFLICT";
769
+ /**
770
+ * 400 — the language exists on the installation but is switched off
771
+ * (`details.field`, `languageCode`).
772
+ */
773
+ readonly PRODUCT_FEED_LANGUAGE_INACTIVE: "PRODUCT_FEED_LANGUAGE_INACTIVE";
774
+ /**
775
+ * 400 — the feed's sales channel does not offer the currency
776
+ * (`details.field`, `currencyCode`, `salesChannelId`, `allowed` as a
777
+ * comma-joined string).
778
+ */
779
+ readonly PRODUCT_FEED_CURRENCY_NOT_OFFERED: "PRODUCT_FEED_CURRENCY_NOT_OFFERED";
780
+ /** 400 — another feed already uses the slug (`details.field`, `slug`). */
781
+ readonly PRODUCT_FEED_SLUG_TAKEN: "PRODUCT_FEED_SLUG_TAKEN";
540
782
  /**
541
783
  * A price binding named a price list that does not exist. Named after the
542
784
  * resource rather than the module (admin-api.md § Price bindings): the caller
@@ -562,6 +804,17 @@ export declare const ERROR_CODES: {
562
804
  readonly PRICE_BOOK_ROW_LIMIT: "PRICE_BOOK_ROW_LIMIT";
563
805
  /** Feature 160 — the book changed since the version the write was made against; `details.currentVersion`. */
564
806
  readonly PRICE_BOOK_STALE: "PRICE_BOOK_STALE";
807
+ /** Issue #1028 — a base book's rows are base prices, written through `priceBookWritePort` or the base-price API. */
808
+ readonly PRICE_BOOK_BASE_BOOK: "PRICE_BOOK_BASE_BOOK";
809
+ /** Issue #1028 — an expired book prices nothing and takes no row write from another module. */
810
+ readonly PRICE_BOOK_EXPIRED: "PRICE_BOOK_EXPIRED";
811
+ /**
812
+ * 400 — a variant's percentage or amount adjustment would lose the product's own
813
+ * base price in that currency (`details.productId`, `currency`, `issues`).
814
+ */
815
+ readonly PRICE_BOOK_BASE_PRICE_REQUIRED: "PRICE_BOOK_BASE_PRICE_REQUIRED";
816
+ /** 400 — a base book is channel-independent and takes no channel set (`details.priceBookId`, `currency`). */
817
+ readonly PRICE_BOOK_BASE_HAS_NO_CHANNELS: "PRICE_BOOK_BASE_HAS_NO_CHANNELS";
565
818
  /** Feature 160 — the precedence is read-only until the change flow ships (FR-023). */
566
819
  readonly PRECEDENCE_CHANGE_UNAVAILABLE: "PRECEDENCE_CHANGE_UNAVAILABLE";
567
820
  /** Another PIM connector is operator-active; activation refused (FR-003). */
@@ -572,6 +825,24 @@ export declare const ERROR_CODES: {
572
825
  readonly INVOICE_LEDGER_CREDENTIALS_MISSING: "INVOICE_LEDGER_CREDENTIALS_MISSING";
573
826
  /** Delivery is succeeded or otherwise not eligible for operator retry. */
574
827
  readonly INVOICE_LEDGER_DELIVERY_NOT_RETRYABLE: "INVOICE_LEDGER_DELIVERY_NOT_RETRYABLE";
828
+ /**
829
+ * 400 — a routing write changes the stored numbering mode without
830
+ * `confirm: true` (`details.field: 'confirm'`, `from`, `to`). Raised as
831
+ * `VALIDATION_FAILED` until issue #644 (#86).
832
+ */
833
+ readonly INVOICE_LEDGER_NUMBERING_CHANGE_UNCONFIRMED: "INVOICE_LEDGER_NUMBERING_CHANGE_UNCONFIRMED";
834
+ /**
835
+ * 409 — shipments reference the method, so it cannot be deleted or rebound to
836
+ * another adapter (`details.deliveryMethodId`, `deliveryMethodCode`,
837
+ * `shipmentCount`; `adapter` for `change_adapter`).
838
+ */
839
+ readonly DELIVERY_METHOD_IN_USE: "DELIVERY_METHOD_IN_USE";
840
+ /**
841
+ * 409 — the `shipments` module is off, so nobody can count the shipments that
842
+ * may reference the method, and the delete or the adapter change is refused
843
+ * (`details.deliveryMethodId`, `module`).
844
+ */
845
+ readonly DELIVERY_METHOD_USAGE_UNKNOWN: "DELIVERY_METHOD_USAGE_UNKNOWN";
575
846
  /** Another ERP connector is operator-active; activation refused (FR-006). */
576
847
  readonly ERP_CONNECTOR_ALREADY_ACTIVE: "ERP_CONNECTOR_ALREADY_ACTIVE";
577
848
  /** The order owes nothing — already paid, deferred to credit, or refunded. */
@@ -586,6 +857,26 @@ export declare const ERROR_CODES: {
586
857
  * neither claimant.
587
858
  */
588
859
  readonly PAYMENT_ADAPTER_UNAVAILABLE: "PAYMENT_ADAPTER_UNAVAILABLE";
860
+ /**
861
+ * 409 — the payment is already paid: a retry (token `retry`) or the ingress
862
+ * marking it failed (token `mark_failed`); `details.orderId`, `paymentId`, `status`.
863
+ */
864
+ readonly PAYMENT_ALREADY_PAID: "PAYMENT_ALREADY_PAID";
865
+ /** 409 — the payment was refunded, so it cannot be retried (`details.orderId`, `paymentId`, `status`). */
866
+ readonly PAYMENT_REFUNDED: "PAYMENT_REFUNDED";
867
+ /** 409 — the order is settled out of band, so there is nothing to retry (`details.orderId`, `paymentId`). */
868
+ readonly PAYMENT_SETTLED_OUT_OF_BAND: "PAYMENT_SETTLED_OUT_OF_BAND";
869
+ /**
870
+ * 409 — payments reference the method, so it cannot be deleted
871
+ * (`details.paymentMethodId`, `paymentMethodCode`, `paymentCount`).
872
+ */
873
+ readonly PAYMENT_METHOD_IN_USE: "PAYMENT_METHOD_IN_USE";
874
+ /**
875
+ * 409 — the `payments` module is off, so nobody can count the payments that
876
+ * may reference the method, and the delete is refused
877
+ * (`details.paymentMethodId`, `module`).
878
+ */
879
+ readonly PAYMENT_METHOD_USAGE_UNKNOWN: "PAYMENT_METHOD_USAGE_UNKNOWN";
589
880
  /** The Opportunity does not exist, or belongs to an Organization the caller may not see. */
590
881
  readonly CRM_OPPORTUNITY_NOT_FOUND: "CRM_OPPORTUNITY_NOT_FOUND";
591
882
  /** The workflow has no transition between the two statuses. */
@@ -611,6 +902,12 @@ export declare const ERROR_CODES: {
611
902
  readonly CRM_ASSIGNEE_INVALID: "CRM_ASSIGNEE_INVALID";
612
903
  /** The uploaded file is larger than an Opportunity attachment may be. */
613
904
  readonly CRM_ATTACHMENT_TOO_LARGE: "CRM_ATTACHMENT_TOO_LARGE";
905
+ /**
906
+ * 422 — an attachment must be a private file of the library (`details.assetId`, `visibility`).
907
+ * `VALIDATION_FAILED` until issue #639 (#86); the twin of `projects`'
908
+ * `PROJECT_ATTACHMENT_NOT_PRIVATE` (issue #634).
909
+ */
910
+ readonly CRM_ATTACHMENT_NOT_PRIVATE: "CRM_ATTACHMENT_NOT_PRIVATE";
614
911
  /** Another CRM tag already has this name, whatever its case. */
615
912
  readonly CRM_TAG_NAME_TAKEN: "CRM_TAG_NAME_TAKEN";
616
913
  /** A message on an Opportunity cannot be edited or deleted once sent. */
@@ -643,7 +940,11 @@ export declare const ERROR_CODES: {
643
940
  readonly TASK_TAG_UNKNOWN: "TASK_TAG_UNKNOWN";
644
941
  /** A Task tag name already taken, case-insensitively (R-10). */
645
942
  readonly TASK_TAG_NAME_TAKEN: "TASK_TAG_NAME_TAKEN";
646
- /** A Task attachment refused: too large, or a document a browser would run (R-7). */
943
+ /**
944
+ * A Task attachment refused: too large, or a document a browser would run (R-7) — or, since
945
+ * issue #642, a library file that is not private (422, refusal token `not_private`,
946
+ * `details.assetId`, `visibility`).
947
+ */
647
948
  readonly TASK_ATTACHMENT_REFUSED: "TASK_ATTACHMENT_REFUSED";
648
949
  /** A saved Tasks list view name its owner already uses, case-insensitively (R-13). */
649
950
  readonly TASK_VIEW_NAME_TAKEN: "TASK_VIEW_NAME_TAKEN";
@@ -707,6 +1008,15 @@ export declare const ERROR_CODES: {
707
1008
  readonly PROJECT_MESSAGE_IMMUTABLE: "PROJECT_MESSAGE_IMMUTABLE";
708
1009
  /** The uploaded file is larger than an attachment of a Project may be; `details.maxMb` names the limit. */
709
1010
  readonly PROJECT_ATTACHMENT_TOO_LARGE: "PROJECT_ATTACHMENT_TOO_LARGE";
1011
+ /** 422 — the Project already has the most Stages it may have (`details.projectId`, `maximum`). */
1012
+ readonly PROJECT_STAGE_LIMIT: "PROJECT_STAGE_LIMIT";
1013
+ /**
1014
+ * 422 — an attachment must be a private file of the library (`details.assetId`, `visibility`).
1015
+ * `crm`'s twin is to be `CRM_ATTACHMENT_NOT_PRIVATE` (issue #639).
1016
+ */
1017
+ readonly PROJECT_ATTACHMENT_NOT_PRIVATE: "PROJECT_ATTACHMENT_NOT_PRIVATE";
1018
+ /** 422 — an archived Role is not added to a Template that does not hold it (`details.roleId`). */
1019
+ readonly PROJECT_TEMPLATE_ROLE_ARCHIVED: "PROJECT_TEMPLATE_ROLE_ARCHIVED";
710
1020
  /**
711
1021
  * The custom `robots.txt` instructions or additional `llms.txt` content being
712
1022
  * saved is larger than `CRAWLER_TEXT_MAX_BYTES`; `details.maxBytes` names the limit.