@augno/sdk 0.17.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 +5 -4
- 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/finance/payment-terms.d.mts +5 -5
- package/resources/finance/payment-terms.d.mts.map +1 -1
- package/resources/finance/payment-terms.d.ts +5 -5
- package/resources/finance/payment-terms.d.ts.map +1 -1
- package/resources/finance/payment-terms.js.map +1 -1
- package/resources/finance/payment-terms.mjs.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/carriers/carriers.d.mts +5 -5
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +5 -5
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.d.mts +5 -5
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +5 -5
- package/resources/operations/carriers/service-levels.d.ts.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/operations/shipments/actions.d.mts +3 -3
- package/resources/operations/shipments/actions.d.mts.map +1 -1
- package/resources/operations/shipments/actions.d.ts +3 -3
- package/resources/operations/shipments/actions.d.ts.map +1 -1
- package/resources/operations/shipping-terms.d.mts +5 -5
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +5 -5
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/sales/account-prices/account-prices.d.mts +1007 -0
- package/resources/sales/account-prices/account-prices.d.mts.map +1 -0
- package/resources/sales/account-prices/account-prices.d.ts +1007 -0
- package/resources/sales/account-prices/account-prices.d.ts.map +1 -0
- package/resources/sales/account-prices/account-prices.js +143 -0
- package/resources/sales/account-prices/account-prices.js.map +1 -0
- package/resources/sales/account-prices/account-prices.mjs +138 -0
- package/resources/sales/account-prices/account-prices.mjs.map +1 -0
- package/resources/sales/account-prices/actions.d.mts +58 -0
- package/resources/sales/account-prices/actions.d.mts.map +1 -0
- package/resources/sales/account-prices/actions.d.ts +58 -0
- package/resources/sales/account-prices/actions.d.ts.map +1 -0
- package/resources/sales/account-prices/actions.js +44 -0
- package/resources/sales/account-prices/actions.js.map +1 -0
- package/resources/sales/account-prices/actions.mjs +40 -0
- package/resources/sales/account-prices/actions.mjs.map +1 -0
- package/resources/sales/account-prices/index.d.mts +3 -0
- package/resources/sales/account-prices/index.d.mts.map +1 -0
- package/resources/sales/account-prices/index.d.ts +3 -0
- package/resources/sales/account-prices/index.d.ts.map +1 -0
- package/resources/sales/account-prices/index.js +9 -0
- package/resources/sales/account-prices/index.js.map +1 -0
- package/resources/sales/account-prices/index.mjs +4 -0
- package/resources/sales/account-prices/index.mjs.map +1 -0
- package/resources/sales/account-prices.d.mts +2 -0
- package/resources/sales/account-prices.d.mts.map +1 -0
- package/resources/sales/account-prices.d.ts +2 -0
- package/resources/sales/account-prices.d.ts.map +1 -0
- package/resources/sales/account-prices.js +6 -0
- package/resources/sales/account-prices.js.map +1 -0
- package/resources/sales/account-prices.mjs +3 -0
- package/resources/sales/account-prices.mjs.map +1 -0
- 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/actions.d.mts +2 -2
- package/resources/sales/customers/actions.d.mts.map +1 -1
- package/resources/sales/customers/actions.d.ts +2 -2
- package/resources/sales/customers/actions.d.ts.map +1 -1
- package/resources/sales/customers/actions.js.map +1 -1
- package/resources/sales/customers/actions.mjs.map +1 -1
- package/resources/sales/customers/customers.d.mts +35 -564
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +35 -564
- 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/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 +6 -3
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +6 -3
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js +15 -9
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs +3 -0
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/order-discounts/actions.d.mts +85 -0
- package/resources/sales/order-discounts/actions.d.mts.map +1 -0
- package/resources/sales/order-discounts/actions.d.ts +85 -0
- package/resources/sales/order-discounts/actions.d.ts.map +1 -0
- package/resources/sales/order-discounts/actions.js +35 -0
- package/resources/sales/order-discounts/actions.js.map +1 -0
- package/resources/sales/order-discounts/actions.mjs +31 -0
- package/resources/sales/order-discounts/actions.mjs.map +1 -0
- package/resources/sales/order-discounts/index.d.mts +3 -0
- package/resources/sales/order-discounts/index.d.mts.map +1 -0
- package/resources/sales/order-discounts/index.d.ts +3 -0
- package/resources/sales/order-discounts/index.d.ts.map +1 -0
- package/resources/sales/order-discounts/index.js +9 -0
- package/resources/sales/order-discounts/index.js.map +1 -0
- package/resources/sales/order-discounts/index.mjs +4 -0
- package/resources/sales/order-discounts/index.mjs.map +1 -0
- package/resources/sales/order-discounts/order-discounts.d.mts +365 -0
- package/resources/sales/order-discounts/order-discounts.d.mts.map +1 -0
- package/resources/sales/order-discounts/order-discounts.d.ts +365 -0
- package/resources/sales/order-discounts/order-discounts.d.ts.map +1 -0
- package/resources/sales/order-discounts/order-discounts.js +125 -0
- package/resources/sales/order-discounts/order-discounts.js.map +1 -0
- package/resources/sales/order-discounts/order-discounts.mjs +120 -0
- package/resources/sales/order-discounts/order-discounts.mjs.map +1 -0
- package/resources/sales/order-discounts.d.mts +2 -0
- package/resources/sales/order-discounts.d.mts.map +1 -0
- package/resources/sales/order-discounts.d.ts +2 -0
- package/resources/sales/order-discounts.d.ts.map +1 -0
- package/resources/sales/order-discounts.js +6 -0
- package/resources/sales/order-discounts.js.map +1 -0
- package/resources/sales/order-discounts.mjs +3 -0
- package/resources/sales/order-discounts.mjs.map +1 -0
- package/resources/sales/priorities.d.mts +4 -44
- package/resources/sales/priorities.d.mts.map +1 -1
- package/resources/sales/priorities.d.ts +4 -44
- package/resources/sales/priorities.d.ts.map +1 -1
- package/resources/sales/priorities.js.map +1 -1
- package/resources/sales/priorities.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 +2 -2
- package/resources/sales/sales-orders/index.d.mts.map +1 -1
- package/resources/sales/sales-orders/index.d.ts +2 -2
- 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/lines/lines.d.mts +2 -2
- package/resources/sales/sales-orders/lines/lines.d.mts.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.ts +2 -2
- package/resources/sales/sales-orders/lines/lines.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.mts +115 -78
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +115 -78
- 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 +18 -6
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +18 -6
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js +12 -0
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs +12 -0
- package/resources/sales/sales.mjs.map +1 -1
- package/resources/sales/volume-discounts.d.mts +684 -0
- package/resources/sales/volume-discounts.d.mts.map +1 -0
- package/resources/sales/volume-discounts.d.ts +684 -0
- package/resources/sales/volume-discounts.d.ts.map +1 -0
- package/resources/sales/volume-discounts.js +152 -0
- package/resources/sales/volume-discounts.js.map +1 -0
- package/resources/sales/volume-discounts.mjs +148 -0
- package/resources/sales/volume-discounts.mjs.map +1 -0
- 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/finance/payment-terms.ts +8 -5
- 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/carriers/carriers.ts +5 -5
- package/src/resources/operations/carriers/service-levels.ts +5 -5
- 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/operations/shipments/actions.ts +3 -3
- package/src/resources/operations/shipping-terms.ts +8 -5
- package/src/resources/sales/account-prices/account-prices.ts +1200 -0
- package/src/resources/sales/account-prices/actions.ts +74 -0
- package/src/resources/sales/account-prices/index.ts +27 -0
- package/src/resources/sales/account-prices.ts +3 -0
- package/src/resources/sales/addresses.ts +24 -0
- package/src/resources/sales/customers/actions.ts +6 -2
- package/src/resources/sales/customers/customers.ts +37 -657
- package/src/resources/sales/customers/index.ts +0 -11
- package/src/resources/sales/index.ts +50 -13
- package/src/resources/sales/order-discounts/actions.ts +102 -0
- package/src/resources/sales/order-discounts/index.ts +13 -0
- package/src/resources/sales/order-discounts/order-discounts.ts +442 -0
- package/src/resources/sales/order-discounts.ts +3 -0
- package/src/resources/sales/priorities.ts +3 -51
- package/src/resources/sales/sales-orders/actions.ts +252 -0
- package/src/resources/sales/sales-orders/index.ts +4 -1
- package/src/resources/sales/sales-orders/lines/lines.ts +2 -2
- package/src/resources/sales/sales-orders/sales-orders.ts +139 -86
- package/src/resources/sales/sales.ts +113 -26
- package/src/resources/sales/volume-discounts.ts +813 -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
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as APIKeysAPI from '../../auth/api-keys/api-keys';
|
|
5
|
+
import * as ClosuresAPI from './closures';
|
|
6
|
+
import {
|
|
7
|
+
ClosureCreateParams,
|
|
8
|
+
ClosureDeleteParams,
|
|
9
|
+
ClosureDeleteResponse,
|
|
10
|
+
ClosureListParams,
|
|
11
|
+
Closures,
|
|
12
|
+
CreateOperatingCalendarClosureRequest,
|
|
13
|
+
ListOperatingCalendarClosure,
|
|
14
|
+
OperatingCalendarClosure,
|
|
15
|
+
} from './closures';
|
|
16
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
17
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
18
|
+
import { path } from '../../../internal/utils/path';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The days a plant tenders freight and a customer's dock accepts it, less the holidays and shutdowns either side is closed for. Every ship-by date is resolved against them, so an order is never committed to a day nobody can act on.
|
|
22
|
+
*/
|
|
23
|
+
export class OperatingCalendars extends APIResource {
|
|
24
|
+
closures: ClosuresAPI.Closures = new ClosuresAPI.Closures(this._client);
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Lists the operating calendars configured for the account.
|
|
28
|
+
*
|
|
29
|
+
* Both kinds are returned unless `kind` narrows it, ordered with each kind's
|
|
30
|
+
* default first.
|
|
31
|
+
*
|
|
32
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const listOperatingCalendar =
|
|
37
|
+
* await client.operations.operatingCalendars.list();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
list(
|
|
41
|
+
query: OperatingCalendarListParams | null | undefined = {},
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<ListOperatingCalendar> {
|
|
44
|
+
return this._client.get('/v1/operations/operating-calendars', { query, ...options });
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves one operating calendar by ID.
|
|
49
|
+
*
|
|
50
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const operatingCalendar =
|
|
55
|
+
* await client.operations.operatingCalendars.retrieve(
|
|
56
|
+
* 'occd_7f2m9qk4wzxb',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<OperatingCalendar> {
|
|
61
|
+
return this._client.get(path`/v1/operations/operating-calendars/${id}`, options);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Creates an operating calendar.
|
|
66
|
+
*
|
|
67
|
+
* The days govern every ship-by date resolved against this calendar: a plant that
|
|
68
|
+
* tenders freight Monday to Thursday never gets committed to a Friday shipment,
|
|
69
|
+
* and a customer's promised delivery date is worked back from a day they can
|
|
70
|
+
* actually receive on.
|
|
71
|
+
*
|
|
72
|
+
* A calendar starts with no closures. Add holidays and shutdowns to it separately.
|
|
73
|
+
*
|
|
74
|
+
* This endpoint requires the permission: `production_schedules:create`.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const operatingCalendar =
|
|
79
|
+
* await client.operations.operatingCalendars.create({
|
|
80
|
+
* code: 'default_ship',
|
|
81
|
+
* days_of_week: '1111000',
|
|
82
|
+
* kind: 'ship',
|
|
83
|
+
* name: 'Shipping days',
|
|
84
|
+
* cutoff_at: '15:00',
|
|
85
|
+
* is_default: true,
|
|
86
|
+
* timezone: 'America/Chicago',
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
create(body: OperatingCalendarCreateParams, options?: RequestOptions): APIPromise<OperatingCalendar> {
|
|
91
|
+
return this._client.post('/v1/operations/operating-calendars', { body, ...options });
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Updates an operating calendar.
|
|
96
|
+
*
|
|
97
|
+
* A calendar's kind cannot change: a shipping calendar that became a receiving one
|
|
98
|
+
* would silently drop the pickup cutoff every commitment resolved against it
|
|
99
|
+
* depends on. Create a second calendar instead.
|
|
100
|
+
*
|
|
101
|
+
* Changes apply to commitments made from now on. Orders already issued keep the
|
|
102
|
+
* dates they were stamped with, so adding a holiday never retroactively makes a
|
|
103
|
+
* past order late.
|
|
104
|
+
*
|
|
105
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* const operatingCalendar =
|
|
110
|
+
* await client.operations.operatingCalendars.update(
|
|
111
|
+
* 'occd_7f2m9qk4wzxb',
|
|
112
|
+
* );
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
update(
|
|
116
|
+
id: string,
|
|
117
|
+
body: OperatingCalendarUpdateParams | null | undefined = {},
|
|
118
|
+
options?: RequestOptions,
|
|
119
|
+
): APIPromise<OperatingCalendar> {
|
|
120
|
+
return this._client.patch(path`/v1/operations/operating-calendars/${id}`, { body, ...options });
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Deletes an operating calendar.
|
|
125
|
+
*
|
|
126
|
+
* Refused while any address, customer, customer group, or account setting still
|
|
127
|
+
* points at it. Deleting a calendar out from under its references would quietly
|
|
128
|
+
* return every affected order to a plain Monday-to-Friday week, which reads as the
|
|
129
|
+
* feature breaking rather than as a decision anybody made — so re-point them
|
|
130
|
+
* first.
|
|
131
|
+
*
|
|
132
|
+
* This endpoint requires the permission: `production_schedules:delete`.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* const operatingCalendar =
|
|
137
|
+
* await client.operations.operatingCalendars.delete(
|
|
138
|
+
* 'occd_7f2m9qk4wzxb',
|
|
139
|
+
* );
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
delete(id: string, options?: RequestOptions): APIPromise<OperatingCalendarDeleteResponse> {
|
|
143
|
+
return this._client.delete(path`/v1/operations/operating-calendars/${id}`, options);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Request to create an operating calendar.
|
|
149
|
+
*/
|
|
150
|
+
export interface CreateOperatingCalendarRequest {
|
|
151
|
+
/**
|
|
152
|
+
* Short stable identifier, unique per account.
|
|
153
|
+
*/
|
|
154
|
+
code: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Open weekdays as seven characters of '0' or '1', Monday first. "1111100" is
|
|
158
|
+
* Monday to Friday; "1111000" is a Monday-to-Thursday plant. At least one day must
|
|
159
|
+
* be open.
|
|
160
|
+
*/
|
|
161
|
+
days_of_week: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Which side of a shipment this calendar describes.
|
|
165
|
+
*/
|
|
166
|
+
kind: 'ship' | 'receive';
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Human-readable name.
|
|
170
|
+
*/
|
|
171
|
+
name: string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Local time freight has to be tendered by, as "15:00". Only a shipping calendar
|
|
175
|
+
* accepts one.
|
|
176
|
+
*/
|
|
177
|
+
cutoff_at?: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Make this the calendar used when nothing more specific is linked. Setting it
|
|
181
|
+
* demotes whichever calendar of the same kind held the role.
|
|
182
|
+
*/
|
|
183
|
+
is_default?: boolean;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* IANA zone the cutoff is read in, such as "America/Chicago". On a receiving
|
|
187
|
+
* calendar, leave it unset to take the zone from the ship-to address.
|
|
188
|
+
*/
|
|
189
|
+
timezone?: string;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* A single page of resources, together with the metadata needed to page through
|
|
194
|
+
* the rest of the result set.
|
|
195
|
+
*/
|
|
196
|
+
export interface ListOperatingCalendar {
|
|
197
|
+
/**
|
|
198
|
+
* Resources in this page.
|
|
199
|
+
*/
|
|
200
|
+
data: Array<OperatingCalendar>;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Resource type identifier.
|
|
204
|
+
*/
|
|
205
|
+
object: 'list';
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* PageInfo describes where the current page sits within a paginated result set and
|
|
209
|
+
* how to move to the adjacent pages.
|
|
210
|
+
*
|
|
211
|
+
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
212
|
+
* For a top-level list endpoint the URL repeats the original request's query
|
|
213
|
+
* string with only the cursor swapped, so following it preserves the same filters,
|
|
214
|
+
* search term, and page size.
|
|
215
|
+
*/
|
|
216
|
+
page_info: APIKeysAPI.PageInfo;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* OperatingCalendar is the set of days one party to a shipment operates.
|
|
221
|
+
*
|
|
222
|
+
* A `ship` calendar is the plant tendering freight to a carrier; a `receive`
|
|
223
|
+
* calendar is a customer's dock accepting it. Ship-by dates are resolved against
|
|
224
|
+
* both, so an order is never committed to a day nobody can act on.
|
|
225
|
+
*/
|
|
226
|
+
export interface OperatingCalendar {
|
|
227
|
+
/**
|
|
228
|
+
* Unique identifier.
|
|
229
|
+
*/
|
|
230
|
+
id: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Short stable identifier, unique per account.
|
|
234
|
+
*/
|
|
235
|
+
code: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Creation timestamp.
|
|
239
|
+
*/
|
|
240
|
+
created_at: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Local time freight has to be tendered by, as "15:00". Only a shipping calendar
|
|
244
|
+
* carries one.
|
|
245
|
+
*/
|
|
246
|
+
cutoff_at: string | null;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Open weekdays as seven characters of '0' or '1', Monday first. "1111100" is
|
|
250
|
+
* Monday to Friday; "1111000" is a Monday-to-Thursday plant.
|
|
251
|
+
*/
|
|
252
|
+
days_of_week: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Whether this is the calendar used when nothing more specific is linked. Exactly
|
|
256
|
+
* one per kind.
|
|
257
|
+
*/
|
|
258
|
+
is_default: boolean;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Which side of a shipment this calendar describes.
|
|
262
|
+
*/
|
|
263
|
+
kind: 'ship' | 'receive';
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Human-readable name.
|
|
267
|
+
*/
|
|
268
|
+
name: string;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Resource type identifier.
|
|
272
|
+
*/
|
|
273
|
+
object: 'operating_calendar';
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* IANA zone the cutoff is read in. Null on a receiving calendar means it is taken
|
|
277
|
+
* from the ship-to address.
|
|
278
|
+
*/
|
|
279
|
+
timezone: string | null;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Last updated timestamp.
|
|
283
|
+
*/
|
|
284
|
+
updated_at: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Request to update an operating calendar.
|
|
289
|
+
*/
|
|
290
|
+
export interface UpdateOperatingCalendarRequest {
|
|
291
|
+
/**
|
|
292
|
+
* Local time freight has to be tendered by. Clearing it leaves the ship-by date a
|
|
293
|
+
* day with no time of day attached.
|
|
294
|
+
*/
|
|
295
|
+
cutoff_at?: string | null;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Open weekdays as seven characters of '0' or '1', Monday first. At least one day
|
|
299
|
+
* must be open.
|
|
300
|
+
*/
|
|
301
|
+
days_of_week?: string;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Make this the calendar used when nothing more specific is linked. Setting it
|
|
305
|
+
* demotes whichever calendar of the same kind held the role.
|
|
306
|
+
*/
|
|
307
|
+
is_default?: boolean;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Human-readable name.
|
|
311
|
+
*/
|
|
312
|
+
name?: string;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* IANA zone the cutoff is read in. Clearing it on a receiving calendar returns to
|
|
316
|
+
* taking the zone from the ship-to address.
|
|
317
|
+
*/
|
|
318
|
+
timezone?: string | null;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface OperatingCalendarDeleteResponse {}
|
|
322
|
+
|
|
323
|
+
export interface OperatingCalendarListParams {
|
|
324
|
+
/**
|
|
325
|
+
* Return only shipping or only receiving calendars.
|
|
326
|
+
*/
|
|
327
|
+
kind?: 'ship' | 'receive';
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export interface OperatingCalendarCreateParams {
|
|
331
|
+
/**
|
|
332
|
+
* Short stable identifier, unique per account.
|
|
333
|
+
*/
|
|
334
|
+
code: string;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Open weekdays as seven characters of '0' or '1', Monday first. "1111100" is
|
|
338
|
+
* Monday to Friday; "1111000" is a Monday-to-Thursday plant. At least one day must
|
|
339
|
+
* be open.
|
|
340
|
+
*/
|
|
341
|
+
days_of_week: string;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Which side of a shipment this calendar describes.
|
|
345
|
+
*/
|
|
346
|
+
kind: 'ship' | 'receive';
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Human-readable name.
|
|
350
|
+
*/
|
|
351
|
+
name: string;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Local time freight has to be tendered by, as "15:00". Only a shipping calendar
|
|
355
|
+
* accepts one.
|
|
356
|
+
*/
|
|
357
|
+
cutoff_at?: string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Make this the calendar used when nothing more specific is linked. Setting it
|
|
361
|
+
* demotes whichever calendar of the same kind held the role.
|
|
362
|
+
*/
|
|
363
|
+
is_default?: boolean;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* IANA zone the cutoff is read in, such as "America/Chicago". On a receiving
|
|
367
|
+
* calendar, leave it unset to take the zone from the ship-to address.
|
|
368
|
+
*/
|
|
369
|
+
timezone?: string;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export interface OperatingCalendarUpdateParams {
|
|
373
|
+
/**
|
|
374
|
+
* Local time freight has to be tendered by. Clearing it leaves the ship-by date a
|
|
375
|
+
* day with no time of day attached.
|
|
376
|
+
*/
|
|
377
|
+
cutoff_at?: string | null;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Open weekdays as seven characters of '0' or '1', Monday first. At least one day
|
|
381
|
+
* must be open.
|
|
382
|
+
*/
|
|
383
|
+
days_of_week?: string;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Make this the calendar used when nothing more specific is linked. Setting it
|
|
387
|
+
* demotes whichever calendar of the same kind held the role.
|
|
388
|
+
*/
|
|
389
|
+
is_default?: boolean;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Human-readable name.
|
|
393
|
+
*/
|
|
394
|
+
name?: string;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* IANA zone the cutoff is read in. Clearing it on a receiving calendar returns to
|
|
398
|
+
* taking the zone from the ship-to address.
|
|
399
|
+
*/
|
|
400
|
+
timezone?: string | null;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
OperatingCalendars.Closures = Closures;
|
|
404
|
+
|
|
405
|
+
export declare namespace OperatingCalendars {
|
|
406
|
+
export {
|
|
407
|
+
type CreateOperatingCalendarRequest as CreateOperatingCalendarRequest,
|
|
408
|
+
type ListOperatingCalendar as ListOperatingCalendar,
|
|
409
|
+
type OperatingCalendar as OperatingCalendar,
|
|
410
|
+
type UpdateOperatingCalendarRequest as UpdateOperatingCalendarRequest,
|
|
411
|
+
type OperatingCalendarDeleteResponse as OperatingCalendarDeleteResponse,
|
|
412
|
+
type OperatingCalendarListParams as OperatingCalendarListParams,
|
|
413
|
+
type OperatingCalendarCreateParams as OperatingCalendarCreateParams,
|
|
414
|
+
type OperatingCalendarUpdateParams as OperatingCalendarUpdateParams,
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
export {
|
|
418
|
+
Closures as Closures,
|
|
419
|
+
type CreateOperatingCalendarClosureRequest as CreateOperatingCalendarClosureRequest,
|
|
420
|
+
type ListOperatingCalendarClosure as ListOperatingCalendarClosure,
|
|
421
|
+
type OperatingCalendarClosure as OperatingCalendarClosure,
|
|
422
|
+
type ClosureDeleteResponse as ClosureDeleteResponse,
|
|
423
|
+
type ClosureListParams as ClosureListParams,
|
|
424
|
+
type ClosureCreateParams as ClosureCreateParams,
|
|
425
|
+
type ClosureDeleteParams as ClosureDeleteParams,
|
|
426
|
+
};
|
|
427
|
+
}
|
|
@@ -107,6 +107,18 @@ import {
|
|
|
107
107
|
Locations,
|
|
108
108
|
UpdateLocationRequest,
|
|
109
109
|
} from './locations/locations';
|
|
110
|
+
import * as OperatingCalendarsAPI from './operating-calendars/operating-calendars';
|
|
111
|
+
import {
|
|
112
|
+
CreateOperatingCalendarRequest,
|
|
113
|
+
ListOperatingCalendar,
|
|
114
|
+
OperatingCalendar,
|
|
115
|
+
OperatingCalendarCreateParams,
|
|
116
|
+
OperatingCalendarDeleteResponse,
|
|
117
|
+
OperatingCalendarListParams,
|
|
118
|
+
OperatingCalendarUpdateParams,
|
|
119
|
+
OperatingCalendars,
|
|
120
|
+
UpdateOperatingCalendarRequest,
|
|
121
|
+
} from './operating-calendars/operating-calendars';
|
|
110
122
|
import * as ProductionScheduleSettingsAPI from './production-schedule-settings/production-schedule-settings';
|
|
111
123
|
import {
|
|
112
124
|
ProductionScheduleSettingUpdateParams,
|
|
@@ -167,6 +179,9 @@ export class Operations extends APIResource {
|
|
|
167
179
|
new ProductionScheduleSettingsAPI.ProductionScheduleSettings(this._client);
|
|
168
180
|
fulfillmentRecommendations: FulfillmentRecommendationsAPI.FulfillmentRecommendations =
|
|
169
181
|
new FulfillmentRecommendationsAPI.FulfillmentRecommendations(this._client);
|
|
182
|
+
operatingCalendars: OperatingCalendarsAPI.OperatingCalendars = new OperatingCalendarsAPI.OperatingCalendars(
|
|
183
|
+
this._client,
|
|
184
|
+
);
|
|
170
185
|
locations: LocationsAPI.Locations = new LocationsAPI.Locations(this._client);
|
|
171
186
|
locationTypes: LocationTypesAPI.LocationTypes = new LocationTypesAPI.LocationTypes(this._client);
|
|
172
187
|
shipments: ShipmentsAPI.Shipments = new ShipmentsAPI.Shipments(this._client);
|
|
@@ -771,6 +786,7 @@ Operations.MachineDowntimeEvents = MachineDowntimeEvents;
|
|
|
771
786
|
Operations.DemandOverrides = DemandOverrides;
|
|
772
787
|
Operations.ProductionSchedules = ProductionSchedules;
|
|
773
788
|
Operations.FulfillmentRecommendations = FulfillmentRecommendations;
|
|
789
|
+
Operations.OperatingCalendars = OperatingCalendars;
|
|
774
790
|
Operations.Locations = Locations;
|
|
775
791
|
Operations.LocationTypes = LocationTypes;
|
|
776
792
|
Operations.Shipments = Shipments;
|
|
@@ -913,6 +929,18 @@ export declare namespace Operations {
|
|
|
913
929
|
type ListFulfillmentRecommendation as ListFulfillmentRecommendation,
|
|
914
930
|
};
|
|
915
931
|
|
|
932
|
+
export {
|
|
933
|
+
OperatingCalendars as OperatingCalendars,
|
|
934
|
+
type CreateOperatingCalendarRequest as CreateOperatingCalendarRequest,
|
|
935
|
+
type ListOperatingCalendar as ListOperatingCalendar,
|
|
936
|
+
type OperatingCalendar as OperatingCalendar,
|
|
937
|
+
type UpdateOperatingCalendarRequest as UpdateOperatingCalendarRequest,
|
|
938
|
+
type OperatingCalendarDeleteResponse as OperatingCalendarDeleteResponse,
|
|
939
|
+
type OperatingCalendarListParams as OperatingCalendarListParams,
|
|
940
|
+
type OperatingCalendarCreateParams as OperatingCalendarCreateParams,
|
|
941
|
+
type OperatingCalendarUpdateParams as OperatingCalendarUpdateParams,
|
|
942
|
+
};
|
|
943
|
+
|
|
916
944
|
export {
|
|
917
945
|
Locations as Locations,
|
|
918
946
|
type CreateLocationRequest as CreateLocationRequest,
|
package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts
CHANGED
|
@@ -353,6 +353,8 @@ export interface ProductionScheduleSettings {
|
|
|
353
353
|
*/
|
|
354
354
|
planning_horizon_weeks: number;
|
|
355
355
|
|
|
356
|
+
receive_calendar_id: string | null;
|
|
357
|
+
|
|
356
358
|
/**
|
|
357
359
|
* Z-score behind the safety stock targets.
|
|
358
360
|
*
|
|
@@ -372,6 +374,16 @@ export interface ProductionScheduleSettings {
|
|
|
372
374
|
*/
|
|
373
375
|
shifts_per_day: number;
|
|
374
376
|
|
|
377
|
+
/**
|
|
378
|
+
* The account-wide operating calendars: the days the plant tenders freight, and
|
|
379
|
+
* the days a customer's dock accepts it.
|
|
380
|
+
*
|
|
381
|
+
* Behind the per-address and per-customer links and ahead of a plain
|
|
382
|
+
* Monday-to-Friday week. Null on both means every ship-by date is resolved against
|
|
383
|
+
* weekdays alone.
|
|
384
|
+
*/
|
|
385
|
+
ship_calendar_id: string | null;
|
|
386
|
+
|
|
375
387
|
/**
|
|
376
388
|
* Last updated timestamp.
|
|
377
389
|
*/
|
|
@@ -642,6 +654,18 @@ export interface UpdateProductionScheduleSettingsRequest {
|
|
|
642
654
|
* active, otherwise the whole update is rejected.
|
|
643
655
|
*/
|
|
644
656
|
generation_cron?: string | null;
|
|
657
|
+
|
|
658
|
+
receive_calendar_id?: string | null;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* The operating calendar naming the days this account's plant tenders freight, and
|
|
662
|
+
* the one naming the days a customer's dock accepts it.
|
|
663
|
+
*
|
|
664
|
+
* These are the account-wide fallbacks: an address or a customer with its own
|
|
665
|
+
* calendar overrides them, and an account with neither set falls back to a
|
|
666
|
+
* Monday-to-Friday week with no closures.
|
|
667
|
+
*/
|
|
668
|
+
ship_calendar_id?: string | null;
|
|
645
669
|
}
|
|
646
670
|
|
|
647
671
|
export interface ProductionScheduleSettingUpdateParams {
|
|
@@ -890,6 +914,18 @@ export interface ProductionScheduleSettingUpdateParams {
|
|
|
890
914
|
* active, otherwise the whole update is rejected.
|
|
891
915
|
*/
|
|
892
916
|
generation_cron?: string | null;
|
|
917
|
+
|
|
918
|
+
receive_calendar_id?: string | null;
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* The operating calendar naming the days this account's plant tenders freight, and
|
|
922
|
+
* the one naming the days a customer's dock accepts it.
|
|
923
|
+
*
|
|
924
|
+
* These are the account-wide fallbacks: an address or a customer with its own
|
|
925
|
+
* calendar overrides them, and an account with neither set falls back to a
|
|
926
|
+
* Monday-to-Friday week with no closures.
|
|
927
|
+
*/
|
|
928
|
+
ship_calendar_id?: string | null;
|
|
893
929
|
}
|
|
894
930
|
|
|
895
931
|
ProductionScheduleSettings.Resources = Resources;
|
|
@@ -425,9 +425,11 @@ export interface UpdateProductionScheduleLineRequest {
|
|
|
425
425
|
/**
|
|
426
426
|
* Units to build over the campaign.
|
|
427
427
|
*
|
|
428
|
-
* Changing this
|
|
429
|
-
*
|
|
430
|
-
* machine time.
|
|
428
|
+
* Changing this re-derives `lots` and `run_hours` from the rate and lot size this
|
|
429
|
+
* version was solved with, so the campaign never keeps claiming its old share of
|
|
430
|
+
* machine time; send either alongside it to override what is derived. A campaign
|
|
431
|
+
* builds something by definition, so use delete rather than a quantity of zero to
|
|
432
|
+
* take it off the plan.
|
|
431
433
|
*/
|
|
432
434
|
quantity?: number;
|
|
433
435
|
|
|
@@ -587,9 +589,11 @@ export interface LineUpdateParams {
|
|
|
587
589
|
/**
|
|
588
590
|
* Body param: Units to build over the campaign.
|
|
589
591
|
*
|
|
590
|
-
* Changing this
|
|
591
|
-
*
|
|
592
|
-
* machine time.
|
|
592
|
+
* Changing this re-derives `lots` and `run_hours` from the rate and lot size this
|
|
593
|
+
* version was solved with, so the campaign never keeps claiming its old share of
|
|
594
|
+
* machine time; send either alongside it to override what is derived. A campaign
|
|
595
|
+
* builds something by definition, so use delete rather than a quantity of zero to
|
|
596
|
+
* take it off the plan.
|
|
593
597
|
*/
|
|
594
598
|
quantity?: number;
|
|
595
599
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as AddressesAPI from '../../sales/addresses';
|
|
5
5
|
import * as APIKeysAPI from '../../auth/api-keys/api-keys';
|
|
6
|
-
import * as
|
|
6
|
+
import * as AccountPricesAPI from '../../sales/account-prices/account-prices';
|
|
7
7
|
import { APIPromise } from '../../../core/api-promise';
|
|
8
8
|
import { RequestOptions } from '../../../internal/request-options';
|
|
9
9
|
|
|
@@ -129,7 +129,7 @@ export interface RateShopOption {
|
|
|
129
129
|
* through Shippo for live rating and label purchase; other carriers represent
|
|
130
130
|
* self-managed shipping methods such as will call or local delivery.
|
|
131
131
|
*/
|
|
132
|
-
carrier:
|
|
132
|
+
carrier: AccountPricesAPI.Carrier | null;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* Estimated number of days until delivery, when the carrier provides an estimate.
|
|
@@ -157,7 +157,7 @@ export interface RateShopOption {
|
|
|
157
157
|
* Carriers connected through Shippo have their service levels synced from the
|
|
158
158
|
* carrier itself; any carrier can also have service levels you create by hand.
|
|
159
159
|
*/
|
|
160
|
-
service_level:
|
|
160
|
+
service_level: AccountPricesAPI.ServiceLevel | null;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as APIKeysAPI from '../auth/api-keys/api-keys';
|
|
5
5
|
import * as ProductLinesAPI from '../catalog/product-lines/product-lines';
|
|
6
|
-
import * as
|
|
6
|
+
import * as AccountPricesAPI from '../sales/account-prices/account-prices';
|
|
7
7
|
import { APIPromise } from '../../core/api-promise';
|
|
8
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
9
9
|
import { path } from '../../internal/utils/path';
|
|
@@ -50,7 +50,7 @@ export class ShippingTerms extends APIResource {
|
|
|
50
50
|
id: string,
|
|
51
51
|
query: ShippingTermRetrieveParams | null | undefined = {},
|
|
52
52
|
options?: RequestOptions,
|
|
53
|
-
): APIPromise<
|
|
53
|
+
): APIPromise<AccountPricesAPI.ShippingTerm> {
|
|
54
54
|
return this._client.get(path`/v1/operations/shipping-terms/${id}`, { query, ...options });
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -80,7 +80,10 @@ export class ShippingTerms extends APIResource {
|
|
|
80
80
|
* });
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
create(
|
|
83
|
+
create(
|
|
84
|
+
params: ShippingTermCreateParams,
|
|
85
|
+
options?: RequestOptions,
|
|
86
|
+
): APIPromise<AccountPricesAPI.ShippingTerm> {
|
|
84
87
|
const { include, ...body } = params;
|
|
85
88
|
return this._client.post('/v1/operations/shipping-terms', { query: { include }, body, ...options });
|
|
86
89
|
}
|
|
@@ -121,7 +124,7 @@ export class ShippingTerms extends APIResource {
|
|
|
121
124
|
id: string,
|
|
122
125
|
params: ShippingTermUpdateParams | null | undefined = {},
|
|
123
126
|
options?: RequestOptions,
|
|
124
|
-
): APIPromise<
|
|
127
|
+
): APIPromise<AccountPricesAPI.ShippingTerm> {
|
|
125
128
|
const { include, ...body } = params ?? {};
|
|
126
129
|
return this._client.patch(path`/v1/operations/shipping-terms/${id}`, {
|
|
127
130
|
query: { include },
|
|
@@ -208,7 +211,7 @@ export interface ListShippingTerm {
|
|
|
208
211
|
/**
|
|
209
212
|
* Resources in this page.
|
|
210
213
|
*/
|
|
211
|
-
data: Array<
|
|
214
|
+
data: Array<AccountPricesAPI.ShippingTerm>;
|
|
212
215
|
|
|
213
216
|
/**
|
|
214
217
|
* Resource type identifier.
|