@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
@@ -59,6 +59,41 @@ export declare const customFieldOptionSchema: z.ZodObject<{
59
59
  sortOrder: z.ZodDefault<z.ZodNumber>;
60
60
  }, z.core.$strip>;
61
61
  export type CustomFieldOptionDto = z.infer<typeof customFieldOptionSchema>;
62
+ /**
63
+ * Patch an option (feature 157). Every member optional and **without the create
64
+ * defaults**: `customFieldOptionSchema.partial()` keeps them, so a patch naming
65
+ * only the label used to arrive carrying `isDefault: false`, `sortOrder: 0`
66
+ * and `label: {}` and reset all three. The stored `value` is never patched.
67
+ */
68
+ export declare const updateCustomFieldOptionSchema: z.ZodObject<{
69
+ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70
+ labelDefault: z.ZodOptional<z.ZodString>;
71
+ isDefault: z.ZodOptional<z.ZodBoolean>;
72
+ sortOrder: z.ZodOptional<z.ZodNumber>;
73
+ }, z.core.$strip>;
74
+ export type UpdateCustomFieldOptionRequest = z.infer<typeof updateCustomFieldOptionSchema>;
75
+ /**
76
+ * How many entity types one definition may carry its values to (feature 162).
77
+ * Every source type of the registry offers at most two targets.
78
+ */
79
+ export declare const CUSTOM_FIELD_CARRY_MAX_TARGETS = 2;
80
+ /**
81
+ * The entity types a definition's values carry **to** when a record of such a
82
+ * type is created from, or joins, a record of the definition's own type
83
+ * (feature 162). Which pairs exist is the registry's `carryTargets` marker to
84
+ * say ({@link customFieldEntityTypeInfoSchema}); "never the definition's own
85
+ * type" is a server refusal, not a refine — the patch schema does not know
86
+ * the type.
87
+ */
88
+ export declare const customFieldCarryToSchema: z.ZodArray<z.ZodEnum<{
89
+ customer: "customer";
90
+ category: "category";
91
+ order: "order";
92
+ product: "product";
93
+ organization: "organization";
94
+ quote_request: "quote_request";
95
+ opportunity: "opportunity";
96
+ }>>;
62
97
  /** A full custom-field definition, options embedded. */
63
98
  export declare const customFieldDefinitionSchema: z.ZodObject<{
64
99
  id: z.ZodString;
@@ -89,6 +124,16 @@ export declare const customFieldDefinitionSchema: z.ZodObject<{
89
124
  }>;
90
125
  sortOrder: z.ZodNumber;
91
126
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
127
+ listFilter: z.ZodBoolean;
128
+ carryTo: z.ZodArray<z.ZodEnum<{
129
+ customer: "customer";
130
+ category: "category";
131
+ order: "order";
132
+ product: "product";
133
+ organization: "organization";
134
+ quote_request: "quote_request";
135
+ opportunity: "opportunity";
136
+ }>>;
92
137
  options: z.ZodDefault<z.ZodArray<z.ZodObject<{
93
138
  id: z.ZodOptional<z.ZodString>;
94
139
  value: z.ZodString;
@@ -138,6 +183,16 @@ export declare const createCustomFieldDefinitionSchema: z.ZodObject<{
138
183
  customer: "customer";
139
184
  internal: "internal";
140
185
  }>>;
186
+ listFilter: z.ZodOptional<z.ZodBoolean>;
187
+ carryTo: z.ZodDefault<z.ZodArray<z.ZodEnum<{
188
+ customer: "customer";
189
+ category: "category";
190
+ order: "order";
191
+ product: "product";
192
+ organization: "organization";
193
+ quote_request: "quote_request";
194
+ opportunity: "opportunity";
195
+ }>>>;
141
196
  }, z.core.$strip>;
142
197
  export type CreateCustomFieldDefinitionRequest = z.infer<typeof createCustomFieldDefinitionSchema>;
143
198
  /** Patch a definition. `entityType` and `key` cannot change once records may hold values. */
@@ -167,6 +222,16 @@ export declare const updateCustomFieldDefinitionSchema: z.ZodObject<{
167
222
  internal: "internal";
168
223
  }>>;
169
224
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
225
+ listFilter: z.ZodOptional<z.ZodBoolean>;
226
+ carryTo: z.ZodOptional<z.ZodArray<z.ZodEnum<{
227
+ customer: "customer";
228
+ category: "category";
229
+ order: "order";
230
+ product: "product";
231
+ organization: "organization";
232
+ quote_request: "quote_request";
233
+ opportunity: "opportunity";
234
+ }>>>;
170
235
  }, z.core.$strip>;
