@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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
ProductionScheduleSettings,
|
|
5
|
+
type UpdateProductionScheduleSettingsRequest,
|
|
6
|
+
type ProductionScheduleSettingUpdateParams,
|
|
7
|
+
} from './production-schedule-settings';
|
|
8
|
+
export {
|
|
9
|
+
Resources,
|
|
10
|
+
type ListProductionScheduleResourceSetting,
|
|
11
|
+
type ProductionScheduleResourceSetting,
|
|
12
|
+
type UpsertResourceSettingRequest,
|
|
13
|
+
type ResourceDeleteResponse,
|
|
14
|
+
type ResourceUpdateParams,
|
|
15
|
+
} from './resources';
|
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as CoreAPI from '../../core/core';
|
|
5
|
+
import * as ResourcesAPI from './resources';
|
|
6
|
+
import {
|
|
7
|
+
ListProductionScheduleResourceSetting,
|
|
8
|
+
ProductionScheduleResourceSetting,
|
|
9
|
+
ResourceDeleteResponse,
|
|
10
|
+
ResourceUpdateParams,
|
|
11
|
+
Resources,
|
|
12
|
+
UpsertResourceSettingRequest,
|
|
13
|
+
} from './resources';
|
|
14
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
15
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
|
|
19
|
+
*/
|
|
20
|
+
export class ProductionScheduleSettings extends APIResource {
|
|
21
|
+
resources: ResourcesAPI.Resources = new ResourcesAPI.Resources(this._client);
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Returns the planning assumptions production schedules are solved against.
|
|
25
|
+
*
|
|
26
|
+
* Always fully populated: an account that has never saved settings gets the
|
|
27
|
+
* solver's own defaults rather than nulls, so a caller never has to know which
|
|
28
|
+
* values would otherwise be assumed. `settings_status` distinguishes the two.
|
|
29
|
+
*
|
|
30
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const productionScheduleSettings =
|
|
35
|
+
* await client.operations.productionScheduleSettings.list();
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
list(options?: RequestOptions): APIPromise<ProductionScheduleSettings> {
|
|
39
|
+
return this._client.get('/v1/operations/production-schedule-settings', options);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Replaces the planning assumptions production schedules are solved against.
|
|
44
|
+
*
|
|
45
|
+
* Settings are replaced wholesale rather than patched, because they are read as
|
|
46
|
+
* one coherent set: a horizon that no longer matches the frozen window, or a
|
|
47
|
+
* capacity headroom that no longer matches the shift pattern, would produce a plan
|
|
48
|
+
* nobody intended.
|
|
49
|
+
*
|
|
50
|
+
* Existing schedule versions are unaffected — each one snapshots the assumptions
|
|
51
|
+
* it was solved under, so changing settings changes future plans only.
|
|
52
|
+
*
|
|
53
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const productionScheduleSettings =
|
|
58
|
+
* await client.operations.productionScheduleSettings.update({
|
|
59
|
+
* auto_publish_status: 'inactive',
|
|
60
|
+
* cadence_status: 'inactive',
|
|
61
|
+
* capacity_headroom_pct: 0.9,
|
|
62
|
+
* changeover_avg_minutes: 0,
|
|
63
|
+
* changeover_labor_rate: 0,
|
|
64
|
+
* changeover_max_minutes: 0,
|
|
65
|
+
* changeover_min_minutes: 0,
|
|
66
|
+
* default_constraint_lead_time_weeks: 0,
|
|
67
|
+
* default_lot_units: 60,
|
|
68
|
+
* demand_basis: 'trailing_12',
|
|
69
|
+
* demand_window_months: 12,
|
|
70
|
+
* finish_lead_time_weeks: 0,
|
|
71
|
+
* forecast_history_months: 24,
|
|
72
|
+
* forecast_months: 12,
|
|
73
|
+
* forecast_z: 0,
|
|
74
|
+
* frozen_weeks: 1,
|
|
75
|
+
* generation_timezone: 'UTC',
|
|
76
|
+
* holding_rate_pct: 0,
|
|
77
|
+
* hours_per_shift: 7,
|
|
78
|
+
* max_flow_depth: 10,
|
|
79
|
+
* max_weeks_supply: 12,
|
|
80
|
+
* planning_horizon_weeks: 13,
|
|
81
|
+
* service_level_z: 0,
|
|
82
|
+
* shifts_per_day: 2,
|
|
83
|
+
* week_start_day: 1,
|
|
84
|
+
* weeks_per_year: 52,
|
|
85
|
+
* work_days_per_week: 5,
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
update(
|
|
90
|
+
body: ProductionScheduleSettingUpdateParams,
|
|
91
|
+
options?: RequestOptions,
|
|
92
|
+
): APIPromise<ProductionScheduleSettings> {
|
|
93
|
+
return this._client.put('/v1/operations/production-schedule-settings', { body, ...options });
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The planning assumptions a production schedule is solved against.
|
|
99
|
+
*
|
|
100
|
+
* Every value here was a hardcoded constant in the scheduling script this feature
|
|
101
|
+
* replaced. The resource is always fully populated: an account that has never
|
|
102
|
+
* saved settings gets the solver's own defaults, so a caller never has to know
|
|
103
|
+
* which values would otherwise be assumed. `settings_status` says which of the two
|
|
104
|
+
* it is looking at.
|
|
105
|
+
*/
|
|
106
|
+
export interface ProductionScheduleSettings {
|
|
107
|
+
/**
|
|
108
|
+
* Whether a generated version is published automatically.
|
|
109
|
+
*/
|
|
110
|
+
auto_publish_status: 'active' | 'inactive';
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Whether schedules are generated on a timer.
|
|
114
|
+
*/
|
|
115
|
+
cadence_status: 'active' | 'inactive';
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Share of machine time a plan may fill. The remainder absorbs changeovers, which
|
|
119
|
+
* are not scheduled as explicit blocks.
|
|
120
|
+
*/
|
|
121
|
+
capacity_headroom_pct: number;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Typical changeover duration, used to calibrate the changeover model.
|
|
125
|
+
*/
|
|
126
|
+
changeover_avg_minutes: number;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Hourly labour rate charged to a changeover.
|
|
130
|
+
*/
|
|
131
|
+
changeover_labor_rate: number;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Longest plausible changeover.
|
|
135
|
+
*/
|
|
136
|
+
changeover_max_minutes: number;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Shortest plausible changeover.
|
|
140
|
+
*/
|
|
141
|
+
changeover_min_minutes: number;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
145
|
+
*/
|
|
146
|
+
constraint_department: CoreAPI.Entity | null;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Creation timestamp.
|
|
150
|
+
*/
|
|
151
|
+
created_at: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Default weeks of lead time at the constraint when an item has no measurement.
|
|
155
|
+
*/
|
|
156
|
+
default_constraint_lead_time_weeks: number;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Units in a default production lot.
|
|
160
|
+
*/
|
|
161
|
+
default_lot_units: number;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* How demand is derived.
|
|
165
|
+
*/
|
|
166
|
+
demand_basis: 'trailing_12' | 'seasonal_ema';
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Months of order history the demand baseline is drawn from.
|
|
170
|
+
*/
|
|
171
|
+
demand_window_months: number;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Weeks between finishing at the constraint and being sellable.
|
|
175
|
+
*/
|
|
176
|
+
finish_lead_time_weeks: number;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Months of history the forecast is fitted to.
|
|
180
|
+
*/
|
|
181
|
+
forecast_history_months: number;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Months the forecast projects forward.
|
|
185
|
+
*/
|
|
186
|
+
forecast_months: number;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Z-score applied to forecast variability.
|
|
190
|
+
*/
|
|
191
|
+
forecast_z: number;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* How many leading weeks become a commitment when a version is published.
|
|
195
|
+
*/
|
|
196
|
+
frozen_weeks: number;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Cron expression driving the generation cadence.
|
|
200
|
+
*/
|
|
201
|
+
generation_cron: string | null;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Timezone the cadence is interpreted in.
|
|
205
|
+
*/
|
|
206
|
+
generation_timezone: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Annual cost of holding stock, as a share of item value.
|
|
210
|
+
*/
|
|
211
|
+
holding_rate_pct: number;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Hours in a shift.
|
|
215
|
+
*/
|
|
216
|
+
hours_per_shift: number;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* When the cadence last fired.
|
|
220
|
+
*/
|
|
221
|
+
last_generated_at: string | null;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* How many steps downstream department work is derived for.
|
|
225
|
+
*/
|
|
226
|
+
max_flow_depth: number;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Ceiling on how far ahead any item is built.
|
|
230
|
+
*/
|
|
231
|
+
max_weeks_supply: number;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Resource type identifier.
|
|
235
|
+
*/
|
|
236
|
+
object: 'production_schedule_settings';
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* How many weeks a generated plan covers.
|
|
240
|
+
*/
|
|
241
|
+
planning_horizon_weeks: number;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Z-score for the service level safety stock targets.
|
|
245
|
+
*/
|
|
246
|
+
service_level_z: number;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Whether these are the merchant's saved values or the solver's defaults.
|
|
250
|
+
*/
|
|
251
|
+
settings_status: 'stored' | 'default';
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Shifts worked per day.
|
|
255
|
+
*/
|
|
256
|
+
shifts_per_day: number;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Last updated timestamp.
|
|
260
|
+
*/
|
|
261
|
+
updated_at: string;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Day a planning week starts, where 0 is Sunday.
|
|
265
|
+
*/
|
|
266
|
+
week_start_day: number;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Weeks worked per year.
|
|
270
|
+
*/
|
|
271
|
+
weeks_per_year: number;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Days worked per week.
|
|
275
|
+
*/
|
|
276
|
+
work_days_per_week: number;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Request to replace the account's planning assumptions.
|
|
281
|
+
*/
|
|
282
|
+
export interface UpdateProductionScheduleSettingsRequest {
|
|
283
|
+
/**
|
|
284
|
+
* Whether a generated version is published automatically.
|
|
285
|
+
*/
|
|
286
|
+
auto_publish_status: 'active' | 'inactive';
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Whether schedules are generated on a timer.
|
|
290
|
+
*/
|
|
291
|
+
cadence_status: 'active' | 'inactive';
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Share of machine time a plan may fill.
|
|
295
|
+
*/
|
|
296
|
+
capacity_headroom_pct: number;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Typical changeover duration.
|
|
300
|
+
*/
|
|
301
|
+
changeover_avg_minutes: number;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Hourly labour rate charged to a changeover.
|
|
305
|
+
*/
|
|
306
|
+
changeover_labor_rate: number;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Longest plausible changeover.
|
|
310
|
+
*/
|
|
311
|
+
changeover_max_minutes: number;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Shortest plausible changeover.
|
|
315
|
+
*/
|
|
316
|
+
changeover_min_minutes: number;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Default weeks of lead time at the constraint.
|
|
320
|
+
*/
|
|
321
|
+
default_constraint_lead_time_weeks: number;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Units in a default production lot.
|
|
325
|
+
*/
|
|
326
|
+
default_lot_units: number;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* How demand is derived.
|
|
330
|
+
*/
|
|
331
|
+
demand_basis: 'trailing_12' | 'seasonal_ema';
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Months of order history the demand baseline is drawn from.
|
|
335
|
+
*/
|
|
336
|
+
demand_window_months: number;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Weeks between finishing at the constraint and being sellable.
|
|
340
|
+
*/
|
|
341
|
+
finish_lead_time_weeks: number;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Months of history the forecast is fitted to.
|
|
345
|
+
*/
|
|
346
|
+
forecast_history_months: number;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Months the forecast projects forward.
|
|
350
|
+
*/
|
|
351
|
+
forecast_months: number;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Z-score applied to forecast variability.
|
|
355
|
+
*/
|
|
356
|
+
forecast_z: number;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* How many leading weeks become a commitment when a version is published.
|
|
360
|
+
*/
|
|
361
|
+
frozen_weeks: number;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Timezone the cadence is interpreted in.
|
|
365
|
+
*/
|
|
366
|
+
generation_timezone: string;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Annual cost of holding stock, as a share of item value.
|
|
370
|
+
*/
|
|
371
|
+
holding_rate_pct: number;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Hours in a shift.
|
|
375
|
+
*/
|
|
376
|
+
hours_per_shift: number;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* How many steps downstream department work is derived for.
|
|
380
|
+
*/
|
|
381
|
+
max_flow_depth: number;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Ceiling on how far ahead any item is built.
|
|
385
|
+
*/
|
|
386
|
+
max_weeks_supply: number;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* How many weeks a generated plan covers.
|
|
390
|
+
*/
|
|
391
|
+
planning_horizon_weeks: number;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Z-score for service level safety stock targets.
|
|
395
|
+
*/
|
|
396
|
+
service_level_z: number;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Shifts worked per day.
|
|
400
|
+
*/
|
|
401
|
+
shifts_per_day: number;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Day a planning week starts, where 0 is Sunday.
|
|
405
|
+
*/
|
|
406
|
+
week_start_day: number;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Weeks worked per year.
|
|
410
|
+
*/
|
|
411
|
+
weeks_per_year: number;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Days worked per week.
|
|
415
|
+
*/
|
|
416
|
+
work_days_per_week: number;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* ID of the department that sets the pace of the factory. Every machine in it is
|
|
420
|
+
* planned, and every step downstream responds.
|
|
421
|
+
*/
|
|
422
|
+
constraint_department_id?: string | null;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Cron expression driving the generation cadence.
|
|
426
|
+
*/
|
|
427
|
+
generation_cron?: string | null;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface ProductionScheduleSettingUpdateParams {
|
|
431
|
+
/**
|
|
432
|
+
* Whether a generated version is published automatically.
|
|
433
|
+
*/
|
|
434
|
+
auto_publish_status: 'active' | 'inactive';
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Whether schedules are generated on a timer.
|
|
438
|
+
*/
|
|
439
|
+
cadence_status: 'active' | 'inactive';
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Share of machine time a plan may fill.
|
|
443
|
+
*/
|
|
444
|
+
capacity_headroom_pct: number;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Typical changeover duration.
|
|
448
|
+
*/
|
|
449
|
+
changeover_avg_minutes: number;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Hourly labour rate charged to a changeover.
|
|
453
|
+
*/
|
|
454
|
+
changeover_labor_rate: number;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Longest plausible changeover.
|
|
458
|
+
*/
|
|
459
|
+
changeover_max_minutes: number;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Shortest plausible changeover.
|
|
463
|
+
*/
|
|
464
|
+
changeover_min_minutes: number;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Default weeks of lead time at the constraint.
|
|
468
|
+
*/
|
|
469
|
+
default_constraint_lead_time_weeks: number;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Units in a default production lot.
|
|
473
|
+
*/
|
|
474
|
+
default_lot_units: number;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* How demand is derived.
|
|
478
|
+
*/
|
|
479
|
+
demand_basis: 'trailing_12' | 'seasonal_ema';
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Months of order history the demand baseline is drawn from.
|
|
483
|
+
*/
|
|
484
|
+
demand_window_months: number;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Weeks between finishing at the constraint and being sellable.
|
|
488
|
+
*/
|
|
489
|
+
finish_lead_time_weeks: number;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Months of history the forecast is fitted to.
|
|
493
|
+
*/
|
|
494
|
+
forecast_history_months: number;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Months the forecast projects forward.
|
|
498
|
+
*/
|
|
499
|
+
forecast_months: number;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Z-score applied to forecast variability.
|
|
503
|
+
*/
|
|
504
|
+
forecast_z: number;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* How many leading weeks become a commitment when a version is published.
|
|
508
|
+
*/
|
|
509
|
+
frozen_weeks: number;
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Timezone the cadence is interpreted in.
|
|
513
|
+
*/
|
|
514
|
+
generation_timezone: string;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Annual cost of holding stock, as a share of item value.
|
|
518
|
+
*/
|
|
519
|
+
holding_rate_pct: number;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Hours in a shift.
|
|
523
|
+
*/
|
|
524
|
+
hours_per_shift: number;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* How many steps downstream department work is derived for.
|
|
528
|
+
*/
|
|
529
|
+
max_flow_depth: number;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Ceiling on how far ahead any item is built.
|
|
533
|
+
*/
|
|
534
|
+
max_weeks_supply: number;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* How many weeks a generated plan covers.
|
|
538
|
+
*/
|
|
539
|
+
planning_horizon_weeks: number;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Z-score for service level safety stock targets.
|
|
543
|
+
*/
|
|
544
|
+
service_level_z: number;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Shifts worked per day.
|
|
548
|
+
*/
|
|
549
|
+
shifts_per_day: number;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Day a planning week starts, where 0 is Sunday.
|
|
553
|
+
*/
|
|
554
|
+
week_start_day: number;
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Weeks worked per year.
|
|
558
|
+
*/
|
|
559
|
+
weeks_per_year: number;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Days worked per week.
|
|
563
|
+
*/
|
|
564
|
+
work_days_per_week: number;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* ID of the department that sets the pace of the factory. Every machine in it is
|
|
568
|
+
* planned, and every step downstream responds.
|
|
569
|
+
*/
|
|
570
|
+
constraint_department_id?: string | null;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Cron expression driving the generation cadence.
|
|
574
|
+
*/
|
|
575
|
+
generation_cron?: string | null;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
ProductionScheduleSettings.Resources = Resources;
|
|
579
|
+
|
|
580
|
+
export declare namespace ProductionScheduleSettings {
|
|
581
|
+
export {
|
|
582
|
+
type ProductionScheduleSettings as ProductionScheduleSettings,
|
|
583
|
+
type UpdateProductionScheduleSettingsRequest as UpdateProductionScheduleSettingsRequest,
|
|
584
|
+
type ProductionScheduleSettingUpdateParams as ProductionScheduleSettingUpdateParams,
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
export {
|
|
588
|
+
Resources as Resources,
|
|
589
|
+
type ListProductionScheduleResourceSetting as ListProductionScheduleResourceSetting,
|
|
590
|
+
type ProductionScheduleResourceSetting as ProductionScheduleResourceSetting,
|
|
591
|
+
type UpsertResourceSettingRequest as UpsertResourceSettingRequest,
|
|
592
|
+
type ResourceDeleteResponse as ResourceDeleteResponse,
|
|
593
|
+
type ResourceUpdateParams as ResourceUpdateParams,
|
|
594
|
+
};
|
|
595
|
+
}
|