@endora-commerce/contracts 0.107.0 → 0.108.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 (141) hide show
  1. package/dist/admin-feedback.d.ts +61 -0
  2. package/dist/admin-feedback.d.ts.map +1 -0
  3. package/dist/admin-feedback.js +71 -0
  4. package/dist/admin-feedback.js.map +1 -0
  5. package/dist/admin-name.d.ts +21 -0
  6. package/dist/admin-name.d.ts.map +1 -0
  7. package/dist/admin-name.js +30 -0
  8. package/dist/admin-name.js.map +1 -0
  9. package/dist/carts.d.ts +197 -1
  10. package/dist/carts.d.ts.map +1 -1
  11. package/dist/carts.js +29 -0
  12. package/dist/carts.js.map +1 -1
  13. package/dist/catalog.d.ts +243 -10
  14. package/dist/catalog.d.ts.map +1 -1
  15. package/dist/catalog.js +107 -4
  16. package/dist/catalog.js.map +1 -1
  17. package/dist/common.d.ts +4 -0
  18. package/dist/common.d.ts.map +1 -1
  19. package/dist/common.js +14 -0
  20. package/dist/common.js.map +1 -1
  21. package/dist/comparisons.d.ts +7 -0
  22. package/dist/comparisons.d.ts.map +1 -1
  23. package/dist/comparisons.js +2 -0
  24. package/dist/comparisons.js.map +1 -1
  25. package/dist/credit-limits.d.ts.map +1 -1
  26. package/dist/credit-limits.js +3 -2
  27. package/dist/credit-limits.js.map +1 -1
  28. package/dist/crm-rich-text.d.ts +64 -0
  29. package/dist/crm-rich-text.d.ts.map +1 -0
  30. package/dist/crm-rich-text.js +303 -0
  31. package/dist/crm-rich-text.js.map +1 -0
  32. package/dist/crm.d.ts +91 -1
  33. package/dist/crm.d.ts.map +1 -1
  34. package/dist/crm.js +49 -34
  35. package/dist/crm.js.map +1 -1
  36. package/dist/custom-fields.d.ts +414 -1
  37. package/dist/custom-fields.d.ts.map +1 -1
  38. package/dist/custom-fields.js +319 -10
  39. package/dist/custom-fields.js.map +1 -1
  40. package/dist/document-templates.d.ts +184 -8
  41. package/dist/document-templates.d.ts.map +1 -1
  42. package/dist/document-templates.js +98 -1
  43. package/dist/document-templates.js.map +1 -1
  44. package/dist/document-values.d.ts +4 -1
  45. package/dist/document-values.d.ts.map +1 -1
  46. package/dist/document-values.js +18 -6
  47. package/dist/document-values.js.map +1 -1
  48. package/dist/errors.d.ts +37 -8
  49. package/dist/errors.d.ts.map +1 -1
  50. package/dist/errors.js +66 -8
  51. package/dist/errors.js.map +1 -1
  52. package/dist/index.d.ts +11 -0
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/index.js +16 -0
  55. package/dist/index.js.map +1 -1
  56. package/dist/invoices.d.ts.map +1 -1
  57. package/dist/invoices.js +7 -4
  58. package/dist/invoices.js.map +1 -1
  59. package/dist/line-groups.d.ts +80 -0
  60. package/dist/line-groups.d.ts.map +1 -0
  61. package/dist/line-groups.js +130 -0
  62. package/dist/line-groups.js.map +1 -0
  63. package/dist/localized-name.d.ts +20 -0
  64. package/dist/localized-name.d.ts.map +1 -0
  65. package/dist/localized-name.js +45 -0
  66. package/dist/localized-name.js.map +1 -0
  67. package/dist/money-decimal.d.ts +162 -0
  68. package/dist/money-decimal.d.ts.map +1 -0
  69. package/dist/money-decimal.js +365 -0
  70. package/dist/money-decimal.js.map +1 -0
  71. package/dist/money-input.d.ts +64 -0
  72. package/dist/money-input.d.ts.map +1 -0
  73. package/dist/money-input.js +111 -0
  74. package/dist/money-input.js.map +1 -0
  75. package/dist/order-minimums.d.ts +111 -0
  76. package/dist/order-minimums.d.ts.map +1 -0
  77. package/dist/order-minimums.js +196 -0
  78. package/dist/order-minimums.js.map +1 -0
  79. package/dist/orders.d.ts +181 -2
  80. package/dist/orders.d.ts.map +1 -1
  81. package/dist/orders.js +92 -5
  82. package/dist/orders.js.map +1 -1
  83. package/dist/payment-methods.d.ts.map +1 -1
  84. package/dist/payment-methods.js +2 -1
  85. package/dist/payment-methods.js.map +1 -1
  86. package/dist/price-book-decimal.d.ts +84 -0
  87. package/dist/price-book-decimal.d.ts.map +1 -0
  88. package/dist/price-book-decimal.js +175 -0
  89. package/dist/price-book-decimal.js.map +1 -0
  90. package/dist/price-books.d.ts +2206 -0
  91. package/dist/price-books.d.ts.map +1 -0
  92. package/dist/price-books.js +777 -0
  93. package/dist/price-books.js.map +1 -0
  94. package/dist/price-lists.d.ts +268 -607
  95. package/dist/price-lists.d.ts.map +1 -1
  96. package/dist/price-lists.js +92 -455
  97. package/dist/price-lists.js.map +1 -1
  98. package/dist/product-feeds.d.ts +89 -8
  99. package/dist/product-feeds.d.ts.map +1 -1
  100. package/dist/product-feeds.js +18 -1
  101. package/dist/product-feeds.js.map +1 -1
  102. package/dist/product-value-resolver.d.ts +6 -0
  103. package/dist/product-value-resolver.d.ts.map +1 -1
  104. package/dist/product-value-resolver.js +6 -1
  105. package/dist/product-value-resolver.js.map +1 -1
  106. package/dist/promotions.d.ts +2 -2
  107. package/dist/promotions.d.ts.map +1 -1
  108. package/dist/promotions.js +8 -2
  109. package/dist/promotions.js.map +1 -1
  110. package/dist/quick-order.d.ts +39 -0
  111. package/dist/quick-order.d.ts.map +1 -1
  112. package/dist/quick-order.js +43 -0
  113. package/dist/quick-order.js.map +1 -1
  114. package/dist/quote-requests.d.ts +270 -1
  115. package/dist/quote-requests.d.ts.map +1 -1
  116. package/dist/quote-requests.js +150 -6
  117. package/dist/quote-requests.js.map +1 -1
  118. package/dist/returns.d.ts +55 -2
  119. package/dist/returns.d.ts.map +1 -1
  120. package/dist/returns.js +39 -4
  121. package/dist/returns.js.map +1 -1
  122. package/dist/sales-channels.d.ts +2 -0
  123. package/dist/sales-channels.d.ts.map +1 -1
  124. package/dist/sales-channels.js +2 -0
  125. package/dist/sales-channels.js.map +1 -1
  126. package/dist/search.d.ts +60 -0
  127. package/dist/search.d.ts.map +1 -1
  128. package/dist/search.js +4 -0
  129. package/dist/search.js.map +1 -1
  130. package/dist/shipping-methods.d.ts.map +1 -1
  131. package/dist/shipping-methods.js +2 -1
  132. package/dist/shipping-methods.js.map +1 -1
  133. package/dist/shopping-lists.d.ts +24 -0
  134. package/dist/shopping-lists.d.ts.map +1 -1
  135. package/dist/shopping-lists.js +20 -1
  136. package/dist/shopping-lists.js.map +1 -1
  137. package/dist/storefront-value-overrides.d.ts +67 -0
  138. package/dist/storefront-value-overrides.d.ts.map +1 -0
  139. package/dist/storefront-value-overrides.js +93 -0
  140. package/dist/storefront-value-overrides.js.map +1 -0
  141. package/package.json +1 -1
