@augno/sdk 0.18.0 → 0.18.1
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 +4 -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 +1 -0
- package/resources/operations/index.d.mts.map +1 -1
- package/resources/operations/index.d.ts +1 -0
- 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/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 +4 -0
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +4 -0
- 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 +30 -0
- 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 +30 -0
- 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/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/sales/account-prices/account-prices.d.mts +8 -0
- package/resources/sales/account-prices/account-prices.d.mts.map +1 -1
- package/resources/sales/account-prices/account-prices.d.ts +8 -0
- 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 +30 -1
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +30 -1
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs.map +1 -1
- package/resources/sales/sales-orders/actions.d.mts +205 -1
- package/resources/sales/sales-orders/actions.d.mts.map +1 -1
- package/resources/sales/sales-orders/actions.d.ts +205 -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/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 +12 -0
- package/src/resources/core/core.ts +17 -0
- package/src/resources/core/index.ts +6 -0
- package/src/resources/core/jobs.ts +3 -0
- package/src/resources/messaging/conversations/conversations.ts +9 -0
- package/src/resources/messaging/conversations/links.ts +6 -0
- package/src/resources/messaging/conversations/messages.ts +6 -0
- package/src/resources/messaging/notifications/notifications.ts +6 -0
- package/src/resources/operations/index.ts +11 -0
- 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 +28 -0
- package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +36 -0
- package/src/resources/operations/production-schedules/lines.ts +10 -6
- package/src/resources/sales/account-prices/account-prices.ts +9 -0
- package/src/resources/sales/addresses.ts +24 -0
- package/src/resources/sales/customers/customers.ts +34 -1
- package/src/resources/sales/sales-orders/actions.ts +252 -0
- package/src/resources/sales/sales-orders/index.ts +4 -0
- package/src/resources/sales/sales-orders/sales-orders.ts +130 -7
- 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
|
@@ -360,6 +360,15 @@ export interface CreateCustomerRequest {
|
|
|
360
360
|
*/
|
|
361
361
|
phone?: string;
|
|
362
362
|
|
|
363
|
+
/**
|
|
364
|
+
* The operating calendar naming the days this customer's dock accepts freight.
|
|
365
|
+
*
|
|
366
|
+
* Sits in the same chain as lead_time_days: leaving it unset falls through to the
|
|
367
|
+
* customer's group, then the account default, then Monday to Friday. A promised
|
|
368
|
+
* delivery date is never worked back from a day nobody is there to receive on.
|
|
369
|
+
*/
|
|
370
|
+
receive_calendar_id?: string;
|
|
371
|
+
|
|
363
372
|
/**
|
|
364
373
|
* The customer's account standing.
|
|
365
374
|
*
|
|
@@ -414,7 +423,7 @@ export interface CustomerLeadTime {
|
|
|
414
423
|
* on one specific order, which is a fact about that order rather than about the
|
|
415
424
|
* customer.
|
|
416
425
|
*/
|
|
417
|
-
source: 'customer' | 'account_group' | 'account' | 'manual';
|
|
426
|
+
source: 'customer' | 'account_group' | 'account' | 'manual' | 'order_lead_time' | 'order_ship_by';
|
|
418
427
|
}
|
|
419
428
|
|
|
420
429
|
/**
|
|
@@ -562,6 +571,13 @@ export interface UpdateCustomerRequest {
|
|
|
562
571
|
*/
|
|
563
572
|
phone?: string | null;
|
|
564
573
|
|
|
574
|
+
/**
|
|
575
|
+
* The operating calendar naming the days this customer's dock accepts freight.
|
|
576
|
+
* Clearing it returns the customer to their group's calendar, then the account
|
|
577
|
+
* default.
|
|
578
|
+
*/
|
|
579
|
+
receive_calendar_id?: string | null;
|
|
580
|
+
|
|
565
581
|
/**
|
|
566
582
|
* ID of an existing address to use as the default shipping address.
|
|
567
583
|
*
|
|
@@ -939,6 +955,16 @@ export interface CustomerCreateParams {
|
|
|
939
955
|
*/
|
|
940
956
|
phone?: string;
|
|
941
957
|
|
|
958
|
+
/**
|
|
959
|
+
* Body param: The operating calendar naming the days this customer's dock accepts
|
|
960
|
+
* freight.
|
|
961
|
+
*
|
|
962
|
+
* Sits in the same chain as lead_time_days: leaving it unset falls through to the
|
|
963
|
+
* customer's group, then the account default, then Monday to Friday. A promised
|
|
964
|
+
* delivery date is never worked back from a day nobody is there to receive on.
|
|
965
|
+
*/
|
|
966
|
+
receive_calendar_id?: string;
|
|
967
|
+
|
|
942
968
|
/**
|
|
943
969
|
* Body param: The customer's account standing.
|
|
944
970
|
*
|
|
@@ -1128,6 +1154,13 @@ export interface CustomerUpdateParams {
|
|
|
1128
1154
|
*/
|
|
1129
1155
|
phone?: string | null;
|
|
1130
1156
|
|
|
1157
|
+
/**
|
|
1158
|
+
* Body param: The operating calendar naming the days this customer's dock accepts
|
|
1159
|
+
* freight. Clearing it returns the customer to their group's calendar, then the
|
|
1160
|
+
* account default.
|
|
1161
|
+
*/
|
|
1162
|
+
receive_calendar_id?: string | null;
|
|
1163
|
+
|
|
1131
1164
|
/**
|
|
1132
1165
|
* Body param: ID of an existing address to use as the default shipping address.
|
|
1133
1166
|
*
|
|
@@ -149,6 +149,46 @@ export class Actions extends APIResource {
|
|
|
149
149
|
return this._client.post(path`/v1/sales/sales-orders/${id}/actions/quote-freight`, options);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
/**
|
|
153
|
+
* Previews the ship-by date a set of commitment inputs would produce, without
|
|
154
|
+
* creating or changing anything.
|
|
155
|
+
*
|
|
156
|
+
* Runs the same resolution an order runs when it is issued: a promised delivery
|
|
157
|
+
* date has the customer's receiving days, the carrier's transit, and the plant's
|
|
158
|
+
* shipping days worked back through it, while a lead time or a pinned ship date is
|
|
159
|
+
* snapped onto the next earlier day the plant ships. The returned steps are that
|
|
160
|
+
* derivation in order, so a caller can show why a date is what it is rather than
|
|
161
|
+
* restating the rules.
|
|
162
|
+
*
|
|
163
|
+
* At most one of `promised_at`, `lead_time_override_days`, and
|
|
164
|
+
* `ship_by_override_date` may be set; they are alternative answers to the same
|
|
165
|
+
* question.
|
|
166
|
+
*
|
|
167
|
+
* Advisory rather than binding. Carrier transit comes from a lane cache warmed in
|
|
168
|
+
* the background, so a lane nobody has shipped yet quotes against the service
|
|
169
|
+
* level's default or against no transit at all, and the date stamped at issue may
|
|
170
|
+
* differ once the lane has been rated.
|
|
171
|
+
*
|
|
172
|
+
* This endpoint requires the permission: `sales_orders:read`.
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* ```ts
|
|
176
|
+
* const quoteSalesOrderCommitmentResponse =
|
|
177
|
+
* await client.sales.salesOrders.actions.quoteCommitment({
|
|
178
|
+
* buyer_account_id: 'ac_ykxoradjoeb3',
|
|
179
|
+
* promised_at: '2026-08-22T00:00:00Z',
|
|
180
|
+
* service_level_id: 'crop_4ilk9p6gccrx',
|
|
181
|
+
* ship_to_address_id: 'ad_npqa5y43q26z',
|
|
182
|
+
* });
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
quoteCommitment(
|
|
186
|
+
body: ActionQuoteCommitmentParams | null | undefined = {},
|
|
187
|
+
options?: RequestOptions,
|
|
188
|
+
): APIPromise<QuoteSalesOrderCommitmentResponse> {
|
|
189
|
+
return this._client.post('/v1/sales/sales-orders/actions/quote-commitment', { body, ...options });
|
|
190
|
+
}
|
|
191
|
+
|
|
152
192
|
/**
|
|
153
193
|
* Creates a production run from a sales order.
|
|
154
194
|
*
|
|
@@ -193,6 +233,38 @@ export interface BulkDeleteSalesOrdersRequest {
|
|
|
193
233
|
sales_order_ids: Array<string>;
|
|
194
234
|
}
|
|
195
235
|
|
|
236
|
+
/**
|
|
237
|
+
* CommitmentQuoteStep is one rule's contribution to a previewed ship-by date.
|
|
238
|
+
*
|
|
239
|
+
* Returned as an ordered list so a caller can show why a date is what it is
|
|
240
|
+
* without reimplementing the arithmetic, and so the explanation cannot drift from
|
|
241
|
+
* the calculation that produced it.
|
|
242
|
+
*/
|
|
243
|
+
export interface CommitmentQuoteStep {
|
|
244
|
+
/**
|
|
245
|
+
* Which rule applied.
|
|
246
|
+
*/
|
|
247
|
+
code: 'basis' | 'receive_calendar' | 'carrier_transit' | 'ship_calendar' | 'pickup_cutoff';
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Where the running date stood after this rule.
|
|
251
|
+
*/
|
|
252
|
+
date: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* How far this rule pulled the date back. Zero means the rule applied and changed
|
|
256
|
+
* nothing, which is worth showing: it says the date was already on an open day.
|
|
257
|
+
*/
|
|
258
|
+
days_moved: number;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* The rule's own parameter — where a transit estimate came from, or the cutoff
|
|
262
|
+
* time applied. Null for a rule that takes none, rather than an empty string:
|
|
263
|
+
* snapping onto an open day has no parameter to report.
|
|
264
|
+
*/
|
|
265
|
+
detail: string | null;
|
|
266
|
+
}
|
|
267
|
+
|
|
196
268
|
/**
|
|
197
269
|
* Request to issue a sales order.
|
|
198
270
|
*/
|
|
@@ -272,6 +344,126 @@ export interface ProductionRun {
|
|
|
272
344
|
updated_at: string;
|
|
273
345
|
}
|
|
274
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Request to preview the ship-by date a set of commitment inputs would produce.
|
|
349
|
+
*/
|
|
350
|
+
export interface QuoteSalesOrderCommitmentRequest {
|
|
351
|
+
/**
|
|
352
|
+
* The buying account, used to resolve its lead time and receiving days.
|
|
353
|
+
*/
|
|
354
|
+
buyer_account_id?: string;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Carrier for the shipment.
|
|
358
|
+
*/
|
|
359
|
+
carrier_id?: string;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* When the order would be issued. Defaults to now, since a lead time is measured
|
|
363
|
+
* from issue and an order built today but issued next week commits to next week's
|
|
364
|
+
* date.
|
|
365
|
+
*/
|
|
366
|
+
issued_at?: string;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Days between issue and the order being due to ship, in place of the customer's
|
|
370
|
+
* standing lead time.
|
|
371
|
+
*/
|
|
372
|
+
lead_time_override_days?: number;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Date delivery would be promised to the customer.
|
|
376
|
+
*/
|
|
377
|
+
promised_at?: string;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* An existing order to preview against. Its customer, ship-to address, carrier,
|
|
381
|
+
* and service level are used, and the commitment fields below replace whatever it
|
|
382
|
+
* currently carries.
|
|
383
|
+
*
|
|
384
|
+
* Omit it to preview an order that has not been created yet, supplying the parts
|
|
385
|
+
* directly.
|
|
386
|
+
*/
|
|
387
|
+
sales_order_id?: string;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Service level for the shipment, which the lane's transit estimate is keyed on.
|
|
391
|
+
*/
|
|
392
|
+
service_level_id?: string;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* The exact date the order would be due to ship.
|
|
396
|
+
*/
|
|
397
|
+
ship_by_override_date?: string;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* The ship-to address, which decides the destination timezone and the lane transit
|
|
401
|
+
* is quoted on.
|
|
402
|
+
*/
|
|
403
|
+
ship_to_address_id?: string;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* The ship-by date a set of commitment inputs would produce, and how it was
|
|
408
|
+
* reached.
|
|
409
|
+
*/
|
|
410
|
+
export interface QuoteSalesOrderCommitmentResponse {
|
|
411
|
+
/**
|
|
412
|
+
* Days the receiving and shipping calendars pulled the date back, beyond what
|
|
413
|
+
* transit accounted for.
|
|
414
|
+
*/
|
|
415
|
+
calendar_adjustment_days: number;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Calendar days between issue and the ship-by date.
|
|
419
|
+
*/
|
|
420
|
+
lead_time_days: number | null;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Which rule produced the date.
|
|
424
|
+
*/
|
|
425
|
+
lead_time_source:
|
|
426
|
+
| 'customer'
|
|
427
|
+
| 'account_group'
|
|
428
|
+
| 'account'
|
|
429
|
+
| 'manual'
|
|
430
|
+
| 'order_lead_time'
|
|
431
|
+
| 'order_ship_by'
|
|
432
|
+
| null;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Resource type identifier.
|
|
436
|
+
*/
|
|
437
|
+
object: 'sales_order_commitment_quote';
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* That date at the plant's pickup cutoff — the moment freight would have to be
|
|
441
|
+
* tendered by. Null when the shipping calendar carries no cutoff.
|
|
442
|
+
*/
|
|
443
|
+
ship_by_cutoff_at: string | null;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* The date the order would be due to ship, or null when no rule resolves one.
|
|
447
|
+
*/
|
|
448
|
+
ship_by_date: string | null;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* The derivation in order, one entry per rule that moved the date.
|
|
452
|
+
*/
|
|
453
|
+
steps: Array<CommitmentQuoteStep>;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Days the carrier needs to cover the lane. Null when the lane has never been
|
|
457
|
+
* quoted and the service level carries no default.
|
|
458
|
+
*/
|
|
459
|
+
transit_days: number | null;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Where the transit estimate came from.
|
|
463
|
+
*/
|
|
464
|
+
transit_source: 'carrier_lane' | 'service_level' | null;
|
|
465
|
+
}
|
|
466
|
+
|
|
275
467
|
/**
|
|
276
468
|
* The freshly estimated freight charge for a sales order.
|
|
277
469
|
*/
|
|
@@ -313,6 +505,62 @@ export interface ActionIssueParams {
|
|
|
313
505
|
notify_customer: boolean;
|
|
314
506
|
}
|
|
315
507
|
|
|
508
|
+
export interface ActionQuoteCommitmentParams {
|
|
509
|
+
/**
|
|
510
|
+
* The buying account, used to resolve its lead time and receiving days.
|
|
511
|
+
*/
|
|
512
|
+
buyer_account_id?: string;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Carrier for the shipment.
|
|
516
|
+
*/
|
|
517
|
+
carrier_id?: string;
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* When the order would be issued. Defaults to now, since a lead time is measured
|
|
521
|
+
* from issue and an order built today but issued next week commits to next week's
|
|
522
|
+
* date.
|
|
523
|
+
*/
|
|
524
|
+
issued_at?: string;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Days between issue and the order being due to ship, in place of the customer's
|
|
528
|
+
* standing lead time.
|
|
529
|
+
*/
|
|
530
|
+
lead_time_override_days?: number;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Date delivery would be promised to the customer.
|
|
534
|
+
*/
|
|
535
|
+
promised_at?: string;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* An existing order to preview against. Its customer, ship-to address, carrier,
|
|
539
|
+
* and service level are used, and the commitment fields below replace whatever it
|
|
540
|
+
* currently carries.
|
|
541
|
+
*
|
|
542
|
+
* Omit it to preview an order that has not been created yet, supplying the parts
|
|
543
|
+
* directly.
|
|
544
|
+
*/
|
|
545
|
+
sales_order_id?: string;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Service level for the shipment, which the lane's transit estimate is keyed on.
|
|
549
|
+
*/
|
|
550
|
+
service_level_id?: string;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* The exact date the order would be due to ship.
|
|
554
|
+
*/
|
|
555
|
+
ship_by_override_date?: string;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* The ship-to address, which decides the destination timezone and the lane transit
|
|
559
|
+
* is quoted on.
|
|
560
|
+
*/
|
|
561
|
+
ship_to_address_id?: string;
|
|
562
|
+
}
|
|
563
|
+
|
|
316
564
|
export interface ActionCreateProductionRunParams {
|
|
317
565
|
/**
|
|
318
566
|
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
@@ -324,12 +572,16 @@ export interface ActionCreateProductionRunParams {
|
|
|
324
572
|
export declare namespace Actions {
|
|
325
573
|
export {
|
|
326
574
|
type BulkDeleteSalesOrdersRequest as BulkDeleteSalesOrdersRequest,
|
|
575
|
+
type CommitmentQuoteStep as CommitmentQuoteStep,
|
|
327
576
|
type IssueSalesOrderRequest as IssueSalesOrderRequest,
|
|
328
577
|
type ProductionRun as ProductionRun,
|
|
578
|
+
type QuoteSalesOrderCommitmentRequest as QuoteSalesOrderCommitmentRequest,
|
|
579
|
+
type QuoteSalesOrderCommitmentResponse as QuoteSalesOrderCommitmentResponse,
|
|
329
580
|
type QuoteSalesOrderFreightResponse as QuoteSalesOrderFreightResponse,
|
|
330
581
|
type ActionBulkDeleteResponse as ActionBulkDeleteResponse,
|
|
331
582
|
type ActionBulkDeleteParams as ActionBulkDeleteParams,
|
|
332
583
|
type ActionIssueParams as ActionIssueParams,
|
|
584
|
+
type ActionQuoteCommitmentParams as ActionQuoteCommitmentParams,
|
|
333
585
|
type ActionCreateProductionRunParams as ActionCreateProductionRunParams,
|
|
334
586
|
};
|
|
335
587
|
}
|
|
@@ -3,12 +3,16 @@
|
|
|
3
3
|
export {
|
|
4
4
|
Actions,
|
|
5
5
|
type BulkDeleteSalesOrdersRequest,
|
|
6
|
+
type CommitmentQuoteStep,
|
|
6
7
|
type IssueSalesOrderRequest,
|
|
7
8
|
type ProductionRun,
|
|
9
|
+
type QuoteSalesOrderCommitmentRequest,
|
|
10
|
+
type QuoteSalesOrderCommitmentResponse,
|
|
8
11
|
type QuoteSalesOrderFreightResponse,
|
|
9
12
|
type ActionBulkDeleteResponse,
|
|
10
13
|
type ActionBulkDeleteParams,
|
|
11
14
|
type ActionIssueParams,
|
|
15
|
+
type ActionQuoteCommitmentParams,
|
|
12
16
|
type ActionCreateProductionRunParams,
|
|
13
17
|
} from './actions';
|
|
14
18
|
export {
|
|
@@ -16,10 +16,14 @@ import {
|
|
|
16
16
|
ActionBulkDeleteResponse,
|
|
17
17
|
ActionCreateProductionRunParams,
|
|
18
18
|
ActionIssueParams,
|
|
19
|
+
ActionQuoteCommitmentParams,
|
|
19
20
|
Actions,
|
|
20
21
|
BulkDeleteSalesOrdersRequest,
|
|
22
|
+
CommitmentQuoteStep,
|
|
21
23
|
IssueSalesOrderRequest,
|
|
22
24
|
ProductionRun,
|
|
25
|
+
QuoteSalesOrderCommitmentRequest,
|
|
26
|
+
QuoteSalesOrderCommitmentResponse,
|
|
23
27
|
QuoteSalesOrderFreightResponse,
|
|
24
28
|
} from './actions';
|
|
25
29
|
import * as LinesAPI from './lines/lines';
|
|
@@ -456,6 +460,15 @@ export interface CreateSalesOrderRequest {
|
|
|
456
460
|
*/
|
|
457
461
|
invoice_email_contacts?: Array<SalesOrderEmailContactInput>;
|
|
458
462
|
|
|
463
|
+
/**
|
|
464
|
+
* Days between this order being issued and it being due to ship, replacing the
|
|
465
|
+
* customer's standing lead time for this order alone.
|
|
466
|
+
*
|
|
467
|
+
* Already a ship lead time, so no carrier transit is subtracted from it. Mutually
|
|
468
|
+
* exclusive with promised_at and ship_by_override_date.
|
|
469
|
+
*/
|
|
470
|
+
lead_time_override_days?: number;
|
|
471
|
+
|
|
459
472
|
/**
|
|
460
473
|
* Free-form note about the order.
|
|
461
474
|
*/
|
|
@@ -479,6 +492,11 @@ export interface CreateSalesOrderRequest {
|
|
|
479
492
|
|
|
480
493
|
/**
|
|
481
494
|
* Date delivery is promised to the customer.
|
|
495
|
+
*
|
|
496
|
+
* The order's ship-by date is worked back from this: the goods have to reach the
|
|
497
|
+
* customer on a day they receive, so transit and both operating calendars are
|
|
498
|
+
* subtracted from it. Mutually exclusive with lead_time_override_days and
|
|
499
|
+
* ship_by_override_date.
|
|
482
500
|
*/
|
|
483
501
|
promised_at?: string;
|
|
484
502
|
|
|
@@ -501,6 +519,16 @@ export interface CreateSalesOrderRequest {
|
|
|
501
519
|
*/
|
|
502
520
|
service_level_id?: string;
|
|
503
521
|
|
|
522
|
+
/**
|
|
523
|
+
* The exact date the order is due to ship, bypassing transit and the customer's
|
|
524
|
+
* receiving days.
|
|
525
|
+
*
|
|
526
|
+
* Still moved back to the nearest earlier day the plant ships on, since a date
|
|
527
|
+
* nobody can ship on is not a deadline. Mutually exclusive with promised_at and
|
|
528
|
+
* lead_time_override_days.
|
|
529
|
+
*/
|
|
530
|
+
ship_by_override_date?: string;
|
|
531
|
+
|
|
504
532
|
/**
|
|
505
533
|
* ID of the shipping terms for the order.
|
|
506
534
|
*
|
|
@@ -919,6 +947,15 @@ export interface SalesOrder {
|
|
|
919
947
|
*/
|
|
920
948
|
bill_to_address: APIKeysAPI.Address | null;
|
|
921
949
|
|
|
950
|
+
/**
|
|
951
|
+
* Days the customer's receiving calendar and the plant's shipping calendar pulled
|
|
952
|
+
* the ship-by date back, beyond what carrier transit accounted for.
|
|
953
|
+
*
|
|
954
|
+
* Zero means every date along the way already fell on an open day. This is what
|
|
955
|
+
* explains a ship-by date that is earlier than transit alone would suggest.
|
|
956
|
+
*/
|
|
957
|
+
calendar_adjustment_days: number | null;
|
|
958
|
+
|
|
922
959
|
/**
|
|
923
960
|
* When the order was fulfilled and closed.
|
|
924
961
|
*/
|
|
@@ -983,10 +1020,23 @@ export interface SalesOrder {
|
|
|
983
1020
|
*/
|
|
984
1021
|
lead_time_days: number | null;
|
|
985
1022
|
|
|
1023
|
+
/**
|
|
1024
|
+
* Days between issue and the ship-by date, set on this order alone in place of the
|
|
1025
|
+
* customer's standing lead time.
|
|
1026
|
+
*/
|
|
1027
|
+
lead_time_override_days: number | null;
|
|
1028
|
+
|
|
986
1029
|
/**
|
|
987
1030
|
* Which rule produced the ship-by date.
|
|
988
1031
|
*/
|
|
989
|
-
lead_time_source:
|
|
1032
|
+
lead_time_source:
|
|
1033
|
+
| 'customer'
|
|
1034
|
+
| 'account_group'
|
|
1035
|
+
| 'account'
|
|
1036
|
+
| 'manual'
|
|
1037
|
+
| 'order_lead_time'
|
|
1038
|
+
| 'order_ship_by'
|
|
1039
|
+
| null;
|
|
990
1040
|
|
|
991
1041
|
/**
|
|
992
1042
|
* Number of lines on this order.
|
|
@@ -1066,20 +1116,37 @@ export interface SalesOrder {
|
|
|
1066
1116
|
*/
|
|
1067
1117
|
sales_rep: RequestLogsAPI.Actor | null;
|
|
1068
1118
|
|
|
1119
|
+
/**
|
|
1120
|
+
* The ship-by date at the plant's pickup cutoff — the moment freight has to be
|
|
1121
|
+
* tendered by, not just the day.
|
|
1122
|
+
*
|
|
1123
|
+
* Only set when the account's shipping calendar carries a cutoff time.
|
|
1124
|
+
*/
|
|
1125
|
+
ship_by_cutoff_at: string | null;
|
|
1126
|
+
|
|
1069
1127
|
/**
|
|
1070
1128
|
* Date this order is contractually due to ship.
|
|
1071
1129
|
*
|
|
1072
1130
|
* Stamped when the order is issued. With a promised delivery date, this is that
|
|
1073
|
-
* date less the carrier's transit for the order's lane
|
|
1074
|
-
* the day the order has to leave to arrive when
|
|
1075
|
-
*
|
|
1131
|
+
* date less the carrier's transit for the order's lane and less any day the
|
|
1132
|
+
* customer cannot receive on — the day the order has to leave to arrive when
|
|
1133
|
+
* promised. Otherwise it comes from a lead time, whether this order's own or the
|
|
1134
|
+
* one on the customer, its account group, or the account.
|
|
1076
1135
|
*
|
|
1077
|
-
*
|
|
1078
|
-
*
|
|
1079
|
-
*
|
|
1136
|
+
* Always a day the plant actually ships on, whichever rule produced it.
|
|
1137
|
+
*
|
|
1138
|
+
* It is not recomputed afterwards, so neither renegotiating a customer's lead
|
|
1139
|
+
* time, nor a later carrier estimate, nor a holiday added to a calendar moves
|
|
1140
|
+
* commitments already made. Cleared if the order is unissued.
|
|
1080
1141
|
*/
|
|
1081
1142
|
ship_by_date: string | null;
|
|
1082
1143
|
|
|
1144
|
+
/**
|
|
1145
|
+
* The ship date pinned on this order, bypassing transit and the customer's
|
|
1146
|
+
* receiving days.
|
|
1147
|
+
*/
|
|
1148
|
+
ship_by_override_date: string | null;
|
|
1149
|
+
|
|
1083
1150
|
/**
|
|
1084
1151
|
* A saved address that can be used for billing and shipping on sales orders,
|
|
1085
1152
|
* invoices, and shipments.
|
|
@@ -1469,6 +1536,13 @@ export interface UpdateSalesOrderRequest {
|
|
|
1469
1536
|
*/
|
|
1470
1537
|
invoice_email_contacts?: Array<SalesOrderEmailContactInput>;
|
|
1471
1538
|
|
|
1539
|
+
/**
|
|
1540
|
+
* Days between this order being issued and it being due to ship, replacing the
|
|
1541
|
+
* customer's standing lead time for this order alone. Mutually exclusive with
|
|
1542
|
+
* promised_at and ship_by_override_date; clear one to switch to another.
|
|
1543
|
+
*/
|
|
1544
|
+
lead_time_override_days?: number | null;
|
|
1545
|
+
|
|
1472
1546
|
/**
|
|
1473
1547
|
* Free-form note about the order.
|
|
1474
1548
|
*/
|
|
@@ -1507,6 +1581,12 @@ export interface UpdateSalesOrderRequest {
|
|
|
1507
1581
|
*/
|
|
1508
1582
|
service_level_id?: string | null;
|
|
1509
1583
|
|
|
1584
|
+
/**
|
|
1585
|
+
* The exact date the order is due to ship, bypassing transit and the customer's
|
|
1586
|
+
* receiving days. Mutually exclusive with promised_at and lead_time_override_days.
|
|
1587
|
+
*/
|
|
1588
|
+
ship_by_override_date?: string | null;
|
|
1589
|
+
|
|
1510
1590
|
/**
|
|
1511
1591
|
* Shipping address ID.
|
|
1512
1592
|
*
|
|
@@ -1840,6 +1920,15 @@ export interface SalesOrderCreateParams {
|
|
|
1840
1920
|
*/
|
|
1841
1921
|
invoice_email_contacts?: Array<SalesOrderEmailContactInput>;
|
|
1842
1922
|
|
|
1923
|
+
/**
|
|
1924
|
+
* Body param: Days between this order being issued and it being due to ship,
|
|
1925
|
+
* replacing the customer's standing lead time for this order alone.
|
|
1926
|
+
*
|
|
1927
|
+
* Already a ship lead time, so no carrier transit is subtracted from it. Mutually
|
|
1928
|
+
* exclusive with promised_at and ship_by_override_date.
|
|
1929
|
+
*/
|
|
1930
|
+
lead_time_override_days?: number;
|
|
1931
|
+
|
|
1843
1932
|
/**
|
|
1844
1933
|
* Body param: Free-form note about the order.
|
|
1845
1934
|
*/
|
|
@@ -1864,6 +1953,11 @@ export interface SalesOrderCreateParams {
|
|
|
1864
1953
|
|
|
1865
1954
|
/**
|
|
1866
1955
|
* Body param: Date delivery is promised to the customer.
|
|
1956
|
+
*
|
|
1957
|
+
* The order's ship-by date is worked back from this: the goods have to reach the
|
|
1958
|
+
* customer on a day they receive, so transit and both operating calendars are
|
|
1959
|
+
* subtracted from it. Mutually exclusive with lead_time_override_days and
|
|
1960
|
+
* ship_by_override_date.
|
|
1867
1961
|
*/
|
|
1868
1962
|
promised_at?: string;
|
|
1869
1963
|
|
|
@@ -1886,6 +1980,16 @@ export interface SalesOrderCreateParams {
|
|
|
1886
1980
|
*/
|
|
1887
1981
|
service_level_id?: string;
|
|
1888
1982
|
|
|
1983
|
+
/**
|
|
1984
|
+
* Body param: The exact date the order is due to ship, bypassing transit and the
|
|
1985
|
+
* customer's receiving days.
|
|
1986
|
+
*
|
|
1987
|
+
* Still moved back to the nearest earlier day the plant ships on, since a date
|
|
1988
|
+
* nobody can ship on is not a deadline. Mutually exclusive with promised_at and
|
|
1989
|
+
* lead_time_override_days.
|
|
1990
|
+
*/
|
|
1991
|
+
ship_by_override_date?: string;
|
|
1992
|
+
|
|
1889
1993
|
/**
|
|
1890
1994
|
* Body param: ID of the shipping terms for the order.
|
|
1891
1995
|
*
|
|
@@ -1993,6 +2097,14 @@ export interface SalesOrderUpdateParams {
|
|
|
1993
2097
|
*/
|
|
1994
2098
|
invoice_email_contacts?: Array<SalesOrderEmailContactInput>;
|
|
1995
2099
|
|
|
2100
|
+
/**
|
|
2101
|
+
* Body param: Days between this order being issued and it being due to ship,
|
|
2102
|
+
* replacing the customer's standing lead time for this order alone. Mutually
|
|
2103
|
+
* exclusive with promised_at and ship_by_override_date; clear one to switch to
|
|
2104
|
+
* another.
|
|
2105
|
+
*/
|
|
2106
|
+
lead_time_override_days?: number | null;
|
|
2107
|
+
|
|
1996
2108
|
/**
|
|
1997
2109
|
* Body param: Free-form note about the order.
|
|
1998
2110
|
*/
|
|
@@ -2031,6 +2143,13 @@ export interface SalesOrderUpdateParams {
|
|
|
2031
2143
|
*/
|
|
2032
2144
|
service_level_id?: string | null;
|
|
2033
2145
|
|
|
2146
|
+
/**
|
|
2147
|
+
* Body param: The exact date the order is due to ship, bypassing transit and the
|
|
2148
|
+
* customer's receiving days. Mutually exclusive with promised_at and
|
|
2149
|
+
* lead_time_override_days.
|
|
2150
|
+
*/
|
|
2151
|
+
ship_by_override_date?: string | null;
|
|
2152
|
+
|
|
2034
2153
|
/**
|
|
2035
2154
|
* Body param: Shipping address ID.
|
|
2036
2155
|
*
|
|
@@ -2108,12 +2227,16 @@ export declare namespace SalesOrders {
|
|
|
2108
2227
|
export {
|
|
2109
2228
|
Actions as Actions,
|
|
2110
2229
|
type BulkDeleteSalesOrdersRequest as BulkDeleteSalesOrdersRequest,
|
|
2230
|
+
type CommitmentQuoteStep as CommitmentQuoteStep,
|
|
2111
2231
|
type IssueSalesOrderRequest as IssueSalesOrderRequest,
|
|
2112
2232
|
type ProductionRun as ProductionRun,
|
|
2233
|
+
type QuoteSalesOrderCommitmentRequest as QuoteSalesOrderCommitmentRequest,
|
|
2234
|
+
type QuoteSalesOrderCommitmentResponse as QuoteSalesOrderCommitmentResponse,
|
|
2113
2235
|
type QuoteSalesOrderFreightResponse as QuoteSalesOrderFreightResponse,
|
|
2114
2236
|
type ActionBulkDeleteResponse as ActionBulkDeleteResponse,
|
|
2115
2237
|
type ActionBulkDeleteParams as ActionBulkDeleteParams,
|
|
2116
2238
|
type ActionIssueParams as ActionIssueParams,
|
|
2239
|
+
type ActionQuoteCommitmentParams as ActionQuoteCommitmentParams,
|
|
2117
2240
|
type ActionCreateProductionRunParams as ActionCreateProductionRunParams,
|
|
2118
2241
|
};
|
|
2119
2242
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.18.
|
|
1
|
+
export const VERSION = '0.18.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.18.
|
|
1
|
+
export declare const VERSION = "0.18.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.18.
|
|
1
|
+
export declare const VERSION = "0.18.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.18.
|
|
1
|
+
export const VERSION = '0.18.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|