@augno/sdk 0.18.0 → 0.18.2
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 -7
- package/package.json +1 -1
- package/resources/ai/memories.d.mts +6 -6
- package/resources/ai/memories.d.mts.map +1 -1
- package/resources/ai/memories.d.ts +6 -6
- package/resources/ai/memories.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.mts +8 -0
- package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.ts +8 -0
- package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.js.map +1 -1
- package/resources/auth/api-keys/api-keys.mjs.map +1 -1
- package/resources/catalog/items/attributes.d.mts +3 -0
- package/resources/catalog/items/attributes.d.mts.map +1 -1
- package/resources/catalog/items/attributes.d.ts +3 -0
- package/resources/catalog/items/attributes.d.ts.map +1 -1
- package/resources/catalog/items/attributes.js +3 -0
- package/resources/catalog/items/attributes.js.map +1 -1
- package/resources/catalog/items/attributes.mjs +3 -0
- package/resources/catalog/items/attributes.mjs.map +1 -1
- package/resources/catalog/materials/materials.d.mts +6 -0
- package/resources/catalog/materials/materials.d.mts.map +1 -1
- package/resources/catalog/materials/materials.d.ts +6 -0
- package/resources/catalog/materials/materials.d.ts.map +1 -1
- package/resources/catalog/materials/materials.js.map +1 -1
- package/resources/catalog/materials/materials.mjs.map +1 -1
- package/resources/catalog/parts/parts.d.mts +6 -0
- package/resources/catalog/parts/parts.d.mts.map +1 -1
- package/resources/catalog/parts/parts.d.ts +6 -0
- package/resources/catalog/parts/parts.d.ts.map +1 -1
- package/resources/catalog/parts/parts.js.map +1 -1
- package/resources/catalog/parts/parts.mjs.map +1 -1
- package/resources/catalog/products/products.d.mts +6 -4
- package/resources/catalog/products/products.d.mts.map +1 -1
- package/resources/catalog/products/products.d.ts +6 -4
- package/resources/catalog/products/products.d.ts.map +1 -1
- package/resources/catalog/products/products.js.map +1 -1
- package/resources/catalog/products/products.mjs.map +1 -1
- package/resources/core/actions.d.mts +73 -0
- package/resources/core/actions.d.mts.map +1 -0
- package/resources/core/actions.d.ts +73 -0
- package/resources/core/actions.d.ts.map +1 -0
- package/resources/core/actions.js +36 -0
- package/resources/core/actions.js.map +1 -0
- package/resources/core/actions.mjs +32 -0
- package/resources/core/actions.mjs.map +1 -0
- package/resources/core/audit-events.d.mts +4 -4
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +4 -4
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/core.d.mts +6 -2
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +6 -2
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js +4 -0
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs +4 -0
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/index.d.mts +1 -0
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +1 -0
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.js +3 -1
- package/resources/core/index.js.map +1 -1
- package/resources/core/index.mjs +1 -0
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/jobs.d.mts +1 -1
- package/resources/core/jobs.d.mts.map +1 -1
- package/resources/core/jobs.d.ts +1 -1
- package/resources/core/jobs.d.ts.map +1 -1
- package/resources/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/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 +9 -7
- package/resources/operations/index.js.map +1 -1
- package/resources/operations/index.mjs +1 -0
- package/resources/operations/index.mjs.map +1 -1
- package/resources/operations/machine-downtime-events.d.mts +56 -7
- package/resources/operations/machine-downtime-events.d.mts.map +1 -1
- package/resources/operations/machine-downtime-events.d.ts +56 -7
- package/resources/operations/machine-downtime-events.d.ts.map +1 -1
- package/resources/operations/machine-downtime-events.js +11 -7
- package/resources/operations/machine-downtime-events.js.map +1 -1
- package/resources/operations/machine-downtime-events.mjs +11 -7
- package/resources/operations/machine-downtime-events.mjs.map +1 -1
- package/resources/operations/operating-calendars/closures.d.mts +173 -0
- package/resources/operations/operating-calendars/closures.d.mts.map +1 -0
- package/resources/operations/operating-calendars/closures.d.ts +173 -0
- package/resources/operations/operating-calendars/closures.d.ts.map +1 -0
- package/resources/operations/operating-calendars/closures.js +81 -0
- package/resources/operations/operating-calendars/closures.js.map +1 -0
- package/resources/operations/operating-calendars/closures.mjs +77 -0
- package/resources/operations/operating-calendars/closures.mjs.map +1 -0
- package/resources/operations/operating-calendars/index.d.mts +3 -0
- package/resources/operations/operating-calendars/index.d.mts.map +1 -0
- package/resources/operations/operating-calendars/index.d.ts +3 -0
- package/resources/operations/operating-calendars/index.d.ts.map +1 -0
- package/resources/operations/operating-calendars/index.js +9 -0
- package/resources/operations/operating-calendars/index.js.map +1 -0
- package/resources/operations/operating-calendars/index.mjs +4 -0
- package/resources/operations/operating-calendars/index.mjs.map +1 -0
- package/resources/operations/operating-calendars/operating-calendars.d.mts +332 -0
- package/resources/operations/operating-calendars/operating-calendars.d.mts.map +1 -0
- package/resources/operations/operating-calendars/operating-calendars.d.ts +332 -0
- package/resources/operations/operating-calendars/operating-calendars.d.ts.map +1 -0
- package/resources/operations/operating-calendars/operating-calendars.js +129 -0
- package/resources/operations/operating-calendars/operating-calendars.js.map +1 -0
- package/resources/operations/operating-calendars/operating-calendars.mjs +124 -0
- package/resources/operations/operating-calendars/operating-calendars.mjs.map +1 -0
- package/resources/operations/operating-calendars.d.mts +2 -0
- package/resources/operations/operating-calendars.d.mts.map +1 -0
- package/resources/operations/operating-calendars.d.ts +2 -0
- package/resources/operations/operating-calendars.d.ts.map +1 -0
- package/resources/operations/operating-calendars.js +6 -0
- package/resources/operations/operating-calendars.js.map +1 -0
- package/resources/operations/operating-calendars.mjs +3 -0
- package/resources/operations/operating-calendars.mjs.map +1 -0
- package/resources/operations/operations.d.mts +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/production-schedule-settings.d.mts +43 -12
- 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 +43 -12
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.js.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map +1 -1
- package/resources/operations/production-schedules/actions.d.mts +34 -1
- package/resources/operations/production-schedules/actions.d.mts.map +1 -1
- package/resources/operations/production-schedules/actions.d.ts +34 -1
- package/resources/operations/production-schedules/actions.d.ts.map +1 -1
- package/resources/operations/production-schedules/actions.js +8 -0
- package/resources/operations/production-schedules/actions.js.map +1 -1
- package/resources/operations/production-schedules/actions.mjs +8 -0
- package/resources/operations/production-schedules/actions.mjs.map +1 -1
- package/resources/operations/production-schedules/index.d.mts +1 -1
- package/resources/operations/production-schedules/index.d.mts.map +1 -1
- package/resources/operations/production-schedules/index.d.ts +1 -1
- 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/lines.d.mts +10 -6
- package/resources/operations/production-schedules/lines.d.mts.map +1 -1
- package/resources/operations/production-schedules/lines.d.ts +10 -6
- package/resources/operations/production-schedules/lines.d.ts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.mts +295 -2
- package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.ts +295 -2
- package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.js +42 -0
- package/resources/operations/production-schedules/production-schedules.js.map +1 -1
- package/resources/operations/production-schedules/production-schedules.mjs +42 -0
- package/resources/operations/production-schedules/production-schedules.mjs.map +1 -1
- package/resources/sales/account-groups.d.mts +2 -1
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +2 -1
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-prices/account-prices.d.mts +10 -1
- package/resources/sales/account-prices/account-prices.d.mts.map +1 -1
- package/resources/sales/account-prices/account-prices.d.ts +10 -1
- package/resources/sales/account-prices/account-prices.d.ts.map +1 -1
- package/resources/sales/account-prices/account-prices.js.map +1 -1
- package/resources/sales/account-prices/account-prices.mjs.map +1 -1
- package/resources/sales/addresses.d.mts +20 -0
- package/resources/sales/addresses.d.mts.map +1 -1
- package/resources/sales/addresses.d.ts +20 -0
- package/resources/sales/addresses.d.ts.map +1 -1
- package/resources/sales/customers/customers.d.mts +72 -14
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +72 -14
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +10 -5
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +10 -5
- 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/actions.d.mts +217 -1
- package/resources/sales/sales-orders/actions.d.mts.map +1 -1
- package/resources/sales/sales-orders/actions.d.ts +217 -1
- package/resources/sales/sales-orders/actions.d.ts.map +1 -1
- package/resources/sales/sales-orders/actions.js +36 -0
- package/resources/sales/sales-orders/actions.js.map +1 -1
- package/resources/sales/sales-orders/actions.mjs +36 -0
- package/resources/sales/sales-orders/actions.mjs.map +1 -1
- package/resources/sales/sales-orders/index.d.mts +1 -1
- package/resources/sales/sales-orders/index.d.mts.map +1 -1
- package/resources/sales/sales-orders/index.d.ts +1 -1
- package/resources/sales/sales-orders/index.d.ts.map +1 -1
- package/resources/sales/sales-orders/index.js.map +1 -1
- package/resources/sales/sales-orders/index.mjs.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.mts +105 -9
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +105 -9
- 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/ai/memories.ts +6 -6
- package/src/resources/auth/api-keys/api-keys.ts +9 -0
- package/src/resources/catalog/items/attributes.ts +3 -0
- package/src/resources/catalog/materials/materials.ts +6 -0
- package/src/resources/catalog/parts/parts.ts +6 -0
- package/src/resources/catalog/products/products.ts +6 -4
- package/src/resources/core/actions.ts +89 -0
- package/src/resources/core/audit-events.ts +16 -0
- package/src/resources/core/core.ts +19 -0
- package/src/resources/core/index.ts +6 -0
- package/src/resources/core/jobs.ts +4 -0
- package/src/resources/messaging/conversations/conversations.ts +12 -0
- package/src/resources/messaging/conversations/links.ts +8 -0
- package/src/resources/messaging/conversations/messages.ts +8 -0
- package/src/resources/messaging/notifications/notifications.ts +8 -0
- package/src/resources/operations/index.ts +15 -0
- package/src/resources/operations/machine-downtime-events.ts +62 -7
- package/src/resources/operations/operating-calendars/closures.ts +223 -0
- package/src/resources/operations/operating-calendars/index.ts +23 -0
- package/src/resources/operations/operating-calendars/operating-calendars.ts +427 -0
- package/src/resources/operations/operating-calendars.ts +3 -0
- package/src/resources/operations/operations.ts +36 -0
- package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +49 -12
- package/src/resources/operations/production-schedules/actions.ts +37 -1
- package/src/resources/operations/production-schedules/index.ts +4 -0
- package/src/resources/operations/production-schedules/lines.ts +10 -6
- package/src/resources/operations/production-schedules/production-schedules.ts +354 -1
- package/src/resources/sales/account-groups.ts +2 -1
- package/src/resources/sales/account-prices/account-prices.ts +11 -1
- package/src/resources/sales/addresses.ts +24 -0
- package/src/resources/sales/customers/customers.ts +90 -14
- package/src/resources/sales/customers/index.ts +1 -0
- package/src/resources/sales/index.ts +1 -0
- package/src/resources/sales/sales-orders/actions.ts +266 -0
- package/src/resources/sales/sales-orders/index.ts +4 -0
- package/src/resources/sales/sales-orders/sales-orders.ts +131 -7
- 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,427 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as APIKeysAPI from '../../auth/api-keys/api-keys';
|
|
5
|
+
import * as ClosuresAPI from './closures';
|
|
6
|
+
import {
|
|
7
|
+
ClosureCreateParams,
|
|
8
|
+
ClosureDeleteParams,
|
|
9
|
+
ClosureDeleteResponse,
|
|
10
|
+
ClosureListParams,
|
|
11
|
+
Closures,
|
|
12
|
+
CreateOperatingCalendarClosureRequest,
|
|
13
|
+
ListOperatingCalendarClosure,
|
|
14
|
+
OperatingCalendarClosure,
|
|
15
|
+
} from './closures';
|
|
16
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
17
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
18
|
+
import { path } from '../../../internal/utils/path';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The days a plant tenders freight and a customer's dock accepts it, less the holidays and shutdowns either side is closed for. Every ship-by date is resolved against them, so an order is never committed to a day nobody can act on.
|
|
22
|
+
*/
|
|
23
|
+
export class OperatingCalendars extends APIResource {
|
|
24
|
+
closures: ClosuresAPI.Closures = new ClosuresAPI.Closures(this._client);
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Lists the operating calendars configured for the account.
|
|
28
|
+
*
|
|
29
|
+
* Both kinds are returned unless `kind` narrows it, ordered with each kind's
|
|
30
|
+
* default first.
|
|
31
|
+
*
|
|
32
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const listOperatingCalendar =
|
|
37
|
+
* await client.operations.operatingCalendars.list();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
list(
|
|
41
|
+
query: OperatingCalendarListParams | null | undefined = {},
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<ListOperatingCalendar> {
|
|
44
|
+
return this._client.get('/v1/operations/operating-calendars', { query, ...options });
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves one operating calendar by ID.
|
|
49
|
+
*
|
|
50
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const operatingCalendar =
|
|
55
|
+
* await client.operations.operatingCalendars.retrieve(
|
|
56
|
+
* 'occd_7f2m9qk4wzxb',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<OperatingCalendar> {
|
|
61
|
+
return this._client.get(path`/v1/operations/operating-calendars/${id}`, options);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Creates an operating calendar.
|
|
66
|
+
*
|
|
67
|
+
* The days govern every ship-by date resolved against this calendar: a plant that
|
|
68
|
+
* tenders freight Monday to Thursday never gets committed to a Friday shipment,
|
|
69
|
+
* and a customer's promised delivery date is worked back from a day they can
|
|
70
|
+
* actually receive on.
|
|
71
|
+
*
|
|
72
|
+
* A calendar starts with no closures. Add holidays and shutdowns to it separately.
|
|
73
|
+
*
|
|
74
|
+
* This endpoint requires the permission: `production_schedules:create`.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const operatingCalendar =
|
|
79
|
+
* await client.operations.operatingCalendars.create({
|
|
80
|
+
* code: 'default_ship',
|
|
81
|
+
* days_of_week: '1111000',
|
|
82
|
+
* kind: 'ship',
|
|
83
|
+
* name: 'Shipping days',
|
|
84
|
+
* cutoff_at: '15:00',
|
|
85
|
+
* is_default: true,
|
|
86
|
+
* timezone: 'America/Chicago',
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
create(body: OperatingCalendarCreateParams, options?: RequestOptions): APIPromise<OperatingCalendar> {
|
|
91
|
+
return this._client.post('/v1/operations/operating-calendars', { body, ...options });
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Updates an operating calendar.
|
|
96
|
+
*
|
|
97
|
+
* A calendar's kind cannot change: a shipping calendar that became a receiving one
|
|
98
|
+
* would silently drop the pickup cutoff every commitment resolved against it
|
|
99
|
+
* depends on. Create a second calendar instead.
|
|
100
|
+
*
|
|
101
|
+
* Changes apply to commitments made from now on. Orders already issued keep the
|
|
102
|
+
* dates they were stamped with, so adding a holiday never retroactively makes a
|
|
103
|
+
* past order late.
|
|
104
|
+
*
|
|
105
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* const operatingCalendar =
|
|
110
|
+
* await client.operations.operatingCalendars.update(
|
|
111
|
+
* 'occd_7f2m9qk4wzxb',
|
|
112
|
+
* );
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
update(
|
|
116
|
+
id: string,
|
|
117
|
+
body: OperatingCalendarUpdateParams | null | undefined = {},
|
|
118
|
+
options?: RequestOptions,
|
|
119
|
+
): APIPromise<OperatingCalendar> {
|
|
120
|
+
return this._client.patch(path`/v1/operations/operating-calendars/${id}`, { body, ...options });
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Deletes an operating calendar.
|
|
125
|
+
*
|
|
126
|
+
* Refused while any address, customer, customer group, or account setting still
|
|
127
|
+
* points at it. Deleting a calendar out from under its references would quietly
|
|
128
|
+
* return every affected order to a plain Monday-to-Friday week, which reads as the
|
|
129
|
+
* feature breaking rather than as a decision anybody made — so re-point them
|
|
130
|
+
* first.
|
|
131
|
+
*
|
|
132
|
+
* This endpoint requires the permission: `production_schedules:delete`.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* const operatingCalendar =
|
|
137
|
+
* await client.operations.operatingCalendars.delete(
|
|
138
|
+
* 'occd_7f2m9qk4wzxb',
|
|
139
|
+
* );
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
delete(id: string, options?: RequestOptions): APIPromise<OperatingCalendarDeleteResponse> {
|
|
143
|
+
return this._client.delete(path`/v1/operations/operating-calendars/${id}`, options);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Request to create an operating calendar.
|
|
149
|
+
*/
|
|
150
|
+
export interface CreateOperatingCalendarRequest {
|
|
151
|
+
/**
|
|
152
|
+
* Short stable identifier, unique per account.
|
|
153
|
+
*/
|
|
154
|
+
code: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Open weekdays as seven characters of '0' or '1', Monday first. "1111100" is
|
|
158
|
+
* Monday to Friday; "1111000" is a Monday-to-Thursday plant. At least one day must
|
|
159
|
+
* be open.
|
|
160
|
+
*/
|
|
161
|
+
days_of_week: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Which side of a shipment this calendar describes.
|
|
165
|
+
*/
|
|
166
|
+
kind: 'ship' | 'receive';
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Human-readable name.
|
|
170
|
+
*/
|
|
171
|
+
name: string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Local time freight has to be tendered by, as "15:00". Only a shipping calendar
|
|
175
|
+
* accepts one.
|
|
176
|
+
*/
|
|
177
|
+
cutoff_at?: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Make this the calendar used when nothing more specific is linked. Setting it
|
|
181
|
+
* demotes whichever calendar of the same kind held the role.
|
|
182
|
+
*/
|
|
183
|
+
is_default?: boolean;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* IANA zone the cutoff is read in, such as "America/Chicago". On a receiving
|
|
187
|
+
* calendar, leave it unset to take the zone from the ship-to address.
|
|
188
|
+
*/
|
|
189
|
+
timezone?: string;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* A single page of resources, together with the metadata needed to page through
|
|
194
|
+
* the rest of the result set.
|
|
195
|
+
*/
|
|
196
|
+
export interface ListOperatingCalendar {
|
|
197
|
+
/**
|
|
198
|
+
* Resources in this page.
|
|
199
|
+
*/
|
|
200
|
+
data: Array<OperatingCalendar>;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Resource type identifier.
|
|
204
|
+
*/
|
|
205
|
+
object: 'list';
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* PageInfo describes where the current page sits within a paginated result set and
|
|
209
|
+
* how to move to the adjacent pages.
|
|
210
|
+
*
|
|
211
|
+
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
212
|
+
* For a top-level list endpoint the URL repeats the original request's query
|
|
213
|
+
* string with only the cursor swapped, so following it preserves the same filters,
|
|
214
|
+
* search term, and page size.
|
|
215
|
+
*/
|
|
216
|
+
page_info: APIKeysAPI.PageInfo;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* OperatingCalendar is the set of days one party to a shipment operates.
|
|
221
|
+
*
|
|
222
|
+
* A `ship` calendar is the plant tendering freight to a carrier; a `receive`
|
|
223
|
+
* calendar is a customer's dock accepting it. Ship-by dates are resolved against
|
|
224
|
+
* both, so an order is never committed to a day nobody can act on.
|
|
225
|
+
*/
|
|
226
|
+
export interface OperatingCalendar {
|
|
227
|
+
/**
|
|
228
|
+
* Unique identifier.
|
|
229
|
+
*/
|
|
230
|
+
id: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Short stable identifier, unique per account.
|
|
234
|
+
*/
|
|
235
|
+
code: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Creation timestamp.
|
|
239
|
+
*/
|
|
240
|
+
created_at: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Local time freight has to be tendered by, as "15:00". Only a shipping calendar
|
|
244
|
+
* carries one.
|
|
245
|
+
*/
|
|
246
|
+
cutoff_at: string | null;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Open weekdays as seven characters of '0' or '1', Monday first. "1111100" is
|
|
250
|
+
* Monday to Friday; "1111000" is a Monday-to-Thursday plant.
|
|
251
|
+
*/
|
|
252
|
+
days_of_week: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Whether this is the calendar used when nothing more specific is linked. Exactly
|
|
256
|
+
* one per kind.
|
|
257
|
+
*/
|
|
258
|
+
is_default: boolean;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Which side of a shipment this calendar describes.
|
|
262
|
+
*/
|
|
263
|
+
kind: 'ship' | 'receive';
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Human-readable name.
|
|
267
|
+
*/
|
|
268
|
+
name: string;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Resource type identifier.
|
|
272
|
+
*/
|
|
273
|
+
object: 'operating_calendar';
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* IANA zone the cutoff is read in. Null on a receiving calendar means it is taken
|
|
277
|
+
* from the ship-to address.
|
|
278
|
+
*/
|
|
279
|
+
timezone: string | null;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Last updated timestamp.
|
|
283
|
+
*/
|
|
284
|
+
updated_at: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Request to update an operating calendar.
|
|
289
|
+
*/
|
|
290
|
+
export interface UpdateOperatingCalendarRequest {
|
|
291
|
+
/**
|
|
292
|
+
* Local time freight has to be tendered by. Clearing it leaves the ship-by date a
|
|
293
|
+
* day with no time of day attached.
|
|
294
|
+
*/
|
|
295
|
+
cutoff_at?: string | null;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Open weekdays as seven characters of '0' or '1', Monday first. At least one day
|
|
299
|
+
* must be open.
|
|
300
|
+
*/
|
|
301
|
+
days_of_week?: string;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Make this the calendar used when nothing more specific is linked. Setting it
|
|
305
|
+
* demotes whichever calendar of the same kind held the role.
|
|
306
|
+
*/
|
|
307
|
+
is_default?: boolean;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Human-readable name.
|
|
311
|
+
*/
|
|
312
|
+
name?: string;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* IANA zone the cutoff is read in. Clearing it on a receiving calendar returns to
|
|
316
|
+
* taking the zone from the ship-to address.
|
|
317
|
+
*/
|
|
318
|
+
timezone?: string | null;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface OperatingCalendarDeleteResponse {}
|
|
322
|
+
|
|
323
|
+
export interface OperatingCalendarListParams {
|
|
324
|
+
/**
|
|
325
|
+
* Return only shipping or only receiving calendars.
|
|
326
|
+
*/
|
|
327
|
+
kind?: 'ship' | 'receive';
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export interface OperatingCalendarCreateParams {
|
|
331
|
+
/**
|
|
332
|
+
* Short stable identifier, unique per account.
|
|
333
|
+
*/
|
|
334
|
+
code: string;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Open weekdays as seven characters of '0' or '1', Monday first. "1111100" is
|
|
338
|
+
* Monday to Friday; "1111000" is a Monday-to-Thursday plant. At least one day must
|
|
339
|
+
* be open.
|
|
340
|
+
*/
|
|
341
|
+
days_of_week: string;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Which side of a shipment this calendar describes.
|
|
345
|
+
*/
|
|
346
|
+
kind: 'ship' | 'receive';
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Human-readable name.
|
|
350
|
+
*/
|
|
351
|
+
name: string;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Local time freight has to be tendered by, as "15:00". Only a shipping calendar
|
|
355
|
+
* accepts one.
|
|
356
|
+
*/
|
|
357
|
+
cutoff_at?: string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Make this the calendar used when nothing more specific is linked. Setting it
|
|
361
|
+
* demotes whichever calendar of the same kind held the role.
|
|
362
|
+
*/
|
|
363
|
+
is_default?: boolean;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* IANA zone the cutoff is read in, such as "America/Chicago". On a receiving
|
|
367
|
+
* calendar, leave it unset to take the zone from the ship-to address.
|
|
368
|
+
*/
|
|
369
|
+
timezone?: string;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export interface OperatingCalendarUpdateParams {
|
|
373
|
+
/**
|
|
374
|
+
* Local time freight has to be tendered by. Clearing it leaves the ship-by date a
|
|
375
|
+
* day with no time of day attached.
|
|
376
|
+
*/
|
|
377
|
+
cutoff_at?: string | null;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Open weekdays as seven characters of '0' or '1', Monday first. At least one day
|
|
381
|
+
* must be open.
|
|
382
|
+
*/
|
|
383
|
+
days_of_week?: string;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Make this the calendar used when nothing more specific is linked. Setting it
|
|
387
|
+
* demotes whichever calendar of the same kind held the role.
|
|
388
|
+
*/
|
|
389
|
+
is_default?: boolean;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Human-readable name.
|
|
393
|
+
*/
|
|
394
|
+
name?: string;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* IANA zone the cutoff is read in. Clearing it on a receiving calendar returns to
|
|
398
|
+
* taking the zone from the ship-to address.
|
|
399
|
+
*/
|
|
400
|
+
timezone?: string | null;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
OperatingCalendars.Closures = Closures;
|
|
404
|
+
|
|
405
|
+
export declare namespace OperatingCalendars {
|
|
406
|
+
export {
|
|
407
|
+
type CreateOperatingCalendarRequest as CreateOperatingCalendarRequest,
|
|
408
|
+
type ListOperatingCalendar as ListOperatingCalendar,
|
|
409
|
+
type OperatingCalendar as OperatingCalendar,
|
|
410
|
+
type UpdateOperatingCalendarRequest as UpdateOperatingCalendarRequest,
|
|
411
|
+
type OperatingCalendarDeleteResponse as OperatingCalendarDeleteResponse,
|
|
412
|
+
type OperatingCalendarListParams as OperatingCalendarListParams,
|
|
413
|
+
type OperatingCalendarCreateParams as OperatingCalendarCreateParams,
|
|
414
|
+
type OperatingCalendarUpdateParams as OperatingCalendarUpdateParams,
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
export {
|
|
418
|
+
Closures as Closures,
|
|
419
|
+
type CreateOperatingCalendarClosureRequest as CreateOperatingCalendarClosureRequest,
|
|
420
|
+
type ListOperatingCalendarClosure as ListOperatingCalendarClosure,
|
|
421
|
+
type OperatingCalendarClosure as OperatingCalendarClosure,
|
|
422
|
+
type ClosureDeleteResponse as ClosureDeleteResponse,
|
|
423
|
+
type ClosureListParams as ClosureListParams,
|
|
424
|
+
type ClosureCreateParams as ClosureCreateParams,
|
|
425
|
+
type ClosureDeleteParams as ClosureDeleteParams,
|
|
426
|
+
};
|
|
427
|
+
}
|
|
@@ -107,6 +107,18 @@ import {
|
|
|
107
107
|
Locations,
|
|
108
108
|
UpdateLocationRequest,
|
|
109
109
|
} from './locations/locations';
|
|
110
|
+
import * as OperatingCalendarsAPI from './operating-calendars/operating-calendars';
|
|
111
|
+
import {
|
|
112
|
+
CreateOperatingCalendarRequest,
|
|
113
|
+
ListOperatingCalendar,
|
|
114
|
+
OperatingCalendar,
|
|
115
|
+
OperatingCalendarCreateParams,
|
|
116
|
+
OperatingCalendarDeleteResponse,
|
|
117
|
+
OperatingCalendarListParams,
|
|
118
|
+
OperatingCalendarUpdateParams,
|
|
119
|
+
OperatingCalendars,
|
|
120
|
+
UpdateOperatingCalendarRequest,
|
|
121
|
+
} from './operating-calendars/operating-calendars';
|
|
110
122
|
import * as ProductionScheduleSettingsAPI from './production-schedule-settings/production-schedule-settings';
|
|
111
123
|
import {
|
|
112
124
|
ProductionScheduleSettingUpdateParams,
|
|
@@ -120,6 +132,7 @@ import {
|
|
|
120
132
|
ListProductionScheduleDerivedLine,
|
|
121
133
|
ListProductionScheduleDeviation,
|
|
122
134
|
ListProductionScheduleFinishedPolicy,
|
|
135
|
+
ListProductionScheduleFinishingLine,
|
|
123
136
|
ListProductionScheduleItemPolicy,
|
|
124
137
|
ListReleaseScheduleBatch,
|
|
125
138
|
ListReleasedScheduleLine,
|
|
@@ -133,10 +146,12 @@ import {
|
|
|
133
146
|
ProductionScheduleDerivedLine,
|
|
134
147
|
ProductionScheduleDeviation,
|
|
135
148
|
ProductionScheduleFinishedPolicy,
|
|
149
|
+
ProductionScheduleFinishingLine,
|
|
136
150
|
ProductionScheduleItemPolicy,
|
|
137
151
|
ProductionScheduleListParams,
|
|
138
152
|
ProductionScheduleRetrieveDerivedLinesParams,
|
|
139
153
|
ProductionScheduleRetrieveDeviationsParams,
|
|
154
|
+
ProductionScheduleRetrieveFinishingLinesParams,
|
|
140
155
|
ProductionScheduleRetrieveWeekReleasePreviewParams,
|
|
141
156
|
ProductionSchedules,
|
|
142
157
|
ReleaseScheduleBatch,
|
|
@@ -145,6 +160,7 @@ import {
|
|
|
145
160
|
ScheduleAppliedOverride,
|
|
146
161
|
ScheduleAtRiskOrder,
|
|
147
162
|
ScheduleDiagnostics,
|
|
163
|
+
ScheduleFinishingDiagnostics,
|
|
148
164
|
ScheduleOrderCoverage,
|
|
149
165
|
ScheduleOrderCoverageLine,
|
|
150
166
|
} from './production-schedules/production-schedules';
|
|
@@ -167,6 +183,9 @@ export class Operations extends APIResource {
|
|
|
167
183
|
new ProductionScheduleSettingsAPI.ProductionScheduleSettings(this._client);
|
|
168
184
|
fulfillmentRecommendations: FulfillmentRecommendationsAPI.FulfillmentRecommendations =
|
|
169
185
|
new FulfillmentRecommendationsAPI.FulfillmentRecommendations(this._client);
|
|
186
|
+
operatingCalendars: OperatingCalendarsAPI.OperatingCalendars = new OperatingCalendarsAPI.OperatingCalendars(
|
|
187
|
+
this._client,
|
|
188
|
+
);
|
|
170
189
|
locations: LocationsAPI.Locations = new LocationsAPI.Locations(this._client);
|
|
171
190
|
locationTypes: LocationTypesAPI.LocationTypes = new LocationTypesAPI.LocationTypes(this._client);
|
|
172
191
|
shipments: ShipmentsAPI.Shipments = new ShipmentsAPI.Shipments(this._client);
|
|
@@ -771,6 +790,7 @@ Operations.MachineDowntimeEvents = MachineDowntimeEvents;
|
|
|
771
790
|
Operations.DemandOverrides = DemandOverrides;
|
|
772
791
|
Operations.ProductionSchedules = ProductionSchedules;
|
|
773
792
|
Operations.FulfillmentRecommendations = FulfillmentRecommendations;
|
|
793
|
+
Operations.OperatingCalendars = OperatingCalendars;
|
|
774
794
|
Operations.Locations = Locations;
|
|
775
795
|
Operations.LocationTypes = LocationTypes;
|
|
776
796
|
Operations.Shipments = Shipments;
|
|
@@ -873,6 +893,7 @@ export declare namespace Operations {
|
|
|
873
893
|
type ListProductionScheduleDerivedLine as ListProductionScheduleDerivedLine,
|
|
874
894
|
type ListProductionScheduleDeviation as ListProductionScheduleDeviation,
|
|
875
895
|
type ListProductionScheduleFinishedPolicy as ListProductionScheduleFinishedPolicy,
|
|
896
|
+
type ListProductionScheduleFinishingLine as ListProductionScheduleFinishingLine,
|
|
876
897
|
type ListProductionScheduleItemPolicy as ListProductionScheduleItemPolicy,
|
|
877
898
|
type ListReleaseScheduleBatch as ListReleaseScheduleBatch,
|
|
878
899
|
type ListReleasedScheduleLine as ListReleasedScheduleLine,
|
|
@@ -884,6 +905,7 @@ export declare namespace Operations {
|
|
|
884
905
|
type ProductionScheduleDerivedLine as ProductionScheduleDerivedLine,
|
|
885
906
|
type ProductionScheduleDeviation as ProductionScheduleDeviation,
|
|
886
907
|
type ProductionScheduleFinishedPolicy as ProductionScheduleFinishedPolicy,
|
|
908
|
+
type ProductionScheduleFinishingLine as ProductionScheduleFinishingLine,
|
|
887
909
|
type ProductionScheduleItemPolicy as ProductionScheduleItemPolicy,
|
|
888
910
|
type ReleaseScheduleBatch as ReleaseScheduleBatch,
|
|
889
911
|
type ReleaseScheduleWeekPreview as ReleaseScheduleWeekPreview,
|
|
@@ -891,11 +913,13 @@ export declare namespace Operations {
|
|
|
891
913
|
type ScheduleAppliedOverride as ScheduleAppliedOverride,
|
|
892
914
|
type ScheduleAtRiskOrder as ScheduleAtRiskOrder,
|
|
893
915
|
type ScheduleDiagnostics as ScheduleDiagnostics,
|
|
916
|
+
type ScheduleFinishingDiagnostics as ScheduleFinishingDiagnostics,
|
|
894
917
|
type ScheduleOrderCoverage as ScheduleOrderCoverage,
|
|
895
918
|
type ScheduleOrderCoverageLine as ScheduleOrderCoverageLine,
|
|
896
919
|
type ProductionScheduleDeleteResponse as ProductionScheduleDeleteResponse,
|
|
897
920
|
type ProductionScheduleListParams as ProductionScheduleListParams,
|
|
898
921
|
type ProductionScheduleCreateParams as ProductionScheduleCreateParams,
|
|
922
|
+
type ProductionScheduleRetrieveFinishingLinesParams as ProductionScheduleRetrieveFinishingLinesParams,
|
|
899
923
|
type ProductionScheduleRetrieveDerivedLinesParams as ProductionScheduleRetrieveDerivedLinesParams,
|
|
900
924
|
type ProductionScheduleRetrieveDeviationsParams as ProductionScheduleRetrieveDeviationsParams,
|
|
901
925
|
type ProductionScheduleRetrieveWeekReleasePreviewParams as ProductionScheduleRetrieveWeekReleasePreviewParams,
|
|
@@ -913,6 +937,18 @@ export declare namespace Operations {
|
|
|
913
937
|
type ListFulfillmentRecommendation as ListFulfillmentRecommendation,
|
|
914
938
|
};
|
|
915
939
|
|
|
940
|
+
export {
|
|
941
|
+
OperatingCalendars as OperatingCalendars,
|
|
942
|
+
type CreateOperatingCalendarRequest as CreateOperatingCalendarRequest,
|
|
943
|
+
type ListOperatingCalendar as ListOperatingCalendar,
|
|
944
|
+
type OperatingCalendar as OperatingCalendar,
|
|
945
|
+
type UpdateOperatingCalendarRequest as UpdateOperatingCalendarRequest,
|
|
946
|
+
type OperatingCalendarDeleteResponse as OperatingCalendarDeleteResponse,
|
|
947
|
+
type OperatingCalendarListParams as OperatingCalendarListParams,
|
|
948
|
+
type OperatingCalendarCreateParams as OperatingCalendarCreateParams,
|
|
949
|
+
type OperatingCalendarUpdateParams as OperatingCalendarUpdateParams,
|
|
950
|
+
};
|
|
951
|
+
|
|
916
952
|
export {
|
|
917
953
|
Locations as Locations,
|
|
918
954
|
type CreateLocationRequest as CreateLocationRequest,
|
package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts
CHANGED
|
@@ -206,8 +206,9 @@ export interface ProductionScheduleSettings {
|
|
|
206
206
|
/**
|
|
207
207
|
* Calendar days between an order being issued and it being due to ship.
|
|
208
208
|
*
|
|
209
|
-
* The last resort in the ship-by chain: a lead time set on the customer,
|
|
210
|
-
* customer's account group
|
|
209
|
+
* The last resort in the ship-by chain: a lead time set on the customer, on its
|
|
210
|
+
* parent account, or on the customer's account group takes precedence. Zero means
|
|
211
|
+
* same-day shipping.
|
|
211
212
|
*/
|
|
212
213
|
default_customer_lead_time_days: number;
|
|
213
214
|
|
|
@@ -353,6 +354,8 @@ export interface ProductionScheduleSettings {
|
|
|
353
354
|
*/
|
|
354
355
|
planning_horizon_weeks: number;
|
|
355
356
|
|
|
357
|
+
receive_calendar_id: string | null;
|
|
358
|
+
|
|
356
359
|
/**
|
|
357
360
|
* Z-score behind the safety stock targets.
|
|
358
361
|
*
|
|
@@ -372,6 +375,16 @@ export interface ProductionScheduleSettings {
|
|
|
372
375
|
*/
|
|
373
376
|
shifts_per_day: number;
|
|
374
377
|
|
|
378
|
+
/**
|
|
379
|
+
* The account-wide operating calendars: the days the plant tenders freight, and
|
|
380
|
+
* the days a customer's dock accepts it.
|
|
381
|
+
*
|
|
382
|
+
* Behind the per-address and per-customer links and ahead of a plain
|
|
383
|
+
* Monday-to-Friday week. Null on both means every ship-by date is resolved against
|
|
384
|
+
* weekdays alone.
|
|
385
|
+
*/
|
|
386
|
+
ship_calendar_id: string | null;
|
|
387
|
+
|
|
375
388
|
/**
|
|
376
389
|
* Last updated timestamp.
|
|
377
390
|
*/
|
|
@@ -469,11 +482,11 @@ export interface UpdateProductionScheduleSettingsRequest {
|
|
|
469
482
|
/**
|
|
470
483
|
* Calendar days between an order being issued and it being due to ship.
|
|
471
484
|
*
|
|
472
|
-
* The last resort in the ship-by chain: a lead time set on the customer,
|
|
473
|
-
* customer's account group
|
|
474
|
-
* shipping on every order that falls through to
|
|
475
|
-
* whole settings object and omitting the field is
|
|
476
|
-
* alone.
|
|
485
|
+
* The last resort in the ship-by chain: a lead time set on the customer, on its
|
|
486
|
+
* parent account, or on the customer's account group takes precedence. Zero
|
|
487
|
+
* commits the account to same-day shipping on every order that falls through to
|
|
488
|
+
* it, so this update replaces the whole settings object and omitting the field is
|
|
489
|
+
* not the same as leaving it alone.
|
|
477
490
|
*/
|
|
478
491
|
default_customer_lead_time_days: number;
|
|
479
492
|
|
|
@@ -642,6 +655,18 @@ export interface UpdateProductionScheduleSettingsRequest {
|
|
|
642
655
|
* active, otherwise the whole update is rejected.
|
|
643
656
|
*/
|
|
644
657
|
generation_cron?: string | null;
|
|
658
|
+
|
|
659
|
+
receive_calendar_id?: string | null;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* The operating calendar naming the days this account's plant tenders freight, and
|
|
663
|
+
* the one naming the days a customer's dock accepts it.
|
|
664
|
+
*
|
|
665
|
+
* These are the account-wide fallbacks: an address or a customer with its own
|
|
666
|
+
* calendar overrides them, and an account with neither set falls back to a
|
|
667
|
+
* Monday-to-Friday week with no closures.
|
|
668
|
+
*/
|
|
669
|
+
ship_calendar_id?: string | null;
|
|
645
670
|
}
|
|
646
671
|
|
|
647
672
|
export interface ProductionScheduleSettingUpdateParams {
|
|
@@ -717,11 +742,11 @@ export interface ProductionScheduleSettingUpdateParams {
|
|
|
717
742
|
/**
|
|
718
743
|
* Calendar days between an order being issued and it being due to ship.
|
|
719
744
|
*
|
|
720
|
-
* The last resort in the ship-by chain: a lead time set on the customer,
|
|
721
|
-
* customer's account group
|
|
722
|
-
* shipping on every order that falls through to
|
|
723
|
-
* whole settings object and omitting the field is
|
|
724
|
-
* alone.
|
|
745
|
+
* The last resort in the ship-by chain: a lead time set on the customer, on its
|
|
746
|
+
* parent account, or on the customer's account group takes precedence. Zero
|
|
747
|
+
* commits the account to same-day shipping on every order that falls through to
|
|
748
|
+
* it, so this update replaces the whole settings object and omitting the field is
|
|
749
|
+
* not the same as leaving it alone.
|
|
725
750
|
*/
|
|
726
751
|
default_customer_lead_time_days: number;
|
|
727
752
|
|
|
@@ -890,6 +915,18 @@ export interface ProductionScheduleSettingUpdateParams {
|
|
|
890
915
|
* active, otherwise the whole update is rejected.
|
|
891
916
|
*/
|
|
892
917
|
generation_cron?: string | null;
|
|
918
|
+
|
|
919
|
+
receive_calendar_id?: string | null;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* The operating calendar naming the days this account's plant tenders freight, and
|
|
923
|
+
* the one naming the days a customer's dock accepts it.
|
|
924
|
+
*
|
|
925
|
+
* These are the account-wide fallbacks: an address or a customer with its own
|
|
926
|
+
* calendar overrides them, and an account with neither set falls back to a
|
|
927
|
+
* Monday-to-Friday week with no closures.
|
|
928
|
+
*/
|
|
929
|
+
ship_calendar_id?: string | null;
|
|
893
930
|
}
|
|
894
931
|
|
|
895
932
|
ProductionScheduleSettings.Resources = Resources;
|