171
236
  export type UpdateCustomFieldDefinitionRequest = z.infer<typeof updateCustomFieldDefinitionSchema>;
172
237
  /**
@@ -192,6 +257,16 @@ export declare const customFieldEntityTypeInfoSchema: z.ZodObject<{
192
257
  labelKey: z.ZodString;
193
258
  route: z.ZodString;
194
259
  }, z.core.$strip>>;
260
+ listFilter: z.ZodBoolean;
261
+ carryTargets: z.ZodDefault<z.ZodArray<z.ZodEnum<{
262
+ customer: "customer";
263
+ category: "category";
264
+ order: "order";
265
+ product: "product";
266
+ organization: "organization";
267
+ quote_request: "quote_request";
268
+ opportunity: "opportunity";
269
+ }>>>;
195
270
  }, z.core.$strip>;
196
271
  export type CustomFieldEntityTypeInfo = z.infer<typeof customFieldEntityTypeInfoSchema>;
197
272
  /** A validated value bag keyed by definition `key`. Values are typed by their definition's `valueType`. */
@@ -210,6 +285,128 @@ export declare const customFieldValidationErrorSchema: z.ZodObject<{
210
285
  message: z.ZodString;
211
286
  }, z.core.$strip>;
212
287
  export type CustomFieldValidationError = z.infer<typeof customFieldValidationErrorSchema>;
