@endora-commerce/contracts 0.107.0 → 0.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin-actions.d.ts +12 -3
- package/dist/admin-actions.d.ts.map +1 -1
- package/dist/admin-actions.js +34 -3
- package/dist/admin-actions.js.map +1 -1
- package/dist/admin-contributions.d.ts +35 -6
- package/dist/admin-contributions.d.ts.map +1 -1
- package/dist/admin-contributions.js +46 -0
- package/dist/admin-contributions.js.map +1 -1
- package/dist/admin-feedback.d.ts +61 -0
- package/dist/admin-feedback.d.ts.map +1 -0
- package/dist/admin-feedback.js +71 -0
- package/dist/admin-feedback.js.map +1 -0
- package/dist/admin-name.d.ts +21 -0
- package/dist/admin-name.d.ts.map +1 -0
- package/dist/admin-name.js +30 -0
- package/dist/admin-name.js.map +1 -0
- package/dist/admin-notifications.d.ts +17 -1
- package/dist/admin-notifications.d.ts.map +1 -1
- package/dist/admin-preferences.d.ts +108 -0
- package/dist/admin-preferences.d.ts.map +1 -0
- package/dist/admin-preferences.js +133 -0
- package/dist/admin-preferences.js.map +1 -0
- package/dist/admin.d.ts +15 -1
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +7 -0
- package/dist/admin.js.map +1 -1
- package/dist/assets-library.d.ts +97 -3
- package/dist/assets-library.d.ts.map +1 -1
- package/dist/assets-library.js +5 -0
- package/dist/assets-library.js.map +1 -1
- package/dist/blog.d.ts +57 -0
- package/dist/blog.d.ts.map +1 -1
- package/dist/blog.js +63 -1
- package/dist/blog.js.map +1 -1
- package/dist/carts.d.ts +303 -50
- package/dist/carts.d.ts.map +1 -1
- package/dist/carts.js +95 -13
- package/dist/carts.js.map +1 -1
- package/dist/catalog.d.ts +512 -40
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +362 -23
- package/dist/catalog.js.map +1 -1
- package/dist/cms-brand.d.ts +2233 -0
- package/dist/cms-brand.d.ts.map +1 -0
- package/dist/cms-brand.js +311 -0
- package/dist/cms-brand.js.map +1 -0
- package/dist/cms-contact-form.d.ts +55 -0
- package/dist/cms-contact-form.d.ts.map +1 -0
- package/dist/cms-contact-form.js +100 -0
- package/dist/cms-contact-form.js.map +1 -0
- package/dist/cms.d.ts +537 -3
- package/dist/cms.d.ts.map +1 -1
- package/dist/cms.js +251 -0
- package/dist/cms.js.map +1 -1
- package/dist/common.d.ts +4 -0
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +14 -0
- package/dist/common.js.map +1 -1
- package/dist/comparisons.d.ts +7 -0
- package/dist/comparisons.d.ts.map +1 -1
- package/dist/comparisons.js +2 -0
- package/dist/comparisons.js.map +1 -1
- package/dist/credit-limits.d.ts.map +1 -1
- package/dist/credit-limits.js +3 -2
- package/dist/credit-limits.js.map +1 -1
- package/dist/crm-rich-text.d.ts +13 -0
- package/dist/crm-rich-text.d.ts.map +1 -0
- package/dist/crm-rich-text.js +13 -0
- package/dist/crm-rich-text.js.map +1 -0
- package/dist/crm.d.ts +180 -62
- package/dist/crm.d.ts.map +1 -1
- package/dist/crm.js +63 -107
- package/dist/crm.js.map +1 -1
- package/dist/custom-fields.d.ts +436 -5
- package/dist/custom-fields.d.ts.map +1 -1
- package/dist/custom-fields.js +325 -10
- package/dist/custom-fields.js.map +1 -1
- package/dist/customer-accounts.d.ts +30 -0
- package/dist/customer-accounts.d.ts.map +1 -1
- package/dist/customer-accounts.js +31 -0
- package/dist/customer-accounts.js.map +1 -1
- package/dist/document-templates.d.ts +211 -23
- package/dist/document-templates.d.ts.map +1 -1
- package/dist/document-templates.js +98 -1
- package/dist/document-templates.js.map +1 -1
- package/dist/document-values.d.ts +12 -1
- package/dist/document-values.d.ts.map +1 -1
- package/dist/document-values.js +41 -11
- package/dist/document-values.js.map +1 -1
- package/dist/email.d.ts +5 -0
- package/dist/email.d.ts.map +1 -1
- package/dist/errors.d.ts +142 -8
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +189 -8
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +24 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43 -1
- package/dist/index.js.map +1 -1
- package/dist/inventory.d.ts +3 -3
- package/dist/invoices.d.ts +6 -2
- package/dist/invoices.d.ts.map +1 -1
- package/dist/invoices.js +10 -4
- package/dist/invoices.js.map +1 -1
- package/dist/line-groups.d.ts +80 -0
- package/dist/line-groups.d.ts.map +1 -0
- package/dist/line-groups.js +130 -0
- package/dist/line-groups.js.map +1 -0
- package/dist/localized-name.d.ts +20 -0
- package/dist/localized-name.d.ts.map +1 -0
- package/dist/localized-name.js +45 -0
- package/dist/localized-name.js.map +1 -0
- package/dist/megamenu.d.ts +674 -0
- package/dist/megamenu.d.ts.map +1 -1
- package/dist/megamenu.js +96 -3
- package/dist/megamenu.js.map +1 -1
- package/dist/mfa.d.ts +1 -0
- package/dist/mfa.d.ts.map +1 -1
- package/dist/mfa.js +8 -2
- package/dist/mfa.js.map +1 -1
- package/dist/modules.d.ts +8 -1
- package/dist/modules.d.ts.map +1 -1
- package/dist/modules.js +5 -0
- package/dist/modules.js.map +1 -1
- package/dist/money-decimal.d.ts +162 -0
- package/dist/money-decimal.d.ts.map +1 -0
- package/dist/money-decimal.js +365 -0
- package/dist/money-decimal.js.map +1 -0
- package/dist/money-input.d.ts +64 -0
- package/dist/money-input.d.ts.map +1 -0
- package/dist/money-input.js +111 -0
- package/dist/money-input.js.map +1 -0
- package/dist/newsletter.d.ts +3 -3
- package/dist/order-minimums.d.ts +111 -0
- package/dist/order-minimums.d.ts.map +1 -0
- package/dist/order-minimums.js +196 -0
- package/dist/order-minimums.js.map +1 -0
- package/dist/orders.d.ts +206 -2
- package/dist/orders.d.ts.map +1 -1
- package/dist/orders.js +106 -5
- package/dist/orders.js.map +1 -1
- package/dist/page-builder-props.d.ts +1401 -0
- package/dist/page-builder-props.d.ts.map +1 -0
- package/dist/page-builder-props.js +266 -0
- package/dist/page-builder-props.js.map +1 -0
- package/dist/page-builder-values.d.ts +95 -0
- package/dist/page-builder-values.d.ts.map +1 -0
- package/dist/page-builder-values.js +164 -0
- package/dist/page-builder-values.js.map +1 -0
- package/dist/payment-methods.d.ts.map +1 -1
- package/dist/payment-methods.js +2 -1
- package/dist/payment-methods.js.map +1 -1
- package/dist/pim-connector.d.ts +1 -1
- package/dist/platform-language.d.ts +9 -0
- package/dist/platform-language.d.ts.map +1 -1
- package/dist/platform-language.js +14 -0
- package/dist/platform-language.js.map +1 -1
- package/dist/price-book-decimal.d.ts +84 -0
- package/dist/price-book-decimal.d.ts.map +1 -0
- package/dist/price-book-decimal.js +175 -0
- package/dist/price-book-decimal.js.map +1 -0
- package/dist/price-books.d.ts +2206 -0
- package/dist/price-books.d.ts.map +1 -0
- package/dist/price-books.js +777 -0
- package/dist/price-books.js.map +1 -0
- package/dist/price-lists.d.ts +309 -614
- package/dist/price-lists.d.ts.map +1 -1
- package/dist/price-lists.js +113 -453
- package/dist/price-lists.js.map +1 -1
- package/dist/product-feeds.d.ts +195 -54
- package/dist/product-feeds.d.ts.map +1 -1
- package/dist/product-feeds.js +36 -1
- package/dist/product-feeds.js.map +1 -1
- package/dist/product-scopes.d.ts +628 -0
- package/dist/product-scopes.d.ts.map +1 -0
- package/dist/product-scopes.js +365 -0
- package/dist/product-scopes.js.map +1 -0
- package/dist/product-summary-text.d.ts +23 -0
- package/dist/product-summary-text.d.ts.map +1 -0
- package/dist/product-summary-text.js +64 -0
- package/dist/product-summary-text.js.map +1 -0
- package/dist/product-url-keys.d.ts +204 -0
- package/dist/product-url-keys.d.ts.map +1 -0
- package/dist/product-url-keys.js +166 -0
- package/dist/product-url-keys.js.map +1 -0
- package/dist/product-value-resolver.d.ts +6 -0
- package/dist/product-value-resolver.d.ts.map +1 -1
- package/dist/product-value-resolver.js +6 -1
- package/dist/product-value-resolver.js.map +1 -1
- package/dist/projects.d.ts +2355 -0
- package/dist/projects.d.ts.map +1 -0
- package/dist/projects.js +837 -0
- package/dist/projects.js.map +1 -0
- package/dist/promotions.d.ts +2 -2
- package/dist/promotions.d.ts.map +1 -1
- package/dist/promotions.js +8 -2
- package/dist/promotions.js.map +1 -1
- package/dist/prompt-actions.d.ts +19 -1
- package/dist/prompt-actions.d.ts.map +1 -1
- package/dist/prompt-actions.js +31 -2
- package/dist/prompt-actions.js.map +1 -1
- package/dist/quick-order.d.ts +39 -1
- package/dist/quick-order.d.ts.map +1 -1
- package/dist/quick-order.js +44 -1
- package/dist/quick-order.js.map +1 -1
- package/dist/quote-requests.d.ts +305 -1
- package/dist/quote-requests.d.ts.map +1 -1
- package/dist/quote-requests.js +173 -5
- package/dist/quote-requests.js.map +1 -1
- package/dist/record-references.d.ts +252 -0
- package/dist/record-references.d.ts.map +1 -0
- package/dist/record-references.js +179 -0
- package/dist/record-references.js.map +1 -0
- package/dist/record-rich-text.d.ts +66 -0
- package/dist/record-rich-text.d.ts.map +1 -0
- package/dist/record-rich-text.js +303 -0
- package/dist/record-rich-text.js.map +1 -0
- package/dist/returns.d.ts +81 -2
- package/dist/returns.d.ts.map +1 -1
- package/dist/returns.js +39 -4
- package/dist/returns.js.map +1 -1
- package/dist/sales-channels.d.ts +53 -7
- package/dist/sales-channels.d.ts.map +1 -1
- package/dist/sales-channels.js +40 -4
- package/dist/sales-channels.js.map +1 -1
- package/dist/saved-list-views.d.ts +28 -0
- package/dist/saved-list-views.d.ts.map +1 -1
- package/dist/saved-list-views.js +14 -1
- package/dist/saved-list-views.js.map +1 -1
- package/dist/scoped-translations.d.ts +48 -0
- package/dist/scoped-translations.d.ts.map +1 -0
- package/dist/scoped-translations.js +78 -0
- package/dist/scoped-translations.js.map +1 -0
- package/dist/search.d.ts +73 -5
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +4 -0
- package/dist/search.js.map +1 -1
- package/dist/seo.d.ts +64 -5
- package/dist/seo.d.ts.map +1 -1
- package/dist/seo.js +31 -4
- package/dist/seo.js.map +1 -1
- package/dist/settings.d.ts +32 -3
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +37 -3
- package/dist/settings.js.map +1 -1
- package/dist/shipping-methods.d.ts.map +1 -1
- package/dist/shipping-methods.js +2 -1
- package/dist/shipping-methods.js.map +1 -1
- package/dist/shopping-lists.d.ts +24 -0
- package/dist/shopping-lists.d.ts.map +1 -1
- package/dist/shopping-lists.js +20 -1
- package/dist/shopping-lists.js.map +1 -1
- package/dist/storefront-cache-tags.d.ts +29 -0
- package/dist/storefront-cache-tags.d.ts.map +1 -1
- package/dist/storefront-cache-tags.js +24 -0
- package/dist/storefront-cache-tags.js.map +1 -1
- package/dist/storefront-language-path.d.ts +77 -0
- package/dist/storefront-language-path.d.ts.map +1 -0
- package/dist/storefront-language-path.js +123 -0
- package/dist/storefront-language-path.js.map +1 -0
- package/dist/storefront-value-overrides.d.ts +67 -0
- package/dist/storefront-value-overrides.d.ts.map +1 -0
- package/dist/storefront-value-overrides.js +93 -0
- package/dist/storefront-value-overrides.js.map +1 -0
- package/dist/tasks.d.ts +2842 -0
- package/dist/tasks.d.ts.map +1 -0
- package/dist/tasks.js +901 -0
- package/dist/tasks.js.map +1 -0
- package/dist/transactional-emails.d.ts +7 -4
- package/dist/transactional-emails.d.ts.map +1 -1
- package/dist/transactional-emails.js +13 -0
- package/dist/transactional-emails.js.map +1 -1
- package/package.json +2 -2
package/dist/custom-fields.d.ts
CHANGED
|
@@ -11,12 +11,14 @@ import { z } from 'zod';
|
|
|
11
11
|
/** The host entity types custom fields may attach to at launch. Extensible via the backend registry. */
|
|
12
12
|
export declare const supportedEntityTypeSchema: z.ZodEnum<{
|
|
13
13
|
customer: "customer";
|
|
14
|
+
product: "product";
|
|
14
15
|
category: "category";
|
|
15
16
|
order: "order";
|
|
16
|
-
product: "product";
|
|
17
17
|
organization: "organization";
|
|
18
18
|
quote_request: "quote_request";
|
|
19
|
+
task: "task";
|
|
19
20
|
opportunity: "opportunity";
|
|
21
|
+
project: "project";
|
|
20
22
|
}>;
|
|
21
23
|
export type SupportedEntityType = z.infer<typeof supportedEntityTypeSchema>;
|
|
22
24
|
/** The set of runtime value types. `text` is stored as a string; `select` stores one option value; `multiselect` an array. */
|
|
@@ -59,17 +61,56 @@ export declare const customFieldOptionSchema: z.ZodObject<{
|
|
|
59
61
|
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
60
62
|
}, z.core.$strip>;
|
|
61
63
|
export type CustomFieldOptionDto = z.infer<typeof customFieldOptionSchema>;
|
|
64
|
+
/**
|
|
65
|
+
* Patch an option (feature 157). Every member optional and **without the create
|
|
66
|
+
* defaults**: `customFieldOptionSchema.partial()` keeps them, so a patch naming
|
|
67
|
+
* only the label used to arrive carrying `isDefault: false`, `sortOrder: 0`
|
|
68
|
+
* and `label: {}` and reset all three. The stored `value` is never patched.
|
|
69
|
+
*/
|
|
70
|
+
export declare const updateCustomFieldOptionSchema: z.ZodObject<{
|
|
71
|
+
label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
72
|
+
labelDefault: z.ZodOptional<z.ZodString>;
|
|
73
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export type UpdateCustomFieldOptionRequest = z.infer<typeof updateCustomFieldOptionSchema>;
|
|
77
|
+
/**
|
|
78
|
+
* How many entity types one definition may carry its values to (feature 162).
|
|
79
|
+
* Every source type of the registry offers at most two targets.
|
|
80
|
+
*/
|
|
81
|
+
export declare const CUSTOM_FIELD_CARRY_MAX_TARGETS = 2;
|
|
82
|
+
/**
|
|
83
|
+
* The entity types a definition's values carry **to** when a record of such a
|
|
84
|
+
* type is created from, or joins, a record of the definition's own type
|
|
85
|
+
* (feature 162). Which pairs exist is the registry's `carryTargets` marker to
|
|
86
|
+
* say ({@link customFieldEntityTypeInfoSchema}); "never the definition's own
|
|
87
|
+
* type" is a server refusal, not a refine — the patch schema does not know
|
|
88
|
+
* the type.
|
|
89
|
+
*/
|
|
90
|
+
export declare const customFieldCarryToSchema: z.ZodArray<z.ZodEnum<{
|
|
91
|
+
customer: "customer";
|
|
92
|
+
product: "product";
|
|
93
|
+
category: "category";
|
|
94
|
+
order: "order";
|
|
95
|
+
organization: "organization";
|
|
96
|
+
quote_request: "quote_request";
|
|
97
|
+
task: "task";
|
|
98
|
+
opportunity: "opportunity";
|
|
99
|
+
project: "project";
|
|
100
|
+
}>>;
|
|
62
101
|
/** A full custom-field definition, options embedded. */
|
|
63
102
|
export declare const customFieldDefinitionSchema: z.ZodObject<{
|
|
64
103
|
id: z.ZodString;
|
|
65
104
|
entityType: z.ZodEnum<{
|
|
66
105
|
customer: "customer";
|
|
106
|
+
product: "product";
|
|
67
107
|
category: "category";
|
|
68
108
|
order: "order";
|
|
69
|
-
product: "product";
|
|
70
109
|
organization: "organization";
|
|
71
110
|
quote_request: "quote_request";
|
|
111
|
+
task: "task";
|
|
72
112
|
opportunity: "opportunity";
|
|
113
|
+
project: "project";
|
|
73
114
|
}>;
|
|
74
115
|
key: z.ZodString;
|
|
75
116
|
label: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -89,6 +130,18 @@ export declare const customFieldDefinitionSchema: z.ZodObject<{
|
|
|
89
130
|
}>;
|
|
90
131
|
sortOrder: z.ZodNumber;
|
|
91
132
|
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
133
|
+
listFilter: z.ZodBoolean;
|
|
134
|
+
carryTo: z.ZodArray<z.ZodEnum<{
|
|
135
|
+
customer: "customer";
|
|
136
|
+
product: "product";
|
|
137
|
+
category: "category";
|
|
138
|
+
order: "order";
|
|
139
|
+
organization: "organization";
|
|
140
|
+
quote_request: "quote_request";
|
|
141
|
+
task: "task";
|
|
142
|
+
opportunity: "opportunity";
|
|
143
|
+
project: "project";
|
|
144
|
+
}>>;
|
|
92
145
|
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
93
146
|
id: z.ZodOptional<z.ZodString>;
|
|
94
147
|
value: z.ZodString;
|
|
@@ -124,12 +177,14 @@ export declare const createCustomFieldDefinitionSchema: z.ZodObject<{
|
|
|
124
177
|
}>;
|
|
125
178
|
entityType: z.ZodEnum<{
|
|
126
179
|
customer: "customer";
|
|
180
|
+
product: "product";
|
|
127
181
|
category: "category";
|
|
128
182
|
order: "order";
|
|
129
|
-
product: "product";
|
|
130
183
|
organization: "organization";
|
|
131
184
|
quote_request: "quote_request";
|
|
185
|
+
task: "task";
|
|
132
186
|
opportunity: "opportunity";
|
|
187
|
+
project: "project";
|
|
133
188
|
}>;
|
|
134
189
|
sortOrder: z.ZodNumber;
|
|
135
190
|
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -138,6 +193,18 @@ export declare const createCustomFieldDefinitionSchema: z.ZodObject<{
|
|
|
138
193
|
customer: "customer";
|
|
139
194
|
internal: "internal";
|
|
140
195
|
}>>;
|
|
196
|
+
listFilter: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
carryTo: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
198
|
+
customer: "customer";
|
|
199
|
+
product: "product";
|
|
200
|
+
category: "category";
|
|
201
|
+
order: "order";
|
|
202
|
+
organization: "organization";
|
|
203
|
+
quote_request: "quote_request";
|
|
204
|
+
task: "task";
|
|
205
|
+
opportunity: "opportunity";
|
|
206
|
+
project: "project";
|
|
207
|
+
}>>>;
|
|
141
208
|
}, z.core.$strip>;
|
|
142
209
|
export type CreateCustomFieldDefinitionRequest = z.infer<typeof createCustomFieldDefinitionSchema>;
|
|
143
210
|
/** Patch a definition. `entityType` and `key` cannot change once records may hold values. */
|
|
@@ -167,6 +234,18 @@ export declare const updateCustomFieldDefinitionSchema: z.ZodObject<{
|
|
|
167
234
|
internal: "internal";
|
|
168
235
|
}>>;
|
|
169
236
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
237
|
+
listFilter: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
carryTo: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
239
|
+
customer: "customer";
|
|
240
|
+
product: "product";
|
|
241
|
+
category: "category";
|
|
242
|
+
order: "order";
|
|
243
|
+
organization: "organization";
|
|
244
|
+
quote_request: "quote_request";
|
|
245
|
+
task: "task";
|
|
246
|
+
opportunity: "opportunity";
|
|
247
|
+
project: "project";
|
|
248
|
+
}>>>;
|
|
170
249
|
}, z.core.$strip>;
|
|
171
250
|
export type UpdateCustomFieldDefinitionRequest = z.infer<typeof updateCustomFieldDefinitionSchema>;
|
|
172
251
|
/**
|
|
@@ -179,12 +258,14 @@ export type UpdateCustomFieldDefinitionRequest = z.infer<typeof updateCustomFiel
|
|
|
179
258
|
export declare const customFieldEntityTypeInfoSchema: z.ZodObject<{
|
|
180
259
|
entityType: z.ZodEnum<{
|
|
181
260
|
customer: "customer";
|
|
261
|
+
product: "product";
|
|
182
262
|
category: "category";
|
|
183
263
|
order: "order";
|
|
184
|
-
product: "product";
|
|
185
264
|
organization: "organization";
|
|
186
265
|
quote_request: "quote_request";
|
|
266
|
+
task: "task";
|
|
187
267
|
opportunity: "opportunity";
|
|
268
|
+
project: "project";
|
|
188
269
|
}>;
|
|
189
270
|
labelKey: z.ZodString;
|
|
190
271
|
managedBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -192,6 +273,18 @@ export declare const customFieldEntityTypeInfoSchema: z.ZodObject<{
|
|
|
192
273
|
labelKey: z.ZodString;
|
|
193
274
|
route: z.ZodString;
|
|
194
275
|
}, z.core.$strip>>;
|
|
276
|
+
listFilter: z.ZodBoolean;
|
|
277
|
+
carryTargets: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
278
|
+
customer: "customer";
|
|
279
|
+
product: "product";
|
|
280
|
+
category: "category";
|
|
281
|
+
order: "order";
|
|
282
|
+
organization: "organization";
|
|
283
|
+
quote_request: "quote_request";
|
|
284
|
+
task: "task";
|
|
285
|
+
opportunity: "opportunity";
|
|
286
|
+
project: "project";
|
|
287
|
+
}>>>;
|
|
195
288
|
}, z.core.$strip>;
|
|
196
289
|
export type CustomFieldEntityTypeInfo = z.infer<typeof customFieldEntityTypeInfoSchema>;
|
|
197
290
|
/** A validated value bag keyed by definition `key`. Values are typed by their definition's `valueType`. */
|
|
@@ -210,6 +303,128 @@ export declare const customFieldValidationErrorSchema: z.ZodObject<{
|
|
|
210
303
|
message: z.ZodString;
|
|
211
304
|
}, z.core.$strip>;
|
|
212
305
|
export type CustomFieldValidationError = z.infer<typeof customFieldValidationErrorSchema>;
|
|
306
|
+
/**
|
|
307
|
+
* One custom field's filter: the operators of every value type in one object.
|
|
308
|
+
* Which of them apply is the definition's value type to say
|
|
309
|
+
* (`CUSTOM_FIELD_FILTER_OPERATORS`): the admin lists refuse any other with 400
|
|
310
|
+
* `VALIDATION_FAILED` (`assertCustomFieldFilterOperators`), and only the CRM
|
|
311
|
+
* board ignores it. The CRM board's field filter is this same object.
|
|
312
|
+
*/
|
|
313
|
+
export declare const customFieldFilterSchema: z.ZodObject<{
|
|
314
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
315
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
316
|
+
is: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
+
min: z.ZodOptional<z.ZodString>;
|
|
318
|
+
max: z.ZodOptional<z.ZodString>;
|
|
319
|
+
from: z.ZodOptional<z.ZodString>;
|
|
320
|
+
to: z.ZodOptional<z.ZodString>;
|
|
321
|
+
}, z.core.$strict>;
|
|
322
|
+
export type CustomFieldFilter = z.infer<typeof customFieldFilterSchema>;
|
|
323
|
+
/**
|
|
324
|
+
* The operators each value type applies (FR-008). A filter carrying another
|
|
325
|
+
* operator for its field is refused rather than ignored: a filter is never
|
|
326
|
+
* silently dropped (FR-011).
|
|
327
|
+
*/
|
|
328
|
+
export declare const CUSTOM_FIELD_FILTER_OPERATORS: Readonly<Record<CustomFieldValueType, readonly (keyof CustomFieldFilter)[]>>;
|
|
329
|
+
/**
|
|
330
|
+
* Throws the `ZodError` naming every operator of `filters` that does not apply
|
|
331
|
+
* to its field's value type, each at `[key, operator]` — answered 400
|
|
332
|
+
* `VALIDATION_FAILED`, as any other malformed filter. A key `valueTypeOf`
|
|
333
|
+
* does not know is not this check's to judge.
|
|
334
|
+
*/
|
|
335
|
+
export declare function assertCustomFieldFilterOperators(filters: CustomFieldFilters, valueTypeOf: (key: string) => CustomFieldValueType | undefined): void;
|
|
336
|
+
/** Bounds the work one list request can ask of the database (keys per request). */
|
|
337
|
+
export declare const CUSTOM_FIELD_FILTERS_MAX_KEYS = 10;
|
|
338
|
+
/** Bounds the work one list request can ask of the database (`in` values summed over every key). */
|
|
339
|
+
export declare const CUSTOM_FIELD_FILTERS_MAX_IN_VALUES = 100;
|
|
340
|
+
export declare const customFieldFiltersSchema: z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
341
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
342
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
343
|
+
is: z.ZodOptional<z.ZodBoolean>;
|
|
344
|
+
min: z.ZodOptional<z.ZodString>;
|
|
345
|
+
max: z.ZodOptional<z.ZodString>;
|
|
346
|
+
from: z.ZodOptional<z.ZodString>;
|
|
347
|
+
to: z.ZodOptional<z.ZodString>;
|
|
348
|
+
}, z.core.$strict>>>;
|
|
349
|
+
export type CustomFieldFilters = z.infer<typeof customFieldFiltersSchema>;
|
|
350
|
+
/**
|
|
351
|
+
* The `customFieldFilters` query parameter: {@link customFieldFiltersSchema}
|
|
352
|
+
* as JSON, at most 8000 characters.
|
|
353
|
+
*
|
|
354
|
+
* **Idempotent.** The route validator replaces `request.query` with its parsed
|
|
355
|
+
* output and a handler may parse it again with the same query schema, so an
|
|
356
|
+
* already-parsed object is validated rather than refused. A repeated parameter
|
|
357
|
+
* (an array) matches neither branch and is refused.
|
|
358
|
+
*/
|
|
359
|
+
export declare const customFieldFiltersQueryParamSchema: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
360
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
361
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
362
|
+
is: z.ZodOptional<z.ZodBoolean>;
|
|
363
|
+
min: z.ZodOptional<z.ZodString>;
|
|
364
|
+
max: z.ZodOptional<z.ZodString>;
|
|
365
|
+
from: z.ZodOptional<z.ZodString>;
|
|
366
|
+
to: z.ZodOptional<z.ZodString>;
|
|
367
|
+
}, z.core.$strict>>>]>>, z.ZodTransform<Record<string, {
|
|
368
|
+
contains?: string | undefined;
|
|
369
|
+
in?: string[] | undefined;
|
|
370
|
+
is?: boolean | undefined;
|
|
371
|
+
min?: string | undefined;
|
|
372
|
+
max?: string | undefined;
|
|
373
|
+
from?: string | undefined;
|
|
374
|
+
to?: string | undefined;
|
|
375
|
+
}> | undefined, string | Record<string, {
|
|
376
|
+
contains?: string | undefined;
|
|
377
|
+
in?: string[] | undefined;
|
|
378
|
+
is?: boolean | undefined;
|
|
379
|
+
min?: string | undefined;
|
|
380
|
+
max?: string | undefined;
|
|
381
|
+
from?: string | undefined;
|
|
382
|
+
to?: string | undefined;
|
|
383
|
+
}> | undefined>>;
|
|
384
|
+
/**
|
|
385
|
+
* One custom field an admin list offers as a filter. Deliberately narrow: no
|
|
386
|
+
* `audience`, `required`, `config`, `listFilter`, `id` or `sortOrder`.
|
|
387
|
+
*/
|
|
388
|
+
export declare const customFieldListFilterFieldSchema: z.ZodObject<{
|
|
389
|
+
key: z.ZodString;
|
|
390
|
+
valueType: z.ZodEnum<{
|
|
391
|
+
number: "number";
|
|
392
|
+
boolean: "boolean";
|
|
393
|
+
date: "date";
|
|
394
|
+
text: "text";
|
|
395
|
+
select: "select";
|
|
396
|
+
multiselect: "multiselect";
|
|
397
|
+
}>;
|
|
398
|
+
label: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
399
|
+
labelDefault: z.ZodString;
|
|
400
|
+
options: z.ZodArray<z.ZodObject<{
|
|
401
|
+
value: z.ZodString;
|
|
402
|
+
label: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
403
|
+
labelDefault: z.ZodString;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
}, z.core.$strict>;
|
|
406
|
+
export type CustomFieldListFilterField = z.infer<typeof customFieldListFilterFieldSchema>;
|
|
407
|
+
export declare const customFieldListFilterFieldsResponseSchema: z.ZodObject<{
|
|
408
|
+
data: z.ZodArray<z.ZodObject<{
|
|
409
|
+
key: z.ZodString;
|
|
410
|
+
valueType: z.ZodEnum<{
|
|
411
|
+
number: "number";
|
|
412
|
+
boolean: "boolean";
|
|
413
|
+
date: "date";
|
|
414
|
+
text: "text";
|
|
415
|
+
select: "select";
|
|
416
|
+
multiselect: "multiselect";
|
|
417
|
+
}>;
|
|
418
|
+
label: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
419
|
+
labelDefault: z.ZodString;
|
|
420
|
+
options: z.ZodArray<z.ZodObject<{
|
|
421
|
+
value: z.ZodString;
|
|
422
|
+
label: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
423
|
+
labelDefault: z.ZodString;
|
|
424
|
+
}, z.core.$strip>>;
|
|
425
|
+
}, z.core.$strict>>;
|
|
426
|
+
}, z.core.$strip>;
|
|
427
|
+
export type CustomFieldListFilterFieldsResponse = z.infer<typeof customFieldListFilterFieldsResponseSchema>;
|
|
213
428
|
/**
|
|
214
429
|
* What `CustomFieldValuePort.validateAndMerge` throws, as a **shape** rather
|
|
215
430
|
* than a constructor (feature 075, Phase C).
|
|
@@ -237,7 +452,7 @@ export declare function isCustomFieldValidationFailure(error: unknown): error is
|
|
|
237
452
|
* `err instanceof CustomFieldDefinitionError`, which meant importing a
|
|
238
453
|
* constructor out of another module to read a string field off it.
|
|
239
454
|
*/
|
|
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"];
|
|
455
|
+
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
456
|
export type CustomFieldDefinitionErrorCode = (typeof CUSTOM_FIELD_DEFINITION_ERROR_CODES)[number];
|
|
242
457
|
/** A refused definition or option write, as a host outside `custom_fields` sees it. */
|
|
243
458
|
export interface CustomFieldDefinitionFailure {
|
|
@@ -265,6 +480,9 @@ export interface CustomFieldDefinitionRecord {
|
|
|
265
480
|
audience: CustomFieldAudience;
|
|
266
481
|
sortOrder: number;
|
|
267
482
|
config: Record<string, unknown>;
|
|
483
|
+
listFilter: boolean;
|
|
484
|
+
/** Feature 162 — see {@link customFieldCarryToSchema}. */
|
|
485
|
+
carryTo: SupportedEntityType[];
|
|
268
486
|
createdAt: Date;
|
|
269
487
|
updatedAt: Date;
|
|
270
488
|
}
|
|
@@ -387,4 +605,217 @@ export interface CustomFieldValuePort {
|
|
|
387
605
|
*/
|
|
388
606
|
projectForCustomer(entityType: SupportedEntityType, bag: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
389
607
|
}
|
|
608
|
+
/**
|
|
609
|
+
* Container name: `customFieldListFilterPort`. Owner: `custom_fields`
|
|
610
|
+
* (feature 157).
|
|
611
|
+
*
|
|
612
|
+
* The admin lists of `orders`, `quote_requests` and `crm` ask it which custom
|
|
613
|
+
* fields they offer as filters, and turn a request's filters into one
|
|
614
|
+
* server-side condition.
|
|
615
|
+
*/
|
|
616
|
+
export interface CustomFieldListFilterPort {
|
|
617
|
+
/** The served definitions of the type with `listFilter` on; `[]` when the type offers none. */
|
|
618
|
+
listFilterable(entityType: SupportedEntityType): Promise<CustomFieldListFilterField[]>;
|
|
619
|
+
/**
|
|
620
|
+
* The whole request's filters as **one** condition — one scan of the bound
|
|
621
|
+
* host table, every predicate of every key ANDed in its WHERE — or `null`
|
|
622
|
+
* when nothing applies. Throws a {@link CustomFieldFilterUnavailableFailure}
|
|
623
|
+
* naming every key that is not offered.
|
|
624
|
+
*/
|
|
625
|
+
condition(entityType: SupportedEntityType, filters: CustomFieldFilters | undefined): Promise<CustomFieldListFilterCondition | null>;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* `select t."id" from "<bound table>" t where (<p1>) and (<p2>) …` — every key
|
|
629
|
+
* and value bound. A caller wraps it in a fresh raw fragment for every
|
|
630
|
+
* statement it runs; a raw fragment is not reused.
|
|
631
|
+
*/
|
|
632
|
+
export interface CustomFieldListFilterCondition {
|
|
633
|
+
readonly sql: string;
|
|
634
|
+
readonly params: readonly unknown[];
|
|
635
|
+
}
|
|
636
|
+
/** What {@link CustomFieldListFilterPort.condition} throws for filters a list does not offer. */
|
|
637
|
+
export interface CustomFieldFilterUnavailableFailure extends Error {
|
|
638
|
+
readonly name: 'CustomFieldFilterUnavailableError';
|
|
639
|
+
readonly keys: readonly string[];
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* Throws the `ZodError` naming every inverted range of `filters` — a minimum
|
|
643
|
+
* above its maximum, a start date after its end — each at `[key, 'min']` or
|
|
644
|
+
* `[key, 'from']`, answered 400 `VALIDATION_FAILED`. Such a filter could only
|
|
645
|
+
* ever match nothing; refusing it says so instead of showing an empty list.
|
|
646
|
+
*/
|
|
647
|
+
export declare function assertCustomFieldFilterRanges(filters: CustomFieldFilters): void;
|
|
648
|
+
/** A refused list filter naming `keys`, in the shape {@link isCustomFieldFilterUnavailableFailure} narrows. */
|
|
649
|
+
export declare function customFieldFilterUnavailable(keys: readonly string[], message?: string): CustomFieldFilterUnavailableFailure;
|
|
650
|
+
/** Whether `error` is a refused list filter, narrowed by shape (as the sibling guards above). */
|
|
651
|
+
export declare function isCustomFieldFilterUnavailableFailure(error: unknown): error is CustomFieldFilterUnavailableFailure;
|
|
652
|
+
/** One side of a carry pair, as the compatibility rule reads it. */
|
|
653
|
+
export interface CustomFieldCarryParty {
|
|
654
|
+
valueType: CustomFieldValueType;
|
|
655
|
+
audience: CustomFieldAudience;
|
|
656
|
+
options: ReadonlyArray<{
|
|
657
|
+
value: string;
|
|
658
|
+
}>;
|
|
659
|
+
}
|
|
660
|
+
/** Why a carry from one definition to the same-key definition of another type cannot work. */
|
|
661
|
+
export type CustomFieldCarryIncompatibility = {
|
|
662
|
+
reason: 'target_missing';
|
|
663
|
+
} | {
|
|
664
|
+
reason: 'value_type_mismatch';
|
|
665
|
+
sourceValueType: CustomFieldValueType;
|
|
666
|
+
targetValueType: CustomFieldValueType;
|
|
667
|
+
} | {
|
|
668
|
+
reason: 'options_missing';
|
|
669
|
+
missingOptionValues: string[];
|
|
670
|
+
} | {
|
|
671
|
+
reason: 'audience_mismatch';
|
|
672
|
+
};
|
|
673
|
+
/**
|
|
674
|
+
* The one compatibility rule of a carry pair (feature 162). The server refuses
|
|
675
|
+
* turning a carry on with it, the admin marks drifted carries with it, and the
|
|
676
|
+
* carry port applies its type and audience halves at conversion. Pure: no I/O.
|
|
677
|
+
*
|
|
678
|
+
* Every reason, in this order; `[]` means compatible:
|
|
679
|
+
* - no target → `target_missing`, and nothing else;
|
|
680
|
+
* - value types differ → `value_type_mismatch` — no widening, and the options
|
|
681
|
+
* question is not asked;
|
|
682
|
+
* - `select` / `multiselect`: the source option values the target lacks, in
|
|
683
|
+
* source order (labels ignored, extra target options fine) → `options_missing`;
|
|
684
|
+
* - an `internal` source into a `customer` target → `audience_mismatch`.
|
|
685
|
+
*/
|
|
686
|
+
export declare function assessCustomFieldCarry(source: CustomFieldCarryParty, target: CustomFieldCarryParty | null): CustomFieldCarryIncompatibility[];
|
|
687
|
+
/**
|
|
688
|
+
* Why one value was not carried at conversion. `value_invalid` is the
|
|
689
|
+
* per-value twin of `options_missing`: the value itself does not satisfy the
|
|
690
|
+
* target definition.
|
|
691
|
+
*/
|
|
692
|
+
export declare const customFieldCarrySkipReasonSchema: z.ZodEnum<{
|
|
693
|
+
target_missing: "target_missing";
|
|
694
|
+
value_type_mismatch: "value_type_mismatch";
|
|
695
|
+
audience_mismatch: "audience_mismatch";
|
|
696
|
+
value_invalid: "value_invalid";
|
|
697
|
+
}>;
|
|
698
|
+
export type CustomFieldCarrySkipReason = z.infer<typeof customFieldCarrySkipReasonSchema>;
|
|
699
|
+
/**
|
|
700
|
+
* The longest string a skip's label snapshot holds — a definition's
|
|
701
|
+
* `labelDefault` cap. `custom_fields` cuts the snapshot to it when it takes it,
|
|
702
|
+
* since a definition's per-locale labels are not capped.
|
|
703
|
+
*/
|
|
704
|
+
export declare const CUSTOM_FIELD_CARRY_SKIP_LABEL_MAX = 200;
|
|
705
|
+
/**
|
|
706
|
+
* The skipped field's label as its **source** definition read when the value
|
|
707
|
+
* was skipped (owner ruling 2026-10-21, V3): a history line names the field in
|
|
708
|
+
* the reader's language without asking `custom_fields` for definitions, so an
|
|
709
|
+
* administrator without `custom_fields:read` reads it too. A snapshot — a later
|
|
710
|
+
* rename does not rewrite history. Each string is at most
|
|
711
|
+
* {@link CUSTOM_FIELD_CARRY_SKIP_LABEL_MAX} characters.
|
|
712
|
+
*/
|
|
713
|
+
export declare const customFieldCarrySkipLabelSchema: z.ZodObject<{
|
|
714
|
+
labelDefault: z.ZodString;
|
|
715
|
+
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
716
|
+
}, z.core.$strip>;
|
|
717
|
+
export type CustomFieldCarrySkipLabel = z.infer<typeof customFieldCarrySkipLabelSchema>;
|
|
718
|
+
/** `label` is absent on a skip recorded before the snapshot existed. */
|
|
719
|
+
export declare const customFieldCarrySkipSchema: z.ZodObject<{
|
|
720
|
+
key: z.ZodString;
|
|
721
|
+
reason: z.ZodEnum<{
|
|
722
|
+
target_missing: "target_missing";
|
|
723
|
+
value_type_mismatch: "value_type_mismatch";
|
|
724
|
+
audience_mismatch: "audience_mismatch";
|
|
725
|
+
value_invalid: "value_invalid";
|
|
726
|
+
}>;
|
|
727
|
+
label: z.ZodOptional<z.ZodObject<{
|
|
728
|
+
labelDefault: z.ZodString;
|
|
729
|
+
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
730
|
+
}, z.core.$strip>>;
|
|
731
|
+
}, z.core.$strip>;
|
|
732
|
+
/** One key not carried, with its reason and the source field's label snapshot. */
|
|
733
|
+
export interface CustomFieldCarrySkip {
|
|
734
|
+
readonly key: string;
|
|
735
|
+
readonly reason: CustomFieldCarrySkipReason;
|
|
736
|
+
readonly label?: CustomFieldCarrySkipLabel;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* A plain copy of a skip for a record to store: `key`, `reason` and — when the
|
|
740
|
+
* skip has one — a copy of its label snapshot (`labelDefault` and `labels`).
|
|
741
|
+
* **It strips every other field**: whatever else the value carries, on the skip
|
|
742
|
+
* or on its label, is dropped and never reaches a stored record.
|
|
743
|
+
*/
|
|
744
|
+
export declare function customFieldCarrySkipRecord(skip: Omit<CustomFieldCarrySkip, 'label'> & {
|
|
745
|
+
readonly label?: CustomFieldCarrySkipLabel | undefined;
|
|
746
|
+
}): CustomFieldCarrySkip;
|
|
747
|
+
/**
|
|
748
|
+
* What {@link CustomFieldCarryPort.plan} answers: `values` is the target bag to
|
|
749
|
+
* persist — the target's own bag plus the carried keys, never a removed or
|
|
750
|
+
* overwritten key — `carried` the keys added and `skipped` the keys not
|
|
751
|
+
* carried, each with its reason.
|
|
752
|
+
*/
|
|
753
|
+
export interface CustomFieldCarryPlan {
|
|
754
|
+
readonly values: Record<string, unknown>;
|
|
755
|
+
readonly carried: readonly string[];
|
|
756
|
+
readonly skipped: readonly CustomFieldCarrySkip[];
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Container name: `customFieldCarryPort`. Owner: `custom_fields` (feature 162).
|
|
760
|
+
*
|
|
761
|
+
* The host that owns a carry's **target** record asks it which source values
|
|
762
|
+
* carry into its own current bag, and persists the answer in its own write.
|
|
763
|
+
* Only source definitions whose `carryTo` names the target type and whose value
|
|
764
|
+
* is non-empty are considered; a target key that already holds a value is kept
|
|
765
|
+
* and neither carried nor skipped; unrelated target fields — required ones
|
|
766
|
+
* included — are never consulted, so a host must not run `validateAndMerge`
|
|
767
|
+
* over the answer. Either type's owner absent → an empty plan.
|
|
768
|
+
*
|
|
769
|
+
* It performs **no** database write, **no** audit and emits **no** event.
|
|
770
|
+
*
|
|
771
|
+
* **Owner off:** the seam fails closed — resolving this port throws
|
|
772
|
+
* `ModuleDisabledError` and the call answers 503 `MODULE_DISABLED`, so nothing
|
|
773
|
+
* half-executes. Whether `custom_fields` has an off state at all is its manifest's
|
|
774
|
+
* `activation` to say, not this line's: a module declaring
|
|
775
|
+
* `nonDeactivatable` never enters one.
|
|
776
|
+
*/
|
|
777
|
+
export interface CustomFieldCarryPort {
|
|
778
|
+
plan(input: {
|
|
779
|
+
sourceType: SupportedEntityType;
|
|
780
|
+
targetType: SupportedEntityType;
|
|
781
|
+
sourceValues: Record<string, unknown>;
|
|
782
|
+
targetValues: Record<string, unknown>;
|
|
783
|
+
}): Promise<CustomFieldCarryPlan>;
|
|
784
|
+
}
|
|
785
|
+
/** What a receiver answers: `not-found` for a missing record and for another Organization's alike. */
|
|
786
|
+
export interface CustomFieldCarryReceipt {
|
|
787
|
+
readonly outcome: 'applied' | 'not-found';
|
|
788
|
+
readonly carried: readonly string[];
|
|
789
|
+
readonly skipped: readonly CustomFieldCarrySkip[];
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Container name: `orderCustomFieldCarryPort`. Owner: `orders`.
|
|
793
|
+
* Container name: `quoteRequestCustomFieldCarryPort`. Owner: `quote_requests`.
|
|
794
|
+
* (Feature 162.)
|
|
795
|
+
*
|
|
796
|
+
* `crm` pushes a Sales Opportunity's values to the document created from it,
|
|
797
|
+
* once its origin link is made; the document's owner carries them into empty
|
|
798
|
+
* fields in one Command of its own and records what it skipped on the record.
|
|
799
|
+
* `not-found` for a missing record **and** for a record of another
|
|
800
|
+
* Organization — one answer, no existence leak; `applied` otherwise, even when
|
|
801
|
+
* nothing was carried. A second call carries nothing more (fill-empty).
|
|
802
|
+
*
|
|
803
|
+
* **Owner off:** the seam fails closed — resolving this port throws
|
|
804
|
+
* `ModuleDisabledError` and the call answers 503 `MODULE_DISABLED`, so nothing
|
|
805
|
+
* half-executes. `orders` is not deactivatable; for `quote_requests` the caller
|
|
806
|
+
* decides presence first and does not call.
|
|
807
|
+
*/
|
|
808
|
+
export interface CustomFieldCarryReceiverPort {
|
|
809
|
+
receiveCarriedValues(input: {
|
|
810
|
+
recordId: string;
|
|
811
|
+
organizationId: string;
|
|
812
|
+
source: {
|
|
813
|
+
entityType: 'opportunity';
|
|
814
|
+
recordId: string;
|
|
815
|
+
/** The source's business number, for the skip entry's sentence. */
|
|
816
|
+
reference: string;
|
|
817
|
+
values: Record<string, unknown>;
|
|
818
|
+
};
|
|
819
|
+
}): Promise<CustomFieldCarryReceipt>;
|
|
820
|
+
}
|
|
390
821
|
//# 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
|
|
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;;;;;;;;;;EAmBpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,8HAA8H;AAC9H,eAAO,MAAM,0BAA0B;;;;;;;EAOrC,CAA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