@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.
Files changed (385) hide show
  1. package/dist/accept-language.d.ts +31 -0
  2. package/dist/accept-language.js +64 -0
  3. package/dist/actor.d.ts +16 -0
  4. package/dist/addresses.d.ts +35 -0
  5. package/dist/addresses.js +8 -1
  6. package/dist/admin-actions.d.ts +2 -0
  7. package/dist/admin-actions.js +18 -0
  8. package/dist/admin-contributions.d.ts +99 -12
  9. package/dist/admin-contributions.js +36 -10
  10. package/dist/admin-roles.d.ts +17 -2
  11. package/dist/admin-users.d.ts +9 -0
  12. package/dist/admin.d.ts +114 -4
  13. package/dist/admin.js +98 -3
  14. package/dist/api-keys.d.ts +22 -0
  15. package/dist/api-keys.js +4 -0
  16. package/dist/assets-library.d.ts +45 -0
  17. package/dist/assets-library.js +20 -3
  18. package/dist/audit-logs.d.ts +12 -0
  19. package/dist/audit-logs.js +12 -0
  20. package/dist/auth.d.ts +9 -0
  21. package/dist/auth.js +9 -0
  22. package/dist/blog.d.ts +382 -22
  23. package/dist/blog.js +199 -17
  24. package/dist/carts.d.ts +423 -36
  25. package/dist/carts.js +150 -12
  26. package/dist/catalog.d.ts +379 -208
  27. package/dist/catalog.js +241 -163
  28. package/dist/cms-brand.d.ts +14 -14
  29. package/dist/cms.d.ts +71 -16
  30. package/dist/cms.js +15 -0
  31. package/dist/command-hooks.d.ts +301 -0
  32. package/dist/command-hooks.js +248 -0
  33. package/dist/common.d.ts +23 -6
  34. package/dist/common.js +25 -2
  35. package/dist/comparisons.d.ts +21 -14
  36. package/dist/comparisons.js +2 -1
  37. package/dist/credit-limits.d.ts +22 -0
  38. package/dist/credit-limits.js +35 -0
  39. package/dist/crm.d.ts +134 -78
  40. package/dist/crm.js +21 -5
  41. package/dist/custom-fields.d.ts +417 -49
  42. package/dist/custom-fields.js +142 -1
  43. package/dist/customer-accounts.d.ts +324 -22
  44. package/dist/customer-accounts.js +43 -0
  45. package/dist/customer-notifications.d.ts +143 -0
  46. package/dist/customer-notifications.js +41 -0
  47. package/dist/customers.d.ts +92 -73
  48. package/dist/customers.js +98 -10
  49. package/dist/dictionary.d.ts +53 -0
  50. package/dist/dictionary.js +25 -0
  51. package/dist/document-templates.d.ts +12 -12
  52. package/dist/email.d.ts +34 -0
  53. package/dist/email.js +6 -0
  54. package/dist/errors.d.ts +431 -3
  55. package/dist/errors.js +523 -3
  56. package/dist/forms-logic.d.ts +79 -0
  57. package/dist/forms-logic.fixtures.d.ts +52 -0
  58. package/dist/forms-logic.fixtures.js +610 -0
  59. package/dist/forms-logic.js +699 -0
  60. package/dist/forms.d.ts +9833 -0
  61. package/dist/forms.js +827 -0
  62. package/dist/i18n.d.ts +34 -0
  63. package/dist/i18n.js +15 -0
  64. package/dist/import-export.d.ts +180 -0
  65. package/dist/import-export.js +60 -0
  66. package/dist/index.d.ts +16 -1
  67. package/dist/index.js +30 -1
  68. package/dist/inventory.d.ts +9 -9
  69. package/dist/invoice-ledger.d.ts +13 -13
  70. package/dist/invoices.d.ts +126 -0
  71. package/dist/invoices.js +53 -0
  72. package/dist/line-bounds.d.ts +53 -0
  73. package/dist/line-bounds.js +65 -0
  74. package/dist/megamenu.d.ts +27 -27
  75. package/dist/mfa.d.ts +210 -4
  76. package/dist/mfa.js +136 -0
  77. package/dist/modules.d.ts +56 -8
  78. package/dist/modules.js +128 -3
  79. package/dist/money-decimal.d.ts +54 -0
  80. package/dist/money-decimal.js +95 -0
  81. package/dist/newsletter.d.ts +4 -4
  82. package/dist/orders.d.ts +246 -12
  83. package/dist/orders.js +140 -7
  84. package/dist/organization-hooks.d.ts +99 -0
  85. package/dist/organization-hooks.js +22 -0
  86. package/dist/organization-registry-lookup.d.ts +362 -0
  87. package/dist/organization-registry-lookup.js +196 -0
  88. package/dist/organization-roles.d.ts +341 -0
  89. package/dist/organization-roles.js +218 -0
  90. package/dist/organizations.d.ts +1074 -103
  91. package/dist/organizations.js +293 -28
  92. package/dist/page-builder-props.d.ts +56 -56
  93. package/dist/pim-connector.d.ts +7 -3
  94. package/dist/pim-connector.js +6 -2
  95. package/dist/pim-field-path.d.ts +5 -1
  96. package/dist/pim-field-path.js +37 -81
  97. package/dist/pim-locale-mapping.d.ts +131 -0
  98. package/dist/pim-locale-mapping.js +193 -0
  99. package/dist/price-books.d.ts +215 -63
  100. package/dist/price-books.js +47 -2
  101. package/dist/price-lists.d.ts +13 -10
  102. package/dist/product-feeds.d.ts +249 -100
  103. package/dist/product-feeds.js +46 -2
  104. package/dist/product-scope-model.d.ts +161 -0
  105. package/dist/product-scope-model.js +161 -0
  106. package/dist/product-scope-overrides.d.ts +0 -103
  107. package/dist/product-scope-overrides.js +0 -54
  108. package/dist/product-scoped-values.d.ts +2610 -0
  109. package/dist/product-scoped-values.js +425 -0
  110. package/dist/product-scopes.d.ts +199 -64
  111. package/dist/product-scopes.js +120 -23
  112. package/dist/product-tax-rates.d.ts +38 -0
  113. package/dist/product-tax-rates.js +45 -0
  114. package/dist/product-url-keys.d.ts +51 -45
  115. package/dist/product-url-keys.js +73 -39
  116. package/dist/product-value-resolver.d.ts +37 -60
  117. package/dist/product-value-resolver.js +36 -96
  118. package/dist/projects.d.ts +76 -28
  119. package/dist/projects.js +53 -9
  120. package/dist/promotions.d.ts +163 -11
  121. package/dist/promotions.js +23 -1
  122. package/dist/pwa.d.ts +41 -2
  123. package/dist/quick-order.d.ts +159 -9
  124. package/dist/quick-order.js +79 -4
  125. package/dist/quote-requests.d.ts +231 -17
  126. package/dist/quote-requests.js +111 -9
  127. package/dist/record-references.d.ts +15 -15
  128. package/dist/record-references.js +2 -3
  129. package/dist/record-rich-text.js +2 -1
  130. package/dist/returns.d.ts +214 -52
  131. package/dist/returns.js +143 -28
  132. package/dist/sales-channels.d.ts +34 -3
  133. package/dist/sales-channels.js +16 -1
  134. package/dist/saved-list-views.d.ts +28 -0
  135. package/dist/saved-list-views.js +14 -1
  136. package/dist/schema-extensions.d.ts +36 -0
  137. package/dist/schema-extensions.js +29 -0
  138. package/dist/scoped-write-encoding.d.ts +100 -0
  139. package/dist/scoped-write-encoding.js +135 -0
  140. package/dist/search.d.ts +18 -16
  141. package/dist/seo.d.ts +83 -30
  142. package/dist/seo.js +8 -1
  143. package/dist/settings.d.ts +173 -2
  144. package/dist/settings.js +53 -2
  145. package/dist/shopping-lists.d.ts +63 -4
  146. package/dist/shopping-lists.js +57 -3
  147. package/dist/storefront-cache-tags.d.ts +22 -0
  148. package/dist/storefront-cache-tags.js +12 -0
  149. package/dist/storefront-value-overrides.d.ts +18 -56
  150. package/dist/storefront-value-overrides.js +11 -86
  151. package/dist/tasks.d.ts +27 -27
  152. package/dist/taxes.d.ts +27 -0
  153. package/dist/taxes.js +4 -0
  154. package/dist/transactional-emails.d.ts +48 -22
  155. package/dist/webhooks.d.ts +75 -0
  156. package/dist/webhooks.js +24 -0
  157. package/package.json +5 -3
  158. package/dist/actor.d.ts.map +0 -1
  159. package/dist/actor.js.map +0 -1
  160. package/dist/addresses.d.ts.map +0 -1
  161. package/dist/addresses.js.map +0 -1
  162. package/dist/admin-actions.d.ts.map +0 -1
  163. package/dist/admin-actions.js.map +0 -1
  164. package/dist/admin-contributions.d.ts.map +0 -1
  165. package/dist/admin-contributions.js.map +0 -1
  166. package/dist/admin-feedback.d.ts.map +0 -1
  167. package/dist/admin-feedback.js.map +0 -1
  168. package/dist/admin-i18n.d.ts.map +0 -1
  169. package/dist/admin-i18n.js.map +0 -1
  170. package/dist/admin-name.d.ts.map +0 -1
  171. package/dist/admin-name.js.map +0 -1
  172. package/dist/admin-notifications.d.ts.map +0 -1
  173. package/dist/admin-notifications.js.map +0 -1
  174. package/dist/admin-preferences.d.ts.map +0 -1
  175. package/dist/admin-preferences.js.map +0 -1
  176. package/dist/admin-roles.d.ts.map +0 -1
  177. package/dist/admin-roles.js.map +0 -1
  178. package/dist/admin-search.d.ts.map +0 -1
  179. package/dist/admin-search.js.map +0 -1
  180. package/dist/admin-users.d.ts.map +0 -1
  181. package/dist/admin-users.js.map +0 -1
  182. package/dist/admin.d.ts.map +0 -1
  183. package/dist/admin.js.map +0 -1
  184. package/dist/analytics.d.ts.map +0 -1
  185. package/dist/analytics.js.map +0 -1
  186. package/dist/api-keys.d.ts.map +0 -1
  187. package/dist/api-keys.js.map +0 -1
  188. package/dist/assets-library.d.ts.map +0 -1
  189. package/dist/assets-library.js.map +0 -1
  190. package/dist/audit-logs.d.ts.map +0 -1
  191. package/dist/audit-logs.js.map +0 -1
  192. package/dist/auth.d.ts.map +0 -1
  193. package/dist/auth.js.map +0 -1
  194. package/dist/blog.d.ts.map +0 -1
  195. package/dist/blog.js.map +0 -1
  196. package/dist/capabilities.d.ts.map +0 -1
  197. package/dist/capabilities.js.map +0 -1
  198. package/dist/carts.d.ts.map +0 -1
  199. package/dist/carts.js.map +0 -1
  200. package/dist/catalog.d.ts.map +0 -1
  201. package/dist/catalog.js.map +0 -1
  202. package/dist/cms-brand.d.ts.map +0 -1
  203. package/dist/cms-brand.js.map +0 -1
  204. package/dist/cms-contact-form.d.ts.map +0 -1
  205. package/dist/cms-contact-form.js.map +0 -1
  206. package/dist/cms.d.ts.map +0 -1
  207. package/dist/cms.js.map +0 -1
  208. package/dist/common.d.ts.map +0 -1
  209. package/dist/common.js.map +0 -1
  210. package/dist/comparisons.d.ts.map +0 -1
  211. package/dist/comparisons.js.map +0 -1
  212. package/dist/credentials.d.ts.map +0 -1
  213. package/dist/credentials.js.map +0 -1
  214. package/dist/credit-limits.d.ts.map +0 -1
  215. package/dist/credit-limits.js.map +0 -1
  216. package/dist/crm-rich-text.d.ts.map +0 -1
  217. package/dist/crm-rich-text.js.map +0 -1
  218. package/dist/crm.d.ts.map +0 -1
  219. package/dist/crm.js.map +0 -1
  220. package/dist/currencies.d.ts.map +0 -1
  221. package/dist/currencies.js.map +0 -1
  222. package/dist/custom-fields.d.ts.map +0 -1
  223. package/dist/custom-fields.js.map +0 -1
  224. package/dist/customer-accounts.d.ts.map +0 -1
  225. package/dist/customer-accounts.js.map +0 -1
  226. package/dist/customers.d.ts.map +0 -1
  227. package/dist/customers.js.map +0 -1
  228. package/dist/dictionary.d.ts.map +0 -1
  229. package/dist/dictionary.js.map +0 -1
  230. package/dist/document-templates.d.ts.map +0 -1
  231. package/dist/document-templates.js.map +0 -1
  232. package/dist/document-values.d.ts.map +0 -1
  233. package/dist/document-values.js.map +0 -1
  234. package/dist/email-address.d.ts.map +0 -1
  235. package/dist/email-address.js.map +0 -1
  236. package/dist/email.d.ts.map +0 -1
  237. package/dist/email.js.map +0 -1
  238. package/dist/envelopes.d.ts.map +0 -1
  239. package/dist/envelopes.js.map +0 -1
  240. package/dist/environment-inputs.d.ts.map +0 -1
  241. package/dist/environment-inputs.js.map +0 -1
  242. package/dist/erp-connector.d.ts.map +0 -1
  243. package/dist/erp-connector.js.map +0 -1
  244. package/dist/errors.d.ts.map +0 -1
  245. package/dist/errors.js.map +0 -1
  246. package/dist/google-analytics.d.ts.map +0 -1
  247. package/dist/google-analytics.js.map +0 -1
  248. package/dist/google-tag-manager.d.ts.map +0 -1
  249. package/dist/google-tag-manager.js.map +0 -1
  250. package/dist/i18n.d.ts.map +0 -1
  251. package/dist/i18n.js.map +0 -1
  252. package/dist/import-export.d.ts.map +0 -1
  253. package/dist/import-export.js.map +0 -1
  254. package/dist/index.d.ts.map +0 -1
  255. package/dist/index.js.map +0 -1
  256. package/dist/inventory.d.ts.map +0 -1
  257. package/dist/inventory.js.map +0 -1
  258. package/dist/invoice-ledger.d.ts.map +0 -1
  259. package/dist/invoice-ledger.js.map +0 -1
  260. package/dist/invoices.d.ts.map +0 -1
  261. package/dist/invoices.js.map +0 -1
  262. package/dist/kernel.d.ts.map +0 -1
  263. package/dist/kernel.js.map +0 -1
  264. package/dist/languages.d.ts.map +0 -1
  265. package/dist/languages.js.map +0 -1
  266. package/dist/line-groups.d.ts.map +0 -1
  267. package/dist/line-groups.js.map +0 -1
  268. package/dist/linkedin-ads.d.ts.map +0 -1
  269. package/dist/linkedin-ads.js.map +0 -1
  270. package/dist/localized-name.d.ts.map +0 -1
  271. package/dist/localized-name.js.map +0 -1
  272. package/dist/megamenu.d.ts.map +0 -1
  273. package/dist/megamenu.js.map +0 -1
  274. package/dist/meta-ads.d.ts.map +0 -1
  275. package/dist/meta-ads.js.map +0 -1
  276. package/dist/mfa.d.ts.map +0 -1
  277. package/dist/mfa.js.map +0 -1
  278. package/dist/modules.d.ts.map +0 -1
  279. package/dist/modules.js.map +0 -1
  280. package/dist/money-decimal.d.ts.map +0 -1
  281. package/dist/money-decimal.js.map +0 -1
  282. package/dist/money-input.d.ts.map +0 -1
  283. package/dist/money-input.js.map +0 -1
  284. package/dist/newsletter.d.ts.map +0 -1
  285. package/dist/newsletter.js.map +0 -1
  286. package/dist/order-minimums.d.ts.map +0 -1
  287. package/dist/order-minimums.js.map +0 -1
  288. package/dist/orders.d.ts.map +0 -1
  289. package/dist/orders.js.map +0 -1
  290. package/dist/organizations.d.ts.map +0 -1
  291. package/dist/organizations.js.map +0 -1
  292. package/dist/page-builder-props.d.ts.map +0 -1
  293. package/dist/page-builder-props.js.map +0 -1
  294. package/dist/page-builder-values.d.ts.map +0 -1
  295. package/dist/page-builder-values.js.map +0 -1
  296. package/dist/pagination.d.ts.map +0 -1
  297. package/dist/pagination.js.map +0 -1
  298. package/dist/payment-methods.d.ts.map +0 -1
  299. package/dist/payment-methods.js.map +0 -1
  300. package/dist/payment-return-url.d.ts.map +0 -1
  301. package/dist/payment-return-url.js.map +0 -1
  302. package/dist/payments.d.ts.map +0 -1
  303. package/dist/payments.js.map +0 -1
  304. package/dist/pim-connector.d.ts.map +0 -1
  305. package/dist/pim-connector.js.map +0 -1
  306. package/dist/pim-field-path.d.ts.map +0 -1
  307. package/dist/pim-field-path.js.map +0 -1
  308. package/dist/platform-info.d.ts.map +0 -1
  309. package/dist/platform-info.js.map +0 -1
  310. package/dist/platform-language.d.ts.map +0 -1
  311. package/dist/platform-language.js.map +0 -1
  312. package/dist/price-book-decimal.d.ts.map +0 -1
  313. package/dist/price-book-decimal.js.map +0 -1
  314. package/dist/price-books.d.ts.map +0 -1
  315. package/dist/price-books.js.map +0 -1
  316. package/dist/price-lists.d.ts.map +0 -1
  317. package/dist/price-lists.js.map +0 -1
  318. package/dist/product-feeds.d.ts.map +0 -1
  319. package/dist/product-feeds.js.map +0 -1
  320. package/dist/product-scope-overrides.d.ts.map +0 -1
  321. package/dist/product-scope-overrides.js.map +0 -1
  322. package/dist/product-scopes.d.ts.map +0 -1
  323. package/dist/product-scopes.js.map +0 -1
  324. package/dist/product-summary-text.d.ts.map +0 -1
  325. package/dist/product-summary-text.js.map +0 -1
  326. package/dist/product-url-keys.d.ts.map +0 -1
  327. package/dist/product-url-keys.js.map +0 -1
  328. package/dist/product-value-resolver.d.ts.map +0 -1
  329. package/dist/product-value-resolver.js.map +0 -1
  330. package/dist/projects.d.ts.map +0 -1
  331. package/dist/projects.js.map +0 -1
  332. package/dist/promotions.d.ts.map +0 -1
  333. package/dist/promotions.js.map +0 -1
  334. package/dist/prompt-actions.d.ts.map +0 -1
  335. package/dist/prompt-actions.js.map +0 -1
  336. package/dist/pwa.d.ts.map +0 -1
  337. package/dist/pwa.js.map +0 -1
  338. package/dist/quick-order.d.ts.map +0 -1
  339. package/dist/quick-order.js.map +0 -1
  340. package/dist/quote-requests.d.ts.map +0 -1
  341. package/dist/quote-requests.js.map +0 -1
  342. package/dist/record-references.d.ts.map +0 -1
  343. package/dist/record-references.js.map +0 -1
  344. package/dist/record-rich-text.d.ts.map +0 -1
  345. package/dist/record-rich-text.js.map +0 -1
  346. package/dist/returns.d.ts.map +0 -1
  347. package/dist/returns.js.map +0 -1
  348. package/dist/sales-channels.d.ts.map +0 -1
  349. package/dist/sales-channels.js.map +0 -1
  350. package/dist/saved-list-views.d.ts.map +0 -1
  351. package/dist/saved-list-views.js.map +0 -1
  352. package/dist/scope-notice.d.ts.map +0 -1
  353. package/dist/scope-notice.js.map +0 -1
  354. package/dist/scoped-translations.d.ts +0 -48
  355. package/dist/scoped-translations.d.ts.map +0 -1
  356. package/dist/scoped-translations.js +0 -78
  357. package/dist/scoped-translations.js.map +0 -1
  358. package/dist/search.d.ts.map +0 -1
  359. package/dist/search.js.map +0 -1
  360. package/dist/seo.d.ts.map +0 -1
  361. package/dist/seo.js.map +0 -1
  362. package/dist/settings.d.ts.map +0 -1
  363. package/dist/settings.js.map +0 -1
  364. package/dist/shipments.d.ts.map +0 -1
  365. package/dist/shipments.js.map +0 -1
  366. package/dist/shipping-methods.d.ts.map +0 -1
  367. package/dist/shipping-methods.js.map +0 -1
  368. package/dist/shopping-lists.d.ts.map +0 -1
  369. package/dist/shopping-lists.js.map +0 -1
  370. package/dist/storefront-cache-tags.d.ts.map +0 -1
  371. package/dist/storefront-cache-tags.js.map +0 -1
  372. package/dist/storefront-language-path.d.ts.map +0 -1
  373. package/dist/storefront-language-path.js.map +0 -1
  374. package/dist/storefront-value-overrides.d.ts.map +0 -1
  375. package/dist/storefront-value-overrides.js.map +0 -1
  376. package/dist/tasks.d.ts.map +0 -1
  377. package/dist/tasks.js.map +0 -1
  378. package/dist/taxes.d.ts.map +0 -1
  379. package/dist/taxes.js.map +0 -1
  380. package/dist/text-normalization.d.ts.map +0 -1
  381. package/dist/text-normalization.js.map +0 -1
  382. package/dist/transactional-emails.d.ts.map +0 -1
  383. package/dist/transactional-emails.js.map +0 -1
  384. package/dist/webhooks.d.ts.map +0 -1
  385. package/dist/webhooks.js.map +0 -1