288
+ /**
289
+ * One custom field's filter: the operators of every value type in one object.
290
+ * Which of them apply is the definition's value type to say
291
+ * (`CUSTOM_FIELD_FILTER_OPERATORS`): the admin lists refuse any other with 400
292
+ * `VALIDATION_FAILED` (`assertCustomFieldFilterOperators`), and only the CRM
293
+ * board ignores it. The CRM board's field filter is this same object.
294
+ */
295
+ export declare const customFieldFilterSchema: z.ZodObject<{
296
+ contains: z.ZodOptional<z.ZodString>;
297
+ in: z.ZodOptional<z.ZodArray<z.ZodString>>;
298
+ is: z.ZodOptional<z.ZodBoolean>;
299
+ min: z.ZodOptional<z.ZodString>;
300
+ max: z.ZodOptional<z.ZodString>;
301
+ from: z.ZodOptional<z.ZodString>;
302
+ to: z.ZodOptional<z.ZodString>;
303
+ }, z.core.$strict>;
304
+ export type CustomFieldFilter = z.infer<typeof customFieldFilterSchema>;
305
+ /**
306
+ * The operators each value type applies (FR-008). A filter carrying another
307
+ * operator for its field is refused rather than ignored: a filter is never
308
+ * silently dropped (FR-011).
309
+ */
310
+ export declare const CUSTOM_FIELD_FILTER_OPERATORS: Readonly<Record<CustomFieldValueType, readonly (keyof CustomFieldFilter)[]>>;
311
+ /**
312
+ * Throws the `ZodError` naming every operator of `filters` that does not apply
313
+ * to its field's value type, each at `[key, operator]` — answered 400
314
+ * `VALIDATION_FAILED`, as any other malformed filter. A key `valueTypeOf`
315
+ * does not know is not this check's to judge.
316
+ */
317
+ export declare function assertCustomFieldFilterOperators(filters: CustomFieldFilters, valueTypeOf: (key: string) => CustomFieldValueType | undefined): void;
318
+ /** Bounds the work one list request can ask of the database (keys per request). */
319
+ export declare const CUSTOM_FIELD_FILTERS_MAX_KEYS = 10;
320
+ /** Bounds the work one list request can ask of the database (`in` values summed over every key). */
321
+ export declare const CUSTOM_FIELD_FILTERS_MAX_IN_VALUES = 100;
322
+ export declare const customFieldFiltersSchema: z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
323
+ contains: z.ZodOptional<z.ZodString>;
324
+ in: z.ZodOptional<z.ZodArray<z.ZodString>>;
325
+ is: z.ZodOptional<z.ZodBoolean>;
326
+ min: z.ZodOptional<z.ZodString>;
327
+ max: z.ZodOptional<z.ZodString>;
328
+ from: z.ZodOptional<z.ZodString>;
329
+ to: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strict>>>;
331
+ export type CustomFieldFilters = z.infer<typeof customFieldFiltersSchema>;
332
+ /**
333
+ * The `customFieldFilters` query parameter: {@link customFieldFiltersSchema}
334
+ * as JSON, at most 8000 characters.
335
+ *
336
+ * **Idempotent.** The route validator replaces `request.query` with its parsed
337
+ * output and a handler may parse it again with the same query schema, so an
338
+ * already-parsed object is validated rather than refused. A repeated parameter
339
+ * (an array) matches neither branch and is refused.
340
+ */
341
+ export declare const customFieldFiltersQueryParamSchema: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
342
+ contains: z.ZodOptional<z.ZodString>;
343
+ in: z.ZodOptional<z.ZodArray<z.ZodString>>;
344
+ is: z.ZodOptional<z.ZodBoolean>;
345
+ min: z.ZodOptional<z.ZodString>;
346
+ max: z.ZodOptional<z.ZodString>;
347
+ from: z.ZodOptional<z.ZodString>;
348
+ to: z.ZodOptional<z.ZodString>;
349
+ }, z.core.$strict>>>]>>, z.ZodTransform<Record<string, {
350
+ contains?: string | undefined;
351
+ in?: string[] | undefined;
352
+ is?: boolean | undefined;
353
+ min?: string | undefined;
354
+ max?: string | undefined;
355
+ from?: string | undefined;
356
+ to?: string | undefined;
357
+ }> | undefined, string | Record<string, {
358
+ contains?: string | undefined;
359
+ in?: string[] | undefined;
360
+ is?: boolean | undefined;
361
+ min?: string | undefined;
362
+ max?: string | undefined;
363
+ from?: string | undefined;
364
+ to?: string | undefined;
365
+ }> | undefined>>;
366
+ /**
367
+ * One custom field an admin list offers as a filter. Deliberately narrow: no
368
+ * `audience`, `required`, `config`, `listFilter`, `id` or `sortOrder`.
369
+ */
370
+ export declare const customFieldListFilterFieldSchema: z.ZodObject<{
371
+ key: z.ZodString;
372
+ valueType: z.ZodEnum<{
373
+ number: "number";
374
+ boolean: "boolean";
375
+ date: "date";
376
+ text: "text";
377
+ select: "select";
378
+ multiselect: "multiselect";
379
+ }>;
380
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
381
+ labelDefault: z.ZodString;
382
+ options: z.ZodArray<z.ZodObject<{
383
+ value: z.ZodString;
384
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
385
+ labelDefault: z.ZodString;
386
+ }, z.core.$strip>>;
387
+ }, z.core.$strict>;
388
+ export type CustomFieldListFilterField = z.infer<typeof customFieldListFilterFieldSchema>;
389
+ export declare const customFieldListFilterFieldsResponseSchema: z.ZodObject<{
390
+ data: z.ZodArray<z.ZodObject<{
391
+ key: z.ZodString;
392
+ valueType: z.ZodEnum<{
393
+ number: "number";
394
+ boolean: "boolean";
395
+ date: "date";
396
+ text: "text";
397
+ select: "select";
398
+ multiselect: "multiselect";
399
+ }>;
400
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
401
+ labelDefault: z.ZodString;
402
+ options: z.ZodArray<z.ZodObject<{
403
+ value: z.ZodString;
404
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
405
+ labelDefault: z.ZodString;
406
+ }, z.core.$strip>>;
407
+ }, z.core.$strict>>;
408
+ }, z.core.$strip>;
409
+ export type CustomFieldListFilterFieldsResponse = z.infer<typeof customFieldListFilterFieldsResponseSchema>;
213
410
  /**
214
411
  * What `CustomFieldValuePort.validateAndMerge` throws, as a **shape** rather
215
412
  * than a constructor (feature 075, Phase C).
@@ -237,7 +434,7 @@ export declare function isCustomFieldValidationFailure(error: unknown): error is
237
434
  * `err instanceof CustomFieldDefinitionError`, which meant importing a
238
435
  * constructor out of another module to read a string field off it.
239
436
  */
