@augno/sdk 0.18.0 → 0.18.2
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/CHANGELOG.md +2 -7
- package/package.json +1 -1
- package/resources/ai/memories.d.mts +6 -6
- package/resources/ai/memories.d.mts.map +1 -1
- package/resources/ai/memories.d.ts +6 -6
- package/resources/ai/memories.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.mts +8 -0
- package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.ts +8 -0
- package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.js.map +1 -1
- package/resources/auth/api-keys/api-keys.mjs.map +1 -1
- package/resources/catalog/items/attributes.d.mts +3 -0
- package/resources/catalog/items/attributes.d.mts.map +1 -1
- package/resources/catalog/items/attributes.d.ts +3 -0
- package/resources/catalog/items/attributes.d.ts.map +1 -1
- package/resources/catalog/items/attributes.js +3 -0
- package/resources/catalog/items/attributes.js.map +1 -1
- package/resources/catalog/items/attributes.mjs +3 -0
- package/resources/catalog/items/attributes.mjs.map +1 -1
- package/resources/catalog/materials/materials.d.mts +6 -0
- package/resources/catalog/materials/materials.d.mts.map +1 -1
- package/resources/catalog/materials/materials.d.ts +6 -0
- package/resources/catalog/materials/materials.d.ts.map +1 -1
- package/resources/catalog/materials/materials.js.map +1 -1
- package/resources/catalog/materials/materials.mjs.map +1 -1
- package/resources/catalog/parts/parts.d.mts +6 -0
- package/resources/catalog/parts/parts.d.mts.map +1 -1
- package/resources/catalog/parts/parts.d.ts +6 -0
- package/resources/catalog/parts/parts.d.ts.map +1 -1
- package/resources/catalog/parts/parts.js.map +1 -1
- package/resources/catalog/parts/parts.mjs.map +1 -1
- package/resources/catalog/products/products.d.mts +6 -4
- package/resources/catalog/products/products.d.mts.map +1 -1
- package/resources/catalog/products/products.d.ts +6 -4
- package/resources/catalog/products/products.d.ts.map +1 -1
- package/resources/catalog/products/products.js.map +1 -1
- package/resources/catalog/products/products.mjs.map +1 -1
- package/resources/core/actions.d.mts +73 -0
- package/resources/core/actions.d.mts.map +1 -0
- package/resources/core/actions.d.ts +73 -0
- package/resources/core/actions.d.ts.map +1 -0
- package/resources/core/actions.js +36 -0
- package/resources/core/actions.js.map +1 -0
- package/resources/core/actions.mjs +32 -0
- package/resources/core/actions.mjs.map +1 -0
- package/resources/core/audit-events.d.mts +4 -4
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +4 -4
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/core.d.mts +6 -2
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +6 -2
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js +4 -0
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs +4 -0
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/index.d.mts +1 -0
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +1 -0
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.js +3 -1
- package/resources/core/index.js.map +1 -1
- package/resources/core/index.mjs +1 -0
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/jobs.d.mts +1 -1
- package/resources/core/jobs.d.mts.map +1 -1
- package/resources/core/jobs.d.ts +1 -1
- package/resources/core/jobs.d.ts.map +1 -1
- package/resources/messaging/conversations/conversations.d.mts +3 -3
- package/resources/messaging/conversations/conversations.d.mts.map +1 -1
- package/resources/messaging/conversations/conversations.d.ts +3 -3
- package/resources/messaging/conversations/conversations.d.ts.map +1 -1
- package/resources/messaging/conversations/conversations.js.map +1 -1
- package/resources/messaging/conversations/conversations.mjs.map +1 -1
- package/resources/messaging/conversations/links.d.mts +2 -2
- package/resources/messaging/conversations/links.d.mts.map +1 -1
- package/resources/messaging/conversations/links.d.ts +2 -2
- package/resources/messaging/conversations/links.d.ts.map +1 -1
- package/resources/messaging/conversations/messages.d.mts +2 -2
- package/resources/messaging/conversations/messages.d.mts.map +1 -1
- package/resources/messaging/conversations/messages.d.ts +2 -2
- package/resources/messaging/conversations/messages.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.d.mts +2 -2
- package/resources/messaging/notifications/notifications.d.mts.map +1 -1
- package/resources/messaging/notifications/notifications.d.ts +2 -2
- package/resources/messaging/notifications/notifications.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.js.map +1 -1
- package/resources/messaging/notifications/notifications.mjs.map +1 -1
- package/resources/operations/index.d.mts +2 -1
- package/resources/operations/index.d.mts.map +1 -1
- package/resources/operations/index.d.ts +2 -1
- package/resources/operations/index.d.ts.map +1 -1
- package/resources/operations/index.js +9 -7
- package/resources/operations/index.js.map +1 -1
- package/resources/operations/index.mjs +1 -0
- package/resources/operations/index.mjs.map +1 -1
- package/resources/operations/machine-downtime-events.d.mts +56 -7
- package/resources/operations/machine-downtime-events.d.mts.map +1 -1
- package/resources/operations/machine-downtime-events.d.ts +56 -7
- package/resources/operations/machine-downtime-events.d.ts.map +1 -1
- package/resources/operations/machine-downtime-events.js +11 -7
- package/resources/operations/machine-downtime-events.js.map +1 -1
- package/resources/operations/machine-downtime-events.mjs +11 -7
- package/resources/operations/machine-downtime-events.mjs.map +1 -1
- package/resources/operations/operating-calendars/closures.d.mts +173 -0
- package/resources/operations/operating-calendars/closures.d.mts.map +1 -0
- package/resources/operations/operating-calendars/closures.d.ts +173 -0
- package/resources/operations/operating-calendars/closures.d.ts.map +1 -0
- package/resources/operations/operating-calendars/closures.js +81 -0
- package/resources/operations/operating-calendars/closures.js.map +1 -0
- package/resources/operations/operating-calendars/closures.mjs +77 -0
- package/resources/operations/operating-calendars/closures.mjs.map +1 -0
- package/resources/operations/operating-calendars/index.d.mts +3 -0
- package/resources/operations/operating-calendars/index.d.mts.map +1 -0
- package/resources/operations/operating-calendars/index.d.ts +3 -0
- package/resources/operations/operating-calendars/index.d.ts.map +1 -0
- package/resources/operations/operating-calendars/index.js +9 -0
- package/resources/operations/operating-calendars/index.js.map +1 -0
- package/resources/operations/operating-calendars/index.mjs +4 -0
- package/resources/operations/operating-calendars/index.mjs.map +1 -0
- package/resources/operations/operating-calendars/operating-calendars.d.mts +332 -0
- package/resources/operations/operating-calendars/operating-calendars.d.mts.map +1 -0
- package/resources/operations/operating-calendars/operating-calendars.d.ts +332 -0
- package/resources/operations/operating-calendars/operating-calendars.d.ts.map +1 -0
- package/resources/operations/operating-calendars/operating-calendars.js +129 -0
- package/resources/operations/operating-calendars/operating-calendars.js.map +1 -0
- package/resources/operations/operating-calendars/operating-calendars.mjs +124 -0
- package/resources/operations/operating-calendars/operating-calendars.mjs.map +1 -0
- package/resources/operations/operating-calendars.d.mts +2 -0
- package/resources/operations/operating-calendars.d.mts.map +1 -0
- package/resources/operations/operating-calendars.d.ts +2 -0
- package/resources/operations/operating-calendars.d.ts.map +1 -0
- package/resources/operations/operating-calendars.js +6 -0
- package/resources/operations/operating-calendars.js.map +1 -0
- package/resources/operations/operating-calendars.mjs +3 -0
- package/resources/operations/operating-calendars.mjs.map +1 -0
- package/resources/operations/operations.d.mts +6 -2
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +6 -2
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js +4 -0
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs +4 -0
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts +43 -12
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts +43 -12
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.js.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map +1 -1
- package/resources/operations/production-schedules/actions.d.mts +34 -1
- package/resources/operations/production-schedules/actions.d.mts.map +1 -1
- package/resources/operations/production-schedules/actions.d.ts +34 -1
- package/resources/operations/production-schedules/actions.d.ts.map +1 -1
- package/resources/operations/production-schedules/actions.js +8 -0
- package/resources/operations/production-schedules/actions.js.map +1 -1
- package/resources/operations/production-schedules/actions.mjs +8 -0
- package/resources/operations/production-schedules/actions.mjs.map +1 -1
- package/resources/operations/production-schedules/index.d.mts +1 -1
- package/resources/operations/production-schedules/index.d.mts.map +1 -1
- package/resources/operations/production-schedules/index.d.ts +1 -1
- package/resources/operations/production-schedules/index.d.ts.map +1 -1
- package/resources/operations/production-schedules/index.js.map +1 -1
- package/resources/operations/production-schedules/index.mjs.map +1 -1
- package/resources/operations/production-schedules/lines.d.mts +10 -6
- package/resources/operations/production-schedules/lines.d.mts.map +1 -1
- package/resources/operations/production-schedules/lines.d.ts +10 -6
- package/resources/operations/production-schedules/lines.d.ts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.mts +295 -2
- package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.ts +295 -2
- package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.js +42 -0
- package/resources/operations/production-schedules/production-schedules.js.map +1 -1
- package/resources/operations/production-schedules/production-schedules.mjs +42 -0
- package/resources/operations/production-schedules/production-schedules.mjs.map +1 -1
- package/resources/sales/account-groups.d.mts +2 -1
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +2 -1
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-prices/account-prices.d.mts +10 -1
- package/resources/sales/account-prices/account-prices.d.mts.map +1 -1
- package/resources/sales/account-prices/account-prices.d.ts +10 -1
- package/resources/sales/account-prices/account-prices.d.ts.map +1 -1
- package/resources/sales/account-prices/account-prices.js.map +1 -1
- package/resources/sales/account-prices/account-prices.mjs.map +1 -1
- package/resources/sales/addresses.d.mts +20 -0
- package/resources/sales/addresses.d.mts.map +1 -1
- package/resources/sales/addresses.d.ts +20 -0
- package/resources/sales/addresses.d.ts.map +1 -1
- package/resources/sales/customers/customers.d.mts +72 -14
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +72 -14
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +10 -5
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +10 -5
- package/resources/sales/customers/customers.mjs.map +1 -1
- package/resources/sales/customers/index.d.mts +1 -1
- package/resources/sales/customers/index.d.mts.map +1 -1
- package/resources/sales/customers/index.d.ts +1 -1
- package/resources/sales/customers/index.d.ts.map +1 -1
- package/resources/sales/customers/index.js.map +1 -1
- package/resources/sales/customers/index.mjs.map +1 -1
- package/resources/sales/index.d.mts +1 -1
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +1 -1
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/sales-orders/actions.d.mts +217 -1
- package/resources/sales/sales-orders/actions.d.mts.map +1 -1
- package/resources/sales/sales-orders/actions.d.ts +217 -1
- package/resources/sales/sales-orders/actions.d.ts.map +1 -1
- package/resources/sales/sales-orders/actions.js +36 -0
- package/resources/sales/sales-orders/actions.js.map +1 -1
- package/resources/sales/sales-orders/actions.mjs +36 -0
- package/resources/sales/sales-orders/actions.mjs.map +1 -1
- package/resources/sales/sales-orders/index.d.mts +1 -1
- package/resources/sales/sales-orders/index.d.mts.map +1 -1
- package/resources/sales/sales-orders/index.d.ts +1 -1
- package/resources/sales/sales-orders/index.d.ts.map +1 -1
- package/resources/sales/sales-orders/index.js.map +1 -1
- package/resources/sales/sales-orders/index.mjs.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.mts +105 -9
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +105 -9
- package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +2 -2
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +2 -2
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs.map +1 -1
- package/src/resources/ai/memories.ts +6 -6
- package/src/resources/auth/api-keys/api-keys.ts +9 -0
- package/src/resources/catalog/items/attributes.ts +3 -0
- package/src/resources/catalog/materials/materials.ts +6 -0
- package/src/resources/catalog/parts/parts.ts +6 -0
- package/src/resources/catalog/products/products.ts +6 -4
- package/src/resources/core/actions.ts +89 -0
- package/src/resources/core/audit-events.ts +16 -0
- package/src/resources/core/core.ts +19 -0
- package/src/resources/core/index.ts +6 -0
- package/src/resources/core/jobs.ts +4 -0
- package/src/resources/messaging/conversations/conversations.ts +12 -0
- package/src/resources/messaging/conversations/links.ts +8 -0
- package/src/resources/messaging/conversations/messages.ts +8 -0
- package/src/resources/messaging/notifications/notifications.ts +8 -0
- package/src/resources/operations/index.ts +15 -0
- package/src/resources/operations/machine-downtime-events.ts +62 -7
- package/src/resources/operations/operating-calendars/closures.ts +223 -0
- package/src/resources/operations/operating-calendars/index.ts +23 -0
- package/src/resources/operations/operating-calendars/operating-calendars.ts +427 -0
- package/src/resources/operations/operating-calendars.ts +3 -0
- package/src/resources/operations/operations.ts +36 -0
- package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +49 -12
- package/src/resources/operations/production-schedules/actions.ts +37 -1
- package/src/resources/operations/production-schedules/index.ts +4 -0
- package/src/resources/operations/production-schedules/lines.ts +10 -6
- package/src/resources/operations/production-schedules/production-schedules.ts +354 -1
- package/src/resources/sales/account-groups.ts +2 -1
- package/src/resources/sales/account-prices/account-prices.ts +11 -1
- package/src/resources/sales/addresses.ts +24 -0
- package/src/resources/sales/customers/customers.ts +90 -14
- package/src/resources/sales/customers/index.ts +1 -0
- package/src/resources/sales/index.ts +1 -0
- package/src/resources/sales/sales-orders/actions.ts +266 -0
- package/src/resources/sales/sales-orders/index.ts +4 -0
- package/src/resources/sales/sales-orders/sales-orders.ts +131 -7
- package/src/resources/sales/sales.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -123,6 +123,40 @@ export declare class Actions extends APIResource {
|
|
|
123
123
|
* ```
|
|
124
124
|
*/
|
|
125
125
|
quoteFreight(id: string, options?: RequestOptions): APIPromise<QuoteSalesOrderFreightResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* Previews the ship-by date a set of commitment inputs would produce, without
|
|
128
|
+
* creating or changing anything.
|
|
129
|
+
*
|
|
130
|
+
* Runs the same resolution an order runs when it is issued: a promised delivery
|
|
131
|
+
* date has the customer's receiving days, the carrier's transit, and the plant's
|
|
132
|
+
* shipping days worked back through it, while a lead time or a pinned ship date is
|
|
133
|
+
* snapped onto the next earlier day the plant ships. The returned steps are that
|
|
134
|
+
* derivation in order, so a caller can show why a date is what it is rather than
|
|
135
|
+
* restating the rules.
|
|
136
|
+
*
|
|
137
|
+
* At most one of `promised_at`, `lead_time_override_days`, and
|
|
138
|
+
* `ship_by_override_date` may be set; they are alternative answers to the same
|
|
139
|
+
* question.
|
|
140
|
+
*
|
|
141
|
+
* Advisory rather than binding. Carrier transit comes from a lane cache warmed in
|
|
142
|
+
* the background, so a lane nobody has shipped yet quotes against the service
|
|
143
|
+
* level's default or against no transit at all, and the date stamped at issue may
|
|
144
|
+
* differ once the lane has been rated.
|
|
145
|
+
*
|
|
146
|
+
* This endpoint requires the permission: `sales_orders:read`.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```ts
|
|
150
|
+
* const quoteSalesOrderCommitmentResponse =
|
|
151
|
+
* await client.sales.salesOrders.actions.quoteCommitment({
|
|
152
|
+
* buyer_account_id: 'ac_ykxoradjoeb3',
|
|
153
|
+
* promised_at: '2026-08-22T00:00:00Z',
|
|
154
|
+
* service_level_id: 'crop_4ilk9p6gccrx',
|
|
155
|
+
* ship_to_address_id: 'ad_npqa5y43q26z',
|
|
156
|
+
* });
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
quoteCommitment(body?: ActionQuoteCommitmentParams | null | undefined, options?: RequestOptions): APIPromise<QuoteSalesOrderCommitmentResponse>;
|
|
126
160
|
/**
|
|
127
161
|
* Creates a production run from a sales order.
|
|
128
162
|
*
|
|
@@ -155,6 +189,34 @@ export interface BulkDeleteSalesOrdersRequest {
|
|
|
155
189
|
*/
|
|
156
190
|
sales_order_ids: Array<string>;
|
|
157
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* CommitmentQuoteStep is one rule's contribution to a previewed ship-by date.
|
|
194
|
+
*
|
|
195
|
+
* Returned as an ordered list so a caller can show why a date is what it is
|
|
196
|
+
* without reimplementing the arithmetic, and so the explanation cannot drift from
|
|
197
|
+
* the calculation that produced it.
|
|
198
|
+
*/
|
|
199
|
+
export interface CommitmentQuoteStep {
|
|
200
|
+
/**
|
|
201
|
+
* Which rule applied.
|
|
202
|
+
*/
|
|
203
|
+
code: 'basis' | 'receive_calendar' | 'carrier_transit' | 'ship_calendar' | 'pickup_cutoff';
|
|
204
|
+
/**
|
|
205
|
+
* Where the running date stood after this rule.
|
|
206
|
+
*/
|
|
207
|
+
date: string;
|
|
208
|
+
/**
|
|
209
|
+
* How far this rule pulled the date back. Zero means the rule applied and changed
|
|
210
|
+
* nothing, which is worth showing: it says the date was already on an open day.
|
|
211
|
+
*/
|
|
212
|
+
days_moved: number;
|
|
213
|
+
/**
|
|
214
|
+
* The rule's own parameter — where a transit estimate came from, or the cutoff
|
|
215
|
+
* time applied. Null for a rule that takes none, rather than an empty string:
|
|
216
|
+
* snapping onto an open day has no parameter to report.
|
|
217
|
+
*/
|
|
218
|
+
detail: string | null;
|
|
219
|
+
}
|
|
158
220
|
/**
|
|
159
221
|
* Request to issue a sales order.
|
|
160
222
|
*/
|
|
@@ -224,6 +286,113 @@ export interface ProductionRun {
|
|
|
224
286
|
*/
|
|
225
287
|
updated_at: string;
|
|
226
288
|
}
|
|
289
|
+
/**
|
|
290
|
+
* Request to preview the ship-by date a set of commitment inputs would produce.
|
|
291
|
+
*/
|
|
292
|
+
export interface QuoteSalesOrderCommitmentRequest {
|
|
293
|
+
/**
|
|
294
|
+
* The buying account, used to resolve its lead time and receiving days.
|
|
295
|
+
*/
|
|
296
|
+
buyer_account_id?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Carrier for the shipment.
|
|
299
|
+
*/
|
|
300
|
+
carrier_id?: string;
|
|
301
|
+
/**
|
|
302
|
+
* When the order would be issued. Defaults to now, since a lead time is measured
|
|
303
|
+
* from issue and an order built today but issued next week commits to next week's
|
|
304
|
+
* date.
|
|
305
|
+
*/
|
|
306
|
+
issued_at?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Days between issue and the order being due to ship, in place of the customer's
|
|
309
|
+
* standing lead time.
|
|
310
|
+
*/
|
|
311
|
+
lead_time_override_days?: number;
|
|
312
|
+
/**
|
|
313
|
+
* Date delivery would be promised to the customer.
|
|
314
|
+
*/
|
|
315
|
+
promised_at?: string;
|
|
316
|
+
/**
|
|
317
|
+
* An existing order to preview against. Its customer, ship-to address, carrier,
|
|
318
|
+
* and service level are used, and the commitment fields below replace whatever it
|
|
319
|
+
* currently carries.
|
|
320
|
+
*
|
|
321
|
+
* Omit it to preview an order that has not been created yet, supplying the parts
|
|
322
|
+
* directly.
|
|
323
|
+
*/
|
|
324
|
+
sales_order_id?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Service level for the shipment, which the lane's transit estimate is keyed on.
|
|
327
|
+
*/
|
|
328
|
+
service_level_id?: string;
|
|
329
|
+
/**
|
|
330
|
+
* The exact date the order would be due to ship.
|
|
331
|
+
*/
|
|
332
|
+
ship_by_override_date?: string;
|
|
333
|
+
/**
|
|
334
|
+
* The ship-to address, which decides the destination timezone and the lane transit
|
|
335
|
+
* is quoted on.
|
|
336
|
+
*/
|
|
337
|
+
ship_to_address_id?: string;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* The ship-by date a set of commitment inputs would produce, and how it was
|
|
341
|
+
* reached.
|
|
342
|
+
*/
|
|
343
|
+
export interface QuoteSalesOrderCommitmentResponse {
|
|
344
|
+
/**
|
|
345
|
+
* Days the receiving and shipping calendars pulled the date back, beyond what
|
|
346
|
+
* transit accounted for.
|
|
347
|
+
*/
|
|
348
|
+
calendar_adjustment_days: number;
|
|
349
|
+
/**
|
|
350
|
+
* When freight leaving on the ship-by date would reach the customer: transit
|
|
351
|
+
* walked forward from it and landed on a day their dock receives. Null whenever
|
|
352
|
+
* `transit_days` is, since an arrival with no journey behind it would just be the
|
|
353
|
+
* ship date wearing a different name.
|
|
354
|
+
*
|
|
355
|
+
* Reported for every basis, including the ones that do not use transit to decide
|
|
356
|
+
* the ship-by date. An order committed on a lead time has the same journey ahead
|
|
357
|
+
* of it; it simply was not worked backwards from.
|
|
358
|
+
*/
|
|
359
|
+
estimated_delivery_date: string | null;
|
|
360
|
+
/**
|
|
361
|
+
* Calendar days between issue and the ship-by date.
|
|
362
|
+
*/
|
|
363
|
+
lead_time_days: number | null;
|
|
364
|
+
/**
|
|
365
|
+
* Which rule produced the date.
|
|
366
|
+
*/
|
|
367
|
+
lead_time_source: 'customer' | 'parent_customer' | 'account_group' | 'account' | 'manual' | 'order_lead_time' | 'order_ship_by' | null;
|
|
368
|
+
/**
|
|
369
|
+
* Resource type identifier.
|
|
370
|
+
*/
|
|
371
|
+
object: 'sales_order_commitment_quote';
|
|
372
|
+
/**
|
|
373
|
+
* That date at the plant's pickup cutoff — the moment freight would have to be
|
|
374
|
+
* tendered by. Null when the shipping calendar carries no cutoff.
|
|
375
|
+
*/
|
|
376
|
+
ship_by_cutoff_at: string | null;
|
|
377
|
+
/**
|
|
378
|
+
* The date the order would be due to ship, or null when no rule resolves one.
|
|
379
|
+
*/
|
|
380
|
+
ship_by_date: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* The derivation in order, one entry per rule that moved the date.
|
|
383
|
+
*/
|
|
384
|
+
steps: Array<CommitmentQuoteStep>;
|
|
385
|
+
/**
|
|
386
|
+
* Days the carrier needs to cover the lane. Null when the lane has never been
|
|
387
|
+
* quoted and the service level carries no default, or when no service level was
|
|
388
|
+
* supplied to quote one on.
|
|
389
|
+
*/
|
|
390
|
+
transit_days: number | null;
|
|
391
|
+
/**
|
|
392
|
+
* Where the transit estimate came from.
|
|
393
|
+
*/
|
|
394
|
+
transit_source: 'carrier_lane' | 'service_level' | null;
|
|
395
|
+
}
|
|
227
396
|
/**
|
|
228
397
|
* The freshly estimated freight charge for a sales order.
|
|
229
398
|
*/
|
|
@@ -261,6 +430,53 @@ export interface ActionIssueParams {
|
|
|
261
430
|
*/
|
|
262
431
|
notify_customer: boolean;
|
|
263
432
|
}
|
|
433
|
+
export interface ActionQuoteCommitmentParams {
|
|
434
|
+
/**
|
|
435
|
+
* The buying account, used to resolve its lead time and receiving days.
|
|
436
|
+
*/
|
|
437
|
+
buyer_account_id?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Carrier for the shipment.
|
|
440
|
+
*/
|
|
441
|
+
carrier_id?: string;
|
|
442
|
+
/**
|
|
443
|
+
* When the order would be issued. Defaults to now, since a lead time is measured
|
|
444
|
+
* from issue and an order built today but issued next week commits to next week's
|
|
445
|
+
* date.
|
|
446
|
+
*/
|
|
447
|
+
issued_at?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Days between issue and the order being due to ship, in place of the customer's
|
|
450
|
+
* standing lead time.
|
|
451
|
+
*/
|
|
452
|
+
lead_time_override_days?: number;
|
|
453
|
+
/**
|
|
454
|
+
* Date delivery would be promised to the customer.
|
|
455
|
+
*/
|
|
456
|
+
promised_at?: string;
|
|
457
|
+
/**
|
|
458
|
+
* An existing order to preview against. Its customer, ship-to address, carrier,
|
|
459
|
+
* and service level are used, and the commitment fields below replace whatever it
|
|
460
|
+
* currently carries.
|
|
461
|
+
*
|
|
462
|
+
* Omit it to preview an order that has not been created yet, supplying the parts
|
|
463
|
+
* directly.
|
|
464
|
+
*/
|
|
465
|
+
sales_order_id?: string;
|
|
466
|
+
/**
|
|
467
|
+
* Service level for the shipment, which the lane's transit estimate is keyed on.
|
|
468
|
+
*/
|
|
469
|
+
service_level_id?: string;
|
|
470
|
+
/**
|
|
471
|
+
* The exact date the order would be due to ship.
|
|
472
|
+
*/
|
|
473
|
+
ship_by_override_date?: string;
|
|
474
|
+
/**
|
|
475
|
+
* The ship-to address, which decides the destination timezone and the lane transit
|
|
476
|
+
* is quoted on.
|
|
477
|
+
*/
|
|
478
|
+
ship_to_address_id?: string;
|
|
479
|
+
}
|
|
264
480
|
export interface ActionCreateProductionRunParams {
|
|
265
481
|
/**
|
|
266
482
|
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
@@ -269,6 +485,6 @@ export interface ActionCreateProductionRunParams {
|
|
|
269
485
|
include?: Array<'responsible_user' | 'responsible_user.user'>;
|
|
270
486
|
}
|
|
271
487
|
export declare namespace Actions {
|
|
272
|
-
export { type BulkDeleteSalesOrdersRequest as BulkDeleteSalesOrdersRequest, type IssueSalesOrderRequest as IssueSalesOrderRequest, type ProductionRun as ProductionRun, type QuoteSalesOrderFreightResponse as QuoteSalesOrderFreightResponse, type ActionBulkDeleteResponse as ActionBulkDeleteResponse, type ActionBulkDeleteParams as ActionBulkDeleteParams, type ActionIssueParams as ActionIssueParams, type ActionCreateProductionRunParams as ActionCreateProductionRunParams, };
|
|
488
|
+
export { type BulkDeleteSalesOrdersRequest as BulkDeleteSalesOrdersRequest, type CommitmentQuoteStep as CommitmentQuoteStep, type IssueSalesOrderRequest as IssueSalesOrderRequest, type ProductionRun as ProductionRun, type QuoteSalesOrderCommitmentRequest as QuoteSalesOrderCommitmentRequest, type QuoteSalesOrderCommitmentResponse as QuoteSalesOrderCommitmentResponse, type QuoteSalesOrderFreightResponse as QuoteSalesOrderFreightResponse, type ActionBulkDeleteResponse as ActionBulkDeleteResponse, type ActionBulkDeleteParams as ActionBulkDeleteParams, type ActionIssueParams as ActionIssueParams, type ActionQuoteCommitmentParams as ActionQuoteCommitmentParams, type ActionCreateProductionRunParams as ActionCreateProductionRunParams, };
|
|
273
489
|
}
|
|
274
490
|
//# sourceMappingURL=actions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/sales/sales-orders/actions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,cAAc;OACnB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIxG;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,cAAc,CAAC,UAAU,CAAC;IAIxC;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,UAAU,CAAC;IAIpF;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,UAAU,CAAC;IAIlF;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,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E5C,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;;;;OAOG;IACH,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,kBAAkB,GAAG,uBAAuB,CAAC,CAAC;CAC/D;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/sales/sales-orders/actions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,cAAc;OACnB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIxG;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,cAAc,CAAC,UAAU,CAAC;IAIxC;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,EAAE,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AErB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,kBAAkB,GAAG,uBAAuB,CAAC,CAAC;CAC/D;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -123,6 +123,40 @@ export declare class Actions extends APIResource {
|
|
|
123
123
|
* ```
|
|
124
124
|
*/
|
|
125
125
|
quoteFreight(id: string, options?: RequestOptions): APIPromise<QuoteSalesOrderFreightResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* Previews the ship-by date a set of commitment inputs would produce, without
|
|
128
|
+
* creating or changing anything.
|
|
129
|
+
*
|
|
130
|
+
* Runs the same resolution an order runs when it is issued: a promised delivery
|
|
131
|
+
* date has the customer's receiving days, the carrier's transit, and the plant's
|
|
132
|
+
* shipping days worked back through it, while a lead time or a pinned ship date is
|
|
133
|
+
* snapped onto the next earlier day the plant ships. The returned steps are that
|
|
134
|
+
* derivation in order, so a caller can show why a date is what it is rather than
|
|
135
|
+
* restating the rules.
|
|
136
|
+
*
|
|
137
|
+
* At most one of `promised_at`, `lead_time_override_days`, and
|
|
138
|
+
* `ship_by_override_date` may be set; they are alternative answers to the same
|
|
139
|
+
* question.
|
|
140
|
+
*
|
|
141
|
+
* Advisory rather than binding. Carrier transit comes from a lane cache warmed in
|
|
142
|
+
* the background, so a lane nobody has shipped yet quotes against the service
|
|
143
|
+
* level's default or against no transit at all, and the date stamped at issue may
|
|
144
|
+
* differ once the lane has been rated.
|
|
145
|
+
*
|
|
146
|
+
* This endpoint requires the permission: `sales_orders:read`.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```ts
|
|
150
|
+
* const quoteSalesOrderCommitmentResponse =
|
|
151
|
+
* await client.sales.salesOrders.actions.quoteCommitment({
|
|
152
|
+
* buyer_account_id: 'ac_ykxoradjoeb3',
|
|
153
|
+
* promised_at: '2026-08-22T00:00:00Z',
|
|
154
|
+
* service_level_id: 'crop_4ilk9p6gccrx',
|
|
155
|
+
* ship_to_address_id: 'ad_npqa5y43q26z',
|
|
156
|
+
* });
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
quoteCommitment(body?: ActionQuoteCommitmentParams | null | undefined, options?: RequestOptions): APIPromise<QuoteSalesOrderCommitmentResponse>;
|
|
126
160
|
/**
|
|
127
161
|
* Creates a production run from a sales order.
|
|
128
162
|
*
|
|
@@ -155,6 +189,34 @@ export interface BulkDeleteSalesOrdersRequest {
|
|
|
155
189
|
*/
|
|
156
190
|
sales_order_ids: Array<string>;
|
|
157
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* CommitmentQuoteStep is one rule's contribution to a previewed ship-by date.
|
|
194
|
+
*
|
|
195
|
+
* Returned as an ordered list so a caller can show why a date is what it is
|
|
196
|
+
* without reimplementing the arithmetic, and so the explanation cannot drift from
|
|
197
|
+
* the calculation that produced it.
|
|
198
|
+
*/
|
|
199
|
+
export interface CommitmentQuoteStep {
|
|
200
|
+
/**
|
|
201
|
+
* Which rule applied.
|
|
202
|
+
*/
|
|
203
|
+
code: 'basis' | 'receive_calendar' | 'carrier_transit' | 'ship_calendar' | 'pickup_cutoff';
|
|
204
|
+
/**
|
|
205
|
+
* Where the running date stood after this rule.
|
|
206
|
+
*/
|
|
207
|
+
date: string;
|
|
208
|
+
/**
|
|
209
|
+
* How far this rule pulled the date back. Zero means the rule applied and changed
|
|
210
|
+
* nothing, which is worth showing: it says the date was already on an open day.
|
|
211
|
+
*/
|
|
212
|
+
days_moved: number;
|
|
213
|
+
/**
|
|
214
|
+
* The rule's own parameter — where a transit estimate came from, or the cutoff
|
|
215
|
+
* time applied. Null for a rule that takes none, rather than an empty string:
|
|
216
|
+
* snapping onto an open day has no parameter to report.
|
|
217
|
+
*/
|
|
218
|
+
detail: string | null;
|
|
219
|
+
}
|
|
158
220
|
/**
|
|
159
221
|
* Request to issue a sales order.
|
|
160
222
|
*/
|
|
@@ -224,6 +286,113 @@ export interface ProductionRun {
|
|
|
224
286
|
*/
|
|
225
287
|
updated_at: string;
|
|
226
288
|
}
|
|
289
|
+
/**
|
|
290
|
+
* Request to preview the ship-by date a set of commitment inputs would produce.
|
|
291
|
+
*/
|
|
292
|
+
export interface QuoteSalesOrderCommitmentRequest {
|
|
293
|
+
/**
|
|
294
|
+
* The buying account, used to resolve its lead time and receiving days.
|
|
295
|
+
*/
|
|
296
|
+
buyer_account_id?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Carrier for the shipment.
|
|
299
|
+
*/
|
|
300
|
+
carrier_id?: string;
|
|
301
|
+
/**
|
|
302
|
+
* When the order would be issued. Defaults to now, since a lead time is measured
|
|
303
|
+
* from issue and an order built today but issued next week commits to next week's
|
|
304
|
+
* date.
|
|
305
|
+
*/
|
|
306
|
+
issued_at?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Days between issue and the order being due to ship, in place of the customer's
|
|
309
|
+
* standing lead time.
|
|
310
|
+
*/
|
|
311
|
+
lead_time_override_days?: number;
|
|
312
|
+
/**
|
|
313
|
+
* Date delivery would be promised to the customer.
|
|
314
|
+
*/
|
|
315
|
+
promised_at?: string;
|
|
316
|
+
/**
|
|
317
|
+
* An existing order to preview against. Its customer, ship-to address, carrier,
|
|
318
|
+
* and service level are used, and the commitment fields below replace whatever it
|
|
319
|
+
* currently carries.
|
|
320
|
+
*
|
|
321
|
+
* Omit it to preview an order that has not been created yet, supplying the parts
|
|
322
|
+
* directly.
|
|
323
|
+
*/
|
|
324
|
+
sales_order_id?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Service level for the shipment, which the lane's transit estimate is keyed on.
|
|
327
|
+
*/
|
|
328
|
+
service_level_id?: string;
|
|
329
|
+
/**
|
|
330
|
+
* The exact date the order would be due to ship.
|
|
331
|
+
*/
|
|
332
|
+
ship_by_override_date?: string;
|
|
333
|
+
/**
|
|
334
|
+
* The ship-to address, which decides the destination timezone and the lane transit
|
|
335
|
+
* is quoted on.
|
|
336
|
+
*/
|
|
337
|
+
ship_to_address_id?: string;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* The ship-by date a set of commitment inputs would produce, and how it was
|
|
341
|
+
* reached.
|
|
342
|
+
*/
|
|
343
|
+
export interface QuoteSalesOrderCommitmentResponse {
|
|
344
|
+
/**
|
|
345
|
+
* Days the receiving and shipping calendars pulled the date back, beyond what
|
|
346
|
+
* transit accounted for.
|
|
347
|
+
*/
|
|
348
|
+
calendar_adjustment_days: number;
|
|
349
|
+
/**
|
|
350
|
+
* When freight leaving on the ship-by date would reach the customer: transit
|
|
351
|
+
* walked forward from it and landed on a day their dock receives. Null whenever
|
|
352
|
+
* `transit_days` is, since an arrival with no journey behind it would just be the
|
|
353
|
+
* ship date wearing a different name.
|
|
354
|
+
*
|
|
355
|
+
* Reported for every basis, including the ones that do not use transit to decide
|
|
356
|
+
* the ship-by date. An order committed on a lead time has the same journey ahead
|
|
357
|
+
* of it; it simply was not worked backwards from.
|
|
358
|
+
*/
|
|
359
|
+
estimated_delivery_date: string | null;
|
|
360
|
+
/**
|
|
361
|
+
* Calendar days between issue and the ship-by date.
|
|
362
|
+
*/
|
|
363
|
+
lead_time_days: number | null;
|
|
364
|
+
/**
|
|
365
|
+
* Which rule produced the date.
|
|
366
|
+
*/
|
|
367
|
+
lead_time_source: 'customer' | 'parent_customer' | 'account_group' | 'account' | 'manual' | 'order_lead_time' | 'order_ship_by' | null;
|
|
368
|
+
/**
|
|
369
|
+
* Resource type identifier.
|
|
370
|
+
*/
|
|
371
|
+
object: 'sales_order_commitment_quote';
|
|
372
|
+
/**
|
|
373
|
+
* That date at the plant's pickup cutoff — the moment freight would have to be
|
|
374
|
+
* tendered by. Null when the shipping calendar carries no cutoff.
|
|
375
|
+
*/
|
|
376
|
+
ship_by_cutoff_at: string | null;
|
|
377
|
+
/**
|
|
378
|
+
* The date the order would be due to ship, or null when no rule resolves one.
|
|
379
|
+
*/
|
|
380
|
+
ship_by_date: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* The derivation in order, one entry per rule that moved the date.
|
|
383
|
+
*/
|
|
384
|
+
steps: Array<CommitmentQuoteStep>;
|
|
385
|
+
/**
|
|
386
|
+
* Days the carrier needs to cover the lane. Null when the lane has never been
|
|
387
|
+
* quoted and the service level carries no default, or when no service level was
|
|
388
|
+
* supplied to quote one on.
|
|
389
|
+
*/
|
|
390
|
+
transit_days: number | null;
|
|
391
|
+
/**
|
|
392
|
+
* Where the transit estimate came from.
|
|
393
|
+
*/
|
|
394
|
+
transit_source: 'carrier_lane' | 'service_level' | null;
|
|
395
|
+
}
|
|
227
396
|
/**
|
|
228
397
|
* The freshly estimated freight charge for a sales order.
|
|
229
398
|
*/
|
|
@@ -261,6 +430,53 @@ export interface ActionIssueParams {
|
|
|
261
430
|
*/
|
|
262
431
|
notify_customer: boolean;
|
|
263
432
|
}
|
|
433
|
+
export interface ActionQuoteCommitmentParams {
|
|
434
|
+
/**
|
|
435
|
+
* The buying account, used to resolve its lead time and receiving days.
|
|
436
|
+
*/
|
|
437
|
+
buyer_account_id?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Carrier for the shipment.
|
|
440
|
+
*/
|
|
441
|
+
carrier_id?: string;
|
|
442
|
+
/**
|
|
443
|
+
* When the order would be issued. Defaults to now, since a lead time is measured
|
|
444
|
+
* from issue and an order built today but issued next week commits to next week's
|
|
445
|
+
* date.
|
|
446
|
+
*/
|
|
447
|
+
issued_at?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Days between issue and the order being due to ship, in place of the customer's
|
|
450
|
+
* standing lead time.
|
|
451
|
+
*/
|
|
452
|
+
lead_time_override_days?: number;
|
|
453
|
+
/**
|
|
454
|
+
* Date delivery would be promised to the customer.
|
|
455
|
+
*/
|
|
456
|
+
promised_at?: string;
|
|
457
|
+
/**
|
|
458
|
+
* An existing order to preview against. Its customer, ship-to address, carrier,
|
|
459
|
+
* and service level are used, and the commitment fields below replace whatever it
|
|
460
|
+
* currently carries.
|
|
461
|
+
*
|
|
462
|
+
* Omit it to preview an order that has not been created yet, supplying the parts
|
|
463
|
+
* directly.
|
|
464
|
+
*/
|
|
465
|
+
sales_order_id?: string;
|
|
466
|
+
/**
|
|
467
|
+
* Service level for the shipment, which the lane's transit estimate is keyed on.
|
|
468
|
+
*/
|
|
469
|
+
service_level_id?: string;
|
|
470
|
+
/**
|
|
471
|
+
* The exact date the order would be due to ship.
|
|
472
|
+
*/
|
|
473
|
+
ship_by_override_date?: string;
|
|
474
|
+
/**
|
|
475
|
+
* The ship-to address, which decides the destination timezone and the lane transit
|
|
476
|
+
* is quoted on.
|
|
477
|
+
*/
|
|
478
|
+
ship_to_address_id?: string;
|
|
479
|
+
}
|
|
264
480
|
export interface ActionCreateProductionRunParams {
|
|
265
481
|
/**
|
|
266
482
|
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
@@ -269,6 +485,6 @@ export interface ActionCreateProductionRunParams {
|
|
|
269
485
|
include?: Array<'responsible_user' | 'responsible_user.user'>;
|
|
270
486
|
}
|
|
271
487
|
export declare namespace Actions {
|
|
272
|
-
export { type BulkDeleteSalesOrdersRequest as BulkDeleteSalesOrdersRequest, type IssueSalesOrderRequest as IssueSalesOrderRequest, type ProductionRun as ProductionRun, type QuoteSalesOrderFreightResponse as QuoteSalesOrderFreightResponse, type ActionBulkDeleteResponse as ActionBulkDeleteResponse, type ActionBulkDeleteParams as ActionBulkDeleteParams, type ActionIssueParams as ActionIssueParams, type ActionCreateProductionRunParams as ActionCreateProductionRunParams, };
|
|
488
|
+
export { type BulkDeleteSalesOrdersRequest as BulkDeleteSalesOrdersRequest, type CommitmentQuoteStep as CommitmentQuoteStep, type IssueSalesOrderRequest as IssueSalesOrderRequest, type ProductionRun as ProductionRun, type QuoteSalesOrderCommitmentRequest as QuoteSalesOrderCommitmentRequest, type QuoteSalesOrderCommitmentResponse as QuoteSalesOrderCommitmentResponse, type QuoteSalesOrderFreightResponse as QuoteSalesOrderFreightResponse, type ActionBulkDeleteResponse as ActionBulkDeleteResponse, type ActionBulkDeleteParams as ActionBulkDeleteParams, type ActionIssueParams as ActionIssueParams, type ActionQuoteCommitmentParams as ActionQuoteCommitmentParams, type ActionCreateProductionRunParams as ActionCreateProductionRunParams, };
|
|
273
489
|
}
|
|
274
490
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/resources/sales/sales-orders/actions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,cAAc;OACnB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIx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EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -136,6 +136,42 @@ class Actions extends resource_1.APIResource {
|
|
|
136
136
|
quoteFreight(id, options) {
|
|
137
137
|
return this._client.post((0, path_1.path) `/v1/sales/sales-orders/${id}/actions/quote-freight`, options);
|
|
138
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Previews the ship-by date a set of commitment inputs would produce, without
|
|
141
|
+
* creating or changing anything.
|
|
142
|
+
*
|
|
143
|
+
* Runs the same resolution an order runs when it is issued: a promised delivery
|
|
144
|
+
* date has the customer's receiving days, the carrier's transit, and the plant's
|
|
145
|
+
* shipping days worked back through it, while a lead time or a pinned ship date is
|
|
146
|
+
* snapped onto the next earlier day the plant ships. The returned steps are that
|
|
147
|
+
* derivation in order, so a caller can show why a date is what it is rather than
|
|
148
|
+
* restating the rules.
|
|
149
|
+
*
|
|
150
|
+
* At most one of `promised_at`, `lead_time_override_days`, and
|
|
151
|
+
* `ship_by_override_date` may be set; they are alternative answers to the same
|
|
152
|
+
* question.
|
|
153
|
+
*
|
|
154
|
+
* Advisory rather than binding. Carrier transit comes from a lane cache warmed in
|
|
155
|
+
* the background, so a lane nobody has shipped yet quotes against the service
|
|
156
|
+
* level's default or against no transit at all, and the date stamped at issue may
|
|
157
|
+
* differ once the lane has been rated.
|
|
158
|
+
*
|
|
159
|
+
* This endpoint requires the permission: `sales_orders:read`.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* const quoteSalesOrderCommitmentResponse =
|
|
164
|
+
* await client.sales.salesOrders.actions.quoteCommitment({
|
|
165
|
+
* buyer_account_id: 'ac_ykxoradjoeb3',
|
|
166
|
+
* promised_at: '2026-08-22T00:00:00Z',
|
|
167
|
+
* service_level_id: 'crop_4ilk9p6gccrx',
|
|
168
|
+
* ship_to_address_id: 'ad_npqa5y43q26z',
|
|
169
|
+
* });
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
quoteCommitment(body = {}, options) {
|
|
173
|
+
return this._client.post('/v1/sales/sales-orders/actions/quote-commitment', { body, ...options });
|
|
174
|
+
}
|
|
139
175
|
/**
|
|
140
176
|
* Creates a production run from a sales order.
|
|
141
177
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/resources/sales/sales-orders/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,IAA4B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CACH,EAAU,EACV,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,EAAU,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,EAAU,EAAE,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA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OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,gCAAgC,EAAE;YACzF,KAAK,EAAE,EAAE,OAAO,EAAE;YAClB,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAnND,0BAmNC"}
|
|
@@ -133,6 +133,42 @@ export class Actions extends APIResource {
|
|
|
133
133
|
quoteFreight(id, options) {
|
|
134
134
|
return this._client.post(path `/v1/sales/sales-orders/${id}/actions/quote-freight`, options);
|
|
135
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Previews the ship-by date a set of commitment inputs would produce, without
|
|
138
|
+
* creating or changing anything.
|
|
139
|
+
*
|
|
140
|
+
* Runs the same resolution an order runs when it is issued: a promised delivery
|
|
141
|
+
* date has the customer's receiving days, the carrier's transit, and the plant's
|
|
142
|
+
* shipping days worked back through it, while a lead time or a pinned ship date is
|
|
143
|
+
* snapped onto the next earlier day the plant ships. The returned steps are that
|
|
144
|
+
* derivation in order, so a caller can show why a date is what it is rather than
|
|
145
|
+
* restating the rules.
|
|
146
|
+
*
|
|
147
|
+
* At most one of `promised_at`, `lead_time_override_days`, and
|
|
148
|
+
* `ship_by_override_date` may be set; they are alternative answers to the same
|
|
149
|
+
* question.
|
|
150
|
+
*
|
|
151
|
+
* Advisory rather than binding. Carrier transit comes from a lane cache warmed in
|
|
152
|
+
* the background, so a lane nobody has shipped yet quotes against the service
|
|
153
|
+
* level's default or against no transit at all, and the date stamped at issue may
|
|
154
|
+
* differ once the lane has been rated.
|
|
155
|
+
*
|
|
156
|
+
* This endpoint requires the permission: `sales_orders:read`.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```ts
|
|
160
|
+
* const quoteSalesOrderCommitmentResponse =
|
|
161
|
+
* await client.sales.salesOrders.actions.quoteCommitment({
|
|
162
|
+
* buyer_account_id: 'ac_ykxoradjoeb3',
|
|
163
|
+
* promised_at: '2026-08-22T00:00:00Z',
|
|
164
|
+
* service_level_id: 'crop_4ilk9p6gccrx',
|
|
165
|
+
* ship_to_address_id: 'ad_npqa5y43q26z',
|
|
166
|
+
* });
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
quoteCommitment(body = {}, options) {
|
|
170
|
+
return this._client.post('/v1/sales/sales-orders/actions/quote-commitment', { body, ...options });
|
|
171
|
+
}
|
|
136
172
|
/**
|
|
137
173
|
* Creates a production run from a sales order.
|
|
138
174
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../../src/resources/sales/sales-orders/actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,IAA4B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CACH,EAAU,EACV,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,EAAE,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,EAAU,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,K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;;;;;;;;;;OAoBG;IACH,mBAAmB,CACjB,EAAU,EACV,SAA6D,EAAE,EAC/D,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,0BAA0B,EAAE,gCAAgC,EAAE;YACzF,KAAK,EAAE,EAAE,OAAO,EAAE;YAClB,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Actions, type BulkDeleteSalesOrdersRequest, type IssueSalesOrderRequest, type ProductionRun, type QuoteSalesOrderFreightResponse, type ActionBulkDeleteResponse, type ActionBulkDeleteParams, type ActionIssueParams, type ActionCreateProductionRunParams, } from "./actions.mjs";
|
|
1
|
+
export { Actions, type BulkDeleteSalesOrdersRequest, type CommitmentQuoteStep, type IssueSalesOrderRequest, type ProductionRun, type QuoteSalesOrderCommitmentRequest, type QuoteSalesOrderCommitmentResponse, type QuoteSalesOrderFreightResponse, type ActionBulkDeleteResponse, type ActionBulkDeleteParams, type ActionIssueParams, type ActionQuoteCommitmentParams, type ActionCreateProductionRunParams, } from "./actions.mjs";
|
|
2
2
|
export { Lines, type CreateSalesOrderLineRequest, type UpdateSalesOrderLineRequest, type LineDeleteResponse, type LineCreateParams, type LineUpdateParams, type LineDeleteParams, } from "./lines/index.mjs";
|
|
3
3
|
export { SalesOrders, type CheckoutSalesOrderRequest, type CheckoutSalesOrderResponse, type ComputedRate, type CreateSalesOrderLineInput, type CreateSalesOrderRequest, type CreatedBy, type Freight, type ListQuotedSalesOrderLine, type ListRecord, type ListSalesOrder, type ListSalesOrderLine, type ListSalesOrderStatus, type OrderContact, type QuoteSalesOrderLineInput, type QuoteSalesOrderPricesRequest, type QuoteSalesOrderPricesResponse, type QuotedSalesOrderLine, type Record, type SalesOrder, type SalesOrderEmailContactInput, type SalesOrderLine, type SalesOrderRelated, type SalesOrderStageTotal, type SalesOrderStatus, type SalesOrderTotals, type UpdateSalesOrderRequest, type SalesOrderDeleteResponse, type SalesOrderRetrieveStatusesParams, type SalesOrderListParams, type SalesOrderRetrieveParams, type SalesOrderCreateParams, type SalesOrderUpdateParams, type SalesOrderCheckoutParams, type SalesOrderPriceQuoteParams, } from "./sales-orders.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/sales/sales-orders/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,GACrC;OACM,EACL,KAAK,EACL,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EACL,WAAW,EACX,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,GAChC"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/sales/sales-orders/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,GACrC;OACM,EACL,KAAK,EACL,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EACL,WAAW,EACX,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,GAChC"}
|