@@ -0,0 +1,61 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Feedback an administrator sends to the makers of Endora Commerce from the
4
+ * Admin UI (issue #379; the `admin_feedback` module).
5
+ *
6
+ * Two hops, two shapes:
7
+ *
8
+ * 1. `POST /api/v1/admin/feedback` — the Admin UI to its own instance:
9
+ * {@link AdminFeedbackRequestSchema}. What the person typed, and the address
10
+ * of the Admin UI they typed it in (the instance cannot know the address its
11
+ * browser-facing application is served at).
12
+ * 2. The instance to the relay — by default the contact endpoint of
13
+ * `commerce.endora.software` — {@link AdminFeedbackRelayPayloadSchema}: the
14
+ * same words plus what the instance knows and the person need not type —
15
+ * the release, the API's public address, who sent it. The relay turns it
16
+ * into one e-mail to support, with `Reply-To` the sender's address.
17
+ *
18
+ * Nothing here is stored by the instance.
19
+ */
20
+ /** The longest feedback accepted — a few screens of text. */
21
+ export declare const ADMIN_FEEDBACK_MESSAGE_MAX_LENGTH = 5000;
22
+ /** The phone number, liberal in what it accepts: digits, spaces, `+`, `-`, `(`, `)`, `/`, `.`. */
23
+ export declare const adminFeedbackPhoneSchema: z.ZodString;
24
+ export declare const AdminFeedbackRequestSchema: z.ZodObject<{
25
+ message: z.ZodString;
26
+ email: z.ZodString;
27
+ phone: z.ZodOptional<z.ZodString>;
28
+ adminUrl: z.ZodOptional<z.ZodString>;
29
+ language: z.ZodOptional<z.ZodString>;
30
+ }, z.core.$strip>;
31
+ export type AdminFeedbackRequest = z.infer<typeof AdminFeedbackRequestSchema>;
32
+ /** What the instance sends to the relay. */
33
+ export declare const AdminFeedbackRelayPayloadSchema: z.ZodObject<{
34
+ kind: z.ZodLiteral<"admin_feedback">;
35
+ message: z.ZodString;
36
+ email: z.ZodString;
37
+ phone: z.ZodNullable<z.ZodString>;
38
+ language: z.ZodNullable<z.ZodString>;
39
+ platformVersion: z.ZodNullable<z.ZodString>;
40
+ adminUrl: z.ZodNullable<z.ZodString>;
41
+ apiUrl: z.ZodNullable<z.ZodString>;
42
+ adminName: z.ZodNullable<z.ZodString>;
43
+ adminUserId: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$strip>;
45
+ export type AdminFeedbackRelayPayload = z.infer<typeof AdminFeedbackRelayPayloadSchema>;
46
+ /** The error codes `POST /api/v1/admin/feedback` answers with besides validation. */
47
+ export declare const ADMIN_FEEDBACK_ERROR_CODES: {
48
+ /** The relay address setting is empty: sending is switched off on this instance. */
49
+ readonly NOT_CONFIGURED: "ADMIN_FEEDBACK_NOT_CONFIGURED";
50
+ /** The relay could not be reached, or refused the message. */
51
+ readonly DELIVERY_FAILED: "ADMIN_FEEDBACK_DELIVERY_FAILED";
52
+ };
53
+ /** The setting codes of the `admin_feedback` module. */
54
+ export declare const ADMIN_FEEDBACK_SETTING_CODES: {
55
+ readonly MODULE_ENABLED: "admin_feedback.module_enabled";
56
+ readonly RELAY_URL: "admin_feedback.relay_url";
57
+ };
58
+ /** Where feedback goes unless an operator says otherwise. */
59
+ /** With its trailing slash: the site answers the bare path with a redirect, and a POST does not follow one. */
60
+ export declare const ADMIN_FEEDBACK_DEFAULT_RELAY_URL = "https://commerce.endora.software/api/platform-feedback/";
61
+ //# sourceMappingURL=admin-feedback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-feedback.d.ts","sourceRoot":"","sources":["../src/admin-feedback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;GAiBG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,iCAAiC,OAAO,CAAC;AAEtD,kGAAkG;AAClG,eAAO,MAAM,wBAAwB,aAKgD,CAAC;AAEtF,eAAO,MAAM,0BAA0B;;;;;;iBASrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,4CAA4C;AAC5C,eAAO,MAAM,+BAA+B;;;;;;;;;;;iBAe1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,qFAAqF;AACrF,eAAO,MAAM,0BAA0B;IACrC,oFAAoF;;IAEpF,8DAA8D;;CAEtD,CAAC;AAEX,wDAAwD;AACxD,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC;AAEX,6DAA6D;AAC7D,+GAA+G;AAC/G,eAAO,MAAM,gCAAgC,4DAA4D,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Feedback an administrator sends to the makers of Endora Commerce from the
4
+ * Admin UI (issue #379; the `admin_feedback` module).
5
+ *
6
+ * Two hops, two shapes:
7
+ *
8
+ * 1. `POST /api/v1/admin/feedback` — the Admin UI to its own instance:
9
+ * {@link AdminFeedbackRequestSchema}. What the person typed, and the address
10
+ * of the Admin UI they typed it in (the instance cannot know the address its
11
+ * browser-facing application is served at).
12
+ * 2. The instance to the relay — by default the contact endpoint of
13
+ * `commerce.endora.software` — {@link AdminFeedbackRelayPayloadSchema}: the
14
+ * same words plus what the instance knows and the person need not type —
15
+ * the release, the API's public address, who sent it. The relay turns it
16
+ * into one e-mail to support, with `Reply-To` the sender's address.
17
+ *
18
+ * Nothing here is stored by the instance.
19
+ */
20
+ /** The longest feedback accepted — a few screens of text. */
21
+ export const ADMIN_FEEDBACK_MESSAGE_MAX_LENGTH = 5000;
22
+ /** The phone number, liberal in what it accepts: digits, spaces, `+`, `-`, `(`, `)`, `/`, `.`. */
23
+ export const adminFeedbackPhoneSchema = z
24
+ .string()
25
+ .trim()
26
+ .max(40)
27
+ .regex(/^[0-9+()\-/. ]*$/, 'phone')
28
+ .refine((value) => value === '' || (value.match(/\d/g)?.length ?? 0) >= 6, 'phone');
29
+ export const AdminFeedbackRequestSchema = z.object({
30
+ message: z.string().trim().min(1).max(ADMIN_FEEDBACK_MESSAGE_MAX_LENGTH),
31
+ email: z.string().trim().email().max(254),
32
+ /** Optional; an empty string is no phone. */
33
+ phone: adminFeedbackPhoneSchema.optional(),
34
+ /** The Admin UI's own address — `window.location.origin`. */
35
+ adminUrl: z.string().url().max(2048).optional(),
36
+ /** The language the Admin UI was in, so support can answer in it. */
37
+ language: z.string().min(2).max(16).optional(),
38
+ });
39
+ /** What the instance sends to the relay. */
40
+ export const AdminFeedbackRelayPayloadSchema = z.object({
41
+ /** Fixed: lets the relay tell this payload from its other forms. */
42
+ kind: z.literal('admin_feedback'),
43
+ message: z.string().min(1).max(ADMIN_FEEDBACK_MESSAGE_MAX_LENGTH),
44
+ email: z.string().email().max(254),
45
+ phone: z.string().max(40).nullable(),
46
+ language: z.string().max(16).nullable(),
47
+ /** The platform release the instance runs, or `null` when it could not read one. */
48
+ platformVersion: z.string().max(64).nullable(),
49
+ adminUrl: z.string().max(2048).nullable(),
50
+ /** The API's public base address, when the instance has one configured. */
51
+ apiUrl: z.string().max(2048).nullable(),
52
+ /** The sending administrator: their name as the instance knows it. */
53
+ adminName: z.string().max(200).nullable(),
54
+ adminUserId: z.string().max(64).nullable(),
55
+ });
56
+ /** The error codes `POST /api/v1/admin/feedback` answers with besides validation. */
57
+ export const ADMIN_FEEDBACK_ERROR_CODES = {
58
+ /** The relay address setting is empty: sending is switched off on this instance. */
59
+ NOT_CONFIGURED: 'ADMIN_FEEDBACK_NOT_CONFIGURED',
60
+ /** The relay could not be reached, or refused the message. */
61
+ DELIVERY_FAILED: 'ADMIN_FEEDBACK_DELIVERY_FAILED',
62
+ };
63
+ /** The setting codes of the `admin_feedback` module. */
64
+ export const ADMIN_FEEDBACK_SETTING_CODES = {
65
+ MODULE_ENABLED: 'admin_feedback.module_enabled',
66
+ RELAY_URL: 'admin_feedback.relay_url',
67
+ };
68
+ /** Where feedback goes unless an operator says otherwise. */
69
+ /** With its trailing slash: the site answers the bare path with a redirect, and a POST does not follow one. */
70
+ export const ADMIN_FEEDBACK_DEFAULT_RELAY_URL = 'https://commerce.endora.software/api/platform-feedback/';
71
+ //# sourceMappingURL=admin-feedback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-feedback.js","sourceRoot":"","sources":["../src/admin-feedback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;GAiBG;AAEH,6DAA6D;AAC7D,MAAM,CAAC,MAAM,iCAAiC,GAAG,IAAI,CAAC;AAEtD,kGAAkG;AAClG,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,EAAE;KACR,IAAI,EAAE;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CAAC,kBAAkB,EAAE,OAAO,CAAC;KAClC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;AAEtF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,iCAAiC,CAAC;IACxE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IACzC,6CAA6C;IAC7C,KAAK,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IAC1C,6DAA6D;IAC7D,QAAQ,EAAE,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CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAGH,qFAAqF;AACrF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,oFAAoF;IACpF,cAAc,EAAE,+BAA+B;IAC/C,8DAA8D;IAC9D,eAAe,EAAE,gCAAgC;CACzC,CAAC;AAEX,wDAAwD;AACxD,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,cAAc,EAAE,+BAA+B;IAC/C,SAAS,EAAE,0BAA0B;CAC7B,CAAC;AAEX,6DAA6D;AAC7D,+GAA+G;AAC/G,MAAM,CAAC,MAAM,gCAAgC,GAAG,yDAAyD,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The admin name rule's shared half — feature 161, G15 redesign
3
+ * (`specs/161-price-book-editor/research.md` R14).
4
+ *
5
+ * `catalog` stores, per admin language, a sort and search key for every
6
+ * product (generated columns built by its SQL function `catalog_admin_fold`);
7
+ * `price_lists` orders the attribute and category lines of a price book by the
8
+ * same fold in TypeScript. This is that fold, kept beside the SQL one by a
9
+ * parity test (`backend/test/integration/price_lists/admin-name-rule-parity.test.ts`):
10
+ * lower case; `ł→l`, `đ→d`, `ø→o`, `ß→s`, `æ→a`; NFKD with the combining
11
+ * marks removed. Compared bytewise, it orders `Ążur` with `A` and `Łącznik`
12
+ * with `L`, the same on every machine and in every database locale.
13
+ */
14
+ /** The admin UI languages that have stored keys; any other language reads `en`. */
15
+ export declare const ADMIN_NAME_LANGUAGES: readonly ["en", "pl"];
16
+ export type AdminNameLanguage = (typeof ADMIN_NAME_LANGUAGES)[number];
17
+ /** The admin language a tag (`pl`, `pl-PL`, `de`, `null`) orders and searches by. */
18
+ export declare function adminNameLanguage(tag: string | null | undefined): AdminNameLanguage;
19
+ /** Case- and accent-fold a name the way `catalog_admin_fold` does. */
20
+ export declare function foldAdminName(value: string): string;
21
+ //# sourceMappingURL=admin-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-name.d.ts","sourceRoot":"","sources":["../src/admin-name.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,uBAAwB,CAAC;AAC1D,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,qFAAqF;AACrF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,iBAAiB,CAGnF;AAID,sEAAsE;AACtE,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMnD"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The admin name rule's shared half — feature 161, G15 redesign
3
+ * (`specs/161-price-book-editor/research.md` R14).
4
+ *
5
+ * `catalog` stores, per admin language, a sort and search key for every
6
+ * product (generated columns built by its SQL function `catalog_admin_fold`);
7
+ * `price_lists` orders the attribute and category lines of a price book by the
8
+ * same fold in TypeScript. This is that fold, kept beside the SQL one by a
9
+ * parity test (`backend/test/integration/price_lists/admin-name-rule-parity.test.ts`):
10
+ * lower case; `ł→l`, `đ→d`, `ø→o`, `ß→s`, `æ→a`; NFKD with the combining
11
+ * marks removed. Compared bytewise, it orders `Ążur` with `A` and `Łącznik`
12
+ * with `L`, the same on every machine and in every database locale.
13
+ */
14
+ /** The admin UI languages that have stored keys; any other language reads `en`. */
15
+ export const ADMIN_NAME_LANGUAGES = ['en', 'pl'];
16
+ /** The admin language a tag (`pl`, `pl-PL`, `de`, `null`) orders and searches by. */
17
+ export function adminNameLanguage(tag) {
18
+ const primary = (tag ?? '').split('-')[0].toLowerCase();
19
+ return ADMIN_NAME_LANGUAGES.includes(primary) ? primary : 'en';
20
+ }
21
+ const FOLDED = { ł: 'l', đ: 'd', ø: 'o', ß: 's', æ: 'a' };
22
+ /** Case- and accent-fold a name the way `catalog_admin_fold` does. */
23
+ export function foldAdminName(value) {
24
+ return value
25
+ .toLowerCase()
26
+ .replace(/[łđøßæ]/g, (c) => FOLDED[c])
27
+ .normalize('NFKD')
28
+ .replace(/[̀-ͯ]/g, '');
29
+ }
30
+ //# sourceMappingURL=admin-name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-name.js","sourceRoot":"","sources":["../src/admin-name.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,mFAAmF;AACnF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,IAAI,CAAU,CAAC;AAG1D,qFAAqF;AACrF,MAAM,UAAU,iBAAiB,CAAC,GAA8B;IAC9D,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC,WAAW,EAAE,CAAC;IACzD,OAAQ,oBAA0C,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,OAA6B,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/G,CAAC;AAED,MAAM,MAAM,GAA2B,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;AAElF,sEAAsE;AACtE,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAO,KAAK;SACT,WAAW,EAAE;SACb,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAE,CAAC;SACtC,SAAS,CAAC,MAAM,CAAC;SACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC3B,CAAC"}
package/dist/carts.d.ts CHANGED
@@ -126,6 +126,7 @@ export declare const cartDroppedLineReasonSchema: z.ZodEnum<{
126
126
  out_of_stock: "out_of_stock";
127
127
  no_price_in_customer_list: "no_price_in_customer_list";
128
128
  removed_by_conversion: "removed_by_conversion";
129
+ below_minimum: "below_minimum";
129
130
  }>;
130
131
  export type CartDroppedLineReason = z.infer<typeof cartDroppedLineReasonSchema>;
131
132
  export declare const cartLineUnavailableReasonSchema: z.ZodEnum<{
@@ -159,6 +160,15 @@ export declare const cartViewLineSchema: z.ZodObject<{
159
160
  packagingUnitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
161
  packagingUnitBaseQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
161
162
  displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ minOrderQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
164
+ belowMinimum: z.ZodOptional<z.ZodNullable<z.ZodObject<{
165
+ kind: z.ZodEnum<{
166
+ pieces: "pieces";
167
+ packaging_unit: "packaging_unit";
168
+ }>;
169
+ minimum: z.ZodNumber;
170
+ packagingUnitName: z.ZodOptional<z.ZodString>;
171
+ }, z.core.$strip>>>;
162
172
  }, z.core.$strip>;
163
173
  export type CartViewLine = z.infer<typeof cartViewLineSchema>;
164
174
  export declare const cartMiniLineSchema: z.ZodObject<{
@@ -228,6 +238,15 @@ export declare const cartFullPayloadSchema: z.ZodObject<{
228
238
  packagingUnitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
239
  packagingUnitBaseQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
230
240
  displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
+ minOrderQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
242
+ belowMinimum: z.ZodOptional<z.ZodNullable<z.ZodObject<{
243
+ kind: z.ZodEnum<{
244
+ pieces: "pieces";
245
+ packaging_unit: "packaging_unit";
246
+ }>;
247
+ minimum: z.ZodNumber;
248
+ packagingUnitName: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strip>>>;
231
250
  }, z.core.$strip>>;
232
251
  itemCount: z.ZodNumber;
233
252
  subtotal: z.ZodObject<{
@@ -263,7 +282,9 @@ export declare const cartFullPayloadSchema: z.ZodObject<{
263
282
  out_of_stock: "out_of_stock";
264
283
  no_price_in_customer_list: "no_price_in_customer_list";
265
284
  removed_by_conversion: "removed_by_conversion";
285
+ below_minimum: "below_minimum";
266
286
  }>;
287
+ minimum: z.ZodOptional<z.ZodNumber>;
267
288
  }, z.core.$strip>>;
268
289
  couponDroppedThisRead: z.ZodNullable<z.ZodObject<{
269
290
  code: z.ZodString;
@@ -326,6 +347,15 @@ export declare const cartFullResponseSchema: z.ZodObject<{
326
347
  packagingUnitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
348
  packagingUnitBaseQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
328
349
  displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
+ minOrderQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
351
+ belowMinimum: z.ZodOptional<z.ZodNullable<z.ZodObject<{
352
+ kind: z.ZodEnum<{
353
+ pieces: "pieces";
354
+ packaging_unit: "packaging_unit";
355
+ }>;
356
+ minimum: z.ZodNumber;
357
+ packagingUnitName: z.ZodOptional<z.ZodString>;
358
+ }, z.core.$strip>>>;
329
359
  }, z.core.$strip>>;
330
360
  itemCount: z.ZodNumber;
331
361
  subtotal: z.ZodObject<{
@@ -361,7 +391,9 @@ export declare const cartFullResponseSchema: z.ZodObject<{
361
391
  out_of_stock: "out_of_stock";
362
392
  no_price_in_customer_list: "no_price_in_customer_list";
363
393
  removed_by_conversion: "removed_by_conversion";
394
+ below_minimum: "below_minimum";
364
395
  }>;
396
+ minimum: z.ZodOptional<z.ZodNumber>;
365
397
  }, z.core.$strip>>;
366
398
  couponDroppedThisRead: z.ZodNullable<z.ZodObject<{
367
399
  code: z.ZodString;
@@ -551,7 +583,9 @@ export declare const cartFromQrResponseSchema: z.ZodObject<{
551
583
  out_of_stock: "out_of_stock";
552
584
  no_price_in_customer_list: "no_price_in_customer_list";
553
585
  removed_by_conversion: "removed_by_conversion";
586
+ below_minimum: "below_minimum";
554
587
  }>;
588
+ minimum: z.ZodOptional<z.ZodNumber>;
555
589
  }, z.core.$strip>>;
556
590
  }, z.core.$strip>;
557
591
  }, z.core.$strip>;
@@ -568,7 +602,9 @@ export declare const cartFromShoppingListResponseSchema: z.ZodObject<{
568
602
  out_of_stock: "out_of_stock";
569
603
  no_price_in_customer_list: "no_price_in_customer_list";
570
604
  removed_by_conversion: "removed_by_conversion";
605
+ below_minimum: "below_minimum";
571
606
  }>;
607
+ minimum: z.ZodOptional<z.ZodNumber>;
572
608
  }, z.core.$strip>>;
573
609
  }, z.core.$strip>;
574
610
  }, z.core.$strip>;
@@ -689,6 +725,15 @@ export declare const orgCartDetailPayloadSchema: z.ZodObject<{
689
725
  packagingUnitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
690
726
  packagingUnitBaseQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
691
727
  displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
728
+ minOrderQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
729
+ belowMinimum: z.ZodOptional<z.ZodNullable<z.ZodObject<{
730
+ kind: z.ZodEnum<{
731
+ pieces: "pieces";
732
+ packaging_unit: "packaging_unit";
733
+ }>;
734
+ minimum: z.ZodNumber;
735
+ packagingUnitName: z.ZodOptional<z.ZodString>;
736
+ }, z.core.$strip>>>;
692
737
  }, z.core.$strip>>;
693
738
  itemCount: z.ZodNumber;
694
739
  subtotal: z.ZodObject<{
@@ -724,7 +769,9 @@ export declare const orgCartDetailPayloadSchema: z.ZodObject<{
724
769
  out_of_stock: "out_of_stock";
725
770
  no_price_in_customer_list: "no_price_in_customer_list";
726
771
  removed_by_conversion: "removed_by_conversion";
772
+ below_minimum: "below_minimum";
727
773
  }>;
774
+ minimum: z.ZodOptional<z.ZodNumber>;
728
775
  }, z.core.$strip>>;
729
776
  couponDroppedThisRead: z.ZodNullable<z.ZodObject<{
730
777
  code: z.ZodString;
@@ -804,6 +851,15 @@ export declare const orgCartDetailResponseSchema: z.ZodObject<{
804
851
  packagingUnitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
805
852
  packagingUnitBaseQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
806
853
  displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
854
+ minOrderQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
855
+ belowMinimum: z.ZodOptional<z.ZodNullable<z.ZodObject<{
856
+ kind: z.ZodEnum<{
857
+ pieces: "pieces";
858
+ packaging_unit: "packaging_unit";
859
+ }>;
860
+ minimum: z.ZodNumber;
861
+ packagingUnitName: z.ZodOptional<z.ZodString>;
862
+ }, z.core.$strip>>>;
807
863
  }, z.core.$strip>>;
808
864
  itemCount: z.ZodNumber;
809
865
  subtotal: z.ZodObject<{
@@ -839,7 +895,9 @@ export declare const orgCartDetailResponseSchema: z.ZodObject<{
839
895
  out_of_stock: "out_of_stock";
840
896
  no_price_in_customer_list: "no_price_in_customer_list";
841
897
  removed_by_conversion: "removed_by_conversion";
898
+ below_minimum: "below_minimum";
842
899
  }>;
900
+ minimum: z.ZodOptional<z.ZodNumber>;
843
901
  }, z.core.$strip>>;
844
902
  couponDroppedThisRead: z.ZodNullable<z.ZodObject<{
845
903
  code: z.ZodString;
@@ -1253,9 +1311,32 @@ export interface CartItemRecord {
1253
1311
  packagingUnitId: string | null;
1254
1312
  packagingUnitName: string | null;
1255
1313
  packagingUnitBaseQuantity: number | null;
1314
+ /**
1315
+ * Feature 155 (FR-028) — the quantity this line was seeded with from an accepted
1316
+ * quote request; `null` for every other line. Written only by
1317
+ * `CartWritePort.replaceItemsForCustomer` with a `sourceQuoteRequestId` — it is
1318
+ * the line's agreed quantity, the one its agreed price holds at.
1319
+ */
1320
+ quoteSeededQuantity: number | null;
1321
+ /**
1322
+ * Feature 160 (FR-030) — which tier priced `unitPrice` (`base`, `catalogue`,
1323
+ * `buyer`, `sale`), or `agreed`; `null` for a line priced before the feature.
1324
+ * Order placement copies it onto the order line.
1325
+ */
1326
+ priceSource?: 'agreed' | 'base' | 'catalogue' | 'buyer' | 'sale' | null;
1256
1327
  createdAt: Date;
1257
1328
  updatedAt: Date;
1258
1329
  }
1330
+ /**
1331
+ * Feature 155 (FR-028, owner ruling P2; data-model §2) — whether a basket line is
1332
+ * exempt from the catalogue's order minimums: it was seeded from an accepted quote,
1333
+ * the basket still carries that quote as its source, and the line's quantity equals
1334
+ * the quote's. State-based, so 5 → 12 → 5 is exempt again.
1335
+ *
1336
+ * The per-line half only: `carts` applies it to the basket's mark at face value;
1337
+ * `orders` first decides whether the quote source honours exemptions at all (R19).
1338
+ */
1339
+ export declare function isQuoteSeededLineExempt(cart: Pick<CartRecord, 'sourceQuoteRequestId'>, item: Pick<CartItemRecord, 'quantity' | 'quoteSeededQuantity'>): boolean;
1259
1340
  /** A cart with its lines — the unit every consumer actually wants. */
1260
1341
  export interface CartWithItems {
1261
1342
  cart: CartRecord;
@@ -1273,6 +1354,23 @@ export interface CartSeedLine {
1273
1354
  export interface CartSeedOptions {
1274
1355
  /** The accepted Quote Request these lines are the agreed lines of. */
1275
1356
  sourceQuoteRequestId?: string | null;
1357
+ /**
1358
+ * Issue #166 — leave out of the basket every seed line that has no price
1359
+ * this customer may order it at now (no price list and no price of its own,
1360
+ * or sold on request only), and name them in the answer's `unorderable`.
1361
+ * A reorder sets it, so the buyer is told rather than handed a basket
1362
+ * placement refuses. Ignored for an agreed seed (`sourceQuoteRequestId`),
1363
+ * whose lines are priced by their agreement. Absent, such a line is kept at
1364
+ * the price it was seeded with, as before.
1365
+ */
1366
+ dropUnorderable?: boolean;
1367
+ }
1368
+ /** A seed line `dropUnorderable` left out, and why (issue #166). */
1369
+ export interface CartSeedUnorderableLine {
1370
+ productId: string;
1371
+ variantId: string | null;
1372
+ /** `unpriced`: nothing prices it for this customer; `quote_only`: sold on request only. */
1373
+ reason: 'unpriced' | 'quote_only';
1276
1374
  }
1277
1375
  /**
1278
1376
  * Container name: `cartReadPort`. Owner: `carts`.
@@ -1337,6 +1435,49 @@ export interface CartReadPort {
1337
1435
  * `activation` to say, not this line's: a module declaring
1338
1436
  * `nonDeactivatable` never enters one.
1339
1437
  */
1438
+ /**
1439
+ * Feature 155 (research R8) — one line of a batch add (`CartWritePort.addItems`).
1440
+ * The fields of `addItem`'s line.
1441
+ */
1442
+ export interface CartBatchLineInput {
1443
+ productId: string;
1444
+ variantId?: string;
1445
+ /** Pieces, or units when `packagingUnitId` is set — as `addItem`. */
1446
+ quantity: number;
1447
+ packagingUnitId?: string;
1448
+ /** As `addItem`'s: set only by an operator surface that names the channel itself. */
1449
+ salesChannelId?: string;
1450
+ }
1451
+ /**
1452
+ * Feature 155 (research R8) — what became of one batch line, at its input `index`.
1453
+ *
1454
+ * A `failed` line carries the refusal it met and nothing about the product: a
1455
+ * product the caller may not see fails with the unknown id's `404`, never with a
1456
+ * name or a minimum (FR-035, threat F1).
1457
+ */
1458
+ export type CartBatchLineOutcome = {
1459
+ index: number;
1460
+ status: 'added';
1461
+ } | {
1462
+ index: number;
1463
+ status: 'below_minimum';
1464
+ productId: string;
1465
+ /** In `options.language`, the language the response is answered in. */
1466
+ productName: string;
1467
+ kind: 'pieces' | 'packaging_unit';
1468
+ minimum: number;
1469
+ packagingUnitName?: string;
1470
+ } | {
1471
+ index: number;
1472
+ status: 'failed';
1473
+ /** The refusal as `addItem` threw it; `details` only when it carried any. */
1474
+ error: {
1475
+ status: number;
1476
+ code: string;
1477
+ message: string;
1478
+ details?: unknown;
1479
+ };
1480
+ };
1340
1481
  export interface CartWritePort {
1341
1482
  getOrCreateForCustomer(ctx: CartCustomerContext): Promise<CartRecord>;
1342
1483
  addItem(actor: {
@@ -1354,7 +1495,60 @@ export interface CartWritePort {
1354
1495
  * never by a buyer-facing route.
1355
1496
  */
1356
1497
  salesChannelId?: string;
1498
+ },
1499
+ /** The language a minimum refusal names the product in (feature 155, D3/D4). */
1500
+ options?: {
1501
+ language?: string;
1357
1502
  }): Promise<CartWithItems>;
1503
+ /**
1504
+ * Feature 155 (R8) — add several lines. (1) Every line is resolved with exactly
1505
+ * `addItem`'s preconditions (quantity, visibility, channel, packaging unit in
1506
+ * product); a line that fails gets the unknown-id answer and takes no part in
1507
+ * the evaluation. (2) The resolved lines are judged with the cart in two passes
1508
+ * — unit minimums, then pieces minimums over the survivors; lines below a
1509
+ * minimum are not added and are reported. Lines already in the cart are never
1510
+ * rejected. (3) The accepted lines are added.
1511
+ *
1512
+ * `onLineError: 'throw'` — the first resolution failure is thrown before
1513
+ * anything is written; a later add failure is thrown as `addItem` would (lines
1514
+ * before it stay added). `'report'` — every failure is returned as `failed`.
1515
+ *
1516
+ * `onBelowMinimum: 'report'` (the default) — a line below a minimum is a
1517
+ * `below_minimum` outcome. `'throw'` — any such line refuses the whole batch
1518
+ * after step (2) and before anything is written: `422
1519
+ * PRODUCT_BELOW_MINIMUM_QUANTITY` / `PACKAGING_UNIT_BELOW_MINIMUM_QUANTITY`,
1520
+ * every offending line in `details.lines` keyed by its `index`.
1521
+ *
1522
+ * `replaceExisting` (a customer actor only) — the batch becomes the customer's
1523
+ * whole basket: step (2) judges the batch alone, and the active cart is cleared
1524
+ * only after steps (1) and (2) pass, so a request refused there leaves the
1525
+ * basket exactly as it was. It requires `onLineError: 'throw'`; with
1526
+ * `'report'` the call is refused before anything is read or written.
1527
+ *
1528
+ * `keepRepeatedLines` (with `replaceExisting` only) — every line stays a line
1529
+ * of its own: a repeated `(product, variant, unit)` is not merged into the
1530
+ * first, each line is priced at its own quantity, and the basket reads back in
1531
+ * the batch's order. Minimums are still judged on a product's total. Feature
1532
+ * 159 (research N-31): the admin order creation's one product on lines of
1533
+ * several groups.
1534
+ *
1535
+ * `ModuleDisabledError` is always thrown. At most `CART_MAX_LINES` (200) lines.
1536
+ *
1537
+ * `language` names a refused product — the language the response is answered
1538
+ * in (`request.responseLanguage()`); absent, the record's own fallback chain.
1539
+ */
1540
+ addItems(actor: {
1541
+ customer?: CartCustomerContext;
1542
+ anonymousToken?: string;
1543
+ }, lines: readonly CartBatchLineInput[], options: {
1544
+ onLineError: 'throw' | 'report';
1545
+ onBelowMinimum?: 'report' | 'throw';
1546
+ replaceExisting?: boolean;
1547
+ keepRepeatedLines?: boolean;
1548
+ language?: string;
1549
+ }): Promise<CartWithItems & {
1550
+ outcomes: CartBatchLineOutcome[];
1551
+ }>;
1358
1552
  clearForCustomer(ctx: CartCustomerContext): Promise<void>;
1359
1553
  /**
1360
1554
  * Clear the customer's active cart and seed it with these lines, creating
@@ -1368,7 +1562,9 @@ export interface CartWritePort {
1368
1562
  * The id travels the road the agreed unit prices travel — on the basket, to
1369
1563
  * placement — and is dropped again when the buyer removes the last line.
1370
1564
  */
1371
- replaceItemsForCustomer(ctx: CartCustomerContext, lines: readonly CartSeedLine[], options?: CartSeedOptions): Promise<CartWithItems>;
1565
+ replaceItemsForCustomer(ctx: CartCustomerContext, lines: readonly CartSeedLine[], options?: CartSeedOptions): Promise<CartWithItems & {
1566
+ unorderable?: CartSeedUnorderableLine[];
1567
+ }>;
1372
1568
  }
1373
1569
  export interface CartItemView {
1374
1570
  productId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"carts.d.ts","sourceRoot":"","sources":["../src/carts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;GAcG;AAMH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;iBAkBzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUrB,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,wBAAwB;;;;;iBAWnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KA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A,OAAO,CAAC,aAAa,GAAG;QAAE,QAAQ,EAAE,oBAAoB,EAAE,CAAA;KAAE,CAAC,CAAC;IACjE,gBAAgB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D;;;;;;;;;;;OAWG;IACH,uBAAuB,CACrB,GAAG,EAAE,mBAAmB,EACxB,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,aAAa,GAAG;QAAE,WAAW,CAAC,EAAE,uBAAuB,EAAE,CAAA;KAAE,CAAC,CAAC;CACzE;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,aAAa;IAC5B,eAAe,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACxE"}
package/dist/carts.js CHANGED
@@ -101,6 +101,8 @@ export const cartDroppedLineReasonSchema = z.enum([
101
101
  'out_of_stock',
102
102
  'no_price_in_customer_list',
103
103
  'removed_by_conversion',
104
+ /** Feature 155 — the line would leave its product below a minimum (R8). */
105
+ 'below_minimum',
104
106
  ]);
105
107
  export const cartLineUnavailableReasonSchema = z.enum([
106
108
  'out_of_stock',
@@ -130,6 +132,17 @@ export const cartViewLineSchema = z.object({
130
132
  packagingUnitName: z.string().nullable().optional(),
131
133
  packagingUnitBaseQuantity: z.number().int().positive().nullable().optional(),
132
134
  displayName: z.string().nullable().optional(),
135
+ /** Feature 155 — the product's current pieces minimum (null = none); the storefront's input floor. */
136
+ minOrderQuantity: z.number().int().positive().nullable().optional(),
137
+ /** Feature 155 — set when this line is below a current minimum and not exempt (FR-013, FR-028). */
138
+ belowMinimum: z
139
+ .object({
140
+ kind: z.enum(['pieces', 'packaging_unit']),
141
+ minimum: z.number().int().positive(),
142
+ packagingUnitName: z.string().optional(),
143
+ })
144
+ .nullable()
145
+ .optional(),
133
146
  });
134
147
  export const cartMiniLineSchema = z.object({
135
148
  id: uuidSchema,
@@ -151,6 +164,8 @@ const cartDroppedLineSchema = z.object({
151
164
  productId: uuidSchema,
152
165
  productName: z.string(),
153
166
  reason: cartDroppedLineReasonSchema,
167
+ /** Feature 155 — the minimum a `below_minimum` line missed. */
168
+ minimum: z.number().int().positive().optional(),
154
169
  });
155
170
  /** Feature 045 — one applied promotion's contribution to the cart discount. */
156
171
  export const cartAppliedPromotionSchema = z.object({
@@ -402,4 +417,18 @@ export const adminCartAuditResponseSchema = z.object({
402
417
  export const adminRejectCartSchema = z.object({
403
418
  reason: z.string().min(1).max(2000),
404
419
  });
420
+ /**
421
+ * Feature 155 (FR-028, owner ruling P2; data-model §2) — whether a basket line is
422
+ * exempt from the catalogue's order minimums: it was seeded from an accepted quote,
423
+ * the basket still carries that quote as its source, and the line's quantity equals
424
+ * the quote's. State-based, so 5 → 12 → 5 is exempt again.
425
+ *
426
+ * The per-line half only: `carts` applies it to the basket's mark at face value;
427
+ * `orders` first decides whether the quote source honours exemptions at all (R19).
428
+ */
429
+ export function isQuoteSeededLineExempt(cart, item) {
430
+ return (cart.sourceQuoteRequestId !== null &&
431
+ item.quoteSeededQuantity !== null &&
432
+ item.quantity === item.quoteSeededQuantity);
433
+ }
405
434
  //# sourceMappingURL=carts.js.map