@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as AccountPricesAPI from "../../sales/account-prices/account-prices.js";
|
|
3
3
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
5
|
/**
|
|
@@ -23,7 +23,7 @@ export declare class ServiceLevels extends APIResource {
|
|
|
23
23
|
* );
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
list(carrierID: string, query?: ServiceLevelListParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
26
|
+
list(carrierID: string, query?: ServiceLevelListParams | null | undefined, options?: RequestOptions): APIPromise<AccountPricesAPI.ListServiceLevel>;
|
|
27
27
|
/**
|
|
28
28
|
* Returns a service level by ID.
|
|
29
29
|
*
|
|
@@ -39,7 +39,7 @@ export declare class ServiceLevels extends APIResource {
|
|
|
39
39
|
* );
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
|
-
retrieve(id: string, params: ServiceLevelRetrieveParams, options?: RequestOptions): APIPromise<
|
|
42
|
+
retrieve(id: string, params: ServiceLevelRetrieveParams, options?: RequestOptions): APIPromise<AccountPricesAPI.ServiceLevel>;
|
|
43
43
|
/**
|
|
44
44
|
* Adds a shipping service level to a carrier.
|
|
45
45
|
*
|
|
@@ -64,7 +64,7 @@ export declare class ServiceLevels extends APIResource {
|
|
|
64
64
|
* );
|
|
65
65
|
* ```
|
|
66
66
|
*/
|
|
67
|
-
create(carrierID: string, params: ServiceLevelCreateParams, options?: RequestOptions): APIPromise<
|
|
67
|
+
create(carrierID: string, params: ServiceLevelCreateParams, options?: RequestOptions): APIPromise<AccountPricesAPI.ServiceLevel>;
|
|
68
68
|
/**
|
|
69
69
|
* Updates a service level's name, code, customer portal visibility, or default
|
|
70
70
|
* status.
|
|
@@ -88,7 +88,7 @@ export declare class ServiceLevels extends APIResource {
|
|
|
88
88
|
* );
|
|
89
89
|
* ```
|
|
90
90
|
*/
|
|
91
|
-
update(id: string, params: ServiceLevelUpdateParams, options?: RequestOptions): APIPromise<
|
|
91
|
+
update(id: string, params: ServiceLevelUpdateParams, options?: RequestOptions): APIPromise<AccountPricesAPI.ServiceLevel>;
|
|
92
92
|
/**
|
|
93
93
|
* Permanently deletes a service level so it can no longer be selected on
|
|
94
94
|
* shipments.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-levels.d.ts","sourceRoot":"","sources":["../../../src/resources/operations/carriers/service-levels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"service-levels.d.ts","sourceRoot":"","sources":["../../../src/resources/operations/carriers/service-levels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBA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AAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -6,6 +6,7 @@ export { LocationTypes, type ListLocationType, type LocationType, type LocationT
|
|
|
6
6
|
export { Locations, type CreateLocationRequest, type UpdateLocationRequest, type LocationDeleteResponse, type LocationListParams, type LocationRetrieveParams, type LocationCreateParams, type LocationUpdateParams, } from "./locations/index.mjs";
|
|
7
7
|
export { MachineDowntimeEvents, type CreateMachineDowntimeEventRequest, type ListMachineDowntimeEvent, type MachineDowntimeEvent, type UpdateMachineDowntimeEventRequest, type MachineDowntimeEventDeleteResponse, type MachineDowntimeEventListParams, type MachineDowntimeEventRetrieveParams, type MachineDowntimeEventCreateParams, type MachineDowntimeEventUpdateParams, } from "./machine-downtime-events.mjs";
|
|
8
8
|
export { Machines, type CreateMachineRequest, type UpdateMachineRequest, type MachineDeleteResponse, type MachineListParams, type MachineRetrieveParams, type MachineCreateParams, type MachineUpdateParams, } from "./machines.mjs";
|
|
9
|
+
export { OperatingCalendars, type CreateOperatingCalendarRequest, type ListOperatingCalendar, type OperatingCalendar, type UpdateOperatingCalendarRequest, type OperatingCalendarDeleteResponse, type OperatingCalendarListParams, type OperatingCalendarCreateParams, type OperatingCalendarUpdateParams, } from "./operating-calendars/index.mjs";
|
|
9
10
|
export { Operations, type DemandOverrideType, type ListDemandOverrideType, type ListMachineDowntimeReason, type ListMachineStatus, type ListScheduleDeviationType, type MachineCampaign, type MachineDowntimeReason, type MachineDowntimeReasonSummary, type MachineDowntimeSummary, type MachineStatus, type ScheduleDeviationType, type OperationRetrieveMachineStatusParams, } from "./operations.mjs";
|
|
10
11
|
export { ProductionScheduleSettings, type UpdateProductionScheduleSettingsRequest, type ProductionScheduleSettingUpdateParams, } from "./production-schedule-settings/index.mjs";
|
|
11
12
|
export { ProductionSchedules, type GenerateProductionScheduleRequest, type ListProductionSchedule, type ListProductionScheduleDerivedLine, type ListProductionScheduleDeviation, type ListProductionScheduleFinishedPolicy, type ListProductionScheduleItemPolicy, type ListReleaseScheduleBatch, type ListReleasedScheduleLine, type ListScheduleAppliedOverride, type ListScheduleAtRiskOrder, type ListScheduleOrderCoverage, type ListScheduleOrderCoverageLine, type ProductionSchedule, type ProductionScheduleDerivedLine, type ProductionScheduleDeviation, type ProductionScheduleFinishedPolicy, type ProductionScheduleItemPolicy, type ReleaseScheduleBatch, type ReleaseScheduleWeekPreview, type ReleasedScheduleLine, type ScheduleAppliedOverride, type ScheduleAtRiskOrder, type ScheduleDiagnostics, type ScheduleOrderCoverage, type ScheduleOrderCoverageLine, type ProductionScheduleDeleteResponse, type ProductionScheduleListParams, type ProductionScheduleCreateParams, type ProductionScheduleRetrieveDerivedLinesParams, type ProductionScheduleRetrieveDeviationsParams, type ProductionScheduleRetrieveWeekReleasePreviewParams, } from "./production-schedules/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/operations/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,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K,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/operations/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,GAChC;OACM,EACL,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,0BAA0B,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,GACnC;OACM,EACL,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,GAC5B;OACM,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EACL,qBAAqB,EACrB,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,iCAAiC,EACt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,EACzB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,4CAA4C,EACjD,KAAK,0CAA0C,EAC/C,KAAK,kDAAkD,GACxD;OACM,EACL,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,GACjC;OACM,EAAE,SAAS,EAAE;OACb,EACL,aAAa,EACb,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B"}
|
|
@@ -6,6 +6,7 @@ export { LocationTypes, type ListLocationType, type LocationType, type LocationT
|
|
|
6
6
|
export { Locations, type CreateLocationRequest, type UpdateLocationRequest, type LocationDeleteResponse, type LocationListParams, type LocationRetrieveParams, type LocationCreateParams, type LocationUpdateParams, } from "./locations/index.js";
|
|
7
7
|
export { MachineDowntimeEvents, type CreateMachineDowntimeEventRequest, type ListMachineDowntimeEvent, type MachineDowntimeEvent, type UpdateMachineDowntimeEventRequest, type MachineDowntimeEventDeleteResponse, type MachineDowntimeEventListParams, type MachineDowntimeEventRetrieveParams, type MachineDowntimeEventCreateParams, type MachineDowntimeEventUpdateParams, } from "./machine-downtime-events.js";
|
|
8
8
|
export { Machines, type CreateMachineRequest, type UpdateMachineRequest, type MachineDeleteResponse, type MachineListParams, type MachineRetrieveParams, type MachineCreateParams, type MachineUpdateParams, } from "./machines.js";
|
|
9
|
+
export { OperatingCalendars, type CreateOperatingCalendarRequest, type ListOperatingCalendar, type OperatingCalendar, type UpdateOperatingCalendarRequest, type OperatingCalendarDeleteResponse, type OperatingCalendarListParams, type OperatingCalendarCreateParams, type OperatingCalendarUpdateParams, } from "./operating-calendars/index.js";
|
|
9
10
|
export { Operations, type DemandOverrideType, type ListDemandOverrideType, type ListMachineDowntimeReason, type ListMachineStatus, type ListScheduleDeviationType, type MachineCampaign, type MachineDowntimeReason, type MachineDowntimeReasonSummary, type MachineDowntimeSummary, type MachineStatus, type ScheduleDeviationType, type OperationRetrieveMachineStatusParams, } from "./operations.js";
|
|
10
11
|
export { ProductionScheduleSettings, type UpdateProductionScheduleSettingsRequest, type ProductionScheduleSettingUpdateParams, } from "./production-schedule-settings/index.js";
|
|
11
12
|
export { ProductionSchedules, type GenerateProductionScheduleRequest, type ListProductionSchedule, type ListProductionScheduleDerivedLine, type ListProductionScheduleDeviation, type ListProductionScheduleFinishedPolicy, type ListProductionScheduleItemPolicy, type ListReleaseScheduleBatch, type ListReleasedScheduleLine, type ListScheduleAppliedOverride, type ListScheduleAtRiskOrder, type ListScheduleOrderCoverage, type ListScheduleOrderCoverageLine, type ProductionSchedule, type ProductionScheduleDerivedLine, type ProductionScheduleDeviation, type ProductionScheduleFinishedPolicy, type ProductionScheduleItemPolicy, type ReleaseScheduleBatch, type ReleaseScheduleWeekPreview, type ReleasedScheduleLine, type ScheduleAppliedOverride, type ScheduleAtRiskOrder, type ScheduleDiagnostics, type ScheduleOrderCoverage, type ScheduleOrderCoverageLine, type ProductionScheduleDeleteResponse, type ProductionScheduleListParams, type ProductionScheduleCreateParams, type ProductionScheduleRetrieveDerivedLinesParams, type ProductionScheduleRetrieveDeviationsParams, type ProductionScheduleRetrieveWeekReleasePreviewParams, } from "./production-schedules/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/operations/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,o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9B,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/operations/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,GAChC;OACM,EACL,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,0BAA0B,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,GACnC;OACM,EACL,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,GAC5B;OACM,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EACL,qBAAqB,EACrB,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,oBAA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BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,4CAA4C,EACjD,KAAK,0CAA0C,EAC/C,KAAK,kDAAkD,GACxD;OACM,EACL,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,GACjC;OACM,EAAE,SAAS,EAAE;OACb,EACL,aAAa,EACb,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ShippingTerms = exports.Shipments = exports.ScanningStations = exports.ProductionSchedules = exports.ProductionScheduleSettings = exports.Operations = exports.Machines = exports.MachineDowntimeEvents = exports.Locations = exports.LocationTypes = exports.FulfillmentRecommendations = exports.Departments = exports.DemandOverrides = exports.Carriers = void 0;
|
|
4
|
+
exports.ShippingTerms = exports.Shipments = exports.ScanningStations = exports.ProductionSchedules = exports.ProductionScheduleSettings = exports.Operations = exports.OperatingCalendars = exports.Machines = exports.MachineDowntimeEvents = exports.Locations = exports.LocationTypes = exports.FulfillmentRecommendations = exports.Departments = exports.DemandOverrides = exports.Carriers = void 0;
|
|
5
5
|
var index_1 = require("./carriers/index.js");
|
|
6
6
|
Object.defineProperty(exports, "Carriers", { enumerable: true, get: function () { return index_1.Carriers; } });
|
|
7
7
|
var demand_overrides_1 = require("./demand-overrides.js");
|
|
@@ -18,16 +18,18 @@ var machine_downtime_events_1 = require("./machine-downtime-events.js");
|
|
|
18
18
|
Object.defineProperty(exports, "MachineDowntimeEvents", { enumerable: true, get: function () { return machine_downtime_events_1.MachineDowntimeEvents; } });
|
|
19
19
|
var machines_1 = require("./machines.js");
|
|
20
20
|
Object.defineProperty(exports, "Machines", { enumerable: true, get: function () { return machines_1.Machines; } });
|
|
21
|
+
var index_4 = require("./operating-calendars/index.js");
|
|
22
|
+
Object.defineProperty(exports, "OperatingCalendars", { enumerable: true, get: function () { return index_4.OperatingCalendars; } });
|
|
21
23
|
var operations_1 = require("./operations.js");
|
|
22
24
|
Object.defineProperty(exports, "Operations", { enumerable: true, get: function () { return operations_1.Operations; } });
|
|
23
|
-
var
|
|
24
|
-
Object.defineProperty(exports, "ProductionScheduleSettings", { enumerable: true, get: function () { return
|
|
25
|
-
var
|
|
26
|
-
Object.defineProperty(exports, "ProductionSchedules", { enumerable: true, get: function () { return
|
|
25
|
+
var index_5 = require("./production-schedule-settings/index.js");
|
|
26
|
+
Object.defineProperty(exports, "ProductionScheduleSettings", { enumerable: true, get: function () { return index_5.ProductionScheduleSettings; } });
|
|
27
|
+
var index_6 = require("./production-schedules/index.js");
|
|
28
|
+
Object.defineProperty(exports, "ProductionSchedules", { enumerable: true, get: function () { return index_6.ProductionSchedules; } });
|
|
27
29
|
var scanning_stations_1 = require("./scanning-stations.js");
|
|
28
30
|
Object.defineProperty(exports, "ScanningStations", { enumerable: true, get: function () { return scanning_stations_1.ScanningStations; } });
|
|
29
|
-
var
|
|
30
|
-
Object.defineProperty(exports, "Shipments", { enumerable: true, get: function () { return
|
|
31
|
+
var index_7 = require("./shipments/index.js");
|
|
32
|
+
Object.defineProperty(exports, "Shipments", { enumerable: true, get: function () { return index_7.Shipments; } });
|
|
31
33
|
var shipping_terms_1 = require("./shipping-terms.js");
|
|
32
34
|
Object.defineProperty(exports, "ShippingTerms", { enumerable: true, get: function () { return shipping_terms_1.ShippingTerms; } });
|
|
33
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/operations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAU0B;AATxB,iGAAA,QAAQ,OAAA;AAUV,0DAW4B;AAV1B,mHAAA,eAAe,OAAA;AAWjB,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,gEAI6C;AAH3C,mHAAA,0BAA0B,OAAA;AAI5B,sDAK0B;AAJxB,+GAAA,aAAa,OAAA;AAKf,8CAS2B;AARzB,kGAAA,SAAS,OAAA;AASX,wEAWmC;AAVjC,gIAAA,qBAAqB,OAAA;AAWvB,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,8CAcsB;AAbpB,wGAAA,UAAU,OAAA;AAcZ,iEAI8C;AAH5C,mHAAA,0BAA0B,OAAA;AAI5B,yDAiCsC;AAhCpC,4GAAA,mBAAmB,OAAA;AAiCrB,4DAS6B;AAR3B,qHAAA,gBAAgB,OAAA;AASlB,8CAA8C;AAArC,kGAAA,SAAS,OAAA;AAClB,sDAU0B;AATxB,+GAAA,aAAa,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/operations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAU0B;AATxB,iGAAA,QAAQ,OAAA;AAUV,0DAW4B;AAV1B,mHAAA,eAAe,OAAA;AAWjB,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,gEAI6C;AAH3C,mHAAA,0BAA0B,OAAA;AAI5B,sDAK0B;AAJxB,+GAAA,aAAa,OAAA;AAKf,8CAS2B;AARzB,kGAAA,SAAS,OAAA;AASX,wEAWmC;AAVjC,gIAAA,qBAAqB,OAAA;AAWvB,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,wDAUqC;AATnC,2GAAA,kBAAkB,OAAA;AAUpB,8CAcsB;AAbpB,wGAAA,UAAU,OAAA;AAcZ,iEAI8C;AAH5C,mHAAA,0BAA0B,OAAA;AAI5B,yDAiCsC;AAhCpC,4GAAA,mBAAmB,OAAA;AAiCrB,4DAS6B;AAR3B,qHAAA,gBAAgB,OAAA;AASlB,8CAA8C;AAArC,kGAAA,SAAS,OAAA;AAClB,sDAU0B;AATxB,+GAAA,aAAa,OAAA"}
|
|
@@ -7,6 +7,7 @@ export { LocationTypes, } from "./location-types.mjs";
|
|
|
7
7
|
export { Locations, } from "./locations/index.mjs";
|
|
8
8
|
export { MachineDowntimeEvents, } from "./machine-downtime-events.mjs";
|
|
9
9
|
export { Machines, } from "./machines.mjs";
|
|
10
|
+
export { OperatingCalendars, } from "./operating-calendars/index.mjs";
|
|
10
11
|
export { Operations, } from "./operations.mjs";
|
|
11
12
|
export { ProductionScheduleSettings, } from "./production-schedule-settings/index.mjs";
|
|
12
13
|
export { ProductionSchedules, } from "./production-schedules/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/operations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAST;OACM,EACL,eAAe,GAUhB;OACM,EACL,WAAW,GAUZ;OACM,EACL,0BAA0B,GAG3B;OACM,EACL,aAAa,GAId;OACM,EACL,SAAS,GAQV;OACM,EACL,qBAAqB,GAUtB;OACM,EACL,QAAQ,GAQT;OACM,EACL,UAAU,GAaX;OACM,EACL,0BAA0B,GAG3B;OACM,EACL,mBAAmB,GAgCpB;OACM,EACL,gBAAgB,GAQjB;OACM,EAAE,SAAS,EAAE;OACb,EACL,aAAa,GASd"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/operations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAST;OACM,EACL,eAAe,GAUhB;OACM,EACL,WAAW,GAUZ;OACM,EACL,0BAA0B,GAG3B;OACM,EACL,aAAa,GAId;OACM,EACL,SAAS,GAQV;OACM,EACL,qBAAqB,GAUtB;OACM,EACL,QAAQ,GAQT;OACM,EACL,kBAAkB,GASnB;OACM,EACL,UAAU,GAaX;OACM,EACL,0BAA0B,GAG3B;OACM,EACL,mBAAmB,GAgCpB;OACM,EACL,gBAAgB,GAQjB;OACM,EAAE,SAAS,EAAE;OACb,EACL,aAAa,GASd"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as APIKeysAPI from "../../auth/api-keys/api-keys.mjs";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* 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.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Closures extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Lists the dates a calendar is shut, within a date window.
|
|
11
|
+
*
|
|
12
|
+
* Bounded rather than exhaustive: a calendar accumulates closures indefinitely,
|
|
13
|
+
* and the useful answer is the year either side of today. Widen it with
|
|
14
|
+
* `from_date` and `to_date`.
|
|
15
|
+
*
|
|
16
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const listOperatingCalendarClosure =
|
|
21
|
+
* await client.operations.operatingCalendars.closures.list(
|
|
22
|
+
* 'occd_7f2m9qk4wzxb',
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(id: string, query?: ClosureListParams | null | undefined, options?: RequestOptions): APIPromise<ListOperatingCalendarClosure>;
|
|
27
|
+
/**
|
|
28
|
+
* Closes a calendar on a date.
|
|
29
|
+
*
|
|
30
|
+
* Every ship-by date resolved against this calendar afterwards walks past the
|
|
31
|
+
* closure: a carrier that does not move on Thanksgiving pushes the day an order
|
|
32
|
+
* has to leave earlier, and a plant shutdown does the same.
|
|
33
|
+
*
|
|
34
|
+
* Closing the same date twice is a no-op rather than an error, so re-seeding a
|
|
35
|
+
* year is safe and never renames a closure somebody has relabelled.
|
|
36
|
+
*
|
|
37
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const operatingCalendarClosure =
|
|
42
|
+
* await client.operations.operatingCalendars.closures.create(
|
|
43
|
+
* 'occd_7f2m9qk4wzxb',
|
|
44
|
+
* {
|
|
45
|
+
* closed_on: '2026-11-26T00:00:00Z',
|
|
46
|
+
* name: 'Thanksgiving Day',
|
|
47
|
+
* },
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
create(id: string, body: ClosureCreateParams, options?: RequestOptions): APIPromise<OperatingCalendarClosure>;
|
|
52
|
+
/**
|
|
53
|
+
* Reopens a date the calendar was closed on.
|
|
54
|
+
*
|
|
55
|
+
* Used to drop a seeded holiday a plant actually works through. Orders already
|
|
56
|
+
* issued keep the dates they were stamped with.
|
|
57
|
+
*
|
|
58
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const closure =
|
|
63
|
+
* await client.operations.operatingCalendars.closures.delete(
|
|
64
|
+
* 'occdcn_3vh8yt5nqp1r',
|
|
65
|
+
* { id: 'occd_7f2m9qk4wzxb' },
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
delete(closureID: string, params: ClosureDeleteParams, options?: RequestOptions): APIPromise<ClosureDeleteResponse>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Request to close a calendar on a date.
|
|
73
|
+
*/
|
|
74
|
+
export interface CreateOperatingCalendarClosureRequest {
|
|
75
|
+
/**
|
|
76
|
+
* The date nothing operates. Truncated to a day.
|
|
77
|
+
*/
|
|
78
|
+
closed_on: string;
|
|
79
|
+
/**
|
|
80
|
+
* What the closure is, such as "Thanksgiving Day" or "Summer shutdown".
|
|
81
|
+
*/
|
|
82
|
+
name: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A single page of resources, together with the metadata needed to page through
|
|
86
|
+
* the rest of the result set.
|
|
87
|
+
*/
|
|
88
|
+
export interface ListOperatingCalendarClosure {
|
|
89
|
+
/**
|
|
90
|
+
* Resources in this page.
|
|
91
|
+
*/
|
|
92
|
+
data: Array<OperatingCalendarClosure>;
|
|
93
|
+
/**
|
|
94
|
+
* Resource type identifier.
|
|
95
|
+
*/
|
|
96
|
+
object: 'list';
|
|
97
|
+
/**
|
|
98
|
+
* PageInfo describes where the current page sits within a paginated result set and
|
|
99
|
+
* how to move to the adjacent pages.
|
|
100
|
+
*
|
|
101
|
+
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
102
|
+
* For a top-level list endpoint the URL repeats the original request's query
|
|
103
|
+
* string with only the cursor swapped, so following it preserves the same filters,
|
|
104
|
+
* search term, and page size.
|
|
105
|
+
*/
|
|
106
|
+
page_info: APIKeysAPI.PageInfo;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* OperatingCalendarClosure is one date a calendar is shut — a holiday, or a day of
|
|
110
|
+
* a shutdown week.
|
|
111
|
+
*/
|
|
112
|
+
export interface OperatingCalendarClosure {
|
|
113
|
+
/**
|
|
114
|
+
* Unique identifier.
|
|
115
|
+
*/
|
|
116
|
+
id: string;
|
|
117
|
+
/**
|
|
118
|
+
* The date nothing operates.
|
|
119
|
+
*/
|
|
120
|
+
closed_on: string;
|
|
121
|
+
/**
|
|
122
|
+
* Creation timestamp.
|
|
123
|
+
*/
|
|
124
|
+
created_at: string;
|
|
125
|
+
/**
|
|
126
|
+
* What the closure is, such as "Thanksgiving Day" or "Summer shutdown".
|
|
127
|
+
*/
|
|
128
|
+
name: string;
|
|
129
|
+
/**
|
|
130
|
+
* Resource type identifier.
|
|
131
|
+
*/
|
|
132
|
+
object: 'operating_calendar_closure';
|
|
133
|
+
/**
|
|
134
|
+
* The calendar this closure belongs to.
|
|
135
|
+
*/
|
|
136
|
+
operating_calendar_id: string;
|
|
137
|
+
/**
|
|
138
|
+
* Last updated timestamp.
|
|
139
|
+
*/
|
|
140
|
+
updated_at: string;
|
|
141
|
+
}
|
|
142
|
+
export interface ClosureDeleteResponse {
|
|
143
|
+
}
|
|
144
|
+
export interface ClosureListParams {
|
|
145
|
+
/**
|
|
146
|
+
* Earliest closure date to return. Defaults to a year ago.
|
|
147
|
+
*/
|
|
148
|
+
from_date?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Latest closure date to return. Defaults to a year ahead.
|
|
151
|
+
*/
|
|
152
|
+
to_date?: string;
|
|
153
|
+
}
|
|
154
|
+
export interface ClosureCreateParams {
|
|
155
|
+
/**
|
|
156
|
+
* The date nothing operates. Truncated to a day.
|
|
157
|
+
*/
|
|
158
|
+
closed_on: string;
|
|
159
|
+
/**
|
|
160
|
+
* What the closure is, such as "Thanksgiving Day" or "Summer shutdown".
|
|
161
|
+
*/
|
|
162
|
+
name: string;
|
|
163
|
+
}
|
|
164
|
+
export interface ClosureDeleteParams {
|
|
165
|
+
/**
|
|
166
|
+
* Operating calendar ID.
|
|
167
|
+
*/
|
|
168
|
+
id: string;
|
|
169
|
+
}
|
|
170
|
+
export declare namespace Closures {
|
|
171
|
+
export { type CreateOperatingCalendarClosureRequest as CreateOperatingCalendarClosureRequest, type ListOperatingCalendarClosure as ListOperatingCalendarClosure, type OperatingCalendarClosure as OperatingCalendarClosure, type ClosureDeleteResponse as ClosureDeleteResponse, type ClosureListParams as ClosureListParams, type ClosureCreateParams as ClosureCreateParams, type ClosureDeleteParams as ClosureDeleteParams, };
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=closures.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closures.d.mts","sourceRoot":"","sources":["../../../src/resources/operations/operating-calendars/closures.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;CAIrC;AAED;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAEtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;;;OAQG;IACH,SAAS,EAAE,UAAU,CAAC,QAAQ,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,4BAA4B,CAAC;IAErC;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;CAAG;AAEzC,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as APIKeysAPI from "../../auth/api-keys/api-keys.js";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* 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.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Closures extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Lists the dates a calendar is shut, within a date window.
|
|
11
|
+
*
|
|
12
|
+
* Bounded rather than exhaustive: a calendar accumulates closures indefinitely,
|
|
13
|
+
* and the useful answer is the year either side of today. Widen it with
|
|
14
|
+
* `from_date` and `to_date`.
|
|
15
|
+
*
|
|
16
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const listOperatingCalendarClosure =
|
|
21
|
+
* await client.operations.operatingCalendars.closures.list(
|
|
22
|
+
* 'occd_7f2m9qk4wzxb',
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(id: string, query?: ClosureListParams | null | undefined, options?: RequestOptions): APIPromise<ListOperatingCalendarClosure>;
|
|
27
|
+
/**
|
|
28
|
+
* Closes a calendar on a date.
|
|
29
|
+
*
|
|
30
|
+
* Every ship-by date resolved against this calendar afterwards walks past the
|
|
31
|
+
* closure: a carrier that does not move on Thanksgiving pushes the day an order
|
|
32
|
+
* has to leave earlier, and a plant shutdown does the same.
|
|
33
|
+
*
|
|
34
|
+
* Closing the same date twice is a no-op rather than an error, so re-seeding a
|
|
35
|
+
* year is safe and never renames a closure somebody has relabelled.
|
|
36
|
+
*
|
|
37
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const operatingCalendarClosure =
|
|
42
|
+
* await client.operations.operatingCalendars.closures.create(
|
|
43
|
+
* 'occd_7f2m9qk4wzxb',
|
|
44
|
+
* {
|
|
45
|
+
* closed_on: '2026-11-26T00:00:00Z',
|
|
46
|
+
* name: 'Thanksgiving Day',
|
|
47
|
+
* },
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
create(id: string, body: ClosureCreateParams, options?: RequestOptions): APIPromise<OperatingCalendarClosure>;
|
|
52
|
+
/**
|
|
53
|
+
* Reopens a date the calendar was closed on.
|
|
54
|
+
*
|
|
55
|
+
* Used to drop a seeded holiday a plant actually works through. Orders already
|
|
56
|
+
* issued keep the dates they were stamped with.
|
|
57
|
+
*
|
|
58
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const closure =
|
|
63
|
+
* await client.operations.operatingCalendars.closures.delete(
|
|
64
|
+
* 'occdcn_3vh8yt5nqp1r',
|
|
65
|
+
* { id: 'occd_7f2m9qk4wzxb' },
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
delete(closureID: string, params: ClosureDeleteParams, options?: RequestOptions): APIPromise<ClosureDeleteResponse>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Request to close a calendar on a date.
|
|
73
|
+
*/
|
|
74
|
+
export interface CreateOperatingCalendarClosureRequest {
|
|
75
|
+
/**
|
|
76
|
+
* The date nothing operates. Truncated to a day.
|
|
77
|
+
*/
|
|
78
|
+
closed_on: string;
|
|
79
|
+
/**
|
|
80
|
+
* What the closure is, such as "Thanksgiving Day" or "Summer shutdown".
|
|
81
|
+
*/
|
|
82
|
+
name: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A single page of resources, together with the metadata needed to page through
|
|
86
|
+
* the rest of the result set.
|
|
87
|
+
*/
|
|
88
|
+
export interface ListOperatingCalendarClosure {
|
|
89
|
+
/**
|
|
90
|
+
* Resources in this page.
|
|
91
|
+
*/
|
|
92
|
+
data: Array<OperatingCalendarClosure>;
|
|
93
|
+
/**
|
|
94
|
+
* Resource type identifier.
|
|
95
|
+
*/
|
|
96
|
+
object: 'list';
|
|
97
|
+
/**
|
|
98
|
+
* PageInfo describes where the current page sits within a paginated result set and
|
|
99
|
+
* how to move to the adjacent pages.
|
|
100
|
+
*
|
|
101
|
+
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
102
|
+
* For a top-level list endpoint the URL repeats the original request's query
|
|
103
|
+
* string with only the cursor swapped, so following it preserves the same filters,
|
|
104
|
+
* search term, and page size.
|
|
105
|
+
*/
|
|
106
|
+
page_info: APIKeysAPI.PageInfo;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* OperatingCalendarClosure is one date a calendar is shut — a holiday, or a day of
|
|
110
|
+
* a shutdown week.
|
|
111
|
+
*/
|
|
112
|
+
export interface OperatingCalendarClosure {
|
|
113
|
+
/**
|
|
114
|
+
* Unique identifier.
|
|
115
|
+
*/
|
|
116
|
+
id: string;
|
|
117
|
+
/**
|
|
118
|
+
* The date nothing operates.
|
|
119
|
+
*/
|
|
120
|
+
closed_on: string;
|
|
121
|
+
/**
|
|
122
|
+
* Creation timestamp.
|
|
123
|
+
*/
|
|
124
|
+
created_at: string;
|
|
125
|
+
/**
|
|
126
|
+
* What the closure is, such as "Thanksgiving Day" or "Summer shutdown".
|
|
127
|
+
*/
|
|
128
|
+
name: string;
|
|
129
|
+
/**
|
|
130
|
+
* Resource type identifier.
|
|
131
|
+
*/
|
|
132
|
+
object: 'operating_calendar_closure';
|
|
133
|
+
/**
|
|
134
|
+
* The calendar this closure belongs to.
|
|
135
|
+
*/
|
|
136
|
+
operating_calendar_id: string;
|
|
137
|
+
/**
|
|
138
|
+
* Last updated timestamp.
|
|
139
|
+
*/
|
|
140
|
+
updated_at: string;
|
|
141
|
+
}
|
|
142
|
+
export interface ClosureDeleteResponse {
|
|
143
|
+
}
|
|
144
|
+
export interface ClosureListParams {
|
|
145
|
+
/**
|
|
146
|
+
* Earliest closure date to return. Defaults to a year ago.
|
|
147
|
+
*/
|
|
148
|
+
from_date?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Latest closure date to return. Defaults to a year ahead.
|
|
151
|
+
*/
|
|
152
|
+
to_date?: string;
|
|
153
|
+
}
|
|
154
|
+
export interface ClosureCreateParams {
|
|
155
|
+
/**
|
|
156
|
+
* The date nothing operates. Truncated to a day.
|
|
157
|
+
*/
|
|
158
|
+
closed_on: string;
|
|
159
|
+
/**
|
|
160
|
+
* What the closure is, such as "Thanksgiving Day" or "Summer shutdown".
|
|
161
|
+
*/
|
|
162
|
+
name: string;
|
|
163
|
+
}
|
|
164
|
+
export interface ClosureDeleteParams {
|
|
165
|
+
/**
|
|
166
|
+
* Operating calendar ID.
|
|
167
|
+
*/
|
|
168
|
+
id: string;
|
|
169
|
+
}
|
|
170
|
+
export declare namespace Closures {
|
|
171
|
+
export { type CreateOperatingCalendarClosureRequest as CreateOperatingCalendarClosureRequest, type ListOperatingCalendarClosure as ListOperatingCalendarClosure, type OperatingCalendarClosure as OperatingCalendarClosure, type ClosureDeleteResponse as ClosureDeleteResponse, type ClosureListParams as ClosureListParams, type ClosureCreateParams as ClosureCreateParams, type ClosureDeleteParams as ClosureDeleteParams, };
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=closures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closures.d.ts","sourceRoot":"","sources":["../../../src/resources/operations/operating-calendars/closures.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACv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AED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Closures = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* 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.
|
|
9
|
+
*/
|
|
10
|
+
class Closures extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Lists the dates a calendar is shut, within a date window.
|
|
13
|
+
*
|
|
14
|
+
* Bounded rather than exhaustive: a calendar accumulates closures indefinitely,
|
|
15
|
+
* and the useful answer is the year either side of today. Widen it with
|
|
16
|
+
* `from_date` and `to_date`.
|
|
17
|
+
*
|
|
18
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const listOperatingCalendarClosure =
|
|
23
|
+
* await client.operations.operatingCalendars.closures.list(
|
|
24
|
+
* 'occd_7f2m9qk4wzxb',
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(id, query = {}, options) {
|
|
29
|
+
return this._client.get((0, path_1.path) `/v1/operations/operating-calendars/${id}/closures`, { query, ...options });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Closes a calendar on a date.
|
|
33
|
+
*
|
|
34
|
+
* Every ship-by date resolved against this calendar afterwards walks past the
|
|
35
|
+
* closure: a carrier that does not move on Thanksgiving pushes the day an order
|
|
36
|
+
* has to leave earlier, and a plant shutdown does the same.
|
|
37
|
+
*
|
|
38
|
+
* Closing the same date twice is a no-op rather than an error, so re-seeding a
|
|
39
|
+
* year is safe and never renames a closure somebody has relabelled.
|
|
40
|
+
*
|
|
41
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const operatingCalendarClosure =
|
|
46
|
+
* await client.operations.operatingCalendars.closures.create(
|
|
47
|
+
* 'occd_7f2m9qk4wzxb',
|
|
48
|
+
* {
|
|
49
|
+
* closed_on: '2026-11-26T00:00:00Z',
|
|
50
|
+
* name: 'Thanksgiving Day',
|
|
51
|
+
* },
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
create(id, body, options) {
|
|
56
|
+
return this._client.post((0, path_1.path) `/v1/operations/operating-calendars/${id}/closures`, { body, ...options });
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Reopens a date the calendar was closed on.
|
|
60
|
+
*
|
|
61
|
+
* Used to drop a seeded holiday a plant actually works through. Orders already
|
|
62
|
+
* issued keep the dates they were stamped with.
|
|
63
|
+
*
|
|
64
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const closure =
|
|
69
|
+
* await client.operations.operatingCalendars.closures.delete(
|
|
70
|
+
* 'occdcn_3vh8yt5nqp1r',
|
|
71
|
+
* { id: 'occd_7f2m9qk4wzxb' },
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
delete(closureID, params, options) {
|
|
76
|
+
const { id } = params;
|
|
77
|
+
return this._client.delete((0, path_1.path) `/v1/operations/operating-calendars/${id}/closures/${closureID}`, options);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.Closures = Closures;
|
|
81
|
+
//# sourceMappingURL=closures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closures.js","sourceRoot":"","sources":["../../../src/resources/operations/operating-calendars/closures.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,EAAU,EACV,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sCAAsC,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CACJ,EAAU,EACV,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,sCAAsC,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,SAAiB,EACjB,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,sCAAsC,EAAE,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5G,CAAC;CACF;AAnFD,4BAmFC"}
|