package/dist/i18n.d.ts CHANGED
@@ -9,6 +9,22 @@ export declare const languageSchema: z.ZodObject<{
9
9
  updatedAt: z.ZodString;
10
10
  }, z.core.$strip>;
11
11
  export type Language = z.infer<typeof languageSchema>;
12
+ /**
13
+ * `GET /api/v1/admin/languages` — every language row, active or not, the
14
+ * available catalogue included (issue #599).
15
+ */
16
+ export declare const languageListResponseSchema: z.ZodObject<{
17
+ data: z.ZodArray<z.ZodObject<{
18
+ code: z.ZodString;
19
+ label: z.ZodString;
20
+ isDefault: z.ZodBoolean;
21
+ isActive: z.ZodBoolean;
22
+ sortOrder: z.ZodNumber;
23
+ createdAt: z.ZodString;
24
+ updatedAt: z.ZodString;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
27
+ export type LanguageListResponse = z.infer<typeof languageListResponseSchema>;
12
28
  export declare const upsertLanguageRequestSchema: z.ZodObject<{
13
29
  label: z.ZodString;
14
30
  isActive: z.ZodOptional<z.ZodBoolean>;
@@ -28,6 +44,24 @@ export declare const currencySchema: z.ZodObject<{
28
44
  updatedAt: z.ZodString;
29
45
  }, z.core.$strip>;
30
46
  export type Currency = z.infer<typeof currencySchema>;
47
+ /**
48
+ * `GET /api/v1/admin/currencies` — every currency, active or not (issue #599).
49
+ * The rows are `currencySchema`: the catalogue's `symbolPosition` and
50
+ * `decimalPlaces` are `dictionaries`' admin screen to answer, not this one.
51
+ */
52
+ export declare const currencyListResponseSchema: z.ZodObject<{
53
+ data: z.ZodArray<z.ZodObject<{
54
+ code: z.ZodString;
55
+ label: z.ZodString;
56
+ symbol: z.ZodString;
57
+ isDefault: z.ZodBoolean;
58
+ isActive: z.ZodBoolean;
59
+ sortOrder: z.ZodNumber;
60
+ createdAt: z.ZodString;
61
+ updatedAt: z.ZodString;
62
+ }, z.core.$strip>>;
63
+ }, z.core.$strip>;
64
+ export type CurrencyListResponse = z.infer<typeof currencyListResponseSchema>;
31
65
  export declare const upsertCurrencyRequestSchema: z.ZodObject<{
32
66
  label: z.ZodString;
33
67
  symbol: z.ZodString;
package/dist/i18n.js CHANGED
@@ -18,6 +18,13 @@ export const languageSchema = z.object({
18
18
  createdAt: isoDateTimeSchema,
19
19
  updatedAt: isoDateTimeSchema,
20
20
  });
21
+ /**
22
+ * `GET /api/v1/admin/languages` — every language row, active or not, the
23
+ * available catalogue included (issue #599).
24
+ */
25
+ export const languageListResponseSchema = z.object({
26
+ data: z.array(languageSchema),
27
+ });
21
28
  export const upsertLanguageRequestSchema = z.object({
22
29
  label: z.string().min(1).max(64),
23
30
  isActive: z.boolean().optional(),
@@ -36,6 +43,14 @@ export const currencySchema = z.object({
36
43
  createdAt: isoDateTimeSchema,
37
44
  updatedAt: isoDateTimeSchema,
38
45
  });
46
+ /**
47
+ * `GET /api/v1/admin/currencies` — every currency, active or not (issue #599).
48
+ * The rows are `currencySchema`: the catalogue's `symbolPosition` and
49
+ * `decimalPlaces` are `dictionaries`' admin screen to answer, not this one.
50
+ */
51
+ export const currencyListResponseSchema = z.object({
52
+ data: z.array(currencySchema),
53
+ });
39
54
  export const upsertCurrencyRequestSchema = z.object({
40
55
  label: z.string().min(1).max(64),
41
56
  symbol: z.string().min(1).max(8),
@@ -18,6 +18,8 @@ import { z } from 'zod';
18
18
  export interface BulkImportRowError {
19
19
  index: number;
20
20
  reason: string;
21
+ /** Feature 174 — a stable code for the row's refusal, so a client labels it without parsing `reason`. */
22
+ code?: string;
21
23
  }
22
24
  /**
23
25
  * Either every row landed or none did: `imported` is 0 whenever `errors` is
@@ -31,6 +33,36 @@ export interface BulkImportRowError {
31
33
  export interface BulkImportReport {
32
34
  imported: number;
33
35
  errors: BulkImportRowError[];
36
+ /**
37
+ * Feature 174 (`contracts/import-profiles-and-csv.md` §2.3) — products imports only: the
38
+ * per-column count of `NULL` and `INHERIT` cells (shown before "Apply" after a dry run), the
39
+ * run warnings (unmapped source locales, FR-041) and the per-row field errors (refusals of the
40
+ * write encoding; the row's other fields apply).
41
+ */
42
+ cellCounts?: Array<{
43
+ column: string;
44
+ null: number;
45
+ inherit: number;
46
+ }>;
47
+ warnings?: Array<{
48
+ kind: 'unmapped_locale';
49
+ locale: string;
50
+ sourceChannel: string | null;
51
+ products: number;
52
+ }>;
53
+ fieldErrors?: Array<{
54
+ index: number;
55
+ column: string;
56
+ code: string;
57
+ }>;
58
+ /**
59
+ * Feature 174 — products imports only: how many `errors` / `fieldErrors` the report left out
60
+ * when it capped them (the first ones in arrival order are kept).
61
+ */
62
+ truncated?: {
63
+ errors: number;
64
+ fieldErrors: number;
65
+ };
34
66
  }
35
67
  /**
36
68
  * One entity the import/export centre offers, as
@@ -71,4 +103,152 @@ export declare const importExportEntitiesResponseSchema: z.ZodObject<{
71
103
  }, z.core.$strip>;
72
104
  }, z.core.$strip>;
73
105
  export type ImportExportEntitiesResponse = z.infer<typeof importExportEntitiesResponseSchema>;
106
+ /** The most mapping entries one import profile holds, and targets per entry (data-model §11). */
107
+ export declare const IMPORT_PROFILE_ENTRIES_MAX = 100;
108
+ export declare const IMPORT_PROFILE_TARGETS_MAX = 16;
109
+ /** The only entity with a locale mapping in 174. */
110
+ export declare const importProfileEntitySchema: z.ZodEnum<{
111
+ products: "products";
112
+ }>;
113
+ export declare const importProfileSchema: z.ZodObject<{
114
+ id: z.ZodString;
115
+ name: z.ZodString;
116
+ entity: z.ZodEnum<{
117
+ products: "products";
118
+ }>;
119
+ sourceLanguageForGlobal: z.ZodNullable<z.ZodString>;
120
+ localeMapping: z.ZodArray<z.ZodObject<{
121
+ sourceLocale: z.ZodString;
122
+ sourceChannel: z.ZodNullable<z.ZodString>;
123
+ targets: z.ZodArray<z.ZodObject<{
124
+ channelId: z.ZodString;
125
+ languageCode: z.ZodString;
126
+ }, z.core.$strict>>;
127
+ }, z.core.$strict>>;
128
+ createdAt: z.ZodString;
129
+ updatedAt: z.ZodString;
130
+ }, z.core.$strip>;
131
+ export type ImportProfile = z.infer<typeof importProfileSchema>;
132
+ export declare const createImportProfileRequestSchema: z.ZodObject<{
133
+ name: z.ZodString;
134
+ entity: z.ZodEnum<{
135
+ products: "products";
136
+ }>;
137
+ sourceLanguageForGlobal: z.ZodNullable<z.ZodString>;
138
+ localeMapping: z.ZodArray<z.ZodObject<{
139
+ sourceLocale: z.ZodString;
140
+ sourceChannel: z.ZodNullable<z.ZodString>;
141
+ targets: z.ZodArray<z.ZodObject<{
142
+ channelId: z.ZodString;
143
+ languageCode: z.ZodString;
144
+ }, z.core.$strict>>;
145
+ }, z.core.$strict>>;
146
+ }, z.core.$strict>;
147
+ export type CreateImportProfileRequest = z.infer<typeof createImportProfileRequestSchema>;
148
+ export declare const updateImportProfileRequestSchema: z.ZodObject<{
149
+ name: z.ZodOptional<z.ZodString>;
150
+ entity: z.ZodOptional<z.ZodEnum<{
151
+ products: "products";
152
+ }>>;
153
+ sourceLanguageForGlobal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ localeMapping: z.ZodOptional<z.ZodArray<z.ZodObject<{
155
+ sourceLocale: z.ZodString;
156
+ sourceChannel: z.ZodNullable<z.ZodString>;
157
+ targets: z.ZodArray<z.ZodObject<{
158
+ channelId: z.ZodString;
159
+ languageCode: z.ZodString;
160
+ }, z.core.$strict>>;
161
+ }, z.core.$strict>>>;
162
+ }, z.core.$strict>;
163
+ export type UpdateImportProfileRequest = z.infer<typeof updateImportProfileRequestSchema>;
164
+ export declare const importProfileResponseSchema: z.ZodObject<{
165
+ data: z.ZodObject<{
166
+ id: z.ZodString;
167
+ name: z.ZodString;
168
+ entity: z.ZodEnum<{
169
+ products: "products";
170
+ }>;
171
+ sourceLanguageForGlobal: z.ZodNullable<z.ZodString>;
172
+ localeMapping: z.ZodArray<z.ZodObject<{
173
+ sourceLocale: z.ZodString;
174
+ sourceChannel: z.ZodNullable<z.ZodString>;
175
+ targets: z.ZodArray<z.ZodObject<{
176
+ channelId: z.ZodString;
177
+ languageCode: z.ZodString;
178
+ }, z.core.$strict>>;
179
+ }, z.core.$strict>>;
180
+ createdAt: z.ZodString;
181
+ updatedAt: z.ZodString;
182
+ }, z.core.$strip>;
183
+ }, z.core.$strip>;
184
+ export declare const importProfileListResponseSchema: z.ZodObject<{
185
+ data: z.ZodArray<z.ZodObject<{
186
+ id: z.ZodString;
187
+ name: z.ZodString;
188
+ entity: z.ZodEnum<{
189
+ products: "products";
190
+ }>;
191
+ sourceLanguageForGlobal: z.ZodNullable<z.ZodString>;
192
+ localeMapping: z.ZodArray<z.ZodObject<{
193
+ sourceLocale: z.ZodString;
194
+ sourceChannel: z.ZodNullable<z.ZodString>;
195
+ targets: z.ZodArray<z.ZodObject<{
196
+ channelId: z.ZodString;
197
+ languageCode: z.ZodString;
198
+ }, z.core.$strict>>;
199
+ }, z.core.$strict>>;
200
+ createdAt: z.ZodString;
201
+ updatedAt: z.ZodString;
202
+ }, z.core.$strip>>;
203
+ }, z.core.$strip>;
204
+ export type ImportProfileListResponse = z.infer<typeof importProfileListResponseSchema>;
205
+ /** `GET …/profiles` query. */
206
+ export declare const importProfileListQuerySchema: z.ZodObject<{
207
+ entity: z.ZodOptional<z.ZodEnum<{
208
+ products: "products";
209
+ }>>;
210
+ }, z.core.$strict>;
211
+ /** `POST /api/v1/admin/import/products` query — the profile is required for products (FR-048). */
212
+ export declare const productsImportQuerySchema: z.ZodObject<{
213
+ profileId: z.ZodOptional<z.ZodString>;
214
+ dryRun: z.ZodOptional<z.ZodEnum<{
215
+ true: "true";
216
+ false: "false";
217
+ }>>;
218
+ }, z.core.$strict>;
219
+ /** `404 IMPORT_PROFILE_NOT_FOUND` / `409 IMPORT_PROFILE_NAME_TAKEN` details. */
220
+ export declare const importProfileNotFoundDetailsSchema: z.ZodObject<{
221
+ profileId: z.ZodString;
222
+ }, z.core.$strip>;
223
+ export declare const importProfileNameTakenDetailsSchema: z.ZodObject<{
224
+ name: z.ZodString;
225
+ }, z.core.$strip>;
226
+ /** The `details` each import-profile refusal carries (`contracts/error-codes.md`); `null` = none. */
227
+ export declare const importProfileErrorDetailsSchemas: {
228
+ readonly IMPORT_PROFILE_REQUIRED: null;
229
+ readonly IMPORT_PROFILE_NOT_FOUND: z.ZodObject<{
230
+ profileId: z.ZodString;
231
+ }, z.core.$strip>;
232
+ readonly IMPORT_PROFILE_NAME_TAKEN: z.ZodObject<{
233
+ name: z.ZodString;
234
+ }, z.core.$strip>;
235
+ };
236
+ /**
237
+ * `GET /api/v1/admin/import-export/channel-targets` — every channel a products import profile may
238
+ * target (inactive ones included, so a saved target is not dropped), ordered by code.
239
+ */
240
+ export declare const importChannelTargetSchema: z.ZodObject<{
241
+ id: z.ZodString;
242
+ code: z.ZodString;
243
+ languages: z.ZodArray<z.ZodString>;
244
+ }, z.core.$strict>;
245
+ export type ImportChannelTarget = z.infer<typeof importChannelTargetSchema>;
246
+ export declare const importChannelTargetListResponseSchema: z.ZodObject<{
247
+ data: z.ZodArray<z.ZodObject<{
248
+ id: z.ZodString;
249
+ code: z.ZodString;
250
+ languages: z.ZodArray<z.ZodString>;
251
+ }, z.core.$strict>>;
252
+ }, z.core.$strip>;
253
+ export type ImportChannelTargetListResponse = z.infer<typeof importChannelTargetListResponseSchema>;
74
254
  //# sourceMappingURL=import-export.d.ts.map
@@ -14,6 +14,9 @@
14
14
  * computing it is the spreadsheet reader's business, not the catalogue's.
15
15
  */
16
16
  import { z } from 'zod';
17
+ import { isoDateTimeSchema, uuidSchema } from './common.js';
18
+ import { ERROR_CODES } from './errors.js';
19
+ import { pimLocaleMappingEntrySchema, pimLocaleTagSchema, sameSourceLocale } from './pim-locale-mapping.js';
17
20
  /**
18
21
  * One entity the import/export centre offers, as
19
22
  * `GET /api/v1/admin/import-export/entities` answers.
@@ -43,4 +46,61 @@ export const importExportEntitySchema = z.object({
43
46
  export const importExportEntitiesResponseSchema = z.object({
44
47
  data: z.object({ entities: z.array(importExportEntitySchema) }),
45
48
  });
49
+ // --- Import profiles (feature 174, `contracts/import-profiles-and-csv.md` §1, data-model §11) ---
50
+ /** The most mapping entries one import profile holds, and targets per entry (data-model §11). */
51
+ export const IMPORT_PROFILE_ENTRIES_MAX = 100;
52
+ export const IMPORT_PROFILE_TARGETS_MAX = 16;
53
+ /** The only entity with a locale mapping in 174. */
54
+ export const importProfileEntitySchema = z.enum(['products']);
55
+ const importProfileMappingSchema = z
56
+ .array(pimLocaleMappingEntrySchema.refine((entry) => entry.targets.length <= IMPORT_PROFILE_TARGETS_MAX, {
57
+ message: `At most ${IMPORT_PROFILE_TARGETS_MAX} targets per entry.`,
58
+ }))
59
+ .max(IMPORT_PROFILE_ENTRIES_MAX)
60
+ .refine((entries) => entries.every((entry, index) => !entries.some((other, j) => j < index && other.sourceChannel === entry.sourceChannel && sameSourceLocale(other.sourceLocale, entry.sourceLocale))), { message: 'Two entries map the same source locale and source channel.' });
61
+ export const importProfileSchema = z.object({
62
+ id: uuidSchema,
63
+ name: z.string().min(1).max(120),
64
+ entity: importProfileEntitySchema,
65
+ /** The source locale written to Global (FR-047); `null` = none. */
66
+ sourceLanguageForGlobal: pimLocaleTagSchema.nullable(),
67
+ localeMapping: importProfileMappingSchema,
68
+ createdAt: isoDateTimeSchema,
69
+ updatedAt: isoDateTimeSchema,
70
+ });
71
+ export const createImportProfileRequestSchema = z
72
+ .object({
73
+ name: z.string().trim().min(1).max(120),
74
+ entity: importProfileEntitySchema,
75
+ sourceLanguageForGlobal: pimLocaleTagSchema.nullable(),
76
+ localeMapping: importProfileMappingSchema,
77
+ })
78
+ .strict();
79
+ export const updateImportProfileRequestSchema = createImportProfileRequestSchema.partial().strict();
80
+ export const importProfileResponseSchema = z.object({ data: importProfileSchema });
81
+ export const importProfileListResponseSchema = z.object({ data: z.array(importProfileSchema) });
82
+ /** `GET …/profiles` query. */
83
+ export const importProfileListQuerySchema = z.object({ entity: importProfileEntitySchema.optional() }).strict();
84
+ /** `POST /api/v1/admin/import/products` query — the profile is required for products (FR-048). */
85
+ export const productsImportQuerySchema = z
86
+ .object({ profileId: uuidSchema.optional(), dryRun: z.enum(['true', 'false']).optional() })
87
+ .strict();
88
+ /** `404 IMPORT_PROFILE_NOT_FOUND` / `409 IMPORT_PROFILE_NAME_TAKEN` details. */
89
+ export const importProfileNotFoundDetailsSchema = z.object({ profileId: uuidSchema });
90
+ export const importProfileNameTakenDetailsSchema = z.object({ name: z.string() });
91
+ /** The `details` each import-profile refusal carries (`contracts/error-codes.md`); `null` = none. */
92
+ export const importProfileErrorDetailsSchemas = {
93
+ [ERROR_CODES.IMPORT_PROFILE_REQUIRED]: null,
94
+ [ERROR_CODES.IMPORT_PROFILE_NOT_FOUND]: importProfileNotFoundDetailsSchema,
95
+ [ERROR_CODES.IMPORT_PROFILE_NAME_TAKEN]: importProfileNameTakenDetailsSchema,
96
+ };
97
+ // --- Feature 174: the products import's channel targets ---------------------------------------
98
+ /**
99
+ * `GET /api/v1/admin/import-export/channel-targets` — every channel a products import profile may
100
+ * target (inactive ones included, so a saved target is not dropped), ordered by code.
101
+ */
102
+ export const importChannelTargetSchema = z
103
+ .object({ id: uuidSchema, code: z.string().min(1).max(32), languages: z.array(z.string().min(2).max(16)).min(1) })
104
+ .strict();
105
+ export const importChannelTargetListResponseSchema = z.object({ data: z.array(importChannelTargetSchema) });
46
106
  //# sourceMappingURL=import-export.js.map
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './common.js';
6
6
  export * from './scope-notice.js';
7
7
  export * from './catalog.js';
8
8
  export * from './order-minimums.js';
9
+ export * from './line-bounds.js';
9
10
  export * from './localized-name.js';
10
11
  export * from './product-summary-text.js';
11
12
  export * from './line-groups.js';
@@ -23,6 +24,7 @@ export * from './money-decimal.js';
23
24
  export * from './money-input.js';
24
25
  export * from './admin-name.js';
25
26
  export * from './taxes.js';
27
+ export * from './product-tax-rates.js';
26
28
  export * from './promotions.js';
27
29
  export * from './inventory.js';
28
30
  export * from './invoices.js';
@@ -44,8 +46,9 @@ export * from './analytics.js';
44
46
  export * from './seo.js';
45
47
  export * from './i18n.js';
46
48
  export * from './platform-language.js';
49
+ export * from './accept-language.js';
47
50
  export * from './admin-i18n.js';
48
- export { cmsPageStatusSchema, cmsContentEnvelopeSchema, cmsPageSummarySchema, cmsBreadcrumbsSchemeSchema, cmsPageDetailSchema, createCmsPageRequestSchema, patchCmsPageRequestSchema, putCmsPageContentRequestSchema, cmsBlockSummarySchema, cmsBlockDetailSchema, createCmsBlockRequestSchema, patchCmsBlockRequestSchema, cmsTemplateSummarySchema, cmsTemplateDetailSchema, createCmsTemplateRequestSchema, patchCmsTemplateRequestSchema, cmsHookSummarySchema, cmsHookDetailSchema, createCmsHookRequestSchema, patchCmsHookRequestSchema, cmsHookAttachmentRequestSchema, cmsFieldDescriptorSchema, cmsPageBuilderDescriptorSchema, blockNameRe, blockCategoryKeyRe, BlockDefinitionSchema, BlockCategorySchema, cmsColorPaletteEntrySchema, cmsColorPaletteSchema, putCmsColorPaletteRequestSchema, cmsAssetEmbedResolutionSchema, cmsResolvedBlockSchema, cmsResolvedTemplateSchema, cmsResolvedPageSchema, cmsResolvedHookSchema, cmsPageIndexEntrySchema, cmsPageIndexResponseSchema, cmsReservedSegmentsResponseSchema, firstSlugSegment, CMS_PAGE_PATH_MAX_LEVELS, cmsPagePublicPaths, type CmsPagePathNode, cmsPageTranslationSchema, cmsPageTranslationsSchema, cmsLocalizedPage, cmsPageUrl, type CmsPageTranslation, type CmsPageTranslations, type CmsLocalizablePage, type CmsPageUrlInput, translatablePathRe, blockTranslatableTextSchema, blockTranslatableSchema, CMS_TRANSLATION_MAX_SOURCE_CHARACTERS_BOUNDS, CMS_TRANSLATION_DEFAULT_MAX_SOURCE_CHARACTERS, cmsPageBuilderTranslationStatusSchema, cmsPageBuilderTranslationCapabilitySchema, cmsPuckDataSchema, cmsPageBuilderTranslationScopeSchema, cmsPageBuilderTranslateRequestSchema, cmsPageBuilderTranslateResponseSchema, type BlockTranslatableText, type CmsPageBuilderTranslationStatus, type CmsPageBuilderTranslationCapability, type CmsPuckData, type CmsPageBuilderTranslationScope, type CmsPageBuilderTranslateRequest, type CmsPageBuilderTranslateResponse, type CmsPageStatus, type CmsContentEnvelope, type CmsPageSummary, type CmsBreadcrumbsScheme, type CmsPageDetail, type CreateCmsPageRequest, type PatchCmsPageRequest, type PutCmsPageContentRequest, type CmsBlockSummary, type CmsBlockDetail, type CreateCmsBlockRequest, type PatchCmsBlockRequest, type CmsTemplateSummary, type CmsTemplateDetail, type CreateCmsTemplateRequest, type PatchCmsTemplateRequest, type CmsHookSummary, type CmsHookDetail, type CreateCmsHookRequest, type PatchCmsHookRequest, type CmsHookAttachmentRequest, type CmsFieldDescriptor, type CmsPageBuilderDescriptor, type BlockDefinition, type BlockCategory, type CmsColorPaletteEntry, type CmsColorPalette, type PutCmsColorPaletteRequest, type CmsAssetEmbedResolution, type CmsResolvedBlock, type CmsResolvedTemplate, type CmsResolvedPage, type CmsResolvedHook, type CmsPageIndexEntry, type CmsPageIndexResponse, type CmsReservedSegmentsResponse, type CmsReference, type CmsExternalReferenceScanner, type CmsReferenceRegistryPort, type CmsPageRecord, type CmsPageReadPort, type CmsPageStorefrontLink, type CmsPageStorefrontLinkScope, type CmsSeededBlock, type CmsBlockSeedPort, type CmsBlockRecord, type CmsLocalizedBlockRecord, type CmsBlockReadPort, } from './cms.js';
51
+ export { cmsPageStatusSchema, cmsContentEnvelopeSchema, cmsPageSummarySchema, cmsBreadcrumbsSchemeSchema, cmsPageDetailSchema, createCmsPageRequestSchema, patchCmsPageRequestSchema, putCmsPageContentRequestSchema, cmsBlockSummarySchema, cmsBlockDetailSchema, createCmsBlockRequestSchema, patchCmsBlockRequestSchema, cmsTemplateSummarySchema, cmsTemplateDetailSchema, createCmsTemplateRequestSchema, patchCmsTemplateRequestSchema, cmsHookSummarySchema, cmsHookDetailSchema, createCmsHookRequestSchema, patchCmsHookRequestSchema, cmsHookAttachmentRequestSchema, cmsFieldDescriptorSchema, cmsPageBuilderDescriptorSchema, blockNameRe, blockCategoryKeyRe, BlockDefinitionSchema, BlockCategorySchema, cmsColorPaletteEntrySchema, cmsColorPaletteSchema, putCmsColorPaletteRequestSchema, cmsAssetEmbedResolutionSchema, cmsResolvedBlockSchema, cmsResolvedBlockByCodeSchema, cmsResolvedTemplateSchema, cmsResolvedPageSchema, cmsResolvedHookSchema, cmsPageIndexEntrySchema, cmsPageIndexResponseSchema, cmsReservedSegmentsResponseSchema, firstSlugSegment, CMS_PAGE_PATH_MAX_LEVELS, cmsPagePublicPaths, type CmsPagePathNode, cmsPageTranslationSchema, cmsPageTranslationsSchema, cmsLocalizedPage, cmsPageUrl, type CmsPageTranslation, type CmsPageTranslations, type CmsLocalizablePage, type CmsPageUrlInput, translatablePathRe, blockTranslatableTextSchema, blockTranslatableSchema, CMS_TRANSLATION_MAX_SOURCE_CHARACTERS_BOUNDS, CMS_TRANSLATION_DEFAULT_MAX_SOURCE_CHARACTERS, cmsPageBuilderTranslationStatusSchema, cmsPageBuilderTranslationCapabilitySchema, cmsPuckDataSchema, cmsPageBuilderTranslationScopeSchema, cmsPageBuilderTranslateRequestSchema, cmsPageBuilderTranslateResponseSchema, type BlockTranslatableText, type CmsPageBuilderTranslationStatus, type CmsPageBuilderTranslationCapability, type CmsPuckData, type CmsPageBuilderTranslationScope, type CmsPageBuilderTranslateRequest, type CmsPageBuilderTranslateResponse, type CmsPageStatus, type CmsContentEnvelope, type CmsPageSummary, type CmsBreadcrumbsScheme, type CmsPageDetail, type CreateCmsPageRequest, type PatchCmsPageRequest, type PutCmsPageContentRequest, type CmsBlockSummary, type CmsBlockDetail, type CreateCmsBlockRequest, type PatchCmsBlockRequest, type CmsTemplateSummary, type CmsTemplateDetail, type CreateCmsTemplateRequest, type PatchCmsTemplateRequest, type CmsHookSummary, type CmsHookDetail, type CreateCmsHookRequest, type PatchCmsHookRequest, type CmsHookAttachmentRequest, type CmsFieldDescriptor, type CmsPageBuilderDescriptor, type BlockDefinition, type BlockCategory, type CmsColorPaletteEntry, type CmsColorPalette, type PutCmsColorPaletteRequest, type CmsAssetEmbedResolution, type CmsResolvedBlock, type CmsResolvedBlockByCode, type CmsResolvedTemplate, type CmsResolvedPage, type CmsResolvedHook, type CmsPageIndexEntry, type CmsPageIndexResponse, type CmsReservedSegmentsResponse, type CmsReference, type CmsExternalReferenceScanner, type CmsReferenceRegistryPort, type CmsPageRecord, type CmsPageReadPort, type CmsReservedSegmentContributor, type CmsReservedSegmentRegistryPort, type CmsPageStorefrontLink, type CmsPageStorefrontLinkScope, type CmsSeededBlock, type CmsBlockSeedPort, type CmsBlockRecord, type CmsLocalizedBlockRecord, type CmsBlockReadPort, } from './cms.js';
49
52
  export * from './page-builder-props.js';
50
53
  export * from './cms-brand.js';
51
54
  export * from './cms-contact-form.js';
@@ -61,6 +64,8 @@ export * from './storefront-cache-tags.js';
61
64
  export * from './blog.js';
62
65
  export * from './dictionary.js';
63
66
  export * from './modules.js';
67
+ export * from './command-hooks.js';
68
+ export * from './organization-hooks.js';
64
69
  export * from './platform-info.js';
65
70
  export * from './admin-feedback.js';
66
71
  export * from './admin-actions.js';
@@ -71,6 +76,10 @@ export * from './product-value-resolver.js';
71
76
  export * from './storefront-value-overrides.js';
72
77
  export * from './product-scopes.js';
73
78
  export * from './product-url-keys.js';
79
+ export * from './product-scope-model.js';
80
+ export * from './scoped-write-encoding.js';
81
+ export * from './product-scoped-values.js';
82
+ export * from './pim-locale-mapping.js';
74
83
  export * from './storefront-language-path.js';
75
84
  export * from './mfa.js';
76
85
  export * from './prompt-actions.js';
@@ -91,6 +100,8 @@ export * from './erp-connector.js';
91
100
  export { canonicalisePimFieldPath, isValidPimFieldPath } from './pim-field-path.js';
92
101
  export * from './kernel.js';
93
102
  export * from './actor.js';
103
+ export * from './organization-roles.js';
104
+ export * from './organization-registry-lookup.js';
94
105
  export * from './auth.js';
95
106
  export * from './customer-accounts.js';
96
107
  export * from './email.js';
@@ -101,6 +112,7 @@ export * from './admin-users.js';
101
112
  export * from './addresses.js';
102
113
  export * from './shipments.js';
103
114
  export * from './admin-notifications.js';
115
+ export * from './customer-notifications.js';
104
116
  export * from './audit-logs.js';
105
117
  export * from './import-export.js';
106
118
  export * from './text-normalization.js';
@@ -108,4 +120,7 @@ export * from './email-address.js';
108
120
  export * from './environment-inputs.js';
109
121
  export * from './admin-search.js';
110
122
  export * from './document-templates.js';
123
+ export * from './forms.js';
124
+ export * from './forms-logic.js';
125
+ export * from './schema-extensions.js';
111
126
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -16,6 +16,8 @@ export * from './scope-notice.js';
16
16
  export * from './catalog.js';
17
17
  // Feature 155 — the minimum-order rule (specs/155-catalog-order-constraints/).
18
18
  export * from './order-minimums.js';
19
+ // Issue #351 — the line quantity and line count bounds every line-carrying request shares.
20
+ export * from './line-bounds.js';
19
21
  export * from './localized-name.js';
20
22
  // Feature 163, T196 — the product card's summary, shared by the catalogue and the page editor's preview.
21
23
  export * from './product-summary-text.js';
@@ -39,6 +41,8 @@ export * from './money-input.js';
39
41
  // Feature 161 (G15) — the admin name fold shared by catalog's stored keys and price_lists' grid order.
40
42
  export * from './admin-name.js';
41
43
  export * from './taxes.js';
44
+ // Issue #852 — the buyer's VAT rate per product tax class, shared by the cart and the catalogue.
45
+ export * from './product-tax-rates.js';
42
46
  export * from './promotions.js';
43
47
  export * from './inventory.js';
44
48
  export * from './invoices.js';
@@ -65,6 +69,7 @@ export * from './analytics.js';
65
69
  export * from './seo.js';
66
70
  export * from './i18n.js';
67
71
  export * from './platform-language.js';
72
+ export * from './accept-language.js';
68
73
  export * from './admin-i18n.js';
69
74
  export {
70
75
  // `cmsPageStatusSchema` and `CmsPageStatus` are on this list because feature
@@ -77,7 +82,7 @@ cmsPageStatusSchema, cmsContentEnvelopeSchema, cmsPageSummarySchema, cmsBreadcru
77
82
  // Feature 096 — the Page Builder block vocabulary. `blockNameRe` is the one
78
83
  // authored copy of the persisted-name grammar; `page-builder-core` imports it
79
84
  // rather than restating it.
80
- blockNameRe, blockCategoryKeyRe, BlockDefinitionSchema, BlockCategorySchema, cmsColorPaletteEntrySchema, cmsColorPaletteSchema, putCmsColorPaletteRequestSchema, cmsAssetEmbedResolutionSchema, cmsResolvedBlockSchema, cmsResolvedTemplateSchema, cmsResolvedPageSchema, cmsResolvedHookSchema,
85
+ blockNameRe, blockCategoryKeyRe, BlockDefinitionSchema, BlockCategorySchema, cmsColorPaletteEntrySchema, cmsColorPaletteSchema, putCmsColorPaletteRequestSchema, cmsAssetEmbedResolutionSchema, cmsResolvedBlockSchema, cmsResolvedBlockByCodeSchema, cmsResolvedTemplateSchema, cmsResolvedPageSchema, cmsResolvedHookSchema,
81
86
  // Feature 105, Phase 3 — what the shop advertises to a crawler.
82
87
  cmsPageIndexEntrySchema, cmsPageIndexResponseSchema,
83
88
  // Feature 105, Phase 4 — the reserved set the editor and the refusal share.
@@ -107,6 +112,9 @@ export * from './storefront-cache-tags.js';
107
112
  export * from './blog.js';
108
113
  export * from './dictionary.js';
109
114
  export * from './modules.js';
115
+ // `specs/176-command-hooks-outbox/` P2 — command-hook refs, and `organizations`' first four.
116
+ export * from './command-hooks.js';
117
+ export * from './organization-hooks.js';
110
118
  export * from './platform-info.js';
111
119
  export * from './admin-feedback.js';
112
120
  export * from './admin-actions.js';
@@ -118,6 +126,12 @@ export * from './product-value-resolver.js';
118
126
  export * from './storefront-value-overrides.js';
119
127
  export * from './product-scopes.js';
120
128
  export * from './product-url-keys.js';
129
+ // Feature 174 — the three-level scope model, the one write encoding, the editor's scoped values
130
+ // and the PIM locale mapping (`specs/174-product-editor-scope-switcher/`).
131
+ export * from './product-scope-model.js';
132
+ export * from './scoped-write-encoding.js';
133
+ export * from './product-scoped-values.js';
134
+ export * from './pim-locale-mapping.js';
121
135
  // Feature 167 — the storefront language path prefix (`specs/167-storefront-locale-path/`).
122
136
  export * from './storefront-language-path.js';
123
137
  export * from './mfa.js';
@@ -142,6 +156,11 @@ export * from './kernel.js';
142
156
  // Fastify-free, so the platform and every module can name one shape instead of
143
157
  // restating it (`specs/110-instance-repository/` T118b).
144
158
  export * from './actor.js';
159
+ // Organization roles and permissions — the buyer's role vocabulary, the
160
+ // permission port and its route guard (`specs/170-organization-roles/`).
161
+ export * from './organization-roles.js';
162
+ // The company registry lookup at storefront registration (`specs/173-registration-registry-lookup/`).
163
+ export * from './organization-registry-lookup.js';
145
164
  // Port contracts published by feature 075's Phase P for providers that had no
146
165
  // contracts file of their own.
147
166
  export * from './auth.js';
@@ -154,6 +173,8 @@ export * from './admin-users.js';
154
173
  export * from './addresses.js';
155
174
  export * from './shipments.js';
156
175
  export * from './admin-notifications.js';
176
+ // The buyer's notification centre (feature 179): port types + storefront API shapes.
177
+ export * from './customer-notifications.js';
157
178
  // The audit-log reference registry (feature 075, D-87 drain). Not an API shape:
158
179
  // the in-process seam each module answers "what is this row of mine called, and
159
180
  // where does the admin app show it?" through.
@@ -180,4 +201,12 @@ export * from './environment-inputs.js';
180
201
  export * from './admin-search.js';
181
202
  // Document templates — Page Builder layouts of generated PDFs (specs/152-compare-pdf-template/).
182
203
  export * from './document-templates.js';
204
+ // Forms (`specs/170-forms-module/`): the form definition, the admin and public API shapes, the
205
+ // events — and, beside them, the one evaluator of visibility and validation that the backend, the
206
+ // storefront renderer and the admin preview all run (research R-5).
207
+ export * from './forms.js';
208
+ export * from './forms-logic.js';
209
+ // Declared extension columns on core tables (`specs/178-extensible-columns/`): the
210
+ // `?extensions=` query parameter and the `extensions` attribute of an admin read.
211
+ export * from './schema-extensions.js';
183
212
  //# sourceMappingURL=index.js.map
@@ -124,11 +124,11 @@ export declare const inventoryLandingKpisSchema: z.ZodObject<{
124
124
  }, z.core.$strip>;
125
125
  export type InventoryLandingKpis = z.infer<typeof inventoryLandingKpisSchema>;
126
126
  export declare const stockDisplayBandSchema: z.ZodEnum<{
127
- medium: "medium";
128
- available: "available";
129
- out_of_stock: "out_of_stock";
130
127
  high: "high";
128
+ medium: "medium";
131
129
  low: "low";
130
+ out_of_stock: "out_of_stock";
131
+ available: "available";
132
132
  }>;
133
133
  export type StockDisplayBand = z.infer<typeof stockDisplayBandSchema>;
134
134
  export declare const stockLevelRowSchema: z.ZodObject<{
@@ -151,11 +151,11 @@ export declare const stockLevelRowSchema: z.ZodObject<{
151
151
  }, z.core.$strip>>;
152
152
  cumulativeOnHand: z.ZodNumber;
153
153
  displayBand: z.ZodEnum<{
154
- medium: "medium";
155
- available: "available";
156
- out_of_stock: "out_of_stock";
157
154
  high: "high";
155
+ medium: "medium";
158
156
  low: "low";
157
+ out_of_stock: "out_of_stock";
158
+ available: "available";
159
159
  }>;
160
160
  isLowStock: z.ZodBoolean;
161
161
  isOutOfStock: z.ZodBoolean;
@@ -244,11 +244,11 @@ export declare const storefrontProductStockSchema: z.ZodObject<{
244
244
  available_or_not: "available_or_not";
245
245
  }>;
246
246
  displayBand: z.ZodEnum<{
247
- medium: "medium";
248
- available: "available";
249
- out_of_stock: "out_of_stock";
250
247
  high: "high";
248
+ medium: "medium";
251
249
  low: "low";
250
+ out_of_stock: "out_of_stock";
251
+ available: "available";
252
252
  }>;
253
253
  exactOnHand: z.ZodNullable<z.ZodNumber>;
254
254
  isOutOfStock: z.ZodBoolean;
@@ -23,17 +23,17 @@ export declare const invoiceLedgerKsefRoutingSchema: z.ZodEnum<{
23
23
  export type InvoiceLedgerKsefRouting = z.infer<typeof invoiceLedgerKsefRoutingSchema>;
24
24
  export declare const INVOICE_LEDGER_NATIVE_KSEF_ACTIONS: readonly ["submit", "skip"];
25
25
  export declare const invoiceLedgerNativeKsefActionSchema: z.ZodEnum<{
26
- submit: "submit";
27
26
  skip: "skip";
27
+ submit: "submit";
28
28
  }>;
29
29
  export type InvoiceLedgerNativeKsefAction = z.infer<typeof invoiceLedgerNativeKsefActionSchema>;
30
30
  export declare const INVOICE_LEDGER_DELIVERY_STATUSES: readonly ["queued", "awaiting_remote", "succeeded", "failed", "dead"];
31
31
  export declare const invoiceLedgerDeliveryStatusSchema: z.ZodEnum<{
32
32
  failed: "failed";
33
- succeeded: "succeeded";
34
33
  queued: "queued";
35
- awaiting_remote: "awaiting_remote";
34
+ succeeded: "succeeded";
36
35
  dead: "dead";
36
+ awaiting_remote: "awaiting_remote";
37
37
  }>;
38
38
  export type InvoiceLedgerDeliveryStatus = z.infer<typeof invoiceLedgerDeliveryStatusSchema>;
39
39
  export declare const INVOICE_LEDGER_DELIVERY_KINDS: readonly ["invoice", "correction"];
@@ -101,10 +101,10 @@ export interface InvoiceLedgerRoutingPort {
101
101
  export declare const invoiceLedgerDeliveryAttemptSchema: z.ZodObject<{
102
102
  status: z.ZodEnum<{
103
103
  failed: "failed";
104
- succeeded: "succeeded";
105
104
  queued: "queued";
106
- awaiting_remote: "awaiting_remote";
105
+ succeeded: "succeeded";
107
106
  dead: "dead";
107
+ awaiting_remote: "awaiting_remote";
108
108
  }>;
109
109
  at: z.ZodString;
110
110
  error: z.ZodNullable<z.ZodString>;
@@ -135,10 +135,10 @@ export declare const ledgerDeliveryRecordSchema: z.ZodObject<{
135
135
  }>;
136
136
  status: z.ZodEnum<{
137
137
  failed: "failed";
138
- succeeded: "succeeded";
139
138
  queued: "queued";
140
- awaiting_remote: "awaiting_remote";
139
+ succeeded: "succeeded";
141
140
  dead: "dead";
141
+ awaiting_remote: "awaiting_remote";
142
142
  }>;
143
143
  asyncTaskId: z.ZodNullable<z.ZodString>;
144
144
  remoteDocumentId: z.ZodNullable<z.ZodString>;
@@ -147,10 +147,10 @@ export declare const ledgerDeliveryRecordSchema: z.ZodObject<{
147
147
  attempts: z.ZodArray<z.ZodObject<{
148
148
  status: z.ZodEnum<{
149
149
  failed: "failed";
150
- succeeded: "succeeded";
151
150
  queued: "queued";
152
- awaiting_remote: "awaiting_remote";
151
+ succeeded: "succeeded";
153
152
  dead: "dead";
153
+ awaiting_remote: "awaiting_remote";
154
154
  }>;
155
155
  at: z.ZodString;
156
156
  error: z.ZodNullable<z.ZodString>;
@@ -337,10 +337,10 @@ export declare const invoiceLedgerDeliveryListItemSchema: z.ZodObject<{
337
337
  adapterId: z.ZodString;
338
338
  status: z.ZodEnum<{
339
339
  failed: "failed";
340
- succeeded: "succeeded";
341
340
  queued: "queued";
342
- awaiting_remote: "awaiting_remote";
341
+ succeeded: "succeeded";
343
342
  dead: "dead";
343
+ awaiting_remote: "awaiting_remote";
344
344
  }>;
345
345
  lastError: z.ZodNullable<z.ZodString>;
346
346
  environment: z.ZodString;
@@ -354,10 +354,10 @@ export declare const invoiceLedgerDeliveryListQuerySchema: z.ZodObject<{
354
354
  sort: z.ZodOptional<z.ZodString>;
355
355
  status: z.ZodOptional<z.ZodEnum<{
356
356
  failed: "failed";
357
- succeeded: "succeeded";
358
357
  queued: "queued";
359
- awaiting_remote: "awaiting_remote";
358
+ succeeded: "succeeded";
360
359
  dead: "dead";
360
+ awaiting_remote: "awaiting_remote";
361
361
  }>>;
362
362
  salesChannelId: z.ZodOptional<z.ZodString>;
363
363
  invoiceId: z.ZodOptional<z.ZodString>;