@endora-commerce/contracts 0.109.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.
- package/dist/accept-language.d.ts +31 -0
- package/dist/accept-language.js +64 -0
- package/dist/actor.d.ts +16 -0
- package/dist/addresses.d.ts +35 -0
- package/dist/addresses.js +8 -1
- package/dist/admin-actions.d.ts +2 -0
- package/dist/admin-actions.js +18 -0
- package/dist/admin-contributions.d.ts +99 -12
- package/dist/admin-contributions.js +36 -10
- package/dist/admin-roles.d.ts +17 -2
- package/dist/admin-users.d.ts +9 -0
- package/dist/admin.d.ts +114 -4
- package/dist/admin.js +98 -3
- package/dist/api-keys.d.ts +22 -0
- package/dist/api-keys.js +4 -0
- package/dist/assets-library.d.ts +45 -0
- package/dist/assets-library.js +20 -3
- package/dist/audit-logs.d.ts +12 -0
- package/dist/audit-logs.js +12 -0
- package/dist/auth.d.ts +9 -0
- package/dist/auth.js +9 -0
- package/dist/blog.d.ts +382 -22
- package/dist/blog.js +199 -17
- package/dist/carts.d.ts +423 -36
- package/dist/carts.js +150 -12
- package/dist/catalog.d.ts +379 -208
- package/dist/catalog.js +241 -163
- package/dist/cms-brand.d.ts +14 -14
- package/dist/cms.d.ts +71 -16
- package/dist/cms.js +15 -0
- package/dist/command-hooks.d.ts +301 -0
- package/dist/command-hooks.js +248 -0
- package/dist/common.d.ts +23 -6
- package/dist/common.js +25 -2
- package/dist/comparisons.d.ts +21 -14
- package/dist/comparisons.js +2 -1
- package/dist/credit-limits.d.ts +22 -0
- package/dist/credit-limits.js +35 -0
- package/dist/crm.d.ts +134 -78
- package/dist/crm.js +21 -5
- package/dist/custom-fields.d.ts +417 -49
- package/dist/custom-fields.js +142 -1
- package/dist/customer-accounts.d.ts +324 -22
- package/dist/customer-accounts.js +43 -0
- package/dist/customer-notifications.d.ts +143 -0
- package/dist/customer-notifications.js +41 -0
- package/dist/customers.d.ts +92 -73
- package/dist/customers.js +98 -10
- package/dist/dictionary.d.ts +53 -0
- package/dist/dictionary.js +25 -0
- package/dist/document-templates.d.ts +12 -12
- package/dist/email.d.ts +34 -0
- package/dist/email.js +6 -0
- package/dist/errors.d.ts +431 -3
- package/dist/errors.js +523 -3
- package/dist/forms-logic.d.ts +79 -0
- package/dist/forms-logic.fixtures.d.ts +52 -0
- package/dist/forms-logic.fixtures.js +610 -0
- package/dist/forms-logic.js +699 -0
- package/dist/forms.d.ts +9833 -0
- package/dist/forms.js +827 -0
- package/dist/i18n.d.ts +34 -0
- package/dist/i18n.js +15 -0
- package/dist/import-export.d.ts +180 -0
- package/dist/import-export.js +60 -0
- package/dist/index.d.ts +16 -1
- package/dist/index.js +30 -1
- package/dist/inventory.d.ts +9 -9
- package/dist/invoice-ledger.d.ts +13 -13
- package/dist/invoices.d.ts +126 -0
- package/dist/invoices.js +53 -0
- package/dist/line-bounds.d.ts +53 -0
- package/dist/line-bounds.js +65 -0
- package/dist/megamenu.d.ts +27 -27
- package/dist/mfa.d.ts +210 -4
- package/dist/mfa.js +136 -0
- package/dist/modules.d.ts +56 -8
- package/dist/modules.js +128 -3
- package/dist/money-decimal.d.ts +54 -0
- package/dist/money-decimal.js +95 -0
- package/dist/newsletter.d.ts +4 -4
- package/dist/orders.d.ts +246 -12
- package/dist/orders.js +140 -7
- package/dist/organization-hooks.d.ts +99 -0
- package/dist/organization-hooks.js +22 -0
- package/dist/organization-registry-lookup.d.ts +362 -0
- package/dist/organization-registry-lookup.js +196 -0
- package/dist/organization-roles.d.ts +341 -0
- package/dist/organization-roles.js +218 -0
- package/dist/organizations.d.ts +1074 -103
- package/dist/organizations.js +293 -28
- package/dist/page-builder-props.d.ts +56 -56
- package/dist/pim-connector.d.ts +7 -3
- package/dist/pim-connector.js +6 -2
- package/dist/pim-field-path.d.ts +5 -1
- package/dist/pim-field-path.js +37 -81
- package/dist/pim-locale-mapping.d.ts +131 -0
- package/dist/pim-locale-mapping.js +193 -0
- package/dist/price-books.d.ts +215 -63
- package/dist/price-books.js +47 -2
- package/dist/price-lists.d.ts +13 -10
- package/dist/product-feeds.d.ts +249 -100
- package/dist/product-feeds.js +46 -2
- package/dist/product-scope-model.d.ts +161 -0
- package/dist/product-scope-model.js +161 -0
- package/dist/product-scope-overrides.d.ts +0 -103
- package/dist/product-scope-overrides.js +0 -54
- package/dist/product-scoped-values.d.ts +2610 -0
- package/dist/product-scoped-values.js +425 -0
- package/dist/product-scopes.d.ts +199 -64
- package/dist/product-scopes.js +120 -23
- package/dist/product-tax-rates.d.ts +38 -0
- package/dist/product-tax-rates.js +45 -0
- package/dist/product-url-keys.d.ts +51 -45
- package/dist/product-url-keys.js +73 -39
- package/dist/product-value-resolver.d.ts +37 -60
- package/dist/product-value-resolver.js +36 -96
- package/dist/projects.d.ts +76 -28
- package/dist/projects.js +53 -9
- package/dist/promotions.d.ts +163 -11
- package/dist/promotions.js +23 -1
- package/dist/pwa.d.ts +41 -2
- package/dist/quick-order.d.ts +159 -9
- package/dist/quick-order.js +79 -4
- package/dist/quote-requests.d.ts +231 -17
- package/dist/quote-requests.js +111 -9
- package/dist/record-references.d.ts +15 -15
- package/dist/record-references.js +2 -3
- package/dist/record-rich-text.js +2 -1
- package/dist/returns.d.ts +214 -52
- package/dist/returns.js +143 -28
- package/dist/sales-channels.d.ts +34 -3
- package/dist/sales-channels.js +16 -1
- package/dist/saved-list-views.d.ts +28 -0
- package/dist/saved-list-views.js +14 -1
- package/dist/schema-extensions.d.ts +36 -0
- package/dist/schema-extensions.js +29 -0
- package/dist/scoped-write-encoding.d.ts +100 -0
- package/dist/scoped-write-encoding.js +135 -0
- package/dist/search.d.ts +18 -16
- package/dist/seo.d.ts +83 -30
- package/dist/seo.js +8 -1
- package/dist/settings.d.ts +173 -2
- package/dist/settings.js +53 -2
- package/dist/shopping-lists.d.ts +63 -4
- package/dist/shopping-lists.js +57 -3
- package/dist/storefront-cache-tags.d.ts +22 -0
- package/dist/storefront-cache-tags.js +12 -0
- package/dist/storefront-value-overrides.d.ts +18 -56
- package/dist/storefront-value-overrides.js +11 -86
- package/dist/tasks.d.ts +27 -27
- package/dist/taxes.d.ts +27 -0
- package/dist/taxes.js +4 -0
- package/dist/transactional-emails.d.ts +48 -22
- package/dist/webhooks.d.ts +75 -0
- package/dist/webhooks.js +24 -0
- package/package.json +5 -3
- package/dist/actor.d.ts.map +0 -1
- package/dist/actor.js.map +0 -1
- package/dist/addresses.d.ts.map +0 -1
- package/dist/addresses.js.map +0 -1
- package/dist/admin-actions.d.ts.map +0 -1
- package/dist/admin-actions.js.map +0 -1
- package/dist/admin-contributions.d.ts.map +0 -1
- package/dist/admin-contributions.js.map +0 -1
- package/dist/admin-feedback.d.ts.map +0 -1
- package/dist/admin-feedback.js.map +0 -1
- package/dist/admin-i18n.d.ts.map +0 -1
- package/dist/admin-i18n.js.map +0 -1
- package/dist/admin-name.d.ts.map +0 -1
- package/dist/admin-name.js.map +0 -1
- package/dist/admin-notifications.d.ts.map +0 -1
- package/dist/admin-notifications.js.map +0 -1
- package/dist/admin-preferences.d.ts.map +0 -1
- package/dist/admin-preferences.js.map +0 -1
- package/dist/admin-roles.d.ts.map +0 -1
- package/dist/admin-roles.js.map +0 -1
- package/dist/admin-search.d.ts.map +0 -1
- package/dist/admin-search.js.map +0 -1
- package/dist/admin-users.d.ts.map +0 -1
- package/dist/admin-users.js.map +0 -1
- package/dist/admin.d.ts.map +0 -1
- package/dist/admin.js.map +0 -1
- package/dist/analytics.d.ts.map +0 -1
- package/dist/analytics.js.map +0 -1
- package/dist/api-keys.d.ts.map +0 -1
- package/dist/api-keys.js.map +0 -1
- package/dist/assets-library.d.ts.map +0 -1
- package/dist/assets-library.js.map +0 -1
- package/dist/audit-logs.d.ts.map +0 -1
- package/dist/audit-logs.js.map +0 -1
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js.map +0 -1
- package/dist/blog.d.ts.map +0 -1
- package/dist/blog.js.map +0 -1
- package/dist/capabilities.d.ts.map +0 -1
- package/dist/capabilities.js.map +0 -1
- package/dist/carts.d.ts.map +0 -1
- package/dist/carts.js.map +0 -1
- package/dist/catalog.d.ts.map +0 -1
- package/dist/catalog.js.map +0 -1
- package/dist/cms-brand.d.ts.map +0 -1
- package/dist/cms-brand.js.map +0 -1
- package/dist/cms-contact-form.d.ts.map +0 -1
- package/dist/cms-contact-form.js.map +0 -1
- package/dist/cms.d.ts.map +0 -1
- package/dist/cms.js.map +0 -1
- package/dist/common.d.ts.map +0 -1
- package/dist/common.js.map +0 -1
- package/dist/comparisons.d.ts.map +0 -1
- package/dist/comparisons.js.map +0 -1
- package/dist/credentials.d.ts.map +0 -1
- package/dist/credentials.js.map +0 -1
- package/dist/credit-limits.d.ts.map +0 -1
- package/dist/credit-limits.js.map +0 -1
- package/dist/crm-rich-text.d.ts.map +0 -1
- package/dist/crm-rich-text.js.map +0 -1
- package/dist/crm.d.ts.map +0 -1
- package/dist/crm.js.map +0 -1
- package/dist/currencies.d.ts.map +0 -1
- package/dist/currencies.js.map +0 -1
- package/dist/custom-fields.d.ts.map +0 -1
- package/dist/custom-fields.js.map +0 -1
- package/dist/customer-accounts.d.ts.map +0 -1
- package/dist/customer-accounts.js.map +0 -1
- package/dist/customers.d.ts.map +0 -1
- package/dist/customers.js.map +0 -1
- package/dist/dictionary.d.ts.map +0 -1
- package/dist/dictionary.js.map +0 -1
- package/dist/document-templates.d.ts.map +0 -1
- package/dist/document-templates.js.map +0 -1
- package/dist/document-values.d.ts.map +0 -1
- package/dist/document-values.js.map +0 -1
- package/dist/email-address.d.ts.map +0 -1
- package/dist/email-address.js.map +0 -1
- package/dist/email.d.ts.map +0 -1
- package/dist/email.js.map +0 -1
- package/dist/envelopes.d.ts.map +0 -1
- package/dist/envelopes.js.map +0 -1
- package/dist/environment-inputs.d.ts.map +0 -1
- package/dist/environment-inputs.js.map +0 -1
- package/dist/erp-connector.d.ts.map +0 -1
- package/dist/erp-connector.js.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/google-analytics.d.ts.map +0 -1
- package/dist/google-analytics.js.map +0 -1
- package/dist/google-tag-manager.d.ts.map +0 -1
- package/dist/google-tag-manager.js.map +0 -1
- package/dist/i18n.d.ts.map +0 -1
- package/dist/i18n.js.map +0 -1
- package/dist/import-export.d.ts.map +0 -1
- package/dist/import-export.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/inventory.d.ts.map +0 -1
- package/dist/inventory.js.map +0 -1
- package/dist/invoice-ledger.d.ts.map +0 -1
- package/dist/invoice-ledger.js.map +0 -1
- package/dist/invoices.d.ts.map +0 -1
- package/dist/invoices.js.map +0 -1
- package/dist/kernel.d.ts.map +0 -1
- package/dist/kernel.js.map +0 -1
- package/dist/languages.d.ts.map +0 -1
- package/dist/languages.js.map +0 -1
- package/dist/line-groups.d.ts.map +0 -1
- package/dist/line-groups.js.map +0 -1
- package/dist/linkedin-ads.d.ts.map +0 -1
- package/dist/linkedin-ads.js.map +0 -1
- package/dist/localized-name.d.ts.map +0 -1
- package/dist/localized-name.js.map +0 -1
- package/dist/megamenu.d.ts.map +0 -1
- package/dist/megamenu.js.map +0 -1
- package/dist/meta-ads.d.ts.map +0 -1
- package/dist/meta-ads.js.map +0 -1
- package/dist/mfa.d.ts.map +0 -1
- package/dist/mfa.js.map +0 -1
- package/dist/modules.d.ts.map +0 -1
- package/dist/modules.js.map +0 -1
- package/dist/money-decimal.d.ts.map +0 -1
- package/dist/money-decimal.js.map +0 -1
- package/dist/money-input.d.ts.map +0 -1
- package/dist/money-input.js.map +0 -1
- package/dist/newsletter.d.ts.map +0 -1
- package/dist/newsletter.js.map +0 -1
- package/dist/order-minimums.d.ts.map +0 -1
- package/dist/order-minimums.js.map +0 -1
- package/dist/orders.d.ts.map +0 -1
- package/dist/orders.js.map +0 -1
- package/dist/organizations.d.ts.map +0 -1
- package/dist/organizations.js.map +0 -1
- package/dist/page-builder-props.d.ts.map +0 -1
- package/dist/page-builder-props.js.map +0 -1
- package/dist/page-builder-values.d.ts.map +0 -1
- package/dist/page-builder-values.js.map +0 -1
- package/dist/pagination.d.ts.map +0 -1
- package/dist/pagination.js.map +0 -1
- package/dist/payment-methods.d.ts.map +0 -1
- package/dist/payment-methods.js.map +0 -1
- package/dist/payment-return-url.d.ts.map +0 -1
- package/dist/payment-return-url.js.map +0 -1
- package/dist/payments.d.ts.map +0 -1
- package/dist/payments.js.map +0 -1
- package/dist/pim-connector.d.ts.map +0 -1
- package/dist/pim-connector.js.map +0 -1
- package/dist/pim-field-path.d.ts.map +0 -1
- package/dist/pim-field-path.js.map +0 -1
- package/dist/platform-info.d.ts.map +0 -1
- package/dist/platform-info.js.map +0 -1
- package/dist/platform-language.d.ts.map +0 -1
- package/dist/platform-language.js.map +0 -1
- package/dist/price-book-decimal.d.ts.map +0 -1
- package/dist/price-book-decimal.js.map +0 -1
- package/dist/price-books.d.ts.map +0 -1
- package/dist/price-books.js.map +0 -1
- package/dist/price-lists.d.ts.map +0 -1
- package/dist/price-lists.js.map +0 -1
- package/dist/product-feeds.d.ts.map +0 -1
- package/dist/product-feeds.js.map +0 -1
- package/dist/product-scope-overrides.d.ts.map +0 -1
- package/dist/product-scope-overrides.js.map +0 -1
- package/dist/product-scopes.d.ts.map +0 -1
- package/dist/product-scopes.js.map +0 -1
- package/dist/product-summary-text.d.ts.map +0 -1
- package/dist/product-summary-text.js.map +0 -1
- package/dist/product-url-keys.d.ts.map +0 -1
- package/dist/product-url-keys.js.map +0 -1
- package/dist/product-value-resolver.d.ts.map +0 -1
- package/dist/product-value-resolver.js.map +0 -1
- package/dist/projects.d.ts.map +0 -1
- package/dist/projects.js.map +0 -1
- package/dist/promotions.d.ts.map +0 -1
- package/dist/promotions.js.map +0 -1
- package/dist/prompt-actions.d.ts.map +0 -1
- package/dist/prompt-actions.js.map +0 -1
- package/dist/pwa.d.ts.map +0 -1
- package/dist/pwa.js.map +0 -1
- package/dist/quick-order.d.ts.map +0 -1
- package/dist/quick-order.js.map +0 -1
- package/dist/quote-requests.d.ts.map +0 -1
- package/dist/quote-requests.js.map +0 -1
- package/dist/record-references.d.ts.map +0 -1
- package/dist/record-references.js.map +0 -1
- package/dist/record-rich-text.d.ts.map +0 -1
- package/dist/record-rich-text.js.map +0 -1
- package/dist/returns.d.ts.map +0 -1
- package/dist/returns.js.map +0 -1
- package/dist/sales-channels.d.ts.map +0 -1
- package/dist/sales-channels.js.map +0 -1
- package/dist/saved-list-views.d.ts.map +0 -1
- package/dist/saved-list-views.js.map +0 -1
- package/dist/scope-notice.d.ts.map +0 -1
- package/dist/scope-notice.js.map +0 -1
- package/dist/scoped-translations.d.ts +0 -48
- package/dist/scoped-translations.d.ts.map +0 -1
- package/dist/scoped-translations.js +0 -78
- package/dist/scoped-translations.js.map +0 -1
- package/dist/search.d.ts.map +0 -1
- package/dist/search.js.map +0 -1
- package/dist/seo.d.ts.map +0 -1
- package/dist/seo.js.map +0 -1
- package/dist/settings.d.ts.map +0 -1
- package/dist/settings.js.map +0 -1
- package/dist/shipments.d.ts.map +0 -1
- package/dist/shipments.js.map +0 -1
- package/dist/shipping-methods.d.ts.map +0 -1
- package/dist/shipping-methods.js.map +0 -1
- package/dist/shopping-lists.d.ts.map +0 -1
- package/dist/shopping-lists.js.map +0 -1
- package/dist/storefront-cache-tags.d.ts.map +0 -1
- package/dist/storefront-cache-tags.js.map +0 -1
- package/dist/storefront-language-path.d.ts.map +0 -1
- package/dist/storefront-language-path.js.map +0 -1
- package/dist/storefront-value-overrides.d.ts.map +0 -1
- package/dist/storefront-value-overrides.js.map +0 -1
- package/dist/tasks.d.ts.map +0 -1
- package/dist/tasks.js.map +0 -1
- package/dist/taxes.d.ts.map +0 -1
- package/dist/taxes.js.map +0 -1
- package/dist/text-normalization.d.ts.map +0 -1
- package/dist/text-normalization.js.map +0 -1
- package/dist/transactional-emails.d.ts.map +0 -1
- package/dist/transactional-emails.js.map +0 -1
- package/dist/webhooks.d.ts.map +0 -1
- 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";
|
|
@@ -52,6 +53,17 @@ export declare const ERROR_CODES: {
|
|
|
52
53
|
readonly URL_KEY_TAKEN: "URL_KEY_TAKEN";
|
|
53
54
|
readonly URL_KEY_REDIRECT_TAKEOVER_REQUIRED: "URL_KEY_REDIRECT_TAKEOVER_REQUIRED";
|
|
54
55
|
readonly URL_REDIRECT_NOT_FOUND: "URL_REDIRECT_NOT_FOUND";
|
|
56
|
+
readonly FIELD_NOT_AT_SCOPE: "FIELD_NOT_AT_SCOPE";
|
|
57
|
+
readonly SCOPED_VALUE_INVALID: "SCOPED_VALUE_INVALID";
|
|
58
|
+
readonly GLOBAL_ONLY_FIELD: "GLOBAL_ONLY_FIELD";
|
|
59
|
+
readonly IMPORT_PROFILE_REQUIRED: "IMPORT_PROFILE_REQUIRED";
|
|
60
|
+
readonly IMPORT_PROFILE_NOT_FOUND: "IMPORT_PROFILE_NOT_FOUND";
|
|
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";
|
|
55
67
|
readonly SELF_LINK_NOT_ALLOWED: "SELF_LINK_NOT_ALLOWED";
|
|
56
68
|
readonly LINK_ALREADY_EXISTS: "LINK_ALREADY_EXISTS";
|
|
57
69
|
readonly TARGET_PRODUCT_NOT_FOUND: "TARGET_PRODUCT_NOT_FOUND";
|
|
@@ -66,6 +78,52 @@ export declare const ERROR_CODES: {
|
|
|
66
78
|
readonly MIN_NOT_MET: "MIN_NOT_MET";
|
|
67
79
|
readonly MAX_EXCEEDED: "MAX_EXCEEDED";
|
|
68
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";
|
|
69
127
|
readonly RFQ_NOT_DRAFT: "RFQ_NOT_DRAFT";
|
|
70
128
|
readonly RFQ_EMPTY: "RFQ_EMPTY";
|
|
71
129
|
readonly RFQ_NOT_QUOTED: "RFQ_NOT_QUOTED";
|
|
@@ -76,6 +134,12 @@ export declare const ERROR_CODES: {
|
|
|
76
134
|
readonly RFQ_PRICE_PROPOSAL_NOT_ALLOWED: "RFQ_PRICE_PROPOSAL_NOT_ALLOWED";
|
|
77
135
|
readonly RFQ_SAVED_VIEW_NAME_TAKEN: "RFQ_SAVED_VIEW_NAME_TAKEN";
|
|
78
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";
|
|
79
143
|
readonly QUOTE_INCOMPLETE: "QUOTE_INCOMPLETE";
|
|
80
144
|
readonly QUOTE_VALIDITY_ENDED: "QUOTE_VALIDITY_ENDED";
|
|
81
145
|
/** The quote PDF is larger than an e-mail may carry; `details.maxBytes` names the limit. */
|
|
@@ -90,8 +154,19 @@ export declare const ERROR_CODES: {
|
|
|
90
154
|
readonly SHOPPING_LIST_CANNOT_DELETE_DEFAULT: "SHOPPING_LIST_CANNOT_DELETE_DEFAULT";
|
|
91
155
|
readonly SHOPPING_LIST_CANNOT_DELETE_LAST: "SHOPPING_LIST_CANNOT_DELETE_LAST";
|
|
92
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";
|
|
93
161
|
readonly ORGANIZATION_HAS_CHILDREN: "ORGANIZATION_HAS_CHILDREN";
|
|
94
162
|
readonly ORGANIZATION_TREE_INVALID: "ORGANIZATION_TREE_INVALID";
|
|
163
|
+
readonly ORGANIZATION_PERMISSION_REQUIRED: "ORGANIZATION_PERMISSION_REQUIRED";
|
|
164
|
+
readonly ORGANIZATION_ROLE_NAME_TAKEN: "ORGANIZATION_ROLE_NAME_TAKEN";
|
|
165
|
+
readonly ORGANIZATION_ROLE_STALE: "ORGANIZATION_ROLE_STALE";
|
|
166
|
+
readonly ORGANIZATION_ROLE_LIMIT_REACHED: "ORGANIZATION_ROLE_LIMIT_REACHED";
|
|
167
|
+
readonly ORGANIZATION_ROLE_PROTECTED: "ORGANIZATION_ROLE_PROTECTED";
|
|
168
|
+
readonly ORGANIZATION_ROLE_REPLACEMENT_REQUIRED: "ORGANIZATION_ROLE_REPLACEMENT_REQUIRED";
|
|
169
|
+
readonly ORGANIZATION_PERMISSION_UNKNOWN: "ORGANIZATION_PERMISSION_UNKNOWN";
|
|
95
170
|
readonly EMAIL_ALREADY_REGISTERED: "EMAIL_ALREADY_REGISTERED";
|
|
96
171
|
readonly EMAIL_ALREADY_IN_ORGANIZATION: "EMAIL_ALREADY_IN_ORGANIZATION";
|
|
97
172
|
readonly EMAIL_BELONGS_TO_ANOTHER_ORGANIZATION: "EMAIL_BELONGS_TO_ANOTHER_ORGANIZATION";
|
|
@@ -109,11 +184,22 @@ export declare const ERROR_CODES: {
|
|
|
109
184
|
readonly REGISTRATION_REQUIRES_ORGANIZATION: "REGISTRATION_REQUIRES_ORGANIZATION";
|
|
110
185
|
readonly ACCOUNT_BLOCKED: "ACCOUNT_BLOCKED";
|
|
111
186
|
readonly CUSTOMER_NOT_FOUND: "CUSTOMER_NOT_FOUND";
|
|
112
|
-
|
|
187
|
+
/**
|
|
188
|
+
* `specs/173-b2c-address-book-merge/` release 1 (OD-8): every former
|
|
189
|
+
* personal-address-book endpoint answers `410 Gone` with this code. The one
|
|
190
|
+
* address book is the customer's Organization's. Removed in release 2.
|
|
191
|
+
*/
|
|
192
|
+
readonly CUSTOMER_ADDRESS_BOOK_RETIRED: "CUSTOMER_ADDRESS_BOOK_RETIRED";
|
|
113
193
|
readonly CUSTOMER_ALREADY_DELETED: "CUSTOMER_ALREADY_DELETED";
|
|
114
194
|
readonly CUSTOMER_NOT_DELETED: "CUSTOMER_NOT_DELETED";
|
|
115
195
|
readonly CUSTOMER_RESTORE_WINDOW_ELAPSED: "CUSTOMER_RESTORE_WINDOW_ELAPSED";
|
|
116
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";
|
|
117
203
|
readonly CART_EMPTY: "CART_EMPTY";
|
|
118
204
|
readonly CART_LINE_CAP_EXCEEDED: "CART_LINE_CAP_EXCEEDED";
|
|
119
205
|
readonly CART_COUPON_REJECTED: "CART_COUPON_REJECTED";
|
|
@@ -129,20 +215,169 @@ export declare const ERROR_CODES: {
|
|
|
129
215
|
* the buyer reviews it before placing again.
|
|
130
216
|
*/
|
|
131
217
|
readonly CART_PRICE_CHANGED: "CART_PRICE_CHANGED";
|
|
218
|
+
/**
|
|
219
|
+
* The buyer's role holds `carts.order_without_approval`, so the cart is not
|
|
220
|
+
* sent for approval (`specs/170-organization-roles/`; was: the Organization
|
|
221
|
+
* requires no approval).
|
|
222
|
+
*/
|
|
223
|
+
readonly CART_APPROVAL_NOT_REQUIRED: "CART_APPROVAL_NOT_REQUIRED";
|
|
224
|
+
/** The cart has already been sent for approval (`details.approvalStatus`). */
|
|
225
|
+
readonly CART_APPROVAL_ALREADY_SUBMITTED: "CART_APPROVAL_ALREADY_SUBMITTED";
|
|
226
|
+
/**
|
|
227
|
+
* An approver may not approve or reject their own pending cart
|
|
228
|
+
* (`specs/170-organization-roles/` FR-032, R-36; `details.cartId`). A cart that
|
|
229
|
+
* is not pending is refused `CART_APPROVAL_NOT_PENDING` first.
|
|
230
|
+
*/
|
|
231
|
+
readonly CART_APPROVAL_SELF_APPROVE: "CART_APPROVAL_SELF_APPROVE";
|
|
232
|
+
/** The cart is not awaiting approval, so it cannot be approved or rejected (`details.approvalStatus`). */
|
|
233
|
+
readonly CART_APPROVAL_NOT_PENDING: "CART_APPROVAL_NOT_PENDING";
|
|
234
|
+
/** The cart is already completed or rejected, so it cannot be rejected (`details.status`). */
|
|
235
|
+
readonly CART_ALREADY_TERMINAL: "CART_ALREADY_TERMINAL";
|
|
132
236
|
readonly STOCK_UNAVAILABLE: "STOCK_UNAVAILABLE";
|
|
133
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";
|
|
134
253
|
readonly ORGANIZATION_SUSPENDED: "ORGANIZATION_SUSPENDED";
|
|
135
254
|
readonly ORDER_NOT_FOUND: "ORDER_NOT_FOUND";
|
|
136
255
|
readonly ORDER_NOT_CANCELLABLE: "ORDER_NOT_CANCELLABLE";
|
|
256
|
+
/**
|
|
257
|
+
* The chosen delivery method cannot be used for this order: not active, not
|
|
258
|
+
* usable on this surface, outside the Organization's allow-list
|
|
259
|
+
* (`details.code = 'delivery_method_not_allowed_for_organization'`) or not
|
|
260
|
+
* offered in the order's sales channel (`'delivery_method_not_in_sales_channel'`).
|
|
261
|
+
*/
|
|
262
|
+
readonly ORDER_DELIVERY_METHOD_UNAVAILABLE: "ORDER_DELIVERY_METHOD_UNAVAILABLE";
|
|
263
|
+
/** The payment twin of `ORDER_DELIVERY_METHOD_UNAVAILABLE`, with the `payment_method_…` tokens. */
|
|
264
|
+
readonly ORDER_PAYMENT_METHOD_UNAVAILABLE: "ORDER_PAYMENT_METHOD_UNAVAILABLE";
|
|
265
|
+
/** The basket is below the channel's minimum order value (`details.minimum`, `subtotal`, `currency`). */
|
|
266
|
+
readonly ORDER_BELOW_MINIMUM_VALUE: "ORDER_BELOW_MINIMUM_VALUE";
|
|
267
|
+
/** The order is in a terminal status, so it takes no more comments. */
|
|
268
|
+
readonly ORDER_COMMENTS_CLOSED: "ORDER_COMMENTS_CLOSED";
|
|
269
|
+
/** The order has no lines, so there is nothing to copy into a quote request. */
|
|
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";
|
|
137
290
|
/** 422 — the basket handed to placement belongs to another sales channel (feature 154). */
|
|
138
291
|
readonly ORDER_SALES_CHANNEL_MISMATCH: "ORDER_SALES_CHANNEL_MISMATCH";
|
|
292
|
+
/**
|
|
293
|
+
* 422 — the sales channel of an order an operator creates on a customer's
|
|
294
|
+
* behalf (`POST /api/v1/admin/orders`, and its `/preview`) is not one of the
|
|
295
|
+
* customer's Organization's active assigned channels — an unassigned, an
|
|
296
|
+
* inactive or a nonexistent one alike (issue #515).
|
|
297
|
+
*/
|
|
298
|
+
readonly ORDER_SALES_CHANNEL_NOT_ALLOWED: "ORDER_SALES_CHANNEL_NOT_ALLOWED";
|
|
299
|
+
/**
|
|
300
|
+
* 409 — the basket's Organization requires cart approval, its owner is not
|
|
301
|
+
* the Organization administrator and the basket is not `approved` (issue
|
|
302
|
+
* #648). `details: { code, cartId, approvalStatus }`, the token
|
|
303
|
+
* `cart_approval_not_submitted`, `cart_approval_pending` or
|
|
304
|
+
* `cart_approval_rejected`.
|
|
305
|
+
*/
|
|
306
|
+
readonly ORDER_CART_APPROVAL_REQUIRED: "ORDER_CART_APPROVAL_REQUIRED";
|
|
139
307
|
readonly ORDER_SAVED_VIEW_NAME_TAKEN: "ORDER_SAVED_VIEW_NAME_TAKEN";
|
|
140
308
|
readonly INVOICE_NOT_READY: "INVOICE_NOT_READY";
|
|
141
309
|
readonly INVOICE_NUMBER_PATTERN_COLLIDES: "INVOICE_NUMBER_PATTERN_COLLIDES";
|
|
142
310
|
readonly INVOICE_NUMBER_ALREADY_ISSUED: "INVOICE_NUMBER_ALREADY_ISSUED";
|
|
143
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";
|
|
144
336
|
readonly INVALID_TRANSITION: "INVALID_TRANSITION";
|
|
145
337
|
readonly RETURN_LINE_NOT_RETURNABLE: "RETURN_LINE_NOT_RETURNABLE";
|
|
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";
|
|
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";
|
|
146
381
|
readonly CREDIT_LIMIT_NOT_GRANTED: "CREDIT_LIMIT_NOT_GRANTED";
|
|
147
382
|
readonly CREDIT_LIMIT_ALREADY_GRANTED: "CREDIT_LIMIT_ALREADY_GRANTED";
|
|
148
383
|
readonly LIMIT_INSUFFICIENT: "LIMIT_INSUFFICIENT";
|
|
@@ -151,6 +386,24 @@ export declare const ERROR_CODES: {
|
|
|
151
386
|
readonly ACTIVE_RESERVATIONS_EXIST: "ACTIVE_RESERVATIONS_EXIST";
|
|
152
387
|
readonly ALREADY_SUBSCRIBED: "ALREADY_SUBSCRIBED";
|
|
153
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";
|
|
154
407
|
readonly API_KEY_OUT_OF_SCOPE: "API_KEY_OUT_OF_SCOPE";
|
|
155
408
|
/** An administrator asked for an API key scope their own role does not hold. */
|
|
156
409
|
readonly API_KEY_SCOPE_NOT_HELD: "API_KEY_SCOPE_NOT_HELD";
|
|
@@ -162,6 +415,14 @@ export declare const ERROR_CODES: {
|
|
|
162
415
|
readonly WEBHOOK_EVENT_TYPE_NOT_DELIVERABLE: "WEBHOOK_EVENT_TYPE_NOT_DELIVERABLE";
|
|
163
416
|
readonly API_KEY_NOT_BOUND: "API_KEY_NOT_BOUND";
|
|
164
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";
|
|
165
426
|
readonly IDEMPOTENCY_KEY_REQUIRED: "IDEMPOTENCY_KEY_REQUIRED";
|
|
166
427
|
readonly IDEMPOTENCY_KEY_REUSED: "IDEMPOTENCY_KEY_REUSED";
|
|
167
428
|
readonly SKU_NOT_IN_ASSORTMENT: "SKU_NOT_IN_ASSORTMENT";
|
|
@@ -277,7 +538,6 @@ export declare const ERROR_CODES: {
|
|
|
277
538
|
readonly ASSET_LEGACY_LOCATOR_CANNOT_HARDEN: "ASSET_LEGACY_LOCATOR_CANNOT_HARDEN";
|
|
278
539
|
readonly ASSET_FILE_MISSING: "ASSET_FILE_MISSING";
|
|
279
540
|
readonly ASSET_GONE: "ASSET_GONE";
|
|
280
|
-
readonly ASSET_ACCESS_DENIED: "ASSET_ACCESS_DENIED";
|
|
281
541
|
readonly ASSET_REPLACE_KIND_MISMATCH: "ASSET_REPLACE_KIND_MISMATCH";
|
|
282
542
|
readonly ASSET_LEGACY_CANNOT_REPLACE: "ASSET_LEGACY_CANNOT_REPLACE";
|
|
283
543
|
readonly ASSET_REPLACE_CONFLICT: "ASSET_REPLACE_CONFLICT";
|
|
@@ -314,6 +574,12 @@ export declare const ERROR_CODES: {
|
|
|
314
574
|
readonly MEGAMENU_LANGUAGE_NOT_IN_CHANNEL_SCOPE: "MEGAMENU_LANGUAGE_NOT_IN_CHANNEL_SCOPE";
|
|
315
575
|
readonly MEGAMENU_TARGET_OUT_OF_SCOPE: "MEGAMENU_TARGET_OUT_OF_SCOPE";
|
|
316
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";
|
|
317
583
|
readonly MEGAMENU_REFERENCED: "MEGAMENU_REFERENCED";
|
|
318
584
|
readonly MEGAMENU_DEPTH_EXCEEDED: "MEGAMENU_DEPTH_EXCEEDED";
|
|
319
585
|
readonly MEGAMENU_KIND_NOT_ALLOWED_AS_TAB: "MEGAMENU_KIND_NOT_ALLOWED_AS_TAB";
|
|
@@ -335,6 +601,14 @@ export declare const ERROR_CODES: {
|
|
|
335
601
|
readonly BLOG_TAG_IN_USE: "BLOG_TAG_IN_USE";
|
|
336
602
|
readonly BLOG_URL_PREFIX_INVALID: "BLOG_URL_PREFIX_INVALID";
|
|
337
603
|
readonly BLOG_URL_PREFIX_RESERVED: "BLOG_URL_PREFIX_RESERVED";
|
|
604
|
+
readonly BLOG_URL_PREFIX_CONFLICT: "BLOG_URL_PREFIX_CONFLICT";
|
|
605
|
+
readonly BLOG_URL_PREFIX_NOT_FOUND: "BLOG_URL_PREFIX_NOT_FOUND";
|
|
606
|
+
readonly BLOG_LANGUAGE_INCOMPLETE: "BLOG_LANGUAGE_INCOMPLETE";
|
|
607
|
+
readonly ADMIN_USER_AVATAR_NOT_FOUND: "ADMIN_USER_AVATAR_NOT_FOUND";
|
|
608
|
+
readonly BLOG_AUTHOR_NOT_FOUND: "BLOG_AUTHOR_NOT_FOUND";
|
|
609
|
+
readonly BLOG_URL_KEY_TAKEN: "BLOG_URL_KEY_TAKEN";
|
|
610
|
+
readonly BLOG_URL_KEY_REDIRECT_TAKEOVER_REQUIRED: "BLOG_URL_KEY_REDIRECT_TAKEOVER_REQUIRED";
|
|
611
|
+
readonly BLOG_URL_REDIRECT_NOT_FOUND: "BLOG_URL_REDIRECT_NOT_FOUND";
|
|
338
612
|
readonly BLOG_DISABLED: "BLOG_DISABLED";
|
|
339
613
|
readonly BLOG_ASSET_KIND_MISMATCH: "BLOG_ASSET_KIND_MISMATCH";
|
|
340
614
|
readonly BLOG_RELATED_POST_SELF_REFERENCE: "BLOG_RELATED_POST_SELF_REFERENCE";
|
|
@@ -347,7 +621,16 @@ export declare const ERROR_CODES: {
|
|
|
347
621
|
readonly DICTIONARY_FALLBACK_CYCLE: "DICTIONARY_FALLBACK_CYCLE";
|
|
348
622
|
readonly DICTIONARY_CODE_IMMUTABLE: "DICTIONARY_CODE_IMMUTABLE";
|
|
349
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";
|
|
350
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";
|
|
351
634
|
/** No manifest and no registry row answer to this module id. */
|
|
352
635
|
readonly MODULE_NOT_FOUND: "MODULE_NOT_FOUND";
|
|
353
636
|
/**
|
|
@@ -384,7 +667,14 @@ export declare const ERROR_CODES: {
|
|
|
384
667
|
* same "there is nothing here to switch, ever", same carried reason.
|
|
385
668
|
*/
|
|
386
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";
|
|
387
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";
|
|
388
678
|
readonly ATTRIBUTE_NOT_MASS_EDITABLE: "ATTRIBUTE_NOT_MASS_EDITABLE";
|
|
389
679
|
readonly SELECTION_TOO_LARGE: "SELECTION_TOO_LARGE";
|
|
390
680
|
/**
|
|
@@ -392,6 +682,19 @@ export declare const ERROR_CODES: {
|
|
|
392
682
|
* with a second factor; the requirement is turned off first.
|
|
393
683
|
*/
|
|
394
684
|
readonly MFA_DEACTIVATION_BLOCKED: "MFA_DEACTIVATION_BLOCKED";
|
|
685
|
+
/**
|
|
686
|
+
* A role cannot start requiring a second factor that this instance cannot
|
|
687
|
+
* enrol: `mfa` is off, or has no encryption key (issue #349). Raised by
|
|
688
|
+
* `admin_users`' role write; `details.reason` says which.
|
|
689
|
+
*/
|
|
690
|
+
readonly MFA_REQUIRED_FOR_ROLE_TWO_FACTOR: "MFA_REQUIRED_FOR_ROLE_TWO_FACTOR";
|
|
691
|
+
/**
|
|
692
|
+
* Administrators cannot be required to use a second factor that this
|
|
693
|
+
* instance cannot enrol: `mfa` has no encryption key (issue #930). Raised by
|
|
694
|
+
* the `mfa.admin.totp_enforced` write; `details.reason` is
|
|
695
|
+
* `encryption_key_missing`.
|
|
696
|
+
*/
|
|
697
|
+
readonly MFA_ENFORCEMENT_UNAVAILABLE: "MFA_ENFORCEMENT_UNAVAILABLE";
|
|
395
698
|
readonly MFA_INVALID_CODE: "MFA_INVALID_CODE";
|
|
396
699
|
readonly MFA_INVALID_CHALLENGE: "MFA_INVALID_CHALLENGE";
|
|
397
700
|
readonly MFA_TOO_MANY_ATTEMPTS: "MFA_TOO_MANY_ATTEMPTS";
|
|
@@ -402,6 +705,21 @@ export declare const ERROR_CODES: {
|
|
|
402
705
|
readonly MFA_REAUTH_REQUIRED: "MFA_REAUTH_REQUIRED";
|
|
403
706
|
readonly MFA_NOT_ENABLED: "MFA_NOT_ENABLED";
|
|
404
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";
|
|
405
723
|
readonly CUSTOM_FIELD_NOT_FOUND: "CUSTOM_FIELD_NOT_FOUND";
|
|
406
724
|
readonly CUSTOM_FIELD_KEY_CONFLICT: "CUSTOM_FIELD_KEY_CONFLICT";
|
|
407
725
|
readonly CUSTOM_FIELD_DEFINITION_INVALID: "CUSTOM_FIELD_DEFINITION_INVALID";
|
|
@@ -448,6 +766,19 @@ export declare const ERROR_CODES: {
|
|
|
448
766
|
* from `PRODUCT_FEED_ERROR_CODES` (feature 067, FR-087, FR-095, FR-096).
|
|
449
767
|
*/
|
|
450
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";
|
|
451
782
|
/**
|
|
452
783
|
* A price binding named a price list that does not exist. Named after the
|
|
453
784
|
* resource rather than the module (admin-api.md § Price bindings): the caller
|
|
@@ -473,6 +804,17 @@ export declare const ERROR_CODES: {
|
|
|
473
804
|
readonly PRICE_BOOK_ROW_LIMIT: "PRICE_BOOK_ROW_LIMIT";
|
|
474
805
|
/** Feature 160 — the book changed since the version the write was made against; `details.currentVersion`. */
|
|
475
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";
|
|
476
818
|
/** Feature 160 — the precedence is read-only until the change flow ships (FR-023). */
|
|
477
819
|
readonly PRECEDENCE_CHANGE_UNAVAILABLE: "PRECEDENCE_CHANGE_UNAVAILABLE";
|
|
478
820
|
/** Another PIM connector is operator-active; activation refused (FR-003). */
|
|
@@ -483,6 +825,24 @@ export declare const ERROR_CODES: {
|
|
|
483
825
|
readonly INVOICE_LEDGER_CREDENTIALS_MISSING: "INVOICE_LEDGER_CREDENTIALS_MISSING";
|
|
484
826
|
/** Delivery is succeeded or otherwise not eligible for operator retry. */
|
|
485
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";
|
|
486
846
|
/** Another ERP connector is operator-active; activation refused (FR-006). */
|
|
487
847
|
readonly ERP_CONNECTOR_ALREADY_ACTIVE: "ERP_CONNECTOR_ALREADY_ACTIVE";
|
|
488
848
|
/** The order owes nothing — already paid, deferred to credit, or refunded. */
|
|
@@ -497,6 +857,26 @@ export declare const ERROR_CODES: {
|
|
|
497
857
|
* neither claimant.
|
|
498
858
|
*/
|
|
499
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";
|
|
500
880
|
/** The Opportunity does not exist, or belongs to an Organization the caller may not see. */
|
|
501
881
|
readonly CRM_OPPORTUNITY_NOT_FOUND: "CRM_OPPORTUNITY_NOT_FOUND";
|
|
502
882
|
/** The workflow has no transition between the two statuses. */
|
|
@@ -522,6 +902,12 @@ export declare const ERROR_CODES: {
|
|
|
522
902
|
readonly CRM_ASSIGNEE_INVALID: "CRM_ASSIGNEE_INVALID";
|
|
523
903
|
/** The uploaded file is larger than an Opportunity attachment may be. */
|
|
524
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";
|
|
525
911
|
/** Another CRM tag already has this name, whatever its case. */
|
|
526
912
|
readonly CRM_TAG_NAME_TAKEN: "CRM_TAG_NAME_TAKEN";
|
|
527
913
|
/** A message on an Opportunity cannot be edited or deleted once sent. */
|
|
@@ -554,7 +940,11 @@ export declare const ERROR_CODES: {
|
|
|
554
940
|
readonly TASK_TAG_UNKNOWN: "TASK_TAG_UNKNOWN";
|
|
555
941
|
/** A Task tag name already taken, case-insensitively (R-10). */
|
|
556
942
|
readonly TASK_TAG_NAME_TAKEN: "TASK_TAG_NAME_TAKEN";
|
|
557
|
-
/**
|
|
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
|
+
*/
|
|
558
948
|
readonly TASK_ATTACHMENT_REFUSED: "TASK_ATTACHMENT_REFUSED";
|
|
559
949
|
/** A saved Tasks list view name its owner already uses, case-insensitively (R-13). */
|
|
560
950
|
readonly TASK_VIEW_NAME_TAKEN: "TASK_VIEW_NAME_TAKEN";
|
|
@@ -618,6 +1008,15 @@ export declare const ERROR_CODES: {
|
|
|
618
1008
|
readonly PROJECT_MESSAGE_IMMUTABLE: "PROJECT_MESSAGE_IMMUTABLE";
|
|
619
1009
|
/** The uploaded file is larger than an attachment of a Project may be; `details.maxMb` names the limit. */
|
|
620
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";
|
|
621
1020
|
/**
|
|
622
1021
|
* The custom `robots.txt` instructions or additional `llms.txt` content being
|
|
623
1022
|
* saved is larger than `CRAWLER_TEXT_MAX_BYTES`; `details.maxBytes` names the limit.
|
|
@@ -639,6 +1038,35 @@ export declare const ERROR_CODES: {
|
|
|
639
1038
|
readonly ADMIN_FEEDBACK_NOT_CONFIGURED: "ADMIN_FEEDBACK_NOT_CONFIGURED";
|
|
640
1039
|
/** The relay could not be reached in time, refused the message, or redirected. */
|
|
641
1040
|
readonly ADMIN_FEEDBACK_DELIVERY_FAILED: "ADMIN_FEEDBACK_DELIVERY_FAILED";
|
|
1041
|
+
/** No such form (or form version) — a malformed id answers the same. */
|
|
1042
|
+
readonly FORM_NOT_FOUND: "FORM_NOT_FOUND";
|
|
1043
|
+
/** Another form already uses this key. */
|
|
1044
|
+
readonly FORM_KEY_TAKEN: "FORM_KEY_TAKEN";
|
|
1045
|
+
/** The definition breaks a publish rule; `details.issues` lists `{ code, elementId, path }`. */
|
|
1046
|
+
readonly FORM_DEFINITION_INVALID: "FORM_DEFINITION_INVALID";
|
|
1047
|
+
/** The form changed since the caller read it (`expectedRevision`, R-26). */
|
|
1048
|
+
readonly FORM_REVISION_CONFLICT: "FORM_REVISION_CONFLICT";
|
|
1049
|
+
/** The form has entries; deleting it needs the confirmation (`details.entryCount`). */
|
|
1050
|
+
readonly FORM_HAS_ENTRIES: "FORM_HAS_ENTRIES";
|
|
1051
|
+
/**
|
|
1052
|
+
* The form takes no submission now; `details.code` says why: `closed`, `not_yet_open`, `full`,
|
|
1053
|
+
* `sign_in_required` or `unavailable` (a draft, a deleted form or one that never existed).
|
|
1054
|
+
*/
|
|
1055
|
+
readonly FORM_NOT_ACCEPTING: "FORM_NOT_ACCEPTING";
|
|
1056
|
+
/** A submission body over the 256 KiB limit (FR-036). */
|
|
1057
|
+
readonly FORM_SUBMISSION_TOO_LARGE: "FORM_SUBMISSION_TOO_LARGE";
|
|
1058
|
+
/** Some answers break the rules of the served version; `details.fields` lists `{ fieldKey, code, message }`. */
|
|
1059
|
+
readonly FORM_SUBMISSION_INVALID: "FORM_SUBMISSION_INVALID";
|
|
1060
|
+
/** No such entry — or one outside the caller's organisations, or a malformed id: all answered the same. */
|
|
1061
|
+
readonly FORM_ENTRY_NOT_FOUND: "FORM_ENTRY_NOT_FOUND";
|
|
1062
|
+
/** The entry is no longer in the status the caller named (`expectedStatus`); `details.status` is its status now. */
|
|
1063
|
+
readonly FORM_ENTRY_STATUS_CONFLICT: "FORM_ENTRY_STATUS_CONFLICT";
|
|
1064
|
+
/** A write that removes entries across organisations — deleting a form with entries, changing its retention — needs an unrestricted administrator. */
|
|
1065
|
+
readonly FORM_SCOPE_REQUIRED: "FORM_SCOPE_REQUIRED";
|
|
1066
|
+
/** The CAPTCHA provider did not verify the submission, or no CAPTCHA response was sent (feature 170, R-14). */
|
|
1067
|
+
readonly FORM_CAPTCHA_FAILED: "FORM_CAPTCHA_FAILED";
|
|
1068
|
+
/** The CAPTCHA provider could not be reached to verify a submission; retryable (feature 170, R-14). */
|
|
1069
|
+
readonly FORM_CAPTCHA_UNAVAILABLE: "FORM_CAPTCHA_UNAVAILABLE";
|
|
642
1070
|
};
|
|
643
1071
|
export type ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];
|
|
644
1072
|
/**
|