@augno/sdk 0.14.0 → 0.15.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 +2 -2
- package/package.json +1 -1
- package/resources/catalog/product-lines/product-lines.d.mts +53 -0
- package/resources/catalog/product-lines/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines/product-lines.d.ts +53 -0
- package/resources/catalog/product-lines/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines/product-lines.js.map +1 -1
- package/resources/catalog/product-lines/product-lines.mjs.map +1 -1
- package/resources/core/analytics.d.mts +252 -1
- package/resources/core/analytics.d.mts.map +1 -1
- package/resources/core/analytics.d.ts +252 -1
- package/resources/core/analytics.d.ts.map +1 -1
- package/resources/core/analytics.js +38 -0
- package/resources/core/analytics.js.map +1 -1
- package/resources/core/analytics.mjs +38 -0
- package/resources/core/analytics.mjs.map +1 -1
- 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 +4 -4
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +4 -4
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/index.d.mts +1 -1
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +1 -1
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.js.map +1 -1
- package/resources/core/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/fulfillment-recommendations/actions.d.mts +59 -0
- package/resources/operations/fulfillment-recommendations/actions.d.mts.map +1 -0
- package/resources/operations/fulfillment-recommendations/actions.d.ts +59 -0
- package/resources/operations/fulfillment-recommendations/actions.d.ts.map +1 -0
- package/resources/operations/fulfillment-recommendations/actions.js +40 -0
- package/resources/operations/fulfillment-recommendations/actions.js.map +1 -0
- package/resources/operations/fulfillment-recommendations/actions.mjs +36 -0
- package/resources/operations/fulfillment-recommendations/actions.mjs.map +1 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.mts +165 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.mts.map +1 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.ts +165 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.ts.map +1 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.js +52 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.js.map +1 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.mjs +47 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.mjs.map +1 -0
- package/resources/operations/fulfillment-recommendations/index.d.mts +3 -0
- package/resources/operations/fulfillment-recommendations/index.d.mts.map +1 -0
- package/resources/operations/fulfillment-recommendations/index.d.ts +3 -0
- package/resources/operations/fulfillment-recommendations/index.d.ts.map +1 -0
- package/resources/operations/fulfillment-recommendations/index.js +9 -0
- package/resources/operations/fulfillment-recommendations/index.js.map +1 -0
- package/resources/operations/fulfillment-recommendations/index.mjs +4 -0
- package/resources/operations/fulfillment-recommendations/index.mjs.map +1 -0
- package/resources/operations/fulfillment-recommendations.d.mts +2 -0
- package/resources/operations/fulfillment-recommendations.d.mts.map +1 -0
- package/resources/operations/fulfillment-recommendations.d.ts +2 -0
- package/resources/operations/fulfillment-recommendations.d.ts.map +1 -0
- package/resources/operations/fulfillment-recommendations.js +6 -0
- package/resources/operations/fulfillment-recommendations.js.map +1 -0
- package/resources/operations/fulfillment-recommendations.mjs +3 -0
- package/resources/operations/fulfillment-recommendations.mjs.map +1 -0
- package/resources/operations/index.d.mts +2 -1
- package/resources/operations/index.d.mts.map +1 -1
- package/resources/operations/index.d.ts +2 -1
- package/resources/operations/index.d.ts.map +1 -1
- package/resources/operations/index.js +11 -9
- 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/operations.d.mts +6 -2
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +6 -2
- 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/index.d.mts +1 -0
- package/resources/operations/production-schedule-settings/index.d.mts.map +1 -1
- package/resources/operations/production-schedule-settings/index.d.ts +1 -0
- package/resources/operations/production-schedule-settings/index.d.ts.map +1 -1
- package/resources/operations/production-schedule-settings/index.js +3 -1
- package/resources/operations/production-schedule-settings/index.js.map +1 -1
- package/resources/operations/production-schedule-settings/index.mjs +1 -0
- package/resources/operations/production-schedule-settings/index.mjs.map +1 -1
- package/resources/operations/production-schedule-settings/items.d.mts +228 -0
- package/resources/operations/production-schedule-settings/items.d.mts.map +1 -0
- package/resources/operations/production-schedule-settings/items.d.ts +228 -0
- package/resources/operations/production-schedule-settings/items.d.ts.map +1 -0
- package/resources/operations/production-schedule-settings/items.js +109 -0
- package/resources/operations/production-schedule-settings/items.js.map +1 -0
- package/resources/operations/production-schedule-settings/items.mjs +105 -0
- package/resources/operations/production-schedule-settings/items.mjs.map +1 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts +60 -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 +60 -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 +6 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.js.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.mjs +6 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map +1 -1
- package/resources/operations/production-schedules/actions.d.mts +117 -1
- package/resources/operations/production-schedules/actions.d.mts.map +1 -1
- package/resources/operations/production-schedules/actions.d.ts +117 -1
- package/resources/operations/production-schedules/actions.d.ts.map +1 -1
- package/resources/operations/production-schedules/actions.js +34 -0
- package/resources/operations/production-schedules/actions.js.map +1 -1
- package/resources/operations/production-schedules/actions.mjs +34 -0
- package/resources/operations/production-schedules/actions.mjs.map +1 -1
- package/resources/operations/production-schedules/index.d.mts +2 -2
- package/resources/operations/production-schedules/index.d.mts.map +1 -1
- package/resources/operations/production-schedules/index.d.ts +2 -2
- package/resources/operations/production-schedules/index.d.ts.map +1 -1
- package/resources/operations/production-schedules/index.js.map +1 -1
- package/resources/operations/production-schedules/index.mjs.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.mts +260 -3
- package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.ts +260 -3
- package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.js +29 -0
- package/resources/operations/production-schedules/production-schedules.js.map +1 -1
- package/resources/operations/production-schedules/production-schedules.mjs +29 -0
- package/resources/operations/production-schedules/production-schedules.mjs.map +1 -1
- package/resources/sales/account-groups.d.mts +27 -0
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +27 -0
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/customers/customers.d.mts +99 -1
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +99 -1
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +27 -0
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +27 -0
- 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/sales-orders.d.mts +35 -0
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +35 -0
- 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/resources/catalog/product-lines/product-lines.ts +58 -0
- package/src/resources/core/analytics.ts +300 -0
- package/src/resources/core/audit-events.ts +40 -0
- package/src/resources/core/core.ts +34 -0
- package/src/resources/core/index.ts +7 -0
- package/src/resources/messaging/conversations/conversations.ts +30 -0
- package/src/resources/messaging/conversations/links.ts +20 -0
- package/src/resources/messaging/conversations/messages.ts +20 -0
- package/src/resources/messaging/notifications/notifications.ts +20 -0
- package/src/resources/operations/fulfillment-recommendations/actions.ts +75 -0
- package/src/resources/operations/fulfillment-recommendations/fulfillment-recommendations.ts +206 -0
- package/src/resources/operations/fulfillment-recommendations/index.ts +8 -0
- package/src/resources/operations/fulfillment-recommendations.ts +3 -0
- package/src/resources/operations/index.ts +11 -0
- package/src/resources/operations/operations.ts +27 -0
- package/src/resources/operations/production-schedule-settings/index.ts +8 -0
- package/src/resources/operations/production-schedule-settings/items.ts +273 -0
- package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +82 -0
- package/src/resources/operations/production-schedules/actions.ts +144 -0
- package/src/resources/operations/production-schedules/index.ts +9 -0
- package/src/resources/operations/production-schedules/production-schedules.ts +310 -0
- package/src/resources/sales/account-groups.ts +32 -0
- package/src/resources/sales/customers/customers.ts +112 -0
- package/src/resources/sales/customers/index.ts +1 -0
- package/src/resources/sales/index.ts +1 -0
- package/src/resources/sales/sales-orders/sales-orders.ts +41 -0
- package/src/resources/sales/sales.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,109 @@
|
|
|
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.Items = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
|
|
9
|
+
*/
|
|
10
|
+
class Items extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns every per-item planning override in the account.
|
|
13
|
+
*
|
|
14
|
+
* Only items that have been given an override appear here. An item with none is
|
|
15
|
+
* planned on the account defaults and its product line's conventions, which is the
|
|
16
|
+
* normal case — this is the list of exceptions, not a list of every item.
|
|
17
|
+
*
|
|
18
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const listProductionScheduleItemSetting =
|
|
23
|
+
* await client.operations.productionScheduleSettings.items.list();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
return this._client.get('/v1/operations/production-schedule-settings/items', options);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Returns the planning overrides for one item.
|
|
31
|
+
*
|
|
32
|
+
* Fails with a not-found error when the item has none, rather than returning an
|
|
33
|
+
* empty set of overrides: an item with no overrides is planned on the account
|
|
34
|
+
* defaults and its product line's conventions, and reporting that as a resource
|
|
35
|
+
* would suggest there is something here to edit.
|
|
36
|
+
*
|
|
37
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const productionScheduleItemSetting =
|
|
42
|
+
* await client.operations.productionScheduleSettings.items.retrieve(
|
|
43
|
+
* 'example',
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
retrieve(itemID, options) {
|
|
48
|
+
return this._client.get((0, path_1.path) `/v1/operations/production-schedule-settings/items/${itemID}`, options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Writes the planning overrides for one item.
|
|
52
|
+
*
|
|
53
|
+
* An item has at most one set of overrides, so this replaces the existing entry
|
|
54
|
+
* rather than adding a second, and the entry keeps the ID it already had.
|
|
55
|
+
*
|
|
56
|
+
* The fulfillment policy is the most consequential of these. A `make_to_order`
|
|
57
|
+
* item contributes no forecast demand and holds no safety stock, so it is built
|
|
58
|
+
* only against orders already on the book — which is what stops a slow mover
|
|
59
|
+
* accumulating inventory nobody asked for. It also propagates: an intermediate
|
|
60
|
+
* item is planned to order only when every finished good it becomes is, so one
|
|
61
|
+
* stocked sibling keeps the whole family buffered.
|
|
62
|
+
*
|
|
63
|
+
* Overrides are read when a plan is generated, so a change takes effect on the
|
|
64
|
+
* next generated version and leaves existing ones untouched.
|
|
65
|
+
*
|
|
66
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const productionScheduleItemSetting =
|
|
71
|
+
* await client.operations.productionScheduleSettings.items.update(
|
|
72
|
+
* 'example',
|
|
73
|
+
* {
|
|
74
|
+
* participation_status: 'included',
|
|
75
|
+
* fulfillment_policy: 'make_to_order',
|
|
76
|
+
* },
|
|
77
|
+
* );
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
update(itemID, body, options) {
|
|
81
|
+
return this._client.put((0, path_1.path) `/v1/operations/production-schedule-settings/items/${itemID}`, {
|
|
82
|
+
body,
|
|
83
|
+
...options,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Removes one item's planning overrides, returning it to the account defaults and
|
|
88
|
+
* its product line's conventions.
|
|
89
|
+
*
|
|
90
|
+
* Fails with a not-found error when the item has no overrides, rather than
|
|
91
|
+
* reporting success: a mistyped item ID would otherwise read as a change that
|
|
92
|
+
* never happened.
|
|
93
|
+
*
|
|
94
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```ts
|
|
98
|
+
* const item =
|
|
99
|
+
* await client.operations.productionScheduleSettings.items.delete(
|
|
100
|
+
* 'example',
|
|
101
|
+
* );
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
delete(itemID, options) {
|
|
105
|
+
return this._client.delete((0, path_1.path) `/v1/operations/production-schedule-settings/items/${itemID}`, options);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.Items = Items;
|
|
109
|
+
//# sourceMappingURL=items.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mDAAmD,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qDAAqD,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CACJ,MAAc,EACd,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qDAAqD,MAAM,EAAE,EAAE;YACzF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qDAAqD,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;CACF;AAxGD,sBAwGC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
|
|
6
|
+
*/
|
|
7
|
+
export class Items extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns every per-item planning override in the account.
|
|
10
|
+
*
|
|
11
|
+
* Only items that have been given an override appear here. An item with none is
|
|
12
|
+
* planned on the account defaults and its product line's conventions, which is the
|
|
13
|
+
* normal case — this is the list of exceptions, not a list of every item.
|
|
14
|
+
*
|
|
15
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const listProductionScheduleItemSetting =
|
|
20
|
+
* await client.operations.productionScheduleSettings.items.list();
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
list(options) {
|
|
24
|
+
return this._client.get('/v1/operations/production-schedule-settings/items', options);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns the planning overrides for one item.
|
|
28
|
+
*
|
|
29
|
+
* Fails with a not-found error when the item has none, rather than returning an
|
|
30
|
+
* empty set of overrides: an item with no overrides is planned on the account
|
|
31
|
+
* defaults and its product line's conventions, and reporting that as a resource
|
|
32
|
+
* would suggest there is something here to edit.
|
|
33
|
+
*
|
|
34
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const productionScheduleItemSetting =
|
|
39
|
+
* await client.operations.productionScheduleSettings.items.retrieve(
|
|
40
|
+
* 'example',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
retrieve(itemID, options) {
|
|
45
|
+
return this._client.get(path `/v1/operations/production-schedule-settings/items/${itemID}`, options);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Writes the planning overrides for one item.
|
|
49
|
+
*
|
|
50
|
+
* An item has at most one set of overrides, so this replaces the existing entry
|
|
51
|
+
* rather than adding a second, and the entry keeps the ID it already had.
|
|
52
|
+
*
|
|
53
|
+
* The fulfillment policy is the most consequential of these. A `make_to_order`
|
|
54
|
+
* item contributes no forecast demand and holds no safety stock, so it is built
|
|
55
|
+
* only against orders already on the book — which is what stops a slow mover
|
|
56
|
+
* accumulating inventory nobody asked for. It also propagates: an intermediate
|
|
57
|
+
* item is planned to order only when every finished good it becomes is, so one
|
|
58
|
+
* stocked sibling keeps the whole family buffered.
|
|
59
|
+
*
|
|
60
|
+
* Overrides are read when a plan is generated, so a change takes effect on the
|
|
61
|
+
* next generated version and leaves existing ones untouched.
|
|
62
|
+
*
|
|
63
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const productionScheduleItemSetting =
|
|
68
|
+
* await client.operations.productionScheduleSettings.items.update(
|
|
69
|
+
* 'example',
|
|
70
|
+
* {
|
|
71
|
+
* participation_status: 'included',
|
|
72
|
+
* fulfillment_policy: 'make_to_order',
|
|
73
|
+
* },
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
update(itemID, body, options) {
|
|
78
|
+
return this._client.put(path `/v1/operations/production-schedule-settings/items/${itemID}`, {
|
|
79
|
+
body,
|
|
80
|
+
...options,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Removes one item's planning overrides, returning it to the account defaults and
|
|
85
|
+
* its product line's conventions.
|
|
86
|
+
*
|
|
87
|
+
* Fails with a not-found error when the item has no overrides, rather than
|
|
88
|
+
* reporting success: a mistyped item ID would otherwise read as a change that
|
|
89
|
+
* never happened.
|
|
90
|
+
*
|
|
91
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```ts
|
|
95
|
+
* const item =
|
|
96
|
+
* await client.operations.productionScheduleSettings.items.delete(
|
|
97
|
+
* 'example',
|
|
98
|
+
* );
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
delete(itemID, options) {
|
|
102
|
+
return this._client.delete(path `/v1/operations/production-schedule-settings/items/${itemID}`, options);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=items.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.mjs","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mDAAmD,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qDAAqD,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CACJ,MAAc,EACd,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qDAAqD,MAAM,EAAE,EAAE;YACzF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,qDAAqD,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;CACF"}
|
package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as CoreAPI from "../../core/core.mjs";
|
|
3
|
+
import * as ItemsAPI from "./items.mjs";
|
|
4
|
+
import { ItemDeleteResponse, ItemUpdateParams, Items, ListProductionScheduleItemSetting, ProductionScheduleItemSetting, UpsertItemSettingRequest } from "./items.mjs";
|
|
3
5
|
import * as ResourcesAPI from "./resources.mjs";
|
|
4
6
|
import { ListProductionScheduleResourceSetting, ProductionScheduleResourceSetting, ResourceDeleteResponse, ResourceUpdateParams, Resources, UpsertResourceSettingRequest } from "./resources.mjs";
|
|
5
7
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
@@ -9,6 +11,7 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
|
9
11
|
*/
|
|
10
12
|
export declare class ProductionScheduleSettings extends APIResource {
|
|
11
13
|
resources: ResourcesAPI.Resources;
|
|
14
|
+
items: ItemsAPI.Items;
|
|
12
15
|
/**
|
|
13
16
|
* Returns the planning assumptions production schedules are solved against.
|
|
14
17
|
*
|
|
@@ -59,6 +62,8 @@ export declare class ProductionScheduleSettings extends APIResource {
|
|
|
59
62
|
* changeover_max_minutes: 0,
|
|
60
63
|
* changeover_min_minutes: 0,
|
|
61
64
|
* default_constraint_lead_time_weeks: 0,
|
|
65
|
+
* default_customer_lead_time_days: 30,
|
|
66
|
+
* default_fulfillment_policy: 'make_to_stock',
|
|
62
67
|
* default_lot_units: 60,
|
|
63
68
|
* demand_basis: 'trailing_12',
|
|
64
69
|
* demand_window_months: 12,
|
|
@@ -161,6 +166,22 @@ export interface ProductionScheduleSettings {
|
|
|
161
166
|
* whenever one can be observed.
|
|
162
167
|
*/
|
|
163
168
|
default_constraint_lead_time_weeks: number;
|
|
169
|
+
/**
|
|
170
|
+
* Calendar days between an order being issued and it being due to ship.
|
|
171
|
+
*
|
|
172
|
+
* The last resort in the ship-by chain: a lead time set on the customer, or on the
|
|
173
|
+
* customer's account group, takes precedence. Zero means same-day shipping.
|
|
174
|
+
*/
|
|
175
|
+
default_customer_lead_time_days: number;
|
|
176
|
+
/**
|
|
177
|
+
* How a SKU is produced when neither it nor its product line says.
|
|
178
|
+
*
|
|
179
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
180
|
+
* variability.
|
|
181
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
182
|
+
* buffer.
|
|
183
|
+
*/
|
|
184
|
+
default_fulfillment_policy: 'make_to_stock' | 'make_to_order';
|
|
164
185
|
/**
|
|
165
186
|
* Units in a default production lot.
|
|
166
187
|
*
|
|
@@ -374,6 +395,25 @@ export interface UpdateProductionScheduleSettingsRequest {
|
|
|
374
395
|
* whenever one can be observed.
|
|
375
396
|
*/
|
|
376
397
|
default_constraint_lead_time_weeks: number;
|
|
398
|
+
/**
|
|
399
|
+
* Calendar days between an order being issued and it being due to ship.
|
|
400
|
+
*
|
|
401
|
+
* The last resort in the ship-by chain: a lead time set on the customer, or on the
|
|
402
|
+
* customer's account group, takes precedence. Zero commits the account to same-day
|
|
403
|
+
* shipping on every order that falls through to it, so this update replaces the
|
|
404
|
+
* whole settings object and omitting the field is not the same as leaving it
|
|
405
|
+
* alone.
|
|
406
|
+
*/
|
|
407
|
+
default_customer_lead_time_days: number;
|
|
408
|
+
/**
|
|
409
|
+
* How a SKU is produced when neither it nor its product line says.
|
|
410
|
+
*
|
|
411
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
412
|
+
* variability.
|
|
413
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
414
|
+
* buffer.
|
|
415
|
+
*/
|
|
416
|
+
default_fulfillment_policy: 'make_to_stock' | 'make_to_order';
|
|
377
417
|
/**
|
|
378
418
|
* Units in a default production lot.
|
|
379
419
|
*
|
|
@@ -572,6 +612,25 @@ export interface ProductionScheduleSettingUpdateParams {
|
|
|
572
612
|
* whenever one can be observed.
|
|
573
613
|
*/
|
|
574
614
|
default_constraint_lead_time_weeks: number;
|
|
615
|
+
/**
|
|
616
|
+
* Calendar days between an order being issued and it being due to ship.
|
|
617
|
+
*
|
|
618
|
+
* The last resort in the ship-by chain: a lead time set on the customer, or on the
|
|
619
|
+
* customer's account group, takes precedence. Zero commits the account to same-day
|
|
620
|
+
* shipping on every order that falls through to it, so this update replaces the
|
|
621
|
+
* whole settings object and omitting the field is not the same as leaving it
|
|
622
|
+
* alone.
|
|
623
|
+
*/
|
|
624
|
+
default_customer_lead_time_days: number;
|
|
625
|
+
/**
|
|
626
|
+
* How a SKU is produced when neither it nor its product line says.
|
|
627
|
+
*
|
|
628
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
629
|
+
* variability.
|
|
630
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
631
|
+
* buffer.
|
|
632
|
+
*/
|
|
633
|
+
default_fulfillment_policy: 'make_to_stock' | 'make_to_order';
|
|
575
634
|
/**
|
|
576
635
|
* Units in a default production lot.
|
|
577
636
|
*
|
|
@@ -711,5 +770,6 @@ export interface ProductionScheduleSettingUpdateParams {
|
|
|
711
770
|
export declare namespace ProductionScheduleSettings {
|
|
712
771
|
export { type ProductionScheduleSettings as ProductionScheduleSettings, type UpdateProductionScheduleSettingsRequest as UpdateProductionScheduleSettingsRequest, type ProductionScheduleSettingUpdateParams as ProductionScheduleSettingUpdateParams, };
|
|
713
772
|
export { Resources as Resources, type ListProductionScheduleResourceSetting as ListProductionScheduleResourceSetting, type ProductionScheduleResourceSetting as ProductionScheduleResourceSetting, type UpsertResourceSettingRequest as UpsertResourceSettingRequest, type ResourceDeleteResponse as ResourceDeleteResponse, type ResourceUpdateParams as ResourceUpdateParams, };
|
|
773
|
+
export { Items as Items, type ListProductionScheduleItemSetting as ListProductionScheduleItemSetting, type ProductionScheduleItemSetting as ProductionScheduleItemSetting, type UpsertItemSettingRequest as UpsertItemSettingRequest, type ItemDeleteResponse as ItemDeleteResponse, type ItemUpdateParams as ItemUpdateParams, };
|
|
714
774
|
}
|
|
715
775
|
//# sourceMappingURL=production-schedule-settings.d.mts.map
|
package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts.map
CHANGED
|
@@ -1 +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;
|
|
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,QAAQ;OACb,EACL,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,iCAAiC,EACjC,6BAA6B,EAC7B,wBAAwB,EACzB;OACM,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;I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|
|
3
|
+
import * as ItemsAPI from "./items.js";
|
|
4
|
+
import { ItemDeleteResponse, ItemUpdateParams, Items, ListProductionScheduleItemSetting, ProductionScheduleItemSetting, UpsertItemSettingRequest } from "./items.js";
|
|
3
5
|
import * as ResourcesAPI from "./resources.js";
|
|
4
6
|
import { ListProductionScheduleResourceSetting, ProductionScheduleResourceSetting, ResourceDeleteResponse, ResourceUpdateParams, Resources, UpsertResourceSettingRequest } from "./resources.js";
|
|
5
7
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
@@ -9,6 +11,7 @@ import { RequestOptions } from "../../../internal/request-options.js";
|
|
|
9
11
|
*/
|
|
10
12
|
export declare class ProductionScheduleSettings extends APIResource {
|
|
11
13
|
resources: ResourcesAPI.Resources;
|
|
14
|
+
items: ItemsAPI.Items;
|
|
12
15
|
/**
|
|
13
16
|
* Returns the planning assumptions production schedules are solved against.
|
|
14
17
|
*
|
|
@@ -59,6 +62,8 @@ export declare class ProductionScheduleSettings extends APIResource {
|
|
|
59
62
|
* changeover_max_minutes: 0,
|
|
60
63
|
* changeover_min_minutes: 0,
|
|
61
64
|
* default_constraint_lead_time_weeks: 0,
|
|
65
|
+
* default_customer_lead_time_days: 30,
|
|
66
|
+
* default_fulfillment_policy: 'make_to_stock',
|
|
62
67
|
* default_lot_units: 60,
|
|
63
68
|
* demand_basis: 'trailing_12',
|
|
64
69
|
* demand_window_months: 12,
|
|
@@ -161,6 +166,22 @@ export interface ProductionScheduleSettings {
|
|
|
161
166
|
* whenever one can be observed.
|
|
162
167
|
*/
|
|
163
168
|
default_constraint_lead_time_weeks: number;
|
|
169
|
+
/**
|
|
170
|
+
* Calendar days between an order being issued and it being due to ship.
|
|
171
|
+
*
|
|
172
|
+
* The last resort in the ship-by chain: a lead time set on the customer, or on the
|
|
173
|
+
* customer's account group, takes precedence. Zero means same-day shipping.
|
|
174
|
+
*/
|
|
175
|
+
default_customer_lead_time_days: number;
|
|
176
|
+
/**
|
|
177
|
+
* How a SKU is produced when neither it nor its product line says.
|
|
178
|
+
*
|
|
179
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
180
|
+
* variability.
|
|
181
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
182
|
+
* buffer.
|
|
183
|
+
*/
|
|
184
|
+
default_fulfillment_policy: 'make_to_stock' | 'make_to_order';
|
|
164
185
|
/**
|
|
165
186
|
* Units in a default production lot.
|
|
166
187
|
*
|
|
@@ -374,6 +395,25 @@ export interface UpdateProductionScheduleSettingsRequest {
|
|
|
374
395
|
* whenever one can be observed.
|
|
375
396
|
*/
|
|
376
397
|
default_constraint_lead_time_weeks: number;
|
|
398
|
+
/**
|
|
399
|
+
* Calendar days between an order being issued and it being due to ship.
|
|
400
|
+
*
|
|
401
|
+
* The last resort in the ship-by chain: a lead time set on the customer, or on the
|
|
402
|
+
* customer's account group, takes precedence. Zero commits the account to same-day
|
|
403
|
+
* shipping on every order that falls through to it, so this update replaces the
|
|
404
|
+
* whole settings object and omitting the field is not the same as leaving it
|
|
405
|
+
* alone.
|
|
406
|
+
*/
|
|
407
|
+
default_customer_lead_time_days: number;
|
|
408
|
+
/**
|
|
409
|
+
* How a SKU is produced when neither it nor its product line says.
|
|
410
|
+
*
|
|
411
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
412
|
+
* variability.
|
|
413
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
414
|
+
* buffer.
|
|
415
|
+
*/
|
|
416
|
+
default_fulfillment_policy: 'make_to_stock' | 'make_to_order';
|
|
377
417
|
/**
|
|
378
418
|
* Units in a default production lot.
|
|
379
419
|
*
|
|
@@ -572,6 +612,25 @@ export interface ProductionScheduleSettingUpdateParams {
|
|
|
572
612
|
* whenever one can be observed.
|
|
573
613
|
*/
|
|
574
614
|
default_constraint_lead_time_weeks: number;
|
|
615
|
+
/**
|
|
616
|
+
* Calendar days between an order being issued and it being due to ship.
|
|
617
|
+
*
|
|
618
|
+
* The last resort in the ship-by chain: a lead time set on the customer, or on the
|
|
619
|
+
* customer's account group, takes precedence. Zero commits the account to same-day
|
|
620
|
+
* shipping on every order that falls through to it, so this update replaces the
|
|
621
|
+
* whole settings object and omitting the field is not the same as leaving it
|
|
622
|
+
* alone.
|
|
623
|
+
*/
|
|
624
|
+
default_customer_lead_time_days: number;
|
|
625
|
+
/**
|
|
626
|
+
* How a SKU is produced when neither it nor its product line says.
|
|
627
|
+
*
|
|
628
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
629
|
+
* variability.
|
|
630
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
631
|
+
* buffer.
|
|
632
|
+
*/
|
|
633
|
+
default_fulfillment_policy: 'make_to_stock' | 'make_to_order';
|
|
575
634
|
/**
|
|
576
635
|
* Units in a default production lot.
|
|
577
636
|
*
|
|
@@ -711,5 +770,6 @@ export interface ProductionScheduleSettingUpdateParams {
|
|
|
711
770
|
export declare namespace ProductionScheduleSettings {
|
|
712
771
|
export { type ProductionScheduleSettings as ProductionScheduleSettings, type UpdateProductionScheduleSettingsRequest as UpdateProductionScheduleSettingsRequest, type ProductionScheduleSettingUpdateParams as ProductionScheduleSettingUpdateParams, };
|
|
713
772
|
export { Resources as Resources, type ListProductionScheduleResourceSetting as ListProductionScheduleResourceSetting, type ProductionScheduleResourceSetting as ProductionScheduleResourceSetting, type UpsertResourceSettingRequest as UpsertResourceSettingRequest, type ResourceDeleteResponse as ResourceDeleteResponse, type ResourceUpdateParams as ResourceUpdateParams, };
|
|
773
|
+
export { Items as Items, type ListProductionScheduleItemSetting as ListProductionScheduleItemSetting, type ProductionScheduleItemSetting as ProductionScheduleItemSetting, type UpsertItemSettingRequest as UpsertItemSettingRequest, type ItemDeleteResponse as ItemDeleteResponse, type ItemUpdateParams as ItemUpdateParams, };
|
|
714
774
|
}
|
|
715
775
|
//# sourceMappingURL=production-schedule-settings.d.ts.map
|
package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"production-schedule-settings.d.ts","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;
|
|
1
|
+
{"version":3,"file":"production-schedule-settings.d.ts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/production-schedule-settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,QAAQ;OACb,EACL,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,iCAAiC,EACjC,6BAA6B,EAC7B,wBAAwB,EACzB;OACM,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;IAC7E,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqDG;IACH,MAAM,CACJ,IAAI,EAAE,qCAAqC,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,C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M,CAAC;IAEvB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;;;;;;OASG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAKD,MAAM,CAAC,OAAO,WAAW,0BAA0B,CAAC;IAClD,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,qCAAqC,IAAI,qCAAqC,GACpF,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ProductionScheduleSettings = void 0;
|
|
5
5
|
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const ItemsAPI = tslib_1.__importStar(require("./items.js"));
|
|
8
|
+
const items_1 = require("./items.js");
|
|
7
9
|
const ResourcesAPI = tslib_1.__importStar(require("./resources.js"));
|
|
8
10
|
const resources_1 = require("./resources.js");
|
|
9
11
|
/**
|
|
@@ -13,6 +15,7 @@ class ProductionScheduleSettings extends resource_1.APIResource {
|
|
|
13
15
|
constructor() {
|
|
14
16
|
super(...arguments);
|
|
15
17
|
this.resources = new ResourcesAPI.Resources(this._client);
|
|
18
|
+
this.items = new ItemsAPI.Items(this._client);
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
21
|
* Returns the planning assumptions production schedules are solved against.
|
|
@@ -66,6 +69,8 @@ class ProductionScheduleSettings extends resource_1.APIResource {
|
|
|
66
69
|
* changeover_max_minutes: 0,
|
|
67
70
|
* changeover_min_minutes: 0,
|
|
68
71
|
* default_constraint_lead_time_weeks: 0,
|
|
72
|
+
* default_customer_lead_time_days: 30,
|
|
73
|
+
* default_fulfillment_policy: 'make_to_stock',
|
|
69
74
|
* default_lot_units: 60,
|
|
70
75
|
* demand_basis: 'trailing_12',
|
|
71
76
|
* demand_window_months: 12,
|
|
@@ -94,4 +99,5 @@ class ProductionScheduleSettings extends resource_1.APIResource {
|
|
|
94
99
|
}
|
|
95
100
|
exports.ProductionScheduleSettings = ProductionScheduleSettings;
|
|
96
101
|
ProductionScheduleSettings.Resources = resources_1.Resources;
|
|
102
|
+
ProductionScheduleSettings.Items = items_1.Items;
|
|
97
103
|
//# sourceMappingURL=production-schedule-settings.js.map
|
package/resources/operations/production-schedule-settings/production-schedule-settings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"production-schedule-settings.js","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/production-schedule-settings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,qEAA4C;AAC5C,8CAOqB;AAIrB;;GAEG;AACH,MAAa,0BAA2B,SAAQ,sBAAW;IAA3D;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"production-schedule-settings.js","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/production-schedule-settings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,6DAAoC;AACpC,sCAOiB;AACjB,qEAA4C;AAC5C,8CAOqB;AAIrB;;GAEG;AACH,MAAa,0BAA2B,SAAQ,sBAAW;IAA3D;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqF3D,CAAC;IAnFC;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6CAA6C,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqDG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6CAA6C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF;AAvFD,gEAuFC;AA2wBD,0BAA0B,CAAC,SAAS,GAAG,qBAAS,CAAC;AACjD,0BAA0B,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
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 ItemsAPI from "./items.mjs";
|
|
4
|
+
import { Items, } from "./items.mjs";
|
|
3
5
|
import * as ResourcesAPI from "./resources.mjs";
|
|
4
6
|
import { Resources, } from "./resources.mjs";
|
|
5
7
|
/**
|
|
@@ -9,6 +11,7 @@ export class ProductionScheduleSettings extends APIResource {
|
|
|
9
11
|
constructor() {
|
|
10
12
|
super(...arguments);
|
|
11
13
|
this.resources = new ResourcesAPI.Resources(this._client);
|
|
14
|
+
this.items = new ItemsAPI.Items(this._client);
|
|
12
15
|
}
|
|
13
16
|
/**
|
|
14
17
|
* Returns the planning assumptions production schedules are solved against.
|
|
@@ -62,6 +65,8 @@ export class ProductionScheduleSettings extends APIResource {
|
|
|
62
65
|
* changeover_max_minutes: 0,
|
|
63
66
|
* changeover_min_minutes: 0,
|
|
64
67
|
* default_constraint_lead_time_weeks: 0,
|
|
68
|
+
* default_customer_lead_time_days: 30,
|
|
69
|
+
* default_fulfillment_policy: 'make_to_stock',
|
|
65
70
|
* default_lot_units: 60,
|
|
66
71
|
* demand_basis: 'trailing_12',
|
|
67
72
|
* demand_window_months: 12,
|
|
@@ -89,4 +94,5 @@ export class ProductionScheduleSettings extends APIResource {
|
|
|
89
94
|
}
|
|
90
95
|
}
|
|
91
96
|
ProductionScheduleSettings.Resources = Resources;
|
|
97
|
+
ProductionScheduleSettings.Items = Items;
|
|
92
98
|
//# sourceMappingURL=production-schedule-settings.mjs.map
|
package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"production-schedule-settings.mjs","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/production-schedule-settings.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,YAAY;OACjB,EAKL,SAAS,GAEV;AAID;;GAEG;AACH,MAAM,OAAO,0BAA2B,SAAQ,WAAW;IAA3D;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"production-schedule-settings.mjs","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/production-schedule-settings.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,QAAQ;OACb,EAGL,KAAK,GAIN;OACM,KAAK,YAAY;OACjB,EAKL,SAAS,GAEV;AAID;;GAEG;AACH,MAAM,OAAO,0BAA2B,SAAQ,WAAW;IAA3D;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqF3D,CAAC;IAnFC;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6CAA6C,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqDG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6CAA6C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF;AA2wBD,0BAA0B,CAAC,SAAS,GAAG,SAAS,CAAC;AACjD,0BAA0B,CAAC,KAAK,GAAG,KAAK,CAAC"}
|