240
- export declare const CUSTOM_FIELD_DEFINITION_ERROR_CODES: readonly ["not_found", "duplicate_key", "options_required", "options_forbidden", "entity_type_unknown", "value_type_locked", "option_in_use"];
437
+ export declare const CUSTOM_FIELD_DEFINITION_ERROR_CODES: readonly ["not_found", "duplicate_key", "options_required", "options_forbidden", "entity_type_unknown", "value_type_locked", "option_in_use", "list_filter_unsupported", "carry_incompatible"];
241
438
  export type CustomFieldDefinitionErrorCode = (typeof CUSTOM_FIELD_DEFINITION_ERROR_CODES)[number];
242
439
  /** A refused definition or option write, as a host outside `custom_fields` sees it. */
243
440
  export interface CustomFieldDefinitionFailure {
@@ -265,6 +462,9 @@ export interface CustomFieldDefinitionRecord {
265
462
  audience: CustomFieldAudience;
266
463
  sortOrder: number;
267
464
  config: Record<string, unknown>;
465
+ listFilter: boolean;
466
+ /** Feature 162 — see {@link customFieldCarryToSchema}. */
467
+ carryTo: SupportedEntityType[];
268
468
  createdAt: Date;
269
469
  updatedAt: Date;
270
470
  }
@@ -387,4 +587,217 @@ export interface CustomFieldValuePort {
387
587
  */
388
588
  projectForCustomer(entityType: SupportedEntityType, bag: Record<string, unknown>): Promise<Record<string, unknown>>;
389
589
  }
590
+ /**
591
+ * Container name: `customFieldListFilterPort`. Owner: `custom_fields`
592
+ * (feature 157).
593
+ *
594
+ * The admin lists of `orders`, `quote_requests` and `crm` ask it which custom
595
+ * fields they offer as filters, and turn a request's filters into one
596
+ * server-side condition.
597
+ */
598
+ export interface CustomFieldListFilterPort {
599
+ /** The served definitions of the type with `listFilter` on; `[]` when the type offers none. */
600
+ listFilterable(entityType: SupportedEntityType): Promise<CustomFieldListFilterField[]>;
601
+ /**
602
+ * The whole request's filters as **one** condition — one scan of the bound
603
+ * host table, every predicate of every key ANDed in its WHERE — or `null`
604
+ * when nothing applies. Throws a {@link CustomFieldFilterUnavailableFailure}
605
+ * naming every key that is not offered.
606
+ */
607
+ condition(entityType: SupportedEntityType, filters: CustomFieldFilters | undefined): Promise<CustomFieldListFilterCondition | null>;
608
+ }
609
+ /**
610
+ * `select t."id" from "<bound table>" t where (<p1>) and (<p2>) …` — every key
611
+ * and value bound. A caller wraps it in a fresh raw fragment for every
612
+ * statement it runs; a raw fragment is not reused.
613
+ */
614
+ export interface CustomFieldListFilterCondition {
615
+ readonly sql: string;
616
+ readonly params: readonly unknown[];
617
+ }
618
+ /** What {@link CustomFieldListFilterPort.condition} throws for filters a list does not offer. */
619
+ export interface CustomFieldFilterUnavailableFailure extends Error {
620
+ readonly name: 'CustomFieldFilterUnavailableError';
621
+ readonly keys: readonly string[];
622
+ }
623
+ /**
624
+ * Throws the `ZodError` naming every inverted range of `filters` — a minimum
625
+ * above its maximum, a start date after its end — each at `[key, 'min']` or
626
+ * `[key, 'from']`, answered 400 `VALIDATION_FAILED`. Such a filter could only
627
+ * ever match nothing; refusing it says so instead of showing an empty list.
628
+ */
629
+ export declare function assertCustomFieldFilterRanges(filters: CustomFieldFilters): void;
630
+ /** A refused list filter naming `keys`, in the shape {@link isCustomFieldFilterUnavailableFailure} narrows. */
631
+ export declare function customFieldFilterUnavailable(keys: readonly string[], message?: string): CustomFieldFilterUnavailableFailure;
632
+ /** Whether `error` is a refused list filter, narrowed by shape (as the sibling guards above). */
633
+ export declare function isCustomFieldFilterUnavailableFailure(error: unknown): error is CustomFieldFilterUnavailableFailure;
634
+ /** One side of a carry pair, as the compatibility rule reads it. */
635
+ export interface CustomFieldCarryParty {
636
+ valueType: CustomFieldValueType;
637
+ audience: CustomFieldAudience;
638
+ options: ReadonlyArray<{
639
+ value: string;
640
+ }>;
641
+ }
642
+ /** Why a carry from one definition to the same-key definition of another type cannot work. */
643
+ export type CustomFieldCarryIncompatibility = {
644
+ reason: 'target_missing';
645
+ } | {
646
+ reason: 'value_type_mismatch';
647
+ sourceValueType: CustomFieldValueType;
648
+ targetValueType: CustomFieldValueType;
649
+ } | {
650
+ reason: 'options_missing';
651
+ missingOptionValues: string[];
652
+ } | {
653
+ reason: 'audience_mismatch';
654
+ };
655
+ /**
656
+ * The one compatibility rule of a carry pair (feature 162). The server refuses
657
+ * turning a carry on with it, the admin marks drifted carries with it, and the
658
+ * carry port applies its type and audience halves at conversion. Pure: no I/O.
659
+ *
660
+ * Every reason, in this order; `[]` means compatible:
661
+ * - no target → `target_missing`, and nothing else;
662
+ * - value types differ → `value_type_mismatch` — no widening, and the options
663
+ * question is not asked;
664
+ * - `select` / `multiselect`: the source option values the target lacks, in
665
+ * source order (labels ignored, extra target options fine) → `options_missing`;
666
+ * - an `internal` source into a `customer` target → `audience_mismatch`.
667
+ */
668
+ export declare function assessCustomFieldCarry(source: CustomFieldCarryParty, target: CustomFieldCarryParty | null): CustomFieldCarryIncompatibility[];
669
+ /**
670
+ * Why one value was not carried at conversion. `value_invalid` is the
671
+ * per-value twin of `options_missing`: the value itself does not satisfy the
672
+ * target definition.
673
+ */
674
+ export declare const customFieldCarrySkipReasonSchema: z.ZodEnum<{
675
+ target_missing: "target_missing";
676
+ value_type_mismatch: "value_type_mismatch";
677
+ audience_mismatch: "audience_mismatch";
678
+ value_invalid: "value_invalid";
679
+ }>;
680
+ export type CustomFieldCarrySkipReason = z.infer<typeof customFieldCarrySkipReasonSchema>;
681
+ /**
682
+ * The longest string a skip's label snapshot holds — a definition's
683
+ * `labelDefault` cap. `custom_fields` cuts the snapshot to it when it takes it,
684
+ * since a definition's per-locale labels are not capped.
685
+ */
686
+ export declare const CUSTOM_FIELD_CARRY_SKIP_LABEL_MAX = 200;
687
+ /**
688
+ * The skipped field's label as its **source** definition read when the value
689
+ * was skipped (owner ruling 2026-10-21, V3): a history line names the field in
690
+ * the reader's language without asking `custom_fields` for definitions, so an
691
+ * administrator without `custom_fields:read` reads it too. A snapshot — a later
692
+ * rename does not rewrite history. Each string is at most
693
+ * {@link CUSTOM_FIELD_CARRY_SKIP_LABEL_MAX} characters.
694
+ */
695
+ export declare const customFieldCarrySkipLabelSchema: z.ZodObject<{
696
+ labelDefault: z.ZodString;
697
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
698
+ }, z.core.$strip>;
699
+ export type CustomFieldCarrySkipLabel = z.infer<typeof customFieldCarrySkipLabelSchema>;
700
+ /** `label` is absent on a skip recorded before the snapshot existed. */
701
+ export declare const customFieldCarrySkipSchema: z.ZodObject<{
702
+ key: z.ZodString;
703
+ reason: z.ZodEnum<{
704
+ target_missing: "target_missing";
705
+ value_type_mismatch: "value_type_mismatch";
706
+ audience_mismatch: "audience_mismatch";
707
+ value_invalid: "value_invalid";
708
+ }>;
709
+ label: z.ZodOptional<z.ZodObject<{
710
+ labelDefault: z.ZodString;
711
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
712
+ }, z.core.$strip>>;
713
+ }, z.core.$strip>;
714
+ /** One key not carried, with its reason and the source field's label snapshot. */
715
+ export interface CustomFieldCarrySkip {
716
+ readonly key: string;
717
+ readonly reason: CustomFieldCarrySkipReason;
718
+ readonly label?: CustomFieldCarrySkipLabel;
719
+ }
720
+ /**
721
+ * A plain copy of a skip for a record to store: `key`, `reason` and — when the
722
+ * skip has one — a copy of its label snapshot (`labelDefault` and `labels`).
723
+ * **It strips every other field**: whatever else the value carries, on the skip
724
+ * or on its label, is dropped and never reaches a stored record.
725
+ */
726
+ export declare function customFieldCarrySkipRecord(skip: Omit<CustomFieldCarrySkip, 'label'> & {
727
+ readonly label?: CustomFieldCarrySkipLabel | undefined;
728
+ }): CustomFieldCarrySkip;
729
+ /**
730
+ * What {@link CustomFieldCarryPort.plan} answers: `values` is the target bag to
731
+ * persist — the target's own bag plus the carried keys, never a removed or
732
+ * overwritten key — `carried` the keys added and `skipped` the keys not
733
+ * carried, each with its reason.
734
+ */
735
+ export interface CustomFieldCarryPlan {
736
+ readonly values: Record<string, unknown>;
737
+ readonly carried: readonly string[];
738
+ readonly skipped: readonly CustomFieldCarrySkip[];
739
+ }
740
+ /**
741
+ * Container name: `customFieldCarryPort`. Owner: `custom_fields` (feature 162).
742
+ *
743
+ * The host that owns a carry's **target** record asks it which source values
744
+ * carry into its own current bag, and persists the answer in its own write.
745
+ * Only source definitions whose `carryTo` names the target type and whose value
746
+ * is non-empty are considered; a target key that already holds a value is kept
747
+ * and neither carried nor skipped; unrelated target fields — required ones
748
+ * included — are never consulted, so a host must not run `validateAndMerge`
749
+ * over the answer. Either type's owner absent → an empty plan.
750
+ *
751
+ * It performs **no** database write, **no** audit and emits **no** event.
752
+ *
753
+ * **Owner off:** the seam fails closed — resolving this port throws
754
+ * `ModuleDisabledError` and the call answers 503 `MODULE_DISABLED`, so nothing
755
+ * half-executes. Whether `custom_fields` has an off state at all is its manifest's
756
+ * `activation` to say, not this line's: a module declaring
757
+ * `nonDeactivatable` never enters one.
758
+ */
759
+ export interface CustomFieldCarryPort {
760
+ plan(input: {
761
+ sourceType: SupportedEntityType;
762
+ targetType: SupportedEntityType;
763
+ sourceValues: Record<string, unknown>;
764
+ targetValues: Record<string, unknown>;
765
+ }): Promise<CustomFieldCarryPlan>;
766
+ }
767
+ /** What a receiver answers: `not-found` for a missing record and for another Organization's alike. */
768
+ export interface CustomFieldCarryReceipt {
769
+ readonly outcome: 'applied' | 'not-found';
770
+ readonly carried: readonly string[];
771
+ readonly skipped: readonly CustomFieldCarrySkip[];
772
+ }
773
+ /**
774
+ * Container name: `orderCustomFieldCarryPort`. Owner: `orders`.
775
+ * Container name: `quoteRequestCustomFieldCarryPort`. Owner: `quote_requests`.
776
+ * (Feature 162.)
777
+ *
778
+ * `crm` pushes a Sales Opportunity's values to the document created from it,
779
+ * once its origin link is made; the document's owner carries them into empty
780
+ * fields in one Command of its own and records what it skipped on the record.
781
+ * `not-found` for a missing record **and** for a record of another
782
+ * Organization — one answer, no existence leak; `applied` otherwise, even when
783
+ * nothing was carried. A second call carries nothing more (fill-empty).
784
+ *
785
+ * **Owner off:** the seam fails closed — resolving this port throws
786
+ * `ModuleDisabledError` and the call answers 503 `MODULE_DISABLED`, so nothing
787
+ * half-executes. `orders` is not deactivatable; for `quote_requests` the caller
788
+ * decides presence first and does not call.
789
+ */
790
+ export interface CustomFieldCarryReceiverPort {
791
+ receiveCarriedValues(input: {
792
+ recordId: string;
793
+ organizationId: string;
794
+ source: {
795
+ entityType: 'opportunity';
796
+ recordId: string;
797
+ /** The source's business number, for the skip entry's sentence. */
798
+ reference: string;
799
+ values: Record<string, unknown>;
800
+ };
801
+ }): Promise<CustomFieldCarryReceipt>;
802
+ }
390
803
  //# sourceMappingURL=custom-fields.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-fields.d.ts","sourceRoot":"","sources":["../src/custom-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;GAQG;AAEH,wGAAwG;AACxG,eAAO,MAAM,yBAAyB;;;;;;;;EAapC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,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