@augno/sdk 0.12.6 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -2
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/catalog/catalog.d.mts +4 -4
- package/resources/catalog/catalog.d.mts.map +1 -1
- package/resources/catalog/catalog.d.ts +4 -4
- package/resources/catalog/catalog.d.ts.map +1 -1
- package/resources/catalog/catalog.js.map +1 -1
- package/resources/catalog/catalog.mjs.map +1 -1
- package/resources/catalog/index.d.mts +2 -2
- package/resources/catalog/index.d.mts.map +1 -1
- package/resources/catalog/index.d.ts +2 -2
- package/resources/catalog/index.d.ts.map +1 -1
- package/resources/catalog/index.js.map +1 -1
- package/resources/catalog/index.mjs.map +1 -1
- package/resources/catalog/items/index.d.mts +1 -1
- package/resources/catalog/items/index.d.mts.map +1 -1
- package/resources/catalog/items/index.d.ts +1 -1
- package/resources/catalog/items/index.d.ts.map +1 -1
- package/resources/catalog/items/index.js.map +1 -1
- package/resources/catalog/items/index.mjs.map +1 -1
- package/resources/catalog/items/items.d.mts +77 -1
- package/resources/catalog/items/items.d.mts.map +1 -1
- package/resources/catalog/items/items.d.ts +77 -1
- package/resources/catalog/items/items.d.ts.map +1 -1
- package/resources/catalog/items/items.js +29 -0
- package/resources/catalog/items/items.js.map +1 -1
- package/resources/catalog/items/items.mjs +29 -0
- package/resources/catalog/items/items.mjs.map +1 -1
- package/resources/catalog/product-lines.d.mts +42 -8
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +42 -8
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +3 -3
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +3 -3
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products.d.mts +2 -2
- package/resources/catalog/products.d.ts +2 -2
- package/resources/catalog/products.js +2 -2
- package/resources/catalog/products.mjs +2 -2
- package/resources/core/analytics.d.mts +547 -0
- package/resources/core/analytics.d.mts.map +1 -0
- package/resources/core/analytics.d.ts +547 -0
- package/resources/core/analytics.d.ts.map +1 -0
- package/resources/core/analytics.js +67 -0
- package/resources/core/analytics.js.map +1 -0
- package/resources/core/analytics.mjs +63 -0
- package/resources/core/analytics.mjs.map +1 -0
- package/resources/core/audit-events.d.mts +16 -3
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +16 -3
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/core.d.mts +8 -3
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +8 -3
- 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/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.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/demand-overrides.d.mts +463 -0
- package/resources/operations/demand-overrides.d.mts.map +1 -0
- package/resources/operations/demand-overrides.d.ts +463 -0
- package/resources/operations/demand-overrides.d.ts.map +1 -0
- package/resources/operations/demand-overrides.js +118 -0
- package/resources/operations/demand-overrides.js.map +1 -0
- package/resources/operations/demand-overrides.mjs +114 -0
- package/resources/operations/demand-overrides.mjs.map +1 -0
- package/resources/operations/index.d.mts +5 -1
- package/resources/operations/index.d.mts.map +1 -1
- package/resources/operations/index.d.ts +5 -1
- package/resources/operations/index.d.ts.map +1 -1
- package/resources/operations/index.js +9 -1
- package/resources/operations/index.js.map +1 -1
- package/resources/operations/index.mjs +5 -1
- package/resources/operations/index.mjs.map +1 -1
- package/resources/operations/machine-downtime-events.d.mts +424 -0
- package/resources/operations/machine-downtime-events.d.mts.map +1 -0
- package/resources/operations/machine-downtime-events.d.ts +424 -0
- package/resources/operations/machine-downtime-events.d.ts.map +1 -0
- package/resources/operations/machine-downtime-events.js +110 -0
- package/resources/operations/machine-downtime-events.js.map +1 -0
- package/resources/operations/machine-downtime-events.mjs +106 -0
- package/resources/operations/machine-downtime-events.mjs.map +1 -0
- package/resources/operations/operations.d.mts +444 -0
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +444 -0
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js +89 -0
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs +89 -0
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/operations/production-schedule-settings/index.d.mts +3 -0
- package/resources/operations/production-schedule-settings/index.d.mts.map +1 -0
- package/resources/operations/production-schedule-settings/index.d.ts +3 -0
- package/resources/operations/production-schedule-settings/index.d.ts.map +1 -0
- package/resources/operations/production-schedule-settings/index.js +9 -0
- package/resources/operations/production-schedule-settings/index.js.map +1 -0
- package/resources/operations/production-schedule-settings/index.mjs +4 -0
- package/resources/operations/production-schedule-settings/index.mjs.map +1 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts +470 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts.map +1 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts +470 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts.map +1 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.js +88 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.js.map +1 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.mjs +83 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map +1 -0
- package/resources/operations/production-schedule-settings/resources.d.mts +176 -0
- package/resources/operations/production-schedule-settings/resources.d.mts.map +1 -0
- package/resources/operations/production-schedule-settings/resources.d.ts +176 -0
- package/resources/operations/production-schedule-settings/resources.d.ts.map +1 -0
- package/resources/operations/production-schedule-settings/resources.js +74 -0
- package/resources/operations/production-schedule-settings/resources.js.map +1 -0
- package/resources/operations/production-schedule-settings/resources.mjs +70 -0
- package/resources/operations/production-schedule-settings/resources.mjs.map +1 -0
- package/resources/operations/production-schedule-settings.d.mts +2 -0
- package/resources/operations/production-schedule-settings.d.mts.map +1 -0
- package/resources/operations/production-schedule-settings.d.ts +2 -0
- package/resources/operations/production-schedule-settings.d.ts.map +1 -0
- package/resources/operations/production-schedule-settings.js +6 -0
- package/resources/operations/production-schedule-settings.js.map +1 -0
- package/resources/operations/production-schedule-settings.mjs +3 -0
- package/resources/operations/production-schedule-settings.mjs.map +1 -0
- package/resources/operations/production-schedules/actions.d.mts +668 -0
- package/resources/operations/production-schedules/actions.d.mts.map +1 -0
- package/resources/operations/production-schedules/actions.d.ts +668 -0
- package/resources/operations/production-schedules/actions.d.ts.map +1 -0
- package/resources/operations/production-schedules/actions.js +181 -0
- package/resources/operations/production-schedules/actions.js.map +1 -0
- package/resources/operations/production-schedules/actions.mjs +177 -0
- package/resources/operations/production-schedules/actions.mjs.map +1 -0
- package/resources/operations/production-schedules/index.d.mts +4 -0
- package/resources/operations/production-schedules/index.d.mts.map +1 -0
- package/resources/operations/production-schedules/index.d.ts +4 -0
- package/resources/operations/production-schedules/index.d.ts.map +1 -0
- package/resources/operations/production-schedules/index.js +11 -0
- package/resources/operations/production-schedules/index.js.map +1 -0
- package/resources/operations/production-schedules/index.mjs +5 -0
- package/resources/operations/production-schedules/index.mjs.map +1 -0
- package/resources/operations/production-schedules/lines.d.mts +420 -0
- package/resources/operations/production-schedules/lines.d.mts.map +1 -0
- package/resources/operations/production-schedules/lines.d.ts +420 -0
- package/resources/operations/production-schedules/lines.d.ts.map +1 -0
- package/resources/operations/production-schedules/lines.js +106 -0
- package/resources/operations/production-schedules/lines.js.map +1 -0
- package/resources/operations/production-schedules/lines.mjs +102 -0
- package/resources/operations/production-schedules/lines.mjs.map +1 -0
- package/resources/operations/production-schedules/production-schedules.d.mts +1177 -0
- package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -0
- package/resources/operations/production-schedules/production-schedules.d.ts +1177 -0
- package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -0
- package/resources/operations/production-schedules/production-schedules.js +238 -0
- package/resources/operations/production-schedules/production-schedules.js.map +1 -0
- package/resources/operations/production-schedules/production-schedules.mjs +233 -0
- package/resources/operations/production-schedules/production-schedules.mjs.map +1 -0
- package/resources/operations/production-schedules.d.mts +2 -0
- package/resources/operations/production-schedules.d.mts.map +1 -0
- package/resources/operations/production-schedules.d.ts +2 -0
- package/resources/operations/production-schedules.d.ts.map +1 -0
- package/resources/operations/production-schedules.js +6 -0
- package/resources/operations/production-schedules.js.map +1 -0
- package/resources/operations/production-schedules.mjs +3 -0
- package/resources/operations/production-schedules.mjs.map +1 -0
- package/resources/operations/shipping-terms.d.mts +9 -8
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +9 -8
- 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/customers/customers.d.mts +6 -18
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +6 -18
- 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 +1 -1
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +1 -1
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.mts +5 -5
- package/resources/sales/sales-orders/lines/lines.d.mts.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.ts +5 -5
- package/resources/sales/sales-orders/lines/lines.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.mts +5 -4
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +5 -4
- package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +2 -2
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +2 -2
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs.map +1 -1
- package/src/client.ts +30 -2
- package/src/resources/catalog/catalog.ts +6 -0
- package/src/resources/catalog/index.ts +3 -0
- package/src/resources/catalog/items/index.ts +2 -0
- package/src/resources/catalog/items/items.ts +92 -0
- package/src/resources/catalog/product-lines.ts +49 -7
- package/src/resources/catalog/products.ts +2 -2
- package/src/resources/core/analytics.ts +677 -0
- package/src/resources/core/audit-events.ts +353 -0
- package/src/resources/core/core.ts +84 -1
- package/src/resources/core/index.ts +18 -0
- package/src/resources/index.ts +15 -1
- package/src/resources/messaging/conversations/conversations.ts +63 -0
- package/src/resources/messaging/conversations/links.ts +42 -0
- package/src/resources/messaging/conversations/messages.ts +42 -0
- package/src/resources/messaging/notifications/notifications.ts +42 -0
- package/src/resources/operations/demand-overrides.ts +626 -0
- package/src/resources/operations/index.ts +72 -1
- package/src/resources/operations/machine-downtime-events.ts +584 -0
- package/src/resources/operations/operations.ts +673 -0
- package/src/resources/operations/production-schedule-settings/index.ts +15 -0
- package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +595 -0
- package/src/resources/operations/production-schedule-settings/resources.ts +217 -0
- package/src/resources/operations/production-schedule-settings.ts +3 -0
- package/src/resources/operations/production-schedules/actions.ts +835 -0
- package/src/resources/operations/production-schedules/index.ts +64 -0
- package/src/resources/operations/production-schedules/lines.ts +584 -0
- package/src/resources/operations/production-schedules/production-schedules.ts +1548 -0
- package/src/resources/operations/production-schedules.ts +3 -0
- package/src/resources/operations/shipping-terms.ts +9 -8
- package/src/resources/sales/customers/customers.ts +5 -20
- package/src/resources/sales/customers/index.ts +0 -1
- package/src/resources/sales/index.ts +0 -1
- package/src/resources/sales/sales-orders/lines/lines.ts +5 -5
- package/src/resources/sales/sales-orders/sales-orders.ts +15 -2
- package/src/resources/sales/sales.ts +0 -2
- 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,27 +1,116 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as DemandOverridesAPI from "./demand-overrides.mjs";
|
|
4
|
+
import { DemandOverrides, } from "./demand-overrides.mjs";
|
|
3
5
|
import * as LocationTypesAPI from "./location-types.mjs";
|
|
4
6
|
import { LocationTypes } from "./location-types.mjs";
|
|
5
7
|
import * as LocationsAPI from "./locations.mjs";
|
|
6
8
|
import { Locations, } from "./locations.mjs";
|
|
9
|
+
import * as MachineDowntimeEventsAPI from "./machine-downtime-events.mjs";
|
|
10
|
+
import { MachineDowntimeEvents, } from "./machine-downtime-events.mjs";
|
|
7
11
|
import * as ScanningStationsAPI from "./scanning-stations.mjs";
|
|
8
12
|
import { ScanningStations, } from "./scanning-stations.mjs";
|
|
9
13
|
import * as ShippingTermsAPI from "./shipping-terms.mjs";
|
|
10
14
|
import { ShippingTerms, } from "./shipping-terms.mjs";
|
|
11
15
|
import * as CarriersAPI from "./carriers/carriers.mjs";
|
|
12
16
|
import { Carriers, } from "./carriers/carriers.mjs";
|
|
17
|
+
import * as ProductionScheduleSettingsAPI from "./production-schedule-settings/production-schedule-settings.mjs";
|
|
18
|
+
import * as ProductionSchedulesAPI from "./production-schedules/production-schedules.mjs";
|
|
19
|
+
import { ProductionSchedules, } from "./production-schedules/production-schedules.mjs";
|
|
13
20
|
export class Operations extends APIResource {
|
|
14
21
|
constructor() {
|
|
15
22
|
super(...arguments);
|
|
16
23
|
this.shippingTerms = new ShippingTermsAPI.ShippingTerms(this._client);
|
|
17
24
|
this.carriers = new CarriersAPI.Carriers(this._client);
|
|
25
|
+
this.machineDowntimeEvents = new MachineDowntimeEventsAPI.MachineDowntimeEvents(this._client);
|
|
26
|
+
this.demandOverrides = new DemandOverridesAPI.DemandOverrides(this._client);
|
|
27
|
+
this.productionSchedules = new ProductionSchedulesAPI.ProductionSchedules(this._client);
|
|
28
|
+
this.productionScheduleSettings = new ProductionScheduleSettingsAPI.ProductionScheduleSettings(this._client);
|
|
18
29
|
this.locations = new LocationsAPI.Locations(this._client);
|
|
19
30
|
this.locationTypes = new LocationTypesAPI.LocationTypes(this._client);
|
|
20
31
|
this.scanningStations = new ScanningStationsAPI.ScanningStations(this._client);
|
|
21
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Returns the downtime reasons available when logging a stoppage.
|
|
35
|
+
*
|
|
36
|
+
* The list is the same for every account and is ordered for display.
|
|
37
|
+
*
|
|
38
|
+
* This endpoint requires the permission: `machine_downtime:read`.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const listMachineDowntimeReason =
|
|
43
|
+
* await client.operations.retrieveMachineDowntimeReasons();
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
retrieveMachineDowntimeReasons(options) {
|
|
47
|
+
return this._client.get('/v1/operations/machine-downtime-reasons', options);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns what every machine is running right now, how much is left on it, and
|
|
51
|
+
* what is queued behind that.
|
|
52
|
+
*
|
|
53
|
+
* Assembled from the published schedule, the batches the floor has scanned against
|
|
54
|
+
* each campaign, and any open downtime. A campaign is `current` once its week is
|
|
55
|
+
* released and while it still has batches to scan; when the last one is scanned it
|
|
56
|
+
* hands over to the next, so this advances on its own as a shift progresses.
|
|
57
|
+
*
|
|
58
|
+
* A machine with an open stoppage reads `down` even when it has a released
|
|
59
|
+
* campaign, because a broken machine is not producing whatever the plan says. A
|
|
60
|
+
* machine with nothing released reads `idle`, which is a state worth seeing rather
|
|
61
|
+
* than an absence from the list.
|
|
62
|
+
*
|
|
63
|
+
* Reads the published version rather than the newest draft: the floor works to
|
|
64
|
+
* what was committed, and a draft regenerating underneath a wall display would
|
|
65
|
+
* make machines appear to change job on their own. With nothing published every
|
|
66
|
+
* machine reads idle rather than the request failing.
|
|
67
|
+
*
|
|
68
|
+
* This endpoint requires the permission: `machines:read`.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const listMachineStatus =
|
|
73
|
+
* await client.operations.retrieveMachineStatus();
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
retrieveMachineStatus(query = {}, options) {
|
|
77
|
+
return this._client.get('/v1/operations/machine-status', { query, ...options });
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Returns the demand override types, which describe how an override's value
|
|
81
|
+
* adjusts the forecast.
|
|
82
|
+
*
|
|
83
|
+
* This endpoint requires the permission: `demand_overrides:read`.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const listDemandOverrideType =
|
|
88
|
+
* await client.operations.retrieveDemandOverrideTypes();
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
retrieveDemandOverrideTypes(options) {
|
|
92
|
+
return this._client.get('/v1/operations/demand-override-types', options);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Returns the kinds of hand change a schedule deviation can record.
|
|
96
|
+
*
|
|
97
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* const listScheduleDeviationType =
|
|
102
|
+
* await client.operations.retrieveScheduleDeviationTypes();
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
retrieveScheduleDeviationTypes(options) {
|
|
106
|
+
return this._client.get('/v1/operations/schedule-deviation-types', options);
|
|
107
|
+
}
|
|
22
108
|
}
|
|
23
109
|
Operations.ShippingTerms = ShippingTerms;
|
|
24
110
|
Operations.Carriers = Carriers;
|
|
111
|
+
Operations.MachineDowntimeEvents = MachineDowntimeEvents;
|
|
112
|
+
Operations.DemandOverrides = DemandOverrides;
|
|
113
|
+
Operations.ProductionSchedules = ProductionSchedules;
|
|
25
114
|
Operations.Locations = Locations;
|
|
26
115
|
Operations.LocationTypes = LocationTypes;
|
|
27
116
|
Operations.ScanningStations = ScanningStations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.mjs","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"operations.mjs","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,kBAAkB;OACvB,EAQL,eAAe,GAGhB;OACM,KAAK,gBAAgB;OACrB,EAA0D,aAAa,EAAE;OACzE,KAAK,YAAY;OACjB,EAOL,SAAS,GAEV;OACM,KAAK,wBAAwB;OAC7B,EASL,qBAAqB,GAEtB;OACM,KAAK,mBAAmB;OACxB,EAOL,gBAAgB,GAEjB;OACM,KAAK,gBAAgB;OACrB,EAQL,aAAa,GAEd;OAEM,KAAK,WAAW;OAChB,EAML,QAAQ,GAIT;OACM,KAAK,6BAA6B;OAMlC,KAAK,sBAAsB;OAC3B,EAqBL,mBAAmB,GAMpB;AAID,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,0BAAqB,GACnB,IAAI,wBAAwB,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,o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AAG,QAAQ,CAAC;AAC/B,UAAU,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;AACzD,UAAU,CAAC,eAAe,GAAG,eAAe,CAAC;AAC7C,UAAU,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;AACrD,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC;AACjC,UAAU,CAAC,aAAa,GAAG,aAAa,CAAC;AACzC,UAAU,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ProductionScheduleSettings, type UpdateProductionScheduleSettingsRequest, type ProductionScheduleSettingUpdateParams, } from "./production-schedule-settings.mjs";
|
|
2
|
+
export { Resources, type ListProductionScheduleResourceSetting, type ProductionScheduleResourceSetting, type UpsertResourceSettingRequest, type ResourceDeleteResponse, type ResourceUpdateParams, } from "./resources.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":"OAEO,EACL,0BAA0B,EAC1B,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C;OACM,EACL,SAAS,EACT,KAAK,qCAAqC,EAC1C,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ProductionScheduleSettings, type UpdateProductionScheduleSettingsRequest, type ProductionScheduleSettingUpdateParams, } from "./production-schedule-settings.js";
|
|
2
|
+
export { Resources, type ListProductionScheduleResourceSetting, type ProductionScheduleResourceSetting, type UpsertResourceSettingRequest, type ResourceDeleteResponse, type ResourceUpdateParams, } from "./resources.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":"OAEO,EACL,0BAA0B,EAC1B,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C;OACM,EACL,SAAS,EACT,KAAK,qCAAqC,EAC1C,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Resources = exports.ProductionScheduleSettings = void 0;
|
|
5
|
+
var production_schedule_settings_1 = require("./production-schedule-settings.js");
|
|
6
|
+
Object.defineProperty(exports, "ProductionScheduleSettings", { enumerable: true, get: function () { return production_schedule_settings_1.ProductionScheduleSettings; } });
|
|
7
|
+
var resources_1 = require("./resources.js");
|
|
8
|
+
Object.defineProperty(exports, "Resources", { enumerable: true, get: function () { return resources_1.Resources; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kFAIwC;AAHtC,0IAAA,0BAA0B,OAAA;AAI5B,4CAOqB;AANnB,sGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,0BAA0B,GAG3B;OACM,EACL,SAAS,GAMV"}
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as CoreAPI from "../../core/core.mjs";
|
|
3
|
+
import * as ResourcesAPI from "./resources.mjs";
|
|
4
|
+
import { ListProductionScheduleResourceSetting, ProductionScheduleResourceSetting, ResourceDeleteResponse, ResourceUpdateParams, Resources, UpsertResourceSettingRequest } from "./resources.mjs";
|
|
5
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ProductionScheduleSettings extends APIResource {
|
|
11
|
+
resources: ResourcesAPI.Resources;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the planning assumptions production schedules are solved against.
|
|
14
|
+
*
|
|
15
|
+
* Always fully populated: an account that has never saved settings gets the
|
|
16
|
+
* solver's own defaults rather than nulls, so a caller never has to know which
|
|
17
|
+
* values would otherwise be assumed. `settings_status` distinguishes the two.
|
|
18
|
+
*
|
|
19
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const productionScheduleSettings =
|
|
24
|
+
* await client.operations.productionScheduleSettings.list();
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
list(options?: RequestOptions): APIPromise<ProductionScheduleSettings>;
|
|
28
|
+
/**
|
|
29
|
+
* Replaces the planning assumptions production schedules are solved against.
|
|
30
|
+
*
|
|
31
|
+
* Settings are replaced wholesale rather than patched, because they are read as
|
|
32
|
+
* one coherent set: a horizon that no longer matches the frozen window, or a
|
|
33
|
+
* capacity headroom that no longer matches the shift pattern, would produce a plan
|
|
34
|
+
* nobody intended.
|
|
35
|
+
*
|
|
36
|
+
* Existing schedule versions are unaffected — each one snapshots the assumptions
|
|
37
|
+
* it was solved under, so changing settings changes future plans only.
|
|
38
|
+
*
|
|
39
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const productionScheduleSettings =
|
|
44
|
+
* await client.operations.productionScheduleSettings.update({
|
|
45
|
+
* auto_publish_status: 'inactive',
|
|
46
|
+
* cadence_status: 'inactive',
|
|
47
|
+
* capacity_headroom_pct: 0.9,
|
|
48
|
+
* changeover_avg_minutes: 0,
|
|
49
|
+
* changeover_labor_rate: 0,
|
|
50
|
+
* changeover_max_minutes: 0,
|
|
51
|
+
* changeover_min_minutes: 0,
|
|
52
|
+
* default_constraint_lead_time_weeks: 0,
|
|
53
|
+
* default_lot_units: 60,
|
|
54
|
+
* demand_basis: 'trailing_12',
|
|
55
|
+
* demand_window_months: 12,
|
|
56
|
+
* finish_lead_time_weeks: 0,
|
|
57
|
+
* forecast_history_months: 24,
|
|
58
|
+
* forecast_months: 12,
|
|
59
|
+
* forecast_z: 0,
|
|
60
|
+
* frozen_weeks: 1,
|
|
61
|
+
* generation_timezone: 'UTC',
|
|
62
|
+
* holding_rate_pct: 0,
|
|
63
|
+
* hours_per_shift: 7,
|
|
64
|
+
* max_flow_depth: 10,
|
|
65
|
+
* max_weeks_supply: 12,
|
|
66
|
+
* planning_horizon_weeks: 13,
|
|
67
|
+
* service_level_z: 0,
|
|
68
|
+
* shifts_per_day: 2,
|
|
69
|
+
* week_start_day: 1,
|
|
70
|
+
* weeks_per_year: 52,
|
|
71
|
+
* work_days_per_week: 5,
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
update(body: ProductionScheduleSettingUpdateParams, options?: RequestOptions): APIPromise<ProductionScheduleSettings>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The planning assumptions a production schedule is solved against.
|
|
79
|
+
*
|
|
80
|
+
* Every value here was a hardcoded constant in the scheduling script this feature
|
|
81
|
+
* replaced. The resource is always fully populated: an account that has never
|
|
82
|
+
* saved settings gets the solver's own defaults, so a caller never has to know
|
|
83
|
+
* which values would otherwise be assumed. `settings_status` says which of the two
|
|
84
|
+
* it is looking at.
|
|
85
|
+
*/
|
|
86
|
+
export interface ProductionScheduleSettings {
|
|
87
|
+
/**
|
|
88
|
+
* Whether a generated version is published automatically.
|
|
89
|
+
*/
|
|
90
|
+
auto_publish_status: 'active' | 'inactive';
|
|
91
|
+
/**
|
|
92
|
+
* Whether schedules are generated on a timer.
|
|
93
|
+
*/
|
|
94
|
+
cadence_status: 'active' | 'inactive';
|
|
95
|
+
/**
|
|
96
|
+
* Share of machine time a plan may fill. The remainder absorbs changeovers, which
|
|
97
|
+
* are not scheduled as explicit blocks.
|
|
98
|
+
*/
|
|
99
|
+
capacity_headroom_pct: number;
|
|
100
|
+
/**
|
|
101
|
+
* Typical changeover duration, used to calibrate the changeover model.
|
|
102
|
+
*/
|
|
103
|
+
changeover_avg_minutes: number;
|
|
104
|
+
/**
|
|
105
|
+
* Hourly labour rate charged to a changeover.
|
|
106
|
+
*/
|
|
107
|
+
changeover_labor_rate: number;
|
|
108
|
+
/**
|
|
109
|
+
* Longest plausible changeover.
|
|
110
|
+
*/
|
|
111
|
+
changeover_max_minutes: number;
|
|
112
|
+
/**
|
|
113
|
+
* Shortest plausible changeover.
|
|
114
|
+
*/
|
|
115
|
+
changeover_min_minutes: number;
|
|
116
|
+
/**
|
|
117
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
118
|
+
*/
|
|
119
|
+
constraint_department: CoreAPI.Entity | null;
|
|
120
|
+
/**
|
|
121
|
+
* Creation timestamp.
|
|
122
|
+
*/
|
|
123
|
+
created_at: string;
|
|
124
|
+
/**
|
|
125
|
+
* Default weeks of lead time at the constraint when an item has no measurement.
|
|
126
|
+
*/
|
|
127
|
+
default_constraint_lead_time_weeks: number;
|
|
128
|
+
/**
|
|
129
|
+
* Units in a default production lot.
|
|
130
|
+
*/
|
|
131
|
+
default_lot_units: number;
|
|
132
|
+
/**
|
|
133
|
+
* How demand is derived.
|
|
134
|
+
*/
|
|
135
|
+
demand_basis: 'trailing_12' | 'seasonal_ema';
|
|
136
|
+
/**
|
|
137
|
+
* Months of order history the demand baseline is drawn from.
|
|
138
|
+
*/
|
|
139
|
+
demand_window_months: number;
|
|
140
|
+
/**
|
|
141
|
+
* Weeks between finishing at the constraint and being sellable.
|
|
142
|
+
*/
|
|
143
|
+
finish_lead_time_weeks: number;
|
|
144
|
+
/**
|
|
145
|
+
* Months of history the forecast is fitted to.
|
|
146
|
+
*/
|
|
147
|
+
forecast_history_months: number;
|
|
148
|
+
/**
|
|
149
|
+
* Months the forecast projects forward.
|
|
150
|
+
*/
|
|
151
|
+
forecast_months: number;
|
|
152
|
+
/**
|
|
153
|
+
* Z-score applied to forecast variability.
|
|
154
|
+
*/
|
|
155
|
+
forecast_z: number;
|
|
156
|
+
/**
|
|
157
|
+
* How many leading weeks become a commitment when a version is published.
|
|
158
|
+
*/
|
|
159
|
+
frozen_weeks: number;
|
|
160
|
+
/**
|
|
161
|
+
* Cron expression driving the generation cadence.
|
|
162
|
+
*/
|
|
163
|
+
generation_cron: string | null;
|
|
164
|
+
/**
|
|
165
|
+
* Timezone the cadence is interpreted in.
|
|
166
|
+
*/
|
|
167
|
+
generation_timezone: string;
|
|
168
|
+
/**
|
|
169
|
+
* Annual cost of holding stock, as a share of item value.
|
|
170
|
+
*/
|
|
171
|
+
holding_rate_pct: number;
|
|
172
|
+
/**
|
|
173
|
+
* Hours in a shift.
|
|
174
|
+
*/
|
|
175
|
+
hours_per_shift: number;
|
|
176
|
+
/**
|
|
177
|
+
* When the cadence last fired.
|
|
178
|
+
*/
|
|
179
|
+
last_generated_at: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* How many steps downstream department work is derived for.
|
|
182
|
+
*/
|
|
183
|
+
max_flow_depth: number;
|
|
184
|
+
/**
|
|
185
|
+
* Ceiling on how far ahead any item is built.
|
|
186
|
+
*/
|
|
187
|
+
max_weeks_supply: number;
|
|
188
|
+
/**
|
|
189
|
+
* Resource type identifier.
|
|
190
|
+
*/
|
|
191
|
+
object: 'production_schedule_settings';
|
|
192
|
+
/**
|
|
193
|
+
* How many weeks a generated plan covers.
|
|
194
|
+
*/
|
|
195
|
+
planning_horizon_weeks: number;
|
|
196
|
+
/**
|
|
197
|
+
* Z-score for the service level safety stock targets.
|
|
198
|
+
*/
|
|
199
|
+
service_level_z: number;
|
|
200
|
+
/**
|
|
201
|
+
* Whether these are the merchant's saved values or the solver's defaults.
|
|
202
|
+
*/
|
|
203
|
+
settings_status: 'stored' | 'default';
|
|
204
|
+
/**
|
|
205
|
+
* Shifts worked per day.
|
|
206
|
+
*/
|
|
207
|
+
shifts_per_day: number;
|
|
208
|
+
/**
|
|
209
|
+
* Last updated timestamp.
|
|
210
|
+
*/
|
|
211
|
+
updated_at: string;
|
|
212
|
+
/**
|
|
213
|
+
* Day a planning week starts, where 0 is Sunday.
|
|
214
|
+
*/
|
|
215
|
+
week_start_day: number;
|
|
216
|
+
/**
|
|
217
|
+
* Weeks worked per year.
|
|
218
|
+
*/
|
|
219
|
+
weeks_per_year: number;
|
|
220
|
+
/**
|
|
221
|
+
* Days worked per week.
|
|
222
|
+
*/
|
|
223
|
+
work_days_per_week: number;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Request to replace the account's planning assumptions.
|
|
227
|
+
*/
|
|
228
|
+
export interface UpdateProductionScheduleSettingsRequest {
|
|
229
|
+
/**
|
|
230
|
+
* Whether a generated version is published automatically.
|
|
231
|
+
*/
|
|
232
|
+
auto_publish_status: 'active' | 'inactive';
|
|
233
|
+
/**
|
|
234
|
+
* Whether schedules are generated on a timer.
|
|
235
|
+
*/
|
|
236
|
+
cadence_status: 'active' | 'inactive';
|
|
237
|
+
/**
|
|
238
|
+
* Share of machine time a plan may fill.
|
|
239
|
+
*/
|
|
240
|
+
capacity_headroom_pct: number;
|
|
241
|
+
/**
|
|
242
|
+
* Typical changeover duration.
|
|
243
|
+
*/
|
|
244
|
+
changeover_avg_minutes: number;
|
|
245
|
+
/**
|
|
246
|
+
* Hourly labour rate charged to a changeover.
|
|
247
|
+
*/
|
|
248
|
+
changeover_labor_rate: number;
|
|
249
|
+
/**
|
|
250
|
+
* Longest plausible changeover.
|
|
251
|
+
*/
|
|
252
|
+
changeover_max_minutes: number;
|
|
253
|
+
/**
|
|
254
|
+
* Shortest plausible changeover.
|
|
255
|
+
*/
|
|
256
|
+
changeover_min_minutes: number;
|
|
257
|
+
/**
|
|
258
|
+
* Default weeks of lead time at the constraint.
|
|
259
|
+
*/
|
|
260
|
+
default_constraint_lead_time_weeks: number;
|
|
261
|
+
/**
|
|
262
|
+
* Units in a default production lot.
|
|
263
|
+
*/
|
|
264
|
+
default_lot_units: number;
|
|
265
|
+
/**
|
|
266
|
+
* How demand is derived.
|
|
267
|
+
*/
|
|
268
|
+
demand_basis: 'trailing_12' | 'seasonal_ema';
|
|
269
|
+
/**
|
|
270
|
+
* Months of order history the demand baseline is drawn from.
|
|
271
|
+
*/
|
|
272
|
+
demand_window_months: number;
|
|
273
|
+
/**
|
|
274
|
+
* Weeks between finishing at the constraint and being sellable.
|
|
275
|
+
*/
|
|
276
|
+
finish_lead_time_weeks: number;
|
|
277
|
+
/**
|
|
278
|
+
* Months of history the forecast is fitted to.
|
|
279
|
+
*/
|
|
280
|
+
forecast_history_months: number;
|
|
281
|
+
/**
|
|
282
|
+
* Months the forecast projects forward.
|
|
283
|
+
*/
|
|
284
|
+
forecast_months: number;
|
|
285
|
+
/**
|
|
286
|
+
* Z-score applied to forecast variability.
|
|
287
|
+
*/
|
|
288
|
+
forecast_z: number;
|
|
289
|
+
/**
|
|
290
|
+
* How many leading weeks become a commitment when a version is published.
|
|
291
|
+
*/
|
|
292
|
+
frozen_weeks: number;
|
|
293
|
+
/**
|
|
294
|
+
* Timezone the cadence is interpreted in.
|
|
295
|
+
*/
|
|
296
|
+
generation_timezone: string;
|
|
297
|
+
/**
|
|
298
|
+
* Annual cost of holding stock, as a share of item value.
|
|
299
|
+
*/
|
|
300
|
+
holding_rate_pct: number;
|
|
301
|
+
/**
|
|
302
|
+
* Hours in a shift.
|
|
303
|
+
*/
|
|
304
|
+
hours_per_shift: number;
|
|
305
|
+
/**
|
|
306
|
+
* How many steps downstream department work is derived for.
|
|
307
|
+
*/
|
|
308
|
+
max_flow_depth: number;
|
|
309
|
+
/**
|
|
310
|
+
* Ceiling on how far ahead any item is built.
|
|
311
|
+
*/
|
|
312
|
+
max_weeks_supply: number;
|
|
313
|
+
/**
|
|
314
|
+
* How many weeks a generated plan covers.
|
|
315
|
+
*/
|
|
316
|
+
planning_horizon_weeks: number;
|
|
317
|
+
/**
|
|
318
|
+
* Z-score for service level safety stock targets.
|
|
319
|
+
*/
|
|
320
|
+
service_level_z: number;
|
|
321
|
+
/**
|
|
322
|
+
* Shifts worked per day.
|
|
323
|
+
*/
|
|
324
|
+
shifts_per_day: number;
|
|
325
|
+
/**
|
|
326
|
+
* Day a planning week starts, where 0 is Sunday.
|
|
327
|
+
*/
|
|
328
|
+
week_start_day: number;
|
|
329
|
+
/**
|
|
330
|
+
* Weeks worked per year.
|
|
331
|
+
*/
|
|
332
|
+
weeks_per_year: number;
|
|
333
|
+
/**
|
|
334
|
+
* Days worked per week.
|
|
335
|
+
*/
|
|
336
|
+
work_days_per_week: number;
|
|
337
|
+
/**
|
|
338
|
+
* ID of the department that sets the pace of the factory. Every machine in it is
|
|
339
|
+
* planned, and every step downstream responds.
|
|
340
|
+
*/
|
|
341
|
+
constraint_department_id?: string | null;
|
|
342
|
+
/**
|
|
343
|
+
* Cron expression driving the generation cadence.
|
|
344
|
+
*/
|
|
345
|
+
generation_cron?: string | null;
|
|
346
|
+
}
|
|
347
|
+
export interface ProductionScheduleSettingUpdateParams {
|
|
348
|
+
/**
|
|
349
|
+
* Whether a generated version is published automatically.
|
|
350
|
+
*/
|
|
351
|
+
auto_publish_status: 'active' | 'inactive';
|
|
352
|
+
/**
|
|
353
|
+
* Whether schedules are generated on a timer.
|
|
354
|
+
*/
|
|
355
|
+
cadence_status: 'active' | 'inactive';
|
|
356
|
+
/**
|
|
357
|
+
* Share of machine time a plan may fill.
|
|
358
|
+
*/
|
|
359
|
+
capacity_headroom_pct: number;
|
|
360
|
+
/**
|
|
361
|
+
* Typical changeover duration.
|
|
362
|
+
*/
|
|
363
|
+
changeover_avg_minutes: number;
|
|
364
|
+
/**
|
|
365
|
+
* Hourly labour rate charged to a changeover.
|
|
366
|
+
*/
|
|
367
|
+
changeover_labor_rate: number;
|
|
368
|
+
/**
|
|
369
|
+
* Longest plausible changeover.
|
|
370
|
+
*/
|
|
371
|
+
changeover_max_minutes: number;
|
|
372
|
+
/**
|
|
373
|
+
* Shortest plausible changeover.
|
|
374
|
+
*/
|
|
375
|
+
changeover_min_minutes: number;
|
|
376
|
+
/**
|
|
377
|
+
* Default weeks of lead time at the constraint.
|
|
378
|
+
*/
|
|
379
|
+
default_constraint_lead_time_weeks: number;
|
|
380
|
+
/**
|
|
381
|
+
* Units in a default production lot.
|
|
382
|
+
*/
|
|
383
|
+
default_lot_units: number;
|
|
384
|
+
/**
|
|
385
|
+
* How demand is derived.
|
|
386
|
+
*/
|
|
387
|
+
demand_basis: 'trailing_12' | 'seasonal_ema';
|
|
388
|
+
/**
|
|
389
|
+
* Months of order history the demand baseline is drawn from.
|
|
390
|
+
*/
|
|
391
|
+
demand_window_months: number;
|
|
392
|
+
/**
|
|
393
|
+
* Weeks between finishing at the constraint and being sellable.
|
|
394
|
+
*/
|
|
395
|
+
finish_lead_time_weeks: number;
|
|
396
|
+
/**
|
|
397
|
+
* Months of history the forecast is fitted to.
|
|
398
|
+
*/
|
|
399
|
+
forecast_history_months: number;
|
|
400
|
+
/**
|
|
401
|
+
* Months the forecast projects forward.
|
|
402
|
+
*/
|
|
403
|
+
forecast_months: number;
|
|
404
|
+
/**
|
|
405
|
+
* Z-score applied to forecast variability.
|
|
406
|
+
*/
|
|
407
|
+
forecast_z: number;
|
|
408
|
+
/**
|
|
409
|
+
* How many leading weeks become a commitment when a version is published.
|
|
410
|
+
*/
|
|
411
|
+
frozen_weeks: number;
|
|
412
|
+
/**
|
|
413
|
+
* Timezone the cadence is interpreted in.
|
|
414
|
+
*/
|
|
415
|
+
generation_timezone: string;
|
|
416
|
+
/**
|
|
417
|
+
* Annual cost of holding stock, as a share of item value.
|
|
418
|
+
*/
|
|
419
|
+
holding_rate_pct: number;
|
|
420
|
+
/**
|
|
421
|
+
* Hours in a shift.
|
|
422
|
+
*/
|
|
423
|
+
hours_per_shift: number;
|
|
424
|
+
/**
|
|
425
|
+
* How many steps downstream department work is derived for.
|
|
426
|
+
*/
|
|
427
|
+
max_flow_depth: number;
|
|
428
|
+
/**
|
|
429
|
+
* Ceiling on how far ahead any item is built.
|
|
430
|
+
*/
|
|
431
|
+
max_weeks_supply: number;
|
|
432
|
+
/**
|
|
433
|
+
* How many weeks a generated plan covers.
|
|
434
|
+
*/
|
|
435
|
+
planning_horizon_weeks: number;
|
|
436
|
+
/**
|
|
437
|
+
* Z-score for service level safety stock targets.
|
|
438
|
+
*/
|
|
439
|
+
service_level_z: number;
|
|
440
|
+
/**
|
|
441
|
+
* Shifts worked per day.
|
|
442
|
+
*/
|
|
443
|
+
shifts_per_day: number;
|
|
444
|
+
/**
|
|
445
|
+
* Day a planning week starts, where 0 is Sunday.
|
|
446
|
+
*/
|
|
447
|
+
week_start_day: number;
|
|
448
|
+
/**
|
|
449
|
+
* Weeks worked per year.
|
|
450
|
+
*/
|
|
451
|
+
weeks_per_year: number;
|
|
452
|
+
/**
|
|
453
|
+
* Days worked per week.
|
|
454
|
+
*/
|
|
455
|
+
work_days_per_week: number;
|
|
456
|
+
/**
|
|
457
|
+
* ID of the department that sets the pace of the factory. Every machine in it is
|
|
458
|
+
* planned, and every step downstream responds.
|
|
459
|
+
*/
|
|
460
|
+
constraint_department_id?: string | null;
|
|
461
|
+
/**
|
|
462
|
+
* Cron expression driving the generation cadence.
|
|
463
|
+
*/
|
|
464
|
+
generation_cron?: string | null;
|
|
465
|
+
}
|
|
466
|
+
export declare namespace ProductionScheduleSettings {
|
|
467
|
+
export { type ProductionScheduleSettings as ProductionScheduleSettings, type UpdateProductionScheduleSettingsRequest as UpdateProductionScheduleSettingsRequest, type ProductionScheduleSettingUpdateParams as ProductionScheduleSettingUpdateParams, };
|
|
468
|
+
export { Resources as Resources, type ListProductionScheduleResourceSetting as ListProductionScheduleResourceSetting, type ProductionScheduleResourceSetting as ProductionScheduleResourceSetting, type UpsertResourceSettingRequest as UpsertResourceSettingRequest, type ResourceDeleteResponse as ResourceDeleteResponse, type ResourceUpdateParams as ResourceUpdateParams, };
|
|
469
|
+
}
|
|
470
|
+
//# sourceMappingURL=production-schedule-settings.d.mts.map
|
package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"production-schedule-settings.d.mts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/production-schedule-settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,YAAY;OACjB,EACL,qCAAqC,EACrC,iCAAiC,EACjC,sBAAsB,EACtB,oBAAoB,EACpB,SAAS,EACT,4BAA4B,EAC7B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,WAAW;IACzD,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,MAAM,CACJ,IAAI,EAAE,qCAAqC,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAG1C;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,mBAAmB,EAAE,QAAQ,GAAG,UAAU,CAAC;IAE3C;;OAEG;IACH,cAA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