@endora-commerce/contracts 0.106.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.
- package/dist/admin-contributions.d.ts +11 -6
- package/dist/admin-contributions.d.ts.map +1 -1
- package/dist/admin-contributions.js +9 -6
- 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-roles.d.ts +32 -2
- package/dist/admin-roles.d.ts.map +1 -1
- package/dist/admin-roles.js +21 -1
- package/dist/admin-roles.js.map +1 -1
- package/dist/admin-search.d.ts +655 -0
- package/dist/admin-search.d.ts.map +1 -0
- package/dist/admin-search.js +179 -0
- package/dist/admin-search.js.map +1 -0
- package/dist/analytics.d.ts +5 -0
- package/dist/analytics.d.ts.map +1 -1
- package/dist/analytics.js +8 -0
- package/dist/analytics.js.map +1 -1
- package/dist/api-keys.d.ts +6 -0
- package/dist/api-keys.d.ts.map +1 -1
- package/dist/api-keys.js +5 -0
- package/dist/api-keys.js.map +1 -1
- package/dist/assets-library.d.ts +102 -0
- package/dist/assets-library.d.ts.map +1 -1
- package/dist/assets-library.js +89 -0
- package/dist/assets-library.js.map +1 -1
- package/dist/auth.d.ts +20 -0
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +20 -0
- package/dist/auth.js.map +1 -1
- package/dist/blog.d.ts +1 -1
- package/dist/carts.d.ts +218 -7
- package/dist/carts.d.ts.map +1 -1
- package/dist/carts.js +29 -0
- package/dist/carts.js.map +1 -1
- package/dist/catalog.d.ts +299 -14
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +136 -2
- package/dist/catalog.js.map +1 -1
- package/dist/cms.d.ts +183 -3
- package/dist/cms.d.ts.map +1 -1
- package/dist/cms.js +132 -1
- 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 +80 -0
- package/dist/comparisons.d.ts.map +1 -1
- package/dist/comparisons.js +24 -0
- package/dist/comparisons.js.map +1 -1
- package/dist/credentials.d.ts +23 -0
- package/dist/credentials.d.ts.map +1 -1
- package/dist/credentials.js +24 -0
- package/dist/credentials.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 +64 -0
- package/dist/crm-rich-text.d.ts.map +1 -0
- package/dist/crm-rich-text.js +303 -0
- package/dist/crm-rich-text.js.map +1 -0
- package/dist/crm.d.ts +92 -2
- package/dist/crm.d.ts.map +1 -1
- package/dist/crm.js +49 -34
- package/dist/crm.js.map +1 -1
- package/dist/custom-fields.d.ts +417 -4
- package/dist/custom-fields.d.ts.map +1 -1
- package/dist/custom-fields.js +319 -10
- package/dist/custom-fields.js.map +1 -1
- package/dist/customer-accounts.d.ts +92 -2
- package/dist/customer-accounts.d.ts.map +1 -1
- package/dist/document-templates.d.ts +1368 -0
- package/dist/document-templates.d.ts.map +1 -0
- package/dist/document-templates.js +569 -0
- package/dist/document-templates.js.map +1 -0
- package/dist/document-values.d.ts +159 -0
- package/dist/document-values.d.ts.map +1 -0
- package/dist/document-values.js +220 -0
- package/dist/document-values.js.map +1 -0
- package/dist/errors.d.ts +122 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +172 -0
- package/dist/errors.js.map +1 -1
- package/dist/import-export.d.ts +11 -0
- package/dist/import-export.d.ts.map +1 -1
- package/dist/import-export.js +9 -0
- package/dist/import-export.js.map +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/dist/invoice-ledger.d.ts +6 -6
- package/dist/invoices.d.ts +88 -0
- package/dist/invoices.d.ts.map +1 -1
- package/dist/invoices.js +19 -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/mfa.d.ts +20 -0
- package/dist/mfa.d.ts.map +1 -1
- package/dist/modules.d.ts +20 -10
- package/dist/modules.d.ts.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 +2 -0
- package/dist/newsletter.d.ts.map +1 -1
- package/dist/newsletter.js +4 -0
- package/dist/newsletter.js.map +1 -1
- 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 +212 -2
- package/dist/orders.d.ts.map +1 -1
- package/dist/orders.js +124 -21
- package/dist/orders.js.map +1 -1
- package/dist/organizations.d.ts +78 -0
- package/dist/organizations.d.ts.map +1 -1
- package/dist/organizations.js +54 -0
- package/dist/organizations.js.map +1 -1
- package/dist/payment-methods.d.ts +2 -2
- 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/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 +398 -248
- package/dist/price-lists.d.ts.map +1 -1
- package/dist/price-lists.js +136 -244
- package/dist/price-lists.js.map +1 -1
- package/dist/product-feeds.d.ts +102 -21
- package/dist/product-feeds.d.ts.map +1 -1
- package/dist/product-feeds.js +18 -1
- package/dist/product-feeds.js.map +1 -1
- 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/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 +25 -6
- package/dist/prompt-actions.d.ts.map +1 -1
- package/dist/prompt-actions.js +17 -1
- package/dist/prompt-actions.js.map +1 -1
- package/dist/pwa.d.ts +25 -0
- package/dist/pwa.d.ts.map +1 -1
- package/dist/pwa.js +38 -0
- package/dist/pwa.js.map +1 -1
- package/dist/quick-order.d.ts +39 -0
- package/dist/quick-order.d.ts.map +1 -1
- package/dist/quick-order.js +43 -0
- package/dist/quick-order.js.map +1 -1
- package/dist/quote-requests.d.ts +903 -9
- package/dist/quote-requests.d.ts.map +1 -1
- package/dist/quote-requests.js +515 -8
- package/dist/quote-requests.js.map +1 -1
- package/dist/returns.d.ts +55 -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 +48 -0
- package/dist/sales-channels.d.ts.map +1 -1
- package/dist/sales-channels.js +42 -0
- package/dist/sales-channels.js.map +1 -1
- package/dist/saved-list-views.d.ts +140 -0
- package/dist/saved-list-views.d.ts.map +1 -0
- package/dist/saved-list-views.js +108 -0
- package/dist/saved-list-views.js.map +1 -0
- package/dist/search.d.ts +66 -0
- 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 +2 -0
- package/dist/seo.d.ts.map +1 -1
- package/dist/seo.js +11 -0
- package/dist/seo.js.map +1 -1
- package/dist/shipping-methods.d.ts +2 -2
- 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-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/package.json +1 -1
package/dist/quote-requests.d.ts
CHANGED
|
@@ -33,13 +33,32 @@ export declare const quoteRequestItemSchema: z.ZodObject<{
|
|
|
33
33
|
lineCurrency: z.ZodString;
|
|
34
34
|
discountPercent: z.ZodNullable<z.ZodNumber>;
|
|
35
35
|
taxRate: z.ZodDefault<z.ZodNumber>;
|
|
36
|
+
referencePrice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
37
|
+
amount: z.ZodNumber;
|
|
38
|
+
currency: z.ZodString;
|
|
39
|
+
capturedAt: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
41
|
+
customerProposedUnitPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
packagingUnitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
packagingUnitBaseQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
+
packagingUnitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
minimumWarning: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
|
+
kind: z.ZodEnum<{
|
|
47
|
+
pieces: "pieces";
|
|
48
|
+
packaging_unit: "packaging_unit";
|
|
49
|
+
}>;
|
|
50
|
+
minimum: z.ZodNumber;
|
|
51
|
+
packagingUnitName: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
53
|
+
groupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
position: z.ZodDefault<z.ZodNumber>;
|
|
36
55
|
}, z.core.$strip>;
|
|
37
56
|
export type QuoteRequestItem = z.infer<typeof quoteRequestItemSchema>;
|
|
38
57
|
export declare const rfqEventTypeSchema: z.ZodEnum<{
|
|
39
58
|
completed: "completed";
|
|
59
|
+
expired: "expired";
|
|
40
60
|
created: "created";
|
|
41
61
|
approved: "approved";
|
|
42
|
-
expired: "expired";
|
|
43
62
|
submitted: "submitted";
|
|
44
63
|
modified: "modified";
|
|
45
64
|
canceled: "canceled";
|
|
@@ -47,15 +66,17 @@ export declare const rfqEventTypeSchema: z.ZodEnum<{
|
|
|
47
66
|
"customer-rejected-revision": "customer-rejected-revision";
|
|
48
67
|
"re-submitted": "re-submitted";
|
|
49
68
|
"note-added": "note-added";
|
|
69
|
+
"pdf-sent": "pdf-sent";
|
|
70
|
+
"custom-field-carry-skipped": "custom-field-carry-skipped";
|
|
50
71
|
}>;
|
|
51
72
|
export type RfqEventType = z.infer<typeof rfqEventTypeSchema>;
|
|
52
73
|
export declare const quoteRequestEventSchema: z.ZodObject<{
|
|
53
74
|
id: z.ZodString;
|
|
54
75
|
eventType: z.ZodEnum<{
|
|
55
76
|
completed: "completed";
|
|
77
|
+
expired: "expired";
|
|
56
78
|
created: "created";
|
|
57
79
|
approved: "approved";
|
|
58
|
-
expired: "expired";
|
|
59
80
|
submitted: "submitted";
|
|
60
81
|
modified: "modified";
|
|
61
82
|
canceled: "canceled";
|
|
@@ -63,6 +84,8 @@ export declare const quoteRequestEventSchema: z.ZodObject<{
|
|
|
63
84
|
"customer-rejected-revision": "customer-rejected-revision";
|
|
64
85
|
"re-submitted": "re-submitted";
|
|
65
86
|
"note-added": "note-added";
|
|
87
|
+
"pdf-sent": "pdf-sent";
|
|
88
|
+
"custom-field-carry-skipped": "custom-field-carry-skipped";
|
|
66
89
|
}>;
|
|
67
90
|
actorAdminUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
91
|
actorCustomerAccountId: z.ZodNullable<z.ZodString>;
|
|
@@ -72,6 +95,532 @@ export declare const quoteRequestEventSchema: z.ZodObject<{
|
|
|
72
95
|
createdAt: z.ZodString;
|
|
73
96
|
}, z.core.$strip>;
|
|
74
97
|
export type QuoteRequestEvent = z.infer<typeof quoteRequestEventSchema>;
|
|
98
|
+
/** A line as a history change names it. */
|
|
99
|
+
export declare const quoteRequestHistoryLineRefSchema: z.ZodObject<{
|
|
100
|
+
productId: z.ZodString;
|
|
101
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
102
|
+
productName: z.ZodString;
|
|
103
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
104
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
export type QuoteRequestHistoryLineRef = z.infer<typeof quoteRequestHistoryLineRefSchema>;
|
|
107
|
+
/**
|
|
108
|
+
* One change of a `modified` entry. Packaging-unit and custom-field changes
|
|
109
|
+
* are never listed. The UI maps every `kind` to a bundle key.
|
|
110
|
+
*/
|
|
111
|
+
export declare const quoteRequestHistoryChangeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
112
|
+
kind: z.ZodLiteral<"line_added">;
|
|
113
|
+
line: z.ZodObject<{
|
|
114
|
+
productId: z.ZodString;
|
|
115
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
116
|
+
productName: z.ZodString;
|
|
117
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
118
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
quantity: z.ZodNumber;
|
|
121
|
+
agreedUnitPrice: z.ZodNullable<z.ZodNumber>;
|
|
122
|
+
currency: z.ZodString;
|
|
123
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
124
|
+
kind: z.ZodLiteral<"line_removed">;
|
|
125
|
+
line: z.ZodObject<{
|
|
126
|
+
productId: z.ZodString;
|
|
127
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
128
|
+
productName: z.ZodString;
|
|
129
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
130
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
+
kind: z.ZodLiteral<"line_quantity">;
|
|
134
|
+
line: z.ZodObject<{
|
|
135
|
+
productId: z.ZodString;
|
|
136
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
137
|
+
productName: z.ZodString;
|
|
138
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
139
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
before: z.ZodNumber;
|
|
142
|
+
after: z.ZodNumber;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
kind: z.ZodLiteral<"line_agreed_unit_price">;
|
|
145
|
+
line: z.ZodObject<{
|
|
146
|
+
productId: z.ZodString;
|
|
147
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
148
|
+
productName: z.ZodString;
|
|
149
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
150
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
before: z.ZodNullable<z.ZodNumber>;
|
|
153
|
+
after: z.ZodNullable<z.ZodNumber>;
|
|
154
|
+
currency: z.ZodString;
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
+
kind: z.ZodLiteral<"line_proposed_unit_price">;
|
|
157
|
+
line: z.ZodObject<{
|
|
158
|
+
productId: z.ZodString;
|
|
159
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
160
|
+
productName: z.ZodString;
|
|
161
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
162
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
before: z.ZodNullable<z.ZodNumber>;
|
|
165
|
+
after: z.ZodNullable<z.ZodNumber>;
|
|
166
|
+
currency: z.ZodString;
|
|
167
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
+
kind: z.ZodLiteral<"line_note">;
|
|
169
|
+
line: z.ZodObject<{
|
|
170
|
+
productId: z.ZodString;
|
|
171
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
172
|
+
productName: z.ZodString;
|
|
173
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
174
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
before: z.ZodNullable<z.ZodString>;
|
|
177
|
+
after: z.ZodNullable<z.ZodString>;
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
+
kind: z.ZodLiteral<"header_note">;
|
|
180
|
+
before: z.ZodNullable<z.ZodString>;
|
|
181
|
+
after: z.ZodNullable<z.ZodString>;
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
+
kind: z.ZodLiteral<"validity">;
|
|
184
|
+
before: z.ZodNullable<z.ZodString>;
|
|
185
|
+
after: z.ZodNullable<z.ZodString>;
|
|
186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
+
kind: z.ZodLiteral<"group_added">;
|
|
188
|
+
group: z.ZodObject<{
|
|
189
|
+
id: z.ZodString;
|
|
190
|
+
name: z.ZodString;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
+
kind: z.ZodLiteral<"group_removed">;
|
|
194
|
+
group: z.ZodObject<{
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
name: z.ZodString;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
kind: z.ZodLiteral<"group_renamed">;
|
|
200
|
+
groupId: z.ZodString;
|
|
201
|
+
before: z.ZodString;
|
|
202
|
+
after: z.ZodString;
|
|
203
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
204
|
+
kind: z.ZodLiteral<"line_group">;
|
|
205
|
+
line: z.ZodObject<{
|
|
206
|
+
productId: z.ZodString;
|
|
207
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
208
|
+
productName: z.ZodString;
|
|
209
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
210
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
before: z.ZodNullable<z.ZodString>;
|
|
213
|
+
after: z.ZodNullable<z.ZodString>;
|
|
214
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
+
kind: z.ZodLiteral<"line_order">;
|
|
216
|
+
}, z.core.$strip>], "kind">;
|
|
217
|
+
export type QuoteRequestHistoryChange = z.infer<typeof quoteRequestHistoryChangeSchema>;
|
|
218
|
+
/**
|
|
219
|
+
* Who an entry is attributed to. An administrator is named by first and last
|
|
220
|
+
* name only — the admin arm has **no e-mail key** — and `name: null` means an
|
|
221
|
+
* unknown user.
|
|
222
|
+
*/
|
|
223
|
+
export declare const quoteRequestHistoryActorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
224
|
+
kind: z.ZodLiteral<"admin">;
|
|
225
|
+
adminUserId: z.ZodString;
|
|
226
|
+
name: z.ZodNullable<z.ZodString>;
|
|
227
|
+
recordedRole: z.ZodNullable<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
kind: z.ZodLiteral<"customer">;
|
|
230
|
+
customerAccountId: z.ZodString;
|
|
231
|
+
name: z.ZodNullable<z.ZodString>;
|
|
232
|
+
email: z.ZodNullable<z.ZodString>;
|
|
233
|
+
recordedRole: z.ZodNullable<z.ZodString>;
|
|
234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
+
kind: z.ZodLiteral<"system">;
|
|
236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
237
|
+
kind: z.ZodLiteral<"unknown">;
|
|
238
|
+
recordedRole: z.ZodNullable<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>], "kind">;
|
|
240
|
+
export type QuoteRequestHistoryActor = z.infer<typeof quoteRequestHistoryActorSchema>;
|
|
241
|
+
export declare const quoteRequestHistoryEntryKindSchema: z.ZodEnum<{
|
|
242
|
+
completed: "completed";
|
|
243
|
+
expired: "expired";
|
|
244
|
+
created: "created";
|
|
245
|
+
approved: "approved";
|
|
246
|
+
submitted: "submitted";
|
|
247
|
+
modified: "modified";
|
|
248
|
+
canceled: "canceled";
|
|
249
|
+
resubmitted: "resubmitted";
|
|
250
|
+
created_by_admin: "created_by_admin";
|
|
251
|
+
accepted_by_customer: "accepted_by_customer";
|
|
252
|
+
rejected_by_customer: "rejected_by_customer";
|
|
253
|
+
note_added: "note_added";
|
|
254
|
+
pdf_sent: "pdf_sent";
|
|
255
|
+
custom_field_carry_skipped: "custom_field_carry_skipped";
|
|
256
|
+
}>;
|
|
257
|
+
export type QuoteRequestHistoryEntryKind = z.infer<typeof quoteRequestHistoryEntryKindSchema>;
|
|
258
|
+
export declare const quoteRequestHistoryEntrySchema: z.ZodObject<{
|
|
259
|
+
id: z.ZodString;
|
|
260
|
+
eventIds: z.ZodArray<z.ZodString>;
|
|
261
|
+
kind: z.ZodEnum<{
|
|
262
|
+
completed: "completed";
|
|
263
|
+
expired: "expired";
|
|
264
|
+
created: "created";
|
|
265
|
+
approved: "approved";
|
|
266
|
+
submitted: "submitted";
|
|
267
|
+
modified: "modified";
|
|
268
|
+
canceled: "canceled";
|
|
269
|
+
resubmitted: "resubmitted";
|
|
270
|
+
created_by_admin: "created_by_admin";
|
|
271
|
+
accepted_by_customer: "accepted_by_customer";
|
|
272
|
+
rejected_by_customer: "rejected_by_customer";
|
|
273
|
+
note_added: "note_added";
|
|
274
|
+
pdf_sent: "pdf_sent";
|
|
275
|
+
custom_field_carry_skipped: "custom_field_carry_skipped";
|
|
276
|
+
}>;
|
|
277
|
+
occurredAt: z.ZodString;
|
|
278
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
279
|
+
kind: z.ZodLiteral<"admin">;
|
|
280
|
+
adminUserId: z.ZodString;
|
|
281
|
+
name: z.ZodNullable<z.ZodString>;
|
|
282
|
+
recordedRole: z.ZodNullable<z.ZodString>;
|
|
283
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
284
|
+
kind: z.ZodLiteral<"customer">;
|
|
285
|
+
customerAccountId: z.ZodString;
|
|
286
|
+
name: z.ZodNullable<z.ZodString>;
|
|
287
|
+
email: z.ZodNullable<z.ZodString>;
|
|
288
|
+
recordedRole: z.ZodNullable<z.ZodString>;
|
|
289
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
290
|
+
kind: z.ZodLiteral<"system">;
|
|
291
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
292
|
+
kind: z.ZodLiteral<"unknown">;
|
|
293
|
+
recordedRole: z.ZodNullable<z.ZodString>;
|
|
294
|
+
}, z.core.$strip>], "kind">;
|
|
295
|
+
revisionNumber: z.ZodNullable<z.ZodNumber>;
|
|
296
|
+
note: z.ZodNullable<z.ZodString>;
|
|
297
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
298
|
+
changes: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
299
|
+
kind: z.ZodLiteral<"line_added">;
|
|
300
|
+
line: z.ZodObject<{
|
|
301
|
+
productId: z.ZodString;
|
|
302
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
303
|
+
productName: z.ZodString;
|
|
304
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
305
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
+
}, z.core.$strip>;
|
|
307
|
+
quantity: z.ZodNumber;
|
|
308
|
+
agreedUnitPrice: z.ZodNullable<z.ZodNumber>;
|
|
309
|
+
currency: z.ZodString;
|
|
310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
311
|
+
kind: z.ZodLiteral<"line_removed">;
|
|
312
|
+
line: z.ZodObject<{
|
|
313
|
+
productId: z.ZodString;
|
|
314
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
315
|
+
productName: z.ZodString;
|
|
316
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
317
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
320
|
+
kind: z.ZodLiteral<"line_quantity">;
|
|
321
|
+
line: z.ZodObject<{
|
|
322
|
+
productId: z.ZodString;
|
|
323
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
324
|
+
productName: z.ZodString;
|
|
325
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
326
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
before: z.ZodNumber;
|
|
329
|
+
after: z.ZodNumber;
|
|
330
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
331
|
+
kind: z.ZodLiteral<"line_agreed_unit_price">;
|
|
332
|
+
line: z.ZodObject<{
|
|
333
|
+
productId: z.ZodString;
|
|
334
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
335
|
+
productName: z.ZodString;
|
|
336
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
337
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
}, z.core.$strip>;
|
|
339
|
+
before: z.ZodNullable<z.ZodNumber>;
|
|
340
|
+
after: z.ZodNullable<z.ZodNumber>;
|
|
341
|
+
currency: z.ZodString;
|
|
342
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
343
|
+
kind: z.ZodLiteral<"line_proposed_unit_price">;
|
|
344
|
+
line: z.ZodObject<{
|
|
345
|
+
productId: z.ZodString;
|
|
346
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
347
|
+
productName: z.ZodString;
|
|
348
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
349
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
|
+
}, z.core.$strip>;
|
|
351
|
+
before: z.ZodNullable<z.ZodNumber>;
|
|
352
|
+
after: z.ZodNullable<z.ZodNumber>;
|
|
353
|
+
currency: z.ZodString;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
355
|
+
kind: z.ZodLiteral<"line_note">;
|
|
356
|
+
line: z.ZodObject<{
|
|
357
|
+
productId: z.ZodString;
|
|
358
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
359
|
+
productName: z.ZodString;
|
|
360
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
361
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
before: z.ZodNullable<z.ZodString>;
|
|
364
|
+
after: z.ZodNullable<z.ZodString>;
|
|
365
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
366
|
+
kind: z.ZodLiteral<"header_note">;
|
|
367
|
+
before: z.ZodNullable<z.ZodString>;
|
|
368
|
+
after: z.ZodNullable<z.ZodString>;
|
|
369
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
370
|
+
kind: z.ZodLiteral<"validity">;
|
|
371
|
+
before: z.ZodNullable<z.ZodString>;
|
|
372
|
+
after: z.ZodNullable<z.ZodString>;
|
|
373
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
374
|
+
kind: z.ZodLiteral<"group_added">;
|
|
375
|
+
group: z.ZodObject<{
|
|
376
|
+
id: z.ZodString;
|
|
377
|
+
name: z.ZodString;
|
|
378
|
+
}, z.core.$strip>;
|
|
379
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
380
|
+
kind: z.ZodLiteral<"group_removed">;
|
|
381
|
+
group: z.ZodObject<{
|
|
382
|
+
id: z.ZodString;
|
|
383
|
+
name: z.ZodString;
|
|
384
|
+
}, z.core.$strip>;
|
|
385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
386
|
+
kind: z.ZodLiteral<"group_renamed">;
|
|
387
|
+
groupId: z.ZodString;
|
|
388
|
+
before: z.ZodString;
|
|
389
|
+
after: z.ZodString;
|
|
390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
+
kind: z.ZodLiteral<"line_group">;
|
|
392
|
+
line: z.ZodObject<{
|
|
393
|
+
productId: z.ZodString;
|
|
394
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
395
|
+
productName: z.ZodString;
|
|
396
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
397
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
398
|
+
}, z.core.$strip>;
|
|
399
|
+
before: z.ZodNullable<z.ZodString>;
|
|
400
|
+
after: z.ZodNullable<z.ZodString>;
|
|
401
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
402
|
+
kind: z.ZodLiteral<"line_order">;
|
|
403
|
+
}, z.core.$strip>], "kind">>>;
|
|
404
|
+
relatedQuoteRequestId: z.ZodNullable<z.ZodString>;
|
|
405
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
406
|
+
delivery: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
407
|
+
recipients: z.ZodArray<z.ZodString>;
|
|
408
|
+
templateName: z.ZodNullable<z.ZodString>;
|
|
409
|
+
language: z.ZodNullable<z.ZodString>;
|
|
410
|
+
message: z.ZodNullable<z.ZodString>;
|
|
411
|
+
}, z.core.$strip>>>;
|
|
412
|
+
customFieldCarry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
413
|
+
source: z.ZodObject<{
|
|
414
|
+
entityType: z.ZodLiteral<"opportunity">;
|
|
415
|
+
recordId: z.ZodString;
|
|
416
|
+
reference: z.ZodString;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
419
|
+
key: z.ZodString;
|
|
420
|
+
reason: z.ZodEnum<{
|
|
421
|
+
target_missing: "target_missing";
|
|
422
|
+
value_type_mismatch: "value_type_mismatch";
|
|
423
|
+
audience_mismatch: "audience_mismatch";
|
|
424
|
+
value_invalid: "value_invalid";
|
|
425
|
+
}>;
|
|
426
|
+
label: z.ZodOptional<z.ZodObject<{
|
|
427
|
+
labelDefault: z.ZodString;
|
|
428
|
+
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
429
|
+
}, z.core.$strip>>;
|
|
430
|
+
}, z.core.$strip>>;
|
|
431
|
+
}, z.core.$strip>>>;
|
|
432
|
+
}, z.core.$strip>;
|
|
433
|
+
export type QuoteRequestHistoryEntry = z.infer<typeof quoteRequestHistoryEntrySchema>;
|
|
434
|
+
/**
|
|
435
|
+
* How many of a quote request's most recent events its history is built from
|
|
436
|
+
* (threat model T9). Shared so the admin's truncation notice states the number
|
|
437
|
+
* the server applies, rather than a copy of it.
|
|
438
|
+
*/
|
|
439
|
+
export declare const QUOTE_REQUEST_HISTORY_EVENT_WINDOW = 100;
|
|
440
|
+
/**
|
|
441
|
+
* The history response body's `data`: entries oldest first, built from the
|
|
442
|
+
* most recent {@link QUOTE_REQUEST_HISTORY_EVENT_WINDOW} events; `truncated` is
|
|
443
|
+
* `true` when older ones exist.
|
|
444
|
+
*/
|
|
445
|
+
export declare const quoteRequestHistorySchema: z.ZodObject<{
|
|
446
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
447
|
+
id: z.ZodString;
|
|
448
|
+
eventIds: z.ZodArray<z.ZodString>;
|
|
449
|
+
kind: z.ZodEnum<{
|
|
450
|
+
completed: "completed";
|
|
451
|
+
expired: "expired";
|
|
452
|
+
created: "created";
|
|
453
|
+
approved: "approved";
|
|
454
|
+
submitted: "submitted";
|
|
455
|
+
modified: "modified";
|
|
456
|
+
canceled: "canceled";
|
|
457
|
+
resubmitted: "resubmitted";
|
|
458
|
+
created_by_admin: "created_by_admin";
|
|
459
|
+
accepted_by_customer: "accepted_by_customer";
|
|
460
|
+
rejected_by_customer: "rejected_by_customer";
|
|
461
|
+
note_added: "note_added";
|
|
462
|
+
pdf_sent: "pdf_sent";
|
|
463
|
+
custom_field_carry_skipped: "custom_field_carry_skipped";
|
|
464
|
+
}>;
|
|
465
|
+
occurredAt: z.ZodString;
|
|
466
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
467
|
+
kind: z.ZodLiteral<"admin">;
|
|
468
|
+
adminUserId: z.ZodString;
|
|
469
|
+
name: z.ZodNullable<z.ZodString>;
|
|
470
|
+
recordedRole: z.ZodNullable<z.ZodString>;
|
|
471
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
472
|
+
kind: z.ZodLiteral<"customer">;
|
|
473
|
+
customerAccountId: z.ZodString;
|
|
474
|
+
name: z.ZodNullable<z.ZodString>;
|
|
475
|
+
email: z.ZodNullable<z.ZodString>;
|
|
476
|
+
recordedRole: z.ZodNullable<z.ZodString>;
|
|
477
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
478
|
+
kind: z.ZodLiteral<"system">;
|
|
479
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
480
|
+
kind: z.ZodLiteral<"unknown">;
|
|
481
|
+
recordedRole: z.ZodNullable<z.ZodString>;
|
|
482
|
+
}, z.core.$strip>], "kind">;
|
|
483
|
+
revisionNumber: z.ZodNullable<z.ZodNumber>;
|
|
484
|
+
note: z.ZodNullable<z.ZodString>;
|
|
485
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
486
|
+
changes: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
487
|
+
kind: z.ZodLiteral<"line_added">;
|
|
488
|
+
line: z.ZodObject<{
|
|
489
|
+
productId: z.ZodString;
|
|
490
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
491
|
+
productName: z.ZodString;
|
|
492
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
493
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
494
|
+
}, z.core.$strip>;
|
|
495
|
+
quantity: z.ZodNumber;
|
|
496
|
+
agreedUnitPrice: z.ZodNullable<z.ZodNumber>;
|
|
497
|
+
currency: z.ZodString;
|
|
498
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
499
|
+
kind: z.ZodLiteral<"line_removed">;
|
|
500
|
+
line: z.ZodObject<{
|
|
501
|
+
productId: z.ZodString;
|
|
502
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
503
|
+
productName: z.ZodString;
|
|
504
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
505
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
506
|
+
}, z.core.$strip>;
|
|
507
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
508
|
+
kind: z.ZodLiteral<"line_quantity">;
|
|
509
|
+
line: z.ZodObject<{
|
|
510
|
+
productId: z.ZodString;
|
|
511
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
512
|
+
productName: z.ZodString;
|
|
513
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
514
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
515
|
+
}, z.core.$strip>;
|
|
516
|
+
before: z.ZodNumber;
|
|
517
|
+
after: z.ZodNumber;
|
|
518
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
519
|
+
kind: z.ZodLiteral<"line_agreed_unit_price">;
|
|
520
|
+
line: z.ZodObject<{
|
|
521
|
+
productId: z.ZodString;
|
|
522
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
523
|
+
productName: z.ZodString;
|
|
524
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
525
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
526
|
+
}, z.core.$strip>;
|
|
527
|
+
before: z.ZodNullable<z.ZodNumber>;
|
|
528
|
+
after: z.ZodNullable<z.ZodNumber>;
|
|
529
|
+
currency: z.ZodString;
|
|
530
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
531
|
+
kind: z.ZodLiteral<"line_proposed_unit_price">;
|
|
532
|
+
line: z.ZodObject<{
|
|
533
|
+
productId: z.ZodString;
|
|
534
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
535
|
+
productName: z.ZodString;
|
|
536
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
537
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
538
|
+
}, z.core.$strip>;
|
|
539
|
+
before: z.ZodNullable<z.ZodNumber>;
|
|
540
|
+
after: z.ZodNullable<z.ZodNumber>;
|
|
541
|
+
currency: z.ZodString;
|
|
542
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
543
|
+
kind: z.ZodLiteral<"line_note">;
|
|
544
|
+
line: z.ZodObject<{
|
|
545
|
+
productId: z.ZodString;
|
|
546
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
547
|
+
productName: z.ZodString;
|
|
548
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
549
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
550
|
+
}, z.core.$strip>;
|
|
551
|
+
before: z.ZodNullable<z.ZodString>;
|
|
552
|
+
after: z.ZodNullable<z.ZodString>;
|
|
553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
554
|
+
kind: z.ZodLiteral<"header_note">;
|
|
555
|
+
before: z.ZodNullable<z.ZodString>;
|
|
556
|
+
after: z.ZodNullable<z.ZodString>;
|
|
557
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
558
|
+
kind: z.ZodLiteral<"validity">;
|
|
559
|
+
before: z.ZodNullable<z.ZodString>;
|
|
560
|
+
after: z.ZodNullable<z.ZodString>;
|
|
561
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
562
|
+
kind: z.ZodLiteral<"group_added">;
|
|
563
|
+
group: z.ZodObject<{
|
|
564
|
+
id: z.ZodString;
|
|
565
|
+
name: z.ZodString;
|
|
566
|
+
}, z.core.$strip>;
|
|
567
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
568
|
+
kind: z.ZodLiteral<"group_removed">;
|
|
569
|
+
group: z.ZodObject<{
|
|
570
|
+
id: z.ZodString;
|
|
571
|
+
name: z.ZodString;
|
|
572
|
+
}, z.core.$strip>;
|
|
573
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
574
|
+
kind: z.ZodLiteral<"group_renamed">;
|
|
575
|
+
groupId: z.ZodString;
|
|
576
|
+
before: z.ZodString;
|
|
577
|
+
after: z.ZodString;
|
|
578
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
579
|
+
kind: z.ZodLiteral<"line_group">;
|
|
580
|
+
line: z.ZodObject<{
|
|
581
|
+
productId: z.ZodString;
|
|
582
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
583
|
+
productName: z.ZodString;
|
|
584
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
585
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
|
+
}, z.core.$strip>;
|
|
587
|
+
before: z.ZodNullable<z.ZodString>;
|
|
588
|
+
after: z.ZodNullable<z.ZodString>;
|
|
589
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
590
|
+
kind: z.ZodLiteral<"line_order">;
|
|
591
|
+
}, z.core.$strip>], "kind">>>;
|
|
592
|
+
relatedQuoteRequestId: z.ZodNullable<z.ZodString>;
|
|
593
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
594
|
+
delivery: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
595
|
+
recipients: z.ZodArray<z.ZodString>;
|
|
596
|
+
templateName: z.ZodNullable<z.ZodString>;
|
|
597
|
+
language: z.ZodNullable<z.ZodString>;
|
|
598
|
+
message: z.ZodNullable<z.ZodString>;
|
|
599
|
+
}, z.core.$strip>>>;
|
|
600
|
+
customFieldCarry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
601
|
+
source: z.ZodObject<{
|
|
602
|
+
entityType: z.ZodLiteral<"opportunity">;
|
|
603
|
+
recordId: z.ZodString;
|
|
604
|
+
reference: z.ZodString;
|
|
605
|
+
}, z.core.$strip>;
|
|
606
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
607
|
+
key: z.ZodString;
|
|
608
|
+
reason: z.ZodEnum<{
|
|
609
|
+
target_missing: "target_missing";
|
|
610
|
+
value_type_mismatch: "value_type_mismatch";
|
|
611
|
+
audience_mismatch: "audience_mismatch";
|
|
612
|
+
value_invalid: "value_invalid";
|
|
613
|
+
}>;
|
|
614
|
+
label: z.ZodOptional<z.ZodObject<{
|
|
615
|
+
labelDefault: z.ZodString;
|
|
616
|
+
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
617
|
+
}, z.core.$strip>>;
|
|
618
|
+
}, z.core.$strip>>;
|
|
619
|
+
}, z.core.$strip>>>;
|
|
620
|
+
}, z.core.$strip>>;
|
|
621
|
+
truncated: z.ZodBoolean;
|
|
622
|
+
}, z.core.$strip>;
|
|
623
|
+
export type QuoteRequestHistory = z.infer<typeof quoteRequestHistorySchema>;
|
|
75
624
|
export declare const rfqDiffEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
76
625
|
kind: z.ZodLiteral<"header_note">;
|
|
77
626
|
before: z.ZodNullable<z.ZodString>;
|
|
@@ -82,22 +631,28 @@ export declare const rfqDiffEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
82
631
|
productName: z.ZodString;
|
|
83
632
|
quantity: z.ZodNumber;
|
|
84
633
|
agreedUnitPrice: z.ZodNullable<z.ZodNumber>;
|
|
634
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
635
|
}, z.core.$strip>, z.ZodObject<{
|
|
86
636
|
kind: z.ZodLiteral<"line_removed">;
|
|
87
637
|
productId: z.ZodString;
|
|
88
638
|
productName: z.ZodString;
|
|
639
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
640
|
}, z.core.$strip>, z.ZodObject<{
|
|
90
641
|
kind: z.ZodLiteral<"line_quantity">;
|
|
91
642
|
productId: z.ZodString;
|
|
92
643
|
productName: z.ZodString;
|
|
93
644
|
before: z.ZodNumber;
|
|
94
645
|
after: z.ZodNumber;
|
|
646
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
647
|
}, z.core.$strip>, z.ZodObject<{
|
|
96
648
|
kind: z.ZodLiteral<"line_agreed_unit_price">;
|
|
97
649
|
productId: z.ZodString;
|
|
98
650
|
productName: z.ZodString;
|
|
99
651
|
before: z.ZodNullable<z.ZodNumber>;
|
|
100
652
|
after: z.ZodNullable<z.ZodNumber>;
|
|
653
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
655
|
+
kind: z.ZodLiteral<"grouping">;
|
|
101
656
|
}, z.core.$strip>], "kind">;
|
|
102
657
|
export type RfqDiffEntry = z.infer<typeof rfqDiffEntrySchema>;
|
|
103
658
|
export declare const rfqComparisonAgainstLastSeenSchema: z.ZodObject<{
|
|
@@ -111,22 +666,28 @@ export declare const rfqComparisonAgainstLastSeenSchema: z.ZodObject<{
|
|
|
111
666
|
productName: z.ZodString;
|
|
112
667
|
quantity: z.ZodNumber;
|
|
113
668
|
agreedUnitPrice: z.ZodNullable<z.ZodNumber>;
|
|
669
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
670
|
}, z.core.$strip>, z.ZodObject<{
|
|
115
671
|
kind: z.ZodLiteral<"line_removed">;
|
|
116
672
|
productId: z.ZodString;
|
|
117
673
|
productName: z.ZodString;
|
|
674
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
675
|
}, z.core.$strip>, z.ZodObject<{
|
|
119
676
|
kind: z.ZodLiteral<"line_quantity">;
|
|
120
677
|
productId: z.ZodString;
|
|
121
678
|
productName: z.ZodString;
|
|
122
679
|
before: z.ZodNumber;
|
|
123
680
|
after: z.ZodNumber;
|
|
681
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
682
|
}, z.core.$strip>, z.ZodObject<{
|
|
125
683
|
kind: z.ZodLiteral<"line_agreed_unit_price">;
|
|
126
684
|
productId: z.ZodString;
|
|
127
685
|
productName: z.ZodString;
|
|
128
686
|
before: z.ZodNullable<z.ZodNumber>;
|
|
129
687
|
after: z.ZodNullable<z.ZodNumber>;
|
|
688
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
689
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
690
|
+
kind: z.ZodLiteral<"grouping">;
|
|
130
691
|
}, z.core.$strip>], "kind">>;
|
|
131
692
|
lastSeenRevisionNumber: z.ZodNumber;
|
|
132
693
|
currentRevisionNumber: z.ZodNumber;
|
|
@@ -137,6 +698,7 @@ export declare const quoteRequestSchema: z.ZodObject<{
|
|
|
137
698
|
businessId: z.ZodString;
|
|
138
699
|
organizationId: z.ZodString;
|
|
139
700
|
customerAccountId: z.ZodString;
|
|
701
|
+
salesChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
702
|
createdByAdminUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
703
|
assignedAdminUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
704
|
status: z.ZodEnum<{
|
|
@@ -153,6 +715,11 @@ export declare const quoteRequestSchema: z.ZodObject<{
|
|
|
153
715
|
headerNote: z.ZodNullable<z.ZodString>;
|
|
154
716
|
cancellationReason: z.ZodNullable<z.ZodString>;
|
|
155
717
|
customFieldValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
718
|
+
itemGroups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
719
|
+
id: z.ZodString;
|
|
720
|
+
name: z.ZodString;
|
|
721
|
+
position: z.ZodNumber;
|
|
722
|
+
}, z.core.$strip>>>;
|
|
156
723
|
items: z.ZodArray<z.ZodObject<{
|
|
157
724
|
id: z.ZodString;
|
|
158
725
|
productId: z.ZodString;
|
|
@@ -167,14 +734,33 @@ export declare const quoteRequestSchema: z.ZodObject<{
|
|
|
167
734
|
lineCurrency: z.ZodString;
|
|
168
735
|
discountPercent: z.ZodNullable<z.ZodNumber>;
|
|
169
736
|
taxRate: z.ZodDefault<z.ZodNumber>;
|
|
737
|
+
referencePrice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
738
|
+
amount: z.ZodNumber;
|
|
739
|
+
currency: z.ZodString;
|
|
740
|
+
capturedAt: z.ZodString;
|
|
741
|
+
}, z.core.$strip>>>;
|
|
742
|
+
customerProposedUnitPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
743
|
+
packagingUnitName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
744
|
+
packagingUnitBaseQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
745
|
+
packagingUnitId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
746
|
+
minimumWarning: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
747
|
+
kind: z.ZodEnum<{
|
|
748
|
+
pieces: "pieces";
|
|
749
|
+
packaging_unit: "packaging_unit";
|
|
750
|
+
}>;
|
|
751
|
+
minimum: z.ZodNumber;
|
|
752
|
+
packagingUnitName: z.ZodOptional<z.ZodString>;
|
|
753
|
+
}, z.core.$strip>>>;
|
|
754
|
+
groupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
755
|
+
position: z.ZodDefault<z.ZodNumber>;
|
|
170
756
|
}, z.core.$strip>>;
|
|
171
757
|
events: z.ZodArray<z.ZodObject<{
|
|
172
758
|
id: z.ZodString;
|
|
173
759
|
eventType: z.ZodEnum<{
|
|
174
760
|
completed: "completed";
|
|
761
|
+
expired: "expired";
|
|
175
762
|
created: "created";
|
|
176
763
|
approved: "approved";
|
|
177
|
-
expired: "expired";
|
|
178
764
|
submitted: "submitted";
|
|
179
765
|
modified: "modified";
|
|
180
766
|
canceled: "canceled";
|
|
@@ -182,6 +768,8 @@ export declare const quoteRequestSchema: z.ZodObject<{
|
|
|
182
768
|
"customer-rejected-revision": "customer-rejected-revision";
|
|
183
769
|
"re-submitted": "re-submitted";
|
|
184
770
|
"note-added": "note-added";
|
|
771
|
+
"pdf-sent": "pdf-sent";
|
|
772
|
+
"custom-field-carry-skipped": "custom-field-carry-skipped";
|
|
185
773
|
}>;
|
|
186
774
|
actorAdminUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
775
|
actorCustomerAccountId: z.ZodNullable<z.ZodString>;
|
|
@@ -201,22 +789,28 @@ export declare const quoteRequestSchema: z.ZodObject<{
|
|
|
201
789
|
productName: z.ZodString;
|
|
202
790
|
quantity: z.ZodNumber;
|
|
203
791
|
agreedUnitPrice: z.ZodNullable<z.ZodNumber>;
|
|
792
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
204
793
|
}, z.core.$strip>, z.ZodObject<{
|
|
205
794
|
kind: z.ZodLiteral<"line_removed">;
|
|
206
795
|
productId: z.ZodString;
|
|
207
796
|
productName: z.ZodString;
|
|
797
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
208
798
|
}, z.core.$strip>, z.ZodObject<{
|
|
209
799
|
kind: z.ZodLiteral<"line_quantity">;
|
|
210
800
|
productId: z.ZodString;
|
|
211
801
|
productName: z.ZodString;
|
|
212
802
|
before: z.ZodNumber;
|
|
213
803
|
after: z.ZodNumber;
|
|
804
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
805
|
}, z.core.$strip>, z.ZodObject<{
|
|
215
806
|
kind: z.ZodLiteral<"line_agreed_unit_price">;
|
|
216
807
|
productId: z.ZodString;
|
|
217
808
|
productName: z.ZodString;
|
|
218
809
|
before: z.ZodNullable<z.ZodNumber>;
|
|
219
810
|
after: z.ZodNullable<z.ZodNumber>;
|
|
811
|
+
groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
812
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
813
|
+
kind: z.ZodLiteral<"grouping">;
|
|
220
814
|
}, z.core.$strip>], "kind">>;
|
|
221
815
|
lastSeenRevisionNumber: z.ZodNumber;
|
|
222
816
|
currentRevisionNumber: z.ZodNumber;
|
|
@@ -242,6 +836,7 @@ export declare const quoteRequestSchema: z.ZodObject<{
|
|
|
242
836
|
lastName: z.ZodNullable<z.ZodString>;
|
|
243
837
|
email: z.ZodString;
|
|
244
838
|
}, z.core.$strip>>>;
|
|
839
|
+
documentTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
840
|
createdAt: z.ZodString;
|
|
246
841
|
updatedAt: z.ZodString;
|
|
247
842
|
version: z.ZodNumber;
|
|
@@ -287,8 +882,14 @@ export declare const createQuoteRequestLineSchema: z.ZodObject<{
|
|
|
287
882
|
lineNote: z.ZodOptional<z.ZodString>;
|
|
288
883
|
packagingUnitName: z.ZodOptional<z.ZodString>;
|
|
289
884
|
packagingUnitBaseQuantity: z.ZodOptional<z.ZodNumber>;
|
|
885
|
+
packagingUnitId: z.ZodOptional<z.ZodString>;
|
|
290
886
|
}, z.core.$strip>;
|
|
291
887
|
export type CreateQuoteRequestLine = z.infer<typeof createQuoteRequestLineSchema>;
|
|
888
|
+
/**
|
|
889
|
+
* Customer-facing: **not strict**, deliberately — an unknown key (a body
|
|
890
|
+
* `lineReferencePrices`, a per-line `referenceUnitPrice`) is stripped, never
|
|
891
|
+
* refused, and never reaches the service.
|
|
892
|
+
*/
|
|
292
893
|
export declare const createQuoteRequestSchema: z.ZodObject<{
|
|
293
894
|
headerNote: z.ZodOptional<z.ZodString>;
|
|
294
895
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -299,6 +900,7 @@ export declare const createQuoteRequestSchema: z.ZodObject<{
|
|
|
299
900
|
lineNote: z.ZodOptional<z.ZodString>;
|
|
300
901
|
packagingUnitName: z.ZodOptional<z.ZodString>;
|
|
301
902
|
packagingUnitBaseQuantity: z.ZodOptional<z.ZodNumber>;
|
|
903
|
+
packagingUnitId: z.ZodOptional<z.ZodString>;
|
|
302
904
|
}, z.core.$strip>>;
|
|
303
905
|
}, z.core.$strip>;
|
|
304
906
|
export type CreateQuoteRequest = z.infer<typeof createQuoteRequestSchema>;
|
|
@@ -312,6 +914,7 @@ export declare const patchQuoteRequestSchema: z.ZodObject<{
|
|
|
312
914
|
lineNote: z.ZodOptional<z.ZodString>;
|
|
313
915
|
packagingUnitName: z.ZodOptional<z.ZodString>;
|
|
314
916
|
packagingUnitBaseQuantity: z.ZodOptional<z.ZodNumber>;
|
|
917
|
+
packagingUnitId: z.ZodOptional<z.ZodString>;
|
|
315
918
|
}, z.core.$strip>>>;
|
|
316
919
|
}, z.core.$strict>;
|
|
317
920
|
export type PatchQuoteRequest = z.infer<typeof patchQuoteRequestSchema>;
|
|
@@ -334,18 +937,24 @@ export declare const adminCreateQuoteRequestLineSchema: z.ZodObject<{
|
|
|
334
937
|
quantity: z.ZodNumber;
|
|
335
938
|
agreedUnitPrice: z.ZodNumber;
|
|
336
939
|
lineNote: z.ZodOptional<z.ZodString>;
|
|
940
|
+
groupKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
941
|
}, z.core.$strip>;
|
|
338
942
|
export type AdminCreateQuoteRequestLine = z.infer<typeof adminCreateQuoteRequestLineSchema>;
|
|
339
943
|
export declare const adminCreateQuoteRequestSchema: z.ZodObject<{
|
|
340
944
|
organizationId: z.ZodString;
|
|
341
945
|
customerAccountId: z.ZodString;
|
|
342
946
|
headerNote: z.ZodOptional<z.ZodString>;
|
|
947
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
948
|
+
key: z.ZodString;
|
|
949
|
+
name: z.ZodString;
|
|
950
|
+
}, z.core.$strict>>>;
|
|
343
951
|
items: z.ZodArray<z.ZodObject<{
|
|
344
952
|
productId: z.ZodString;
|
|
345
953
|
variantId: z.ZodOptional<z.ZodString>;
|
|
346
954
|
quantity: z.ZodNumber;
|
|
347
955
|
agreedUnitPrice: z.ZodNumber;
|
|
348
956
|
lineNote: z.ZodOptional<z.ZodString>;
|
|
957
|
+
groupKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
349
958
|
}, z.core.$strip>>;
|
|
350
959
|
expiresInDays: z.ZodOptional<z.ZodNumber>;
|
|
351
960
|
origin: z.ZodOptional<z.ZodObject<{
|
|
@@ -376,10 +985,17 @@ export declare const adminPatchQuoteRequestLineSchema: z.ZodObject<{
|
|
|
376
985
|
quantity: z.ZodNumber;
|
|
377
986
|
agreedUnitPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
378
987
|
lineNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
988
|
+
groupKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
989
|
+
splitFromId: z.ZodOptional<z.ZodString>;
|
|
379
990
|
}, z.core.$strip>;
|
|
380
991
|
export type AdminPatchQuoteRequestLine = z.infer<typeof adminPatchQuoteRequestLineSchema>;
|
|
381
992
|
export declare const adminPatchQuoteRequestSchema: z.ZodObject<{
|
|
382
993
|
headerNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
994
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
995
|
+
key: z.ZodString;
|
|
996
|
+
id: z.ZodOptional<z.ZodString>;
|
|
997
|
+
name: z.ZodString;
|
|
998
|
+
}, z.core.$strict>>>;
|
|
383
999
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
384
1000
|
id: z.ZodOptional<z.ZodString>;
|
|
385
1001
|
productId: z.ZodString;
|
|
@@ -387,6 +1003,8 @@ export declare const adminPatchQuoteRequestSchema: z.ZodObject<{
|
|
|
387
1003
|
quantity: z.ZodNumber;
|
|
388
1004
|
agreedUnitPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
389
1005
|
lineNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1006
|
+
groupKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1007
|
+
splitFromId: z.ZodOptional<z.ZodString>;
|
|
390
1008
|
}, z.core.$strip>>>;
|
|
391
1009
|
expiresInDays: z.ZodOptional<z.ZodNumber>;
|
|
392
1010
|
customFieldValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -400,6 +1018,17 @@ export declare const adminCancelQuoteRequestSchema: z.ZodObject<{
|
|
|
400
1018
|
reason: z.ZodOptional<z.ZodString>;
|
|
401
1019
|
}, z.core.$strict>;
|
|
402
1020
|
export type AdminCancelQuoteRequest = z.infer<typeof adminCancelQuoteRequestSchema>;
|
|
1021
|
+
/**
|
|
1022
|
+
* `POST /api/v1/admin/quote-requests/:id/prepare-customer-basket` (issue #170):
|
|
1023
|
+
* the approved request's lines are in the basket of the customer who owns it,
|
|
1024
|
+
* at the agreed prices, for that customer to check out.
|
|
1025
|
+
*/
|
|
1026
|
+
export declare const adminPrepareCustomerBasketResponseSchema: z.ZodObject<{
|
|
1027
|
+
cartId: z.ZodString;
|
|
1028
|
+
customerAccountId: z.ZodString;
|
|
1029
|
+
itemCount: z.ZodNumber;
|
|
1030
|
+
}, z.core.$strip>;
|
|
1031
|
+
export type AdminPrepareCustomerBasketResponse = z.infer<typeof adminPrepareCustomerBasketResponseSchema>;
|
|
403
1032
|
export declare const adminAssignQuoteRequestSchema: z.ZodObject<{
|
|
404
1033
|
adminUserId: z.ZodString;
|
|
405
1034
|
}, z.core.$strip>;
|
|
@@ -414,6 +1043,60 @@ export declare const storefrontQuoteRequestSettingsSchema: z.ZodObject<{
|
|
|
414
1043
|
showAddToQuoteOnPdp: z.ZodBoolean;
|
|
415
1044
|
}, z.core.$strip>;
|
|
416
1045
|
export type StorefrontQuoteRequestSettings = z.infer<typeof storefrontQuoteRequestSettingsSchema>;
|
|
1046
|
+
/** `GET|PUT /api/v1/admin/organizations/:id/quote-price-negotiation` answer. */
|
|
1047
|
+
export declare const quoteRequestOrgNegotiationSchema: z.ZodObject<{
|
|
1048
|
+
organizationId: z.ZodString;
|
|
1049
|
+
priceProposalsAllowed: z.ZodBoolean;
|
|
1050
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
1051
|
+
}, z.core.$strip>;
|
|
1052
|
+
export type QuoteRequestOrgNegotiation = z.infer<typeof quoteRequestOrgNegotiationSchema>;
|
|
1053
|
+
/** Admin body — strict. */
|
|
1054
|
+
export declare const setQuoteRequestOrgNegotiationSchema: z.ZodObject<{
|
|
1055
|
+
priceProposalsAllowed: z.ZodBoolean;
|
|
1056
|
+
}, z.core.$strict>;
|
|
1057
|
+
export type SetQuoteRequestOrgNegotiation = z.infer<typeof setQuoteRequestOrgNegotiationSchema>;
|
|
1058
|
+
export declare const quoteRequestNegotiationOverrideSchema: z.ZodEnum<{
|
|
1059
|
+
inherit: "inherit";
|
|
1060
|
+
allowed: "allowed";
|
|
1061
|
+
not_allowed: "not_allowed";
|
|
1062
|
+
}>;
|
|
1063
|
+
export type QuoteRequestNegotiationOverride = z.infer<typeof quoteRequestNegotiationOverrideSchema>;
|
|
1064
|
+
/** `GET|PUT /api/v1/admin/customers/:id/quote-price-negotiation` answer. */
|
|
1065
|
+
export declare const quoteRequestAccountNegotiationSchema: z.ZodObject<{
|
|
1066
|
+
customerAccountId: z.ZodString;
|
|
1067
|
+
organizationId: z.ZodString;
|
|
1068
|
+
override: z.ZodEnum<{
|
|
1069
|
+
inherit: "inherit";
|
|
1070
|
+
allowed: "allowed";
|
|
1071
|
+
not_allowed: "not_allowed";
|
|
1072
|
+
}>;
|
|
1073
|
+
organizationPriceProposalsAllowed: z.ZodBoolean;
|
|
1074
|
+
effectivePriceProposalsAllowed: z.ZodBoolean;
|
|
1075
|
+
effectiveSource: z.ZodEnum<{
|
|
1076
|
+
default: "default";
|
|
1077
|
+
account: "account";
|
|
1078
|
+
organization: "organization";
|
|
1079
|
+
}>;
|
|
1080
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
1081
|
+
}, z.core.$strip>;
|
|
1082
|
+
export type QuoteRequestAccountNegotiation = z.infer<typeof quoteRequestAccountNegotiationSchema>;
|
|
1083
|
+
/** Admin body — strict. */
|
|
1084
|
+
export declare const setQuoteRequestAccountNegotiationSchema: z.ZodObject<{
|
|
1085
|
+
override: z.ZodEnum<{
|
|
1086
|
+
inherit: "inherit";
|
|
1087
|
+
allowed: "allowed";
|
|
1088
|
+
not_allowed: "not_allowed";
|
|
1089
|
+
}>;
|
|
1090
|
+
}, z.core.$strict>;
|
|
1091
|
+
export type SetQuoteRequestAccountNegotiation = z.infer<typeof setQuoteRequestAccountNegotiationSchema>;
|
|
1092
|
+
/**
|
|
1093
|
+
* `GET /api/v1/quote-requests/price-negotiation` — the signed-in customer's
|
|
1094
|
+
* effective value and nothing else: no id, no organization value, no override.
|
|
1095
|
+
*/
|
|
1096
|
+
export declare const storefrontQuoteRequestNegotiationSchema: z.ZodObject<{
|
|
1097
|
+
priceProposalsAllowed: z.ZodBoolean;
|
|
1098
|
+
}, z.core.$strip>;
|
|
1099
|
+
export type StorefrontQuoteRequestNegotiation = z.infer<typeof storefrontQuoteRequestNegotiationSchema>;
|
|
417
1100
|
/**
|
|
418
1101
|
* The lifecycle statuses of a quote request.
|
|
419
1102
|
*
|
|
@@ -440,6 +1123,11 @@ export interface QuoteRequestRecord {
|
|
|
440
1123
|
businessId: string;
|
|
441
1124
|
organizationId: string;
|
|
442
1125
|
customerAccountId: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* The channel the request was raised on; `null` when it was created outside
|
|
1128
|
+
* a request scope (`specs/149-pwa-order-status-push/`).
|
|
1129
|
+
*/
|
|
1130
|
+
salesChannelId: string | null;
|
|
443
1131
|
createdByAdminUserId: string | null;
|
|
444
1132
|
assignedAdminUserId: string | null;
|
|
445
1133
|
status: QuoteRequestStatus;
|
|
@@ -462,12 +1150,13 @@ export interface QuoteRequestRecord {
|
|
|
462
1150
|
}
|
|
463
1151
|
/**
|
|
464
1152
|
* One quote-request line, as the module that converts one back into a cart
|
|
465
|
-
* reads it (feature 075, `carts`' cut).
|
|
1153
|
+
* reads it (feature 075, `carts`' cut), and as the ERP export readers read it.
|
|
466
1154
|
*
|
|
467
1155
|
* Narrower than the row on purpose: the conversion re-resolves every price
|
|
468
|
-
* against the buyer's current price list (FR-017), so
|
|
469
|
-
*
|
|
470
|
-
*
|
|
1156
|
+
* against the buyer's current price list (FR-017 of feature 075), so it ignores
|
|
1157
|
+
* every money field here — the quote → cart conversion never carries a price
|
|
1158
|
+
* over. The money fields (`lineCurrency`, `agreedUnitPrice`, `desiredUnitPrice`,
|
|
1159
|
+
* `referenceUnitPrice`, `referenceCurrency`) are for export readers.
|
|
471
1160
|
* `productName` travels because a dropped line is reported by name.
|
|
472
1161
|
*/
|
|
473
1162
|
export interface QuoteRequestLineRecord {
|
|
@@ -479,10 +1168,37 @@ export interface QuoteRequestLineRecord {
|
|
|
479
1168
|
quantity: number;
|
|
480
1169
|
packagingUnitName: string | null;
|
|
481
1170
|
packagingUnitBaseQuantity: number | null;
|
|
1171
|
+
/**
|
|
1172
|
+
* Feature 155 (FR-026) — the catalogue packaging unit the line resolved to;
|
|
1173
|
+
* `null` for a plain-pieces line or one stored before the feature. Optional,
|
|
1174
|
+
* so every structural stub of the port written before it still compiles.
|
|
1175
|
+
*/
|
|
1176
|
+
packagingUnitId?: string | null;
|
|
482
1177
|
/** Present for ERP export callers; cart conversion ignores these (FR-017). */
|
|
483
1178
|
lineCurrency: string;
|
|
484
1179
|
agreedUnitPrice: string | null;
|
|
485
1180
|
desiredUnitPrice: string | null;
|
|
1181
|
+
/**
|
|
1182
|
+
* Feature 146 — the stored at-request reference unit price (net, per base
|
|
1183
|
+
* piece), decimal string; `null` when none is stored. For a cart-converted
|
|
1184
|
+
* line this is the cart's unit price — read it here, not from
|
|
1185
|
+
* `desiredUnitPrice`, which is `null` on those lines. Optional, so every
|
|
1186
|
+
* structural stub of the port written before it still compiles.
|
|
1187
|
+
*/
|
|
1188
|
+
referenceUnitPrice?: string | null;
|
|
1189
|
+
/** Currency of `referenceUnitPrice`; `null` exactly when it is `null`. */
|
|
1190
|
+
referenceCurrency?: string | null;
|
|
1191
|
+
/**
|
|
1192
|
+
* Feature 159 (FR-087) — 0-based order within the line's section. Optional,
|
|
1193
|
+
* so every structural stub of the port written before it still compiles.
|
|
1194
|
+
*/
|
|
1195
|
+
position?: number;
|
|
1196
|
+
/** Feature 159 — the line's group, or `null` when ungrouped. Optional as above. */
|
|
1197
|
+
group?: {
|
|
1198
|
+
id: string;
|
|
1199
|
+
name: string;
|
|
1200
|
+
position: number;
|
|
1201
|
+
} | null;
|
|
486
1202
|
}
|
|
487
1203
|
/**
|
|
488
1204
|
* Container name: `quoteRequestReadPort`. Owner: `quote_requests`.
|
|
@@ -508,7 +1224,9 @@ export interface QuoteRequestReadPort {
|
|
|
508
1224
|
*/
|
|
509
1225
|
listOpenForOrganizations(organizationIds: readonly string[]): Promise<QuoteRequestRecord[]>;
|
|
510
1226
|
/**
|
|
511
|
-
* The quote's lines, in
|
|
1227
|
+
* The quote's lines, in display order (feature 159: groups in order, each
|
|
1228
|
+
* group's lines in order, then the ungrouped lines — insertion order for a
|
|
1229
|
+
* quote never grouped). Added in `carts`' cut: the
|
|
512
1230
|
* quote-to-cart conversion read `QuoteRequestItem` directly, so it kept
|
|
513
1231
|
* re-stocking a cart from quotes belonging to a module an operator had
|
|
514
1232
|
* switched off.
|
|
@@ -551,8 +1269,49 @@ export interface RfqCustomerContext {
|
|
|
551
1269
|
* `activation` to say, not this line's: a module declaring
|
|
552
1270
|
* `nonDeactivatable` never enters one.
|
|
553
1271
|
*/
|
|
1272
|
+
/**
|
|
1273
|
+
* Feature 146 — the optional third argument of
|
|
1274
|
+
* `RfqCustomerPort.createForCustomer`.
|
|
1275
|
+
*/
|
|
1276
|
+
export interface CreateForCustomerOptions {
|
|
1277
|
+
/**
|
|
1278
|
+
* Server-side reference prices, index-aligned with `input.items`. Set only by
|
|
1279
|
+
* an in-process caller that holds a snapshot the buyer could not have forged —
|
|
1280
|
+
* `carts`' conversion, whose cart line price is the reference. Unreachable
|
|
1281
|
+
* from HTTP: the route parses its body with `createQuoteRequestSchema`, which
|
|
1282
|
+
* has no such field and strips it. `null` at an index = resolve that line.
|
|
1283
|
+
*
|
|
1284
|
+
* Validated before any write; each violation is a programming error and
|
|
1285
|
+
* throws:
|
|
1286
|
+
* - the array length equals `input.items.length`;
|
|
1287
|
+
* - each non-`null` entry's `amount` is a finite decimal string ≥ 0 with at
|
|
1288
|
+
* most two decimals, and its `currency` matches `/^[A-Z]{3}$/`.
|
|
1289
|
+
*/
|
|
1290
|
+
lineReferencePrices?: ReadonlyArray<{
|
|
1291
|
+
amount: string;
|
|
1292
|
+
currency: string;
|
|
1293
|
+
} | null>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Feature 155 (FR-012, FR-030) — `'enforce'` (default): a buyer is writing, minimums refuse.
|
|
1296
|
+
* `'warn'`: a sales representative is writing through the buyer's path (admin clone-to-quote,
|
|
1297
|
+
* admin quick-order build); nothing is refused for minimums and the admin read flags the lines.
|
|
1298
|
+
* In-process only: no HTTP body can carry it (`createQuoteRequestSchema` has no such key and
|
|
1299
|
+
* strips it). Packaging validation (FR-026) applies either way.
|
|
1300
|
+
*/
|
|
1301
|
+
minimums?: 'enforce' | 'warn';
|
|
1302
|
+
/**
|
|
1303
|
+
* Feature 155 (D3/D4) — the language a refusal names a product in: the language the
|
|
1304
|
+
* caller's response is answered in (`request.responseLanguage()`). Absent, the record's
|
|
1305
|
+
* own fallback chain.
|
|
1306
|
+
*/
|
|
1307
|
+
language?: string;
|
|
1308
|
+
}
|
|
554
1309
|
export interface RfqCustomerPort {
|
|
555
|
-
|
|
1310
|
+
/**
|
|
1311
|
+
* `options` is optional and trailing, so every existing caller and every
|
|
1312
|
+
* two-argument implementation stays valid.
|
|
1313
|
+
*/
|
|
1314
|
+
createForCustomer(ctx: RfqCustomerContext, input: CreateQuoteRequest, options?: CreateForCustomerOptions): Promise<QuoteRequest>;
|
|
556
1315
|
listForCustomer(ctx: RfqCustomerContext): Promise<QuoteRequestSummary[]>;
|
|
557
1316
|
}
|
|
558
1317
|
/** The fixed names of the Quote Request events offered to outbound webhooks. */
|
|
@@ -597,4 +1356,139 @@ export declare const QUOTE_REQUEST_WEBHOOK_EVENT_SCHEMAS: {
|
|
|
597
1356
|
occurredAt: z.ZodString;
|
|
598
1357
|
}, z.core.$strict>;
|
|
599
1358
|
};
|
|
1359
|
+
/** The document type `quote_requests` registers with the document-template facility. */
|
|
1360
|
+
export declare const QUOTE_REQUEST_DOCUMENT_TYPE = "quote_requests.quote_request";
|
|
1361
|
+
/** Owner answer Q4 — what one *Send PDF to customer* may carry. */
|
|
1362
|
+
export declare const QUOTE_REQUEST_PDF_LIMITS: {
|
|
1363
|
+
readonly maxRecipients: 5;
|
|
1364
|
+
readonly maxMessageLength: 2000;
|
|
1365
|
+
/** 10 MiB — larger PDFs are refused rather than handed to a mail server. */
|
|
1366
|
+
readonly maxAttachmentBytes: number;
|
|
1367
|
+
};
|
|
1368
|
+
/**
|
|
1369
|
+
* The data one quote PDF prints, built for the requesting administrator
|
|
1370
|
+
* (`data-model.md` §4.1). JSON-serialisable: the editor's sample is the same
|
|
1371
|
+
* shape.
|
|
1372
|
+
*/
|
|
1373
|
+
export declare const quoteRequestDocumentDataSchema: z.ZodObject<{
|
|
1374
|
+
generatedAt: z.ZodString;
|
|
1375
|
+
quote: z.ZodObject<{
|
|
1376
|
+
id: z.ZodString;
|
|
1377
|
+
businessId: z.ZodString;
|
|
1378
|
+
status: z.ZodString;
|
|
1379
|
+
revisionNumber: z.ZodNumber;
|
|
1380
|
+
createdAt: z.ZodString;
|
|
1381
|
+
submittedAt: z.ZodNullable<z.ZodString>;
|
|
1382
|
+
approvedAt: z.ZodNullable<z.ZodString>;
|
|
1383
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1384
|
+
headerNote: z.ZodNullable<z.ZodString>;
|
|
1385
|
+
taxRate: z.ZodNumber;
|
|
1386
|
+
currency: z.ZodString;
|
|
1387
|
+
}, z.core.$strip>;
|
|
1388
|
+
channel: z.ZodNullable<z.ZodObject<{
|
|
1389
|
+
id: z.ZodString;
|
|
1390
|
+
name: z.ZodString;
|
|
1391
|
+
}, z.core.$strip>>;
|
|
1392
|
+
buyer: z.ZodObject<{
|
|
1393
|
+
organizationName: z.ZodString;
|
|
1394
|
+
legalName: z.ZodNullable<z.ZodString>;
|
|
1395
|
+
taxId: z.ZodNullable<z.ZodString>;
|
|
1396
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
1397
|
+
line1: z.ZodString;
|
|
1398
|
+
line2: z.ZodNullable<z.ZodString>;
|
|
1399
|
+
postalCode: z.ZodString;
|
|
1400
|
+
city: z.ZodString;
|
|
1401
|
+
country: z.ZodString;
|
|
1402
|
+
}, z.core.$strip>>;
|
|
1403
|
+
customerName: z.ZodNullable<z.ZodString>;
|
|
1404
|
+
customerEmail: z.ZodNullable<z.ZodString>;
|
|
1405
|
+
}, z.core.$strip>;
|
|
1406
|
+
salesRep: z.ZodNullable<z.ZodObject<{
|
|
1407
|
+
name: z.ZodString;
|
|
1408
|
+
email: z.ZodString;
|
|
1409
|
+
}, z.core.$strip>>;
|
|
1410
|
+
details: z.ZodArray<z.ZodObject<{
|
|
1411
|
+
label: z.ZodString;
|
|
1412
|
+
value: z.ZodString;
|
|
1413
|
+
}, z.core.$strip>>;
|
|
1414
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1415
|
+
id: z.ZodString;
|
|
1416
|
+
name: z.ZodString;
|
|
1417
|
+
position: z.ZodNumber;
|
|
1418
|
+
}, z.core.$strip>>>;
|
|
1419
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
1420
|
+
id: z.ZodString;
|
|
1421
|
+
productId: z.ZodString;
|
|
1422
|
+
productName: z.ZodString;
|
|
1423
|
+
variantLabel: z.ZodNullable<z.ZodString>;
|
|
1424
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
1425
|
+
quantity: z.ZodNumber;
|
|
1426
|
+
packagingUnitName: z.ZodNullable<z.ZodString>;
|
|
1427
|
+
packagingUnitBaseQuantity: z.ZodNullable<z.ZodNumber>;
|
|
1428
|
+
agreedUnitPrice: z.ZodNullable<z.ZodNumber>;
|
|
1429
|
+
proposedUnitPrice: z.ZodNullable<z.ZodNumber>;
|
|
1430
|
+
referenceUnitPrice: z.ZodNullable<z.ZodNumber>;
|
|
1431
|
+
referenceCurrency: z.ZodNullable<z.ZodString>;
|
|
1432
|
+
lineCurrency: z.ZodString;
|
|
1433
|
+
lineNote: z.ZodNullable<z.ZodString>;
|
|
1434
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1435
|
+
groupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1436
|
+
position: z.ZodDefault<z.ZodNumber>;
|
|
1437
|
+
}, z.core.$strip>>;
|
|
1438
|
+
}, z.core.$strip>;
|
|
1439
|
+
export type QuoteRequestDocumentData = z.infer<typeof quoteRequestDocumentDataSchema>;
|
|
1440
|
+
export type QuoteRequestDocumentLine = QuoteRequestDocumentData['lines'][number];
|
|
1441
|
+
/** `GET /api/v1/admin/quote-requests/:id/document-templates` — the export and send dialogs' choices. */
|
|
1442
|
+
export declare const quoteRequestDocumentChoicesSchema: z.ZodObject<{
|
|
1443
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
1444
|
+
id: z.ZodString;
|
|
1445
|
+
name: z.ZodString;
|
|
1446
|
+
salesChannelId: z.ZodNullable<z.ZodString>;
|
|
1447
|
+
languages: z.ZodArray<z.ZodString>;
|
|
1448
|
+
isDefault: z.ZodBoolean;
|
|
1449
|
+
}, z.core.$strip>>;
|
|
1450
|
+
rememberedTemplateId: z.ZodNullable<z.ZodString>;
|
|
1451
|
+
rememberedTemplateMissing: z.ZodBoolean;
|
|
1452
|
+
effectiveDefaultId: z.ZodNullable<z.ZodString>;
|
|
1453
|
+
builtInLanguages: z.ZodArray<z.ZodString>;
|
|
1454
|
+
suggestedLanguage: z.ZodString;
|
|
1455
|
+
requesterEmail: z.ZodNullable<z.ZodString>;
|
|
1456
|
+
}, z.core.$strip>;
|
|
1457
|
+
export type QuoteRequestDocumentChoices = z.infer<typeof quoteRequestDocumentChoicesSchema>;
|
|
1458
|
+
/** `PUT /api/v1/admin/quote-requests/:id/document-template`. */
|
|
1459
|
+
export declare const setQuoteRequestDocumentTemplateSchema: z.ZodObject<{
|
|
1460
|
+
documentTemplateId: z.ZodNullable<z.ZodString>;
|
|
1461
|
+
}, z.core.$strip>;
|
|
1462
|
+
export type SetQuoteRequestDocumentTemplate = z.infer<typeof setQuoteRequestDocumentTemplateSchema>;
|
|
1463
|
+
/** `GET /api/v1/admin/quote-requests/:id/pdf` query. */
|
|
1464
|
+
export declare const quoteRequestPdfQuerySchema: z.ZodObject<{
|
|
1465
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
1466
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1467
|
+
}, z.core.$strip>;
|
|
1468
|
+
export type QuoteRequestPdfQuery = z.infer<typeof quoteRequestPdfQuerySchema>;
|
|
1469
|
+
/**
|
|
1470
|
+
* `POST /api/v1/admin/quote-requests/:id/pdf/send` (owner answer Q4). The
|
|
1471
|
+
* recipients are trimmed and de-duplicated case-insensitively — the first
|
|
1472
|
+
* spelling kept — before the 1–5 bound is applied.
|
|
1473
|
+
*/
|
|
1474
|
+
export declare const quoteRequestPdfSendRequestSchema: z.ZodObject<{
|
|
1475
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
1476
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1477
|
+
recipients: z.ZodPipe<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>, z.ZodArray<z.ZodString>>;
|
|
1478
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1479
|
+
}, z.core.$strip>;
|
|
1480
|
+
export type QuoteRequestPdfSendRequest = z.infer<typeof quoteRequestPdfSendRequestSchema>;
|
|
1481
|
+
export declare const quoteRequestPdfSendResultSchema: z.ZodObject<{
|
|
1482
|
+
sent: z.ZodArray<z.ZodString>;
|
|
1483
|
+
failed: z.ZodArray<z.ZodString>;
|
|
1484
|
+
templateId: z.ZodNullable<z.ZodString>;
|
|
1485
|
+
templateSource: z.ZodEnum<{
|
|
1486
|
+
default: "default";
|
|
1487
|
+
canvas: "canvas";
|
|
1488
|
+
explicit: "explicit";
|
|
1489
|
+
built_in: "built_in";
|
|
1490
|
+
}>;
|
|
1491
|
+
requestedTemplateMissing: z.ZodBoolean;
|
|
1492
|
+
}, z.core.$strip>;
|
|
1493
|
+
export type QuoteRequestPdfSendResult = z.infer<typeof quoteRequestPdfSendResultSchema>;
|
|
600
1494
|
//# sourceMappingURL=quote-requests.d.ts.map
|