@augno/sdk 0.12.7 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/CHANGELOG.md +2 -4
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/catalog/catalog.d.mts +4 -4
  11. package/resources/catalog/catalog.d.mts.map +1 -1
  12. package/resources/catalog/catalog.d.ts +4 -4
  13. package/resources/catalog/catalog.d.ts.map +1 -1
  14. package/resources/catalog/catalog.js.map +1 -1
  15. package/resources/catalog/catalog.mjs.map +1 -1
  16. package/resources/catalog/index.d.mts +2 -2
  17. package/resources/catalog/index.d.mts.map +1 -1
  18. package/resources/catalog/index.d.ts +2 -2
  19. package/resources/catalog/index.d.ts.map +1 -1
  20. package/resources/catalog/index.js.map +1 -1
  21. package/resources/catalog/index.mjs.map +1 -1
  22. package/resources/catalog/items/index.d.mts +1 -1
  23. package/resources/catalog/items/index.d.mts.map +1 -1
  24. package/resources/catalog/items/index.d.ts +1 -1
  25. package/resources/catalog/items/index.d.ts.map +1 -1
  26. package/resources/catalog/items/index.js.map +1 -1
  27. package/resources/catalog/items/index.mjs.map +1 -1
  28. package/resources/catalog/items/items.d.mts +77 -1
  29. package/resources/catalog/items/items.d.mts.map +1 -1
  30. package/resources/catalog/items/items.d.ts +77 -1
  31. package/resources/catalog/items/items.d.ts.map +1 -1
  32. package/resources/catalog/items/items.js +29 -0
  33. package/resources/catalog/items/items.js.map +1 -1
  34. package/resources/catalog/items/items.mjs +29 -0
  35. package/resources/catalog/items/items.mjs.map +1 -1
  36. package/resources/catalog/product-lines.d.mts +42 -8
  37. package/resources/catalog/product-lines.d.mts.map +1 -1
  38. package/resources/catalog/product-lines.d.ts +42 -8
  39. package/resources/catalog/product-lines.d.ts.map +1 -1
  40. package/resources/catalog/product-lines.js +3 -3
  41. package/resources/catalog/product-lines.js.map +1 -1
  42. package/resources/catalog/product-lines.mjs +3 -3
  43. package/resources/catalog/product-lines.mjs.map +1 -1
  44. package/resources/catalog/products.d.mts +2 -2
  45. package/resources/catalog/products.d.ts +2 -2
  46. package/resources/catalog/products.js +2 -2
  47. package/resources/catalog/products.mjs +2 -2
  48. package/resources/core/analytics.d.mts +547 -0
  49. package/resources/core/analytics.d.mts.map +1 -0
  50. package/resources/core/analytics.d.ts +547 -0
  51. package/resources/core/analytics.d.ts.map +1 -0
  52. package/resources/core/analytics.js +67 -0
  53. package/resources/core/analytics.js.map +1 -0
  54. package/resources/core/analytics.mjs +63 -0
  55. package/resources/core/analytics.mjs.map +1 -0
  56. package/resources/core/audit-events.d.mts +4 -4
  57. package/resources/core/audit-events.d.mts.map +1 -1
  58. package/resources/core/audit-events.d.ts +4 -4
  59. package/resources/core/audit-events.d.ts.map +1 -1
  60. package/resources/core/core.d.mts +6 -2
  61. package/resources/core/core.d.mts.map +1 -1
  62. package/resources/core/core.d.ts +6 -2
  63. package/resources/core/core.d.ts.map +1 -1
  64. package/resources/core/core.js +4 -0
  65. package/resources/core/core.js.map +1 -1
  66. package/resources/core/core.mjs +4 -0
  67. package/resources/core/core.mjs.map +1 -1
  68. package/resources/core/index.d.mts +1 -0
  69. package/resources/core/index.d.mts.map +1 -1
  70. package/resources/core/index.d.ts +1 -0
  71. package/resources/core/index.d.ts.map +1 -1
  72. package/resources/core/index.js +3 -1
  73. package/resources/core/index.js.map +1 -1
  74. package/resources/core/index.mjs +1 -0
  75. package/resources/core/index.mjs.map +1 -1
  76. package/resources/index.d.mts +1 -1
  77. package/resources/index.d.mts.map +1 -1
  78. package/resources/index.d.ts +1 -1
  79. package/resources/index.d.ts.map +1 -1
  80. package/resources/index.js.map +1 -1
  81. package/resources/index.mjs +1 -1
  82. package/resources/index.mjs.map +1 -1
  83. package/resources/messaging/conversations/conversations.d.mts +3 -3
  84. package/resources/messaging/conversations/conversations.d.mts.map +1 -1
  85. package/resources/messaging/conversations/conversations.d.ts +3 -3
  86. package/resources/messaging/conversations/conversations.d.ts.map +1 -1
  87. package/resources/messaging/conversations/conversations.js.map +1 -1
  88. package/resources/messaging/conversations/conversations.mjs.map +1 -1
  89. package/resources/messaging/conversations/links.d.mts +2 -2
  90. package/resources/messaging/conversations/links.d.mts.map +1 -1
  91. package/resources/messaging/conversations/links.d.ts +2 -2
  92. package/resources/messaging/conversations/links.d.ts.map +1 -1
  93. package/resources/messaging/conversations/messages.d.mts +2 -2
  94. package/resources/messaging/conversations/messages.d.mts.map +1 -1
  95. package/resources/messaging/conversations/messages.d.ts +2 -2
  96. package/resources/messaging/conversations/messages.d.ts.map +1 -1
  97. package/resources/messaging/notifications/notifications.d.mts +2 -2
  98. package/resources/messaging/notifications/notifications.d.mts.map +1 -1
  99. package/resources/messaging/notifications/notifications.d.ts +2 -2
  100. package/resources/messaging/notifications/notifications.d.ts.map +1 -1
  101. package/resources/messaging/notifications/notifications.js.map +1 -1
  102. package/resources/messaging/notifications/notifications.mjs.map +1 -1
  103. package/resources/operations/demand-overrides.d.mts +468 -0
  104. package/resources/operations/demand-overrides.d.mts.map +1 -0
  105. package/resources/operations/demand-overrides.d.ts +468 -0
  106. package/resources/operations/demand-overrides.d.ts.map +1 -0
  107. package/resources/operations/demand-overrides.js +120 -0
  108. package/resources/operations/demand-overrides.js.map +1 -0
  109. package/resources/operations/demand-overrides.mjs +116 -0
  110. package/resources/operations/demand-overrides.mjs.map +1 -0
  111. package/resources/operations/index.d.mts +5 -1
  112. package/resources/operations/index.d.mts.map +1 -1
  113. package/resources/operations/index.d.ts +5 -1
  114. package/resources/operations/index.d.ts.map +1 -1
  115. package/resources/operations/index.js +9 -1
  116. package/resources/operations/index.js.map +1 -1
  117. package/resources/operations/index.mjs +5 -1
  118. package/resources/operations/index.mjs.map +1 -1
  119. package/resources/operations/machine-downtime-events.d.mts +424 -0
  120. package/resources/operations/machine-downtime-events.d.mts.map +1 -0
  121. package/resources/operations/machine-downtime-events.d.ts +424 -0
  122. package/resources/operations/machine-downtime-events.d.ts.map +1 -0
  123. package/resources/operations/machine-downtime-events.js +110 -0
  124. package/resources/operations/machine-downtime-events.js.map +1 -0
  125. package/resources/operations/machine-downtime-events.mjs +106 -0
  126. package/resources/operations/machine-downtime-events.mjs.map +1 -0
  127. package/resources/operations/operations.d.mts +444 -0
  128. package/resources/operations/operations.d.mts.map +1 -1
  129. package/resources/operations/operations.d.ts +444 -0
  130. package/resources/operations/operations.d.ts.map +1 -1
  131. package/resources/operations/operations.js +89 -0
  132. package/resources/operations/operations.js.map +1 -1
  133. package/resources/operations/operations.mjs +89 -0
  134. package/resources/operations/operations.mjs.map +1 -1
  135. package/resources/operations/production-schedule-settings/index.d.mts +3 -0
  136. package/resources/operations/production-schedule-settings/index.d.mts.map +1 -0
  137. package/resources/operations/production-schedule-settings/index.d.ts +3 -0
  138. package/resources/operations/production-schedule-settings/index.d.ts.map +1 -0
  139. package/resources/operations/production-schedule-settings/index.js +9 -0
  140. package/resources/operations/production-schedule-settings/index.js.map +1 -0
  141. package/resources/operations/production-schedule-settings/index.mjs +4 -0
  142. package/resources/operations/production-schedule-settings/index.mjs.map +1 -0
  143. package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts +470 -0
  144. package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts.map +1 -0
  145. package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts +470 -0
  146. package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts.map +1 -0
  147. package/resources/operations/production-schedule-settings/production-schedule-settings.js +88 -0
  148. package/resources/operations/production-schedule-settings/production-schedule-settings.js.map +1 -0
  149. package/resources/operations/production-schedule-settings/production-schedule-settings.mjs +83 -0
  150. package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map +1 -0
  151. package/resources/operations/production-schedule-settings/resources.d.mts +176 -0
  152. package/resources/operations/production-schedule-settings/resources.d.mts.map +1 -0
  153. package/resources/operations/production-schedule-settings/resources.d.ts +176 -0
  154. package/resources/operations/production-schedule-settings/resources.d.ts.map +1 -0
  155. package/resources/operations/production-schedule-settings/resources.js +74 -0
  156. package/resources/operations/production-schedule-settings/resources.js.map +1 -0
  157. package/resources/operations/production-schedule-settings/resources.mjs +70 -0
  158. package/resources/operations/production-schedule-settings/resources.mjs.map +1 -0
  159. package/resources/operations/production-schedule-settings.d.mts +2 -0
  160. package/resources/operations/production-schedule-settings.d.mts.map +1 -0
  161. package/resources/operations/production-schedule-settings.d.ts +2 -0
  162. package/resources/operations/production-schedule-settings.d.ts.map +1 -0
  163. package/resources/operations/production-schedule-settings.js +6 -0
  164. package/resources/operations/production-schedule-settings.js.map +1 -0
  165. package/resources/operations/production-schedule-settings.mjs +3 -0
  166. package/resources/operations/production-schedule-settings.mjs.map +1 -0
  167. package/resources/operations/production-schedules/actions.d.mts +668 -0
  168. package/resources/operations/production-schedules/actions.d.mts.map +1 -0
  169. package/resources/operations/production-schedules/actions.d.ts +668 -0
  170. package/resources/operations/production-schedules/actions.d.ts.map +1 -0
  171. package/resources/operations/production-schedules/actions.js +181 -0
  172. package/resources/operations/production-schedules/actions.js.map +1 -0
  173. package/resources/operations/production-schedules/actions.mjs +177 -0
  174. package/resources/operations/production-schedules/actions.mjs.map +1 -0
  175. package/resources/operations/production-schedules/index.d.mts +4 -0
  176. package/resources/operations/production-schedules/index.d.mts.map +1 -0
  177. package/resources/operations/production-schedules/index.d.ts +4 -0
  178. package/resources/operations/production-schedules/index.d.ts.map +1 -0
  179. package/resources/operations/production-schedules/index.js +11 -0
  180. package/resources/operations/production-schedules/index.js.map +1 -0
  181. package/resources/operations/production-schedules/index.mjs +5 -0
  182. package/resources/operations/production-schedules/index.mjs.map +1 -0
  183. package/resources/operations/production-schedules/lines.d.mts +420 -0
  184. package/resources/operations/production-schedules/lines.d.mts.map +1 -0
  185. package/resources/operations/production-schedules/lines.d.ts +420 -0
  186. package/resources/operations/production-schedules/lines.d.ts.map +1 -0
  187. package/resources/operations/production-schedules/lines.js +106 -0
  188. package/resources/operations/production-schedules/lines.js.map +1 -0
  189. package/resources/operations/production-schedules/lines.mjs +102 -0
  190. package/resources/operations/production-schedules/lines.mjs.map +1 -0
  191. package/resources/operations/production-schedules/production-schedules.d.mts +1177 -0
  192. package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -0
  193. package/resources/operations/production-schedules/production-schedules.d.ts +1177 -0
  194. package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -0
  195. package/resources/operations/production-schedules/production-schedules.js +238 -0
  196. package/resources/operations/production-schedules/production-schedules.js.map +1 -0
  197. package/resources/operations/production-schedules/production-schedules.mjs +233 -0
  198. package/resources/operations/production-schedules/production-schedules.mjs.map +1 -0
  199. package/resources/operations/production-schedules.d.mts +2 -0
  200. package/resources/operations/production-schedules.d.mts.map +1 -0
  201. package/resources/operations/production-schedules.d.ts +2 -0
  202. package/resources/operations/production-schedules.d.ts.map +1 -0
  203. package/resources/operations/production-schedules.js +6 -0
  204. package/resources/operations/production-schedules.js.map +1 -0
  205. package/resources/operations/production-schedules.mjs +3 -0
  206. package/resources/operations/production-schedules.mjs.map +1 -0
  207. package/resources/operations/shipping-terms.d.mts +9 -8
  208. package/resources/operations/shipping-terms.d.mts.map +1 -1
  209. package/resources/operations/shipping-terms.d.ts +9 -8
  210. package/resources/operations/shipping-terms.d.ts.map +1 -1
  211. package/resources/operations/shipping-terms.js.map +1 -1
  212. package/resources/operations/shipping-terms.mjs.map +1 -1
  213. package/resources/sales/customers/customers.d.mts +6 -18
  214. package/resources/sales/customers/customers.d.mts.map +1 -1
  215. package/resources/sales/customers/customers.d.ts +6 -18
  216. package/resources/sales/customers/customers.d.ts.map +1 -1
  217. package/resources/sales/customers/customers.js.map +1 -1
  218. package/resources/sales/customers/customers.mjs.map +1 -1
  219. package/resources/sales/customers/index.d.mts +1 -1
  220. package/resources/sales/customers/index.d.mts.map +1 -1
  221. package/resources/sales/customers/index.d.ts +1 -1
  222. package/resources/sales/customers/index.d.ts.map +1 -1
  223. package/resources/sales/customers/index.js.map +1 -1
  224. package/resources/sales/customers/index.mjs.map +1 -1
  225. package/resources/sales/index.d.mts +1 -1
  226. package/resources/sales/index.d.mts.map +1 -1
  227. package/resources/sales/index.d.ts +1 -1
  228. package/resources/sales/index.d.ts.map +1 -1
  229. package/resources/sales/index.js.map +1 -1
  230. package/resources/sales/index.mjs.map +1 -1
  231. package/resources/sales/sales-orders/lines/lines.d.mts +5 -5
  232. package/resources/sales/sales-orders/lines/lines.d.mts.map +1 -1
  233. package/resources/sales/sales-orders/lines/lines.d.ts +5 -5
  234. package/resources/sales/sales-orders/lines/lines.d.ts.map +1 -1
  235. package/resources/sales/sales-orders/sales-orders.d.mts +3 -2
  236. package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
  237. package/resources/sales/sales-orders/sales-orders.d.ts +3 -2
  238. package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
  239. package/resources/sales/sales-orders/sales-orders.js.map +1 -1
  240. package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
  241. package/resources/sales/sales.d.mts +2 -2
  242. package/resources/sales/sales.d.mts.map +1 -1
  243. package/resources/sales/sales.d.ts +2 -2
  244. package/resources/sales/sales.d.ts.map +1 -1
  245. package/resources/sales/sales.js.map +1 -1
  246. package/resources/sales/sales.mjs.map +1 -1
  247. package/src/client.ts +30 -2
  248. package/src/resources/catalog/catalog.ts +6 -0
  249. package/src/resources/catalog/index.ts +3 -0
  250. package/src/resources/catalog/items/index.ts +2 -0
  251. package/src/resources/catalog/items/items.ts +92 -0
  252. package/src/resources/catalog/product-lines.ts +49 -7
  253. package/src/resources/catalog/products.ts +2 -2
  254. package/src/resources/core/analytics.ts +677 -0
  255. package/src/resources/core/audit-events.ts +84 -0
  256. package/src/resources/core/core.ts +82 -0
  257. package/src/resources/core/index.ts +18 -0
  258. package/src/resources/index.ts +15 -1
  259. package/src/resources/messaging/conversations/conversations.ts +63 -0
  260. package/src/resources/messaging/conversations/links.ts +42 -0
  261. package/src/resources/messaging/conversations/messages.ts +42 -0
  262. package/src/resources/messaging/notifications/notifications.ts +42 -0
  263. package/src/resources/operations/demand-overrides.ts +631 -0
  264. package/src/resources/operations/index.ts +72 -1
  265. package/src/resources/operations/machine-downtime-events.ts +584 -0
  266. package/src/resources/operations/operations.ts +673 -0
  267. package/src/resources/operations/production-schedule-settings/index.ts +15 -0
  268. package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +595 -0
  269. package/src/resources/operations/production-schedule-settings/resources.ts +217 -0
  270. package/src/resources/operations/production-schedule-settings.ts +3 -0
  271. package/src/resources/operations/production-schedules/actions.ts +835 -0
  272. package/src/resources/operations/production-schedules/index.ts +64 -0
  273. package/src/resources/operations/production-schedules/lines.ts +584 -0
  274. package/src/resources/operations/production-schedules/production-schedules.ts +1548 -0
  275. package/src/resources/operations/production-schedules.ts +3 -0
  276. package/src/resources/operations/shipping-terms.ts +9 -8
  277. package/src/resources/sales/customers/customers.ts +5 -20
  278. package/src/resources/sales/customers/index.ts +0 -1
  279. package/src/resources/sales/index.ts +0 -1
  280. package/src/resources/sales/sales-orders/lines/lines.ts +5 -5
  281. package/src/resources/sales/sales-orders/sales-orders.ts +3 -2
  282. package/src/resources/sales/sales.ts +0 -2
  283. package/src/version.ts +1 -1
  284. package/version.d.mts +1 -1
  285. package/version.d.ts +1 -1
  286. package/version.js +1 -1
  287. package/version.mjs +1 -1
@@ -1,6 +1,20 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as CoreAPI from '../core/core';
5
+ import * as DemandOverridesAPI from './demand-overrides';
6
+ import {
7
+ CreateDemandOverrideRequest,
8
+ DemandOverride,
9
+ DemandOverrideCreateParams,
10
+ DemandOverrideDeleteResponse,
11
+ DemandOverrideListParams,
12
+ DemandOverrideRetrieveParams,
13
+ DemandOverrideUpdateParams,
14
+ DemandOverrides,
15
+ ListDemandOverride,
16
+ UpdateDemandOverrideRequest,
17
+ } from './demand-overrides';
4
18
  import * as LocationTypesAPI from './location-types';
5
19
  import { ListLocationType, LocationType, LocationTypeListParams, LocationTypes } from './location-types';
6
20
  import * as LocationsAPI from './locations';
@@ -14,6 +28,19 @@ import {
14
28
  Locations,
15
29
  UpdateLocationRequest,
16
30
  } from './locations';
31
+ import * as MachineDowntimeEventsAPI from './machine-downtime-events';
32
+ import {
33
+ CreateMachineDowntimeEventRequest,
34
+ ListMachineDowntimeEvent,
35
+ MachineDowntimeEvent,
36
+ MachineDowntimeEventCreateParams,
37
+ MachineDowntimeEventDeleteResponse,
38
+ MachineDowntimeEventListParams,
39
+ MachineDowntimeEventRetrieveParams,
40
+ MachineDowntimeEventUpdateParams,
41
+ MachineDowntimeEvents,
42
+ UpdateMachineDowntimeEventRequest,
43
+ } from './machine-downtime-events';
17
44
  import * as ScanningStationsAPI from './scanning-stations';
18
45
  import {
19
46
  CreateScanningStationRequest,
@@ -37,6 +64,7 @@ import {
37
64
  ShippingTerms,
38
65
  UpdateShippingTermRequest,
39
66
  } from './shipping-terms';
67
+ import * as APIKeysAPI from '../auth/api-keys/api-keys';
40
68
  import * as CarriersAPI from './carriers/carriers';
41
69
  import {
42
70
  CarrierCreateParams,
@@ -49,24 +77,608 @@ import {
49
77
  ListCarrier,
50
78
  UpdateCarrierRequest,
51
79
  } from './carriers/carriers';
80
+ import * as ProductionScheduleSettingsAPI from './production-schedule-settings/production-schedule-settings';
81
+ import {
82
+ ProductionScheduleSettingUpdateParams,
83
+ ProductionScheduleSettings,
84
+ UpdateProductionScheduleSettingsRequest,
85
+ } from './production-schedule-settings/production-schedule-settings';
86
+ import * as ProductionSchedulesAPI from './production-schedules/production-schedules';
87
+ import {
88
+ GenerateProductionScheduleRequest,
89
+ ListProductionSchedule,
90
+ ListProductionScheduleDerivedLine,
91
+ ListProductionScheduleDeviation,
92
+ ListProductionScheduleFinishedPolicy,
93
+ ListProductionScheduleItemPolicy,
94
+ ListReleaseScheduleBatch,
95
+ ListReleasedScheduleLine,
96
+ ListScheduleAppliedOverride,
97
+ ProductionSchedule,
98
+ ProductionScheduleCreateParams,
99
+ ProductionScheduleDeleteResponse,
100
+ ProductionScheduleDerivedLine,
101
+ ProductionScheduleDeviation,
102
+ ProductionScheduleFinishedPolicy,
103
+ ProductionScheduleItemPolicy,
104
+ ProductionScheduleListParams,
105
+ ProductionScheduleRetrieveDerivedLinesParams,
106
+ ProductionScheduleRetrieveDeviationsParams,
107
+ ProductionScheduleRetrieveWeekReleasePreviewParams,
108
+ ProductionSchedules,
109
+ ReleaseScheduleBatch,
110
+ ReleaseScheduleWeekPreview,
111
+ ReleasedScheduleLine,
112
+ ScheduleAppliedOverride,
113
+ ScheduleDiagnostics,
114
+ } from './production-schedules/production-schedules';
115
+ import { APIPromise } from '../../core/api-promise';
116
+ import { RequestOptions } from '../../internal/request-options';
52
117
 
53
118
  export class Operations extends APIResource {
54
119
  shippingTerms: ShippingTermsAPI.ShippingTerms = new ShippingTermsAPI.ShippingTerms(this._client);
55
120
  carriers: CarriersAPI.Carriers = new CarriersAPI.Carriers(this._client);
121
+ machineDowntimeEvents: MachineDowntimeEventsAPI.MachineDowntimeEvents =
122
+ new MachineDowntimeEventsAPI.MachineDowntimeEvents(this._client);
123
+ demandOverrides: DemandOverridesAPI.DemandOverrides = new DemandOverridesAPI.DemandOverrides(this._client);
124
+ productionSchedules: ProductionSchedulesAPI.ProductionSchedules =
125
+ new ProductionSchedulesAPI.ProductionSchedules(this._client);
126
+ productionScheduleSettings: ProductionScheduleSettingsAPI.ProductionScheduleSettings =
127
+ new ProductionScheduleSettingsAPI.ProductionScheduleSettings(this._client);
56
128
  locations: LocationsAPI.Locations = new LocationsAPI.Locations(this._client);
57
129
  locationTypes: LocationTypesAPI.LocationTypes = new LocationTypesAPI.LocationTypes(this._client);
58
130
  scanningStations: ScanningStationsAPI.ScanningStations = new ScanningStationsAPI.ScanningStations(
59
131
  this._client,
60
132
  );
133
+
134
+ /**
135
+ * Returns the downtime reasons available when logging a stoppage.
136
+ *
137
+ * The list is the same for every account and is ordered for display.
138
+ *
139
+ * This endpoint requires the permission: `machine_downtime:read`.
140
+ *
141
+ * @example
142
+ * ```ts
143
+ * const listMachineDowntimeReason =
144
+ * await client.operations.retrieveMachineDowntimeReasons();
145
+ * ```
146
+ */
147
+ retrieveMachineDowntimeReasons(options?: RequestOptions): APIPromise<ListMachineDowntimeReason> {
148
+ return this._client.get('/v1/operations/machine-downtime-reasons', options);
149
+ }
150
+
151
+ /**
152
+ * Returns what every machine is running right now, how much is left on it, and
153
+ * what is queued behind that.
154
+ *
155
+ * Assembled from the published schedule, the batches the floor has scanned against
156
+ * each campaign, and any open downtime. A campaign is `current` once its week is
157
+ * released and while it still has batches to scan; when the last one is scanned it
158
+ * hands over to the next, so this advances on its own as a shift progresses.
159
+ *
160
+ * A machine with an open stoppage reads `down` even when it has a released
161
+ * campaign, because a broken machine is not producing whatever the plan says. A
162
+ * machine with nothing released reads `idle`, which is a state worth seeing rather
163
+ * than an absence from the list.
164
+ *
165
+ * Reads the published version rather than the newest draft: the floor works to
166
+ * what was committed, and a draft regenerating underneath a wall display would
167
+ * make machines appear to change job on their own. With nothing published every
168
+ * machine reads idle rather than the request failing.
169
+ *
170
+ * This endpoint requires the permission: `machines:read`.
171
+ *
172
+ * @example
173
+ * ```ts
174
+ * const listMachineStatus =
175
+ * await client.operations.retrieveMachineStatus();
176
+ * ```
177
+ */
178
+ retrieveMachineStatus(
179
+ query: OperationRetrieveMachineStatusParams | null | undefined = {},
180
+ options?: RequestOptions,
181
+ ): APIPromise<ListMachineStatus> {
182
+ return this._client.get('/v1/operations/machine-status', { query, ...options });
183
+ }
184
+
185
+ /**
186
+ * Returns the demand override types, which describe how an override's value
187
+ * adjusts the forecast.
188
+ *
189
+ * This endpoint requires the permission: `demand_overrides:read`.
190
+ *
191
+ * @example
192
+ * ```ts
193
+ * const listDemandOverrideType =
194
+ * await client.operations.retrieveDemandOverrideTypes();
195
+ * ```
196
+ */
197
+ retrieveDemandOverrideTypes(options?: RequestOptions): APIPromise<ListDemandOverrideType> {
198
+ return this._client.get('/v1/operations/demand-override-types', options);
199
+ }
200
+
201
+ /**
202
+ * Returns the kinds of hand change a schedule deviation can record.
203
+ *
204
+ * This endpoint requires the permission: `production_schedules:read`.
205
+ *
206
+ * @example
207
+ * ```ts
208
+ * const listScheduleDeviationType =
209
+ * await client.operations.retrieveScheduleDeviationTypes();
210
+ * ```
211
+ */
212
+ retrieveScheduleDeviationTypes(options?: RequestOptions): APIPromise<ListScheduleDeviationType> {
213
+ return this._client.get('/v1/operations/schedule-deviation-types', options);
214
+ }
215
+ }
216
+
217
+ /**
218
+ * A way of adjusting planned demand.
219
+ *
220
+ * `absolute` replaces the forecast for the period, `delta_units` adds to it, and
221
+ * `delta_percent` scales it. When several overrides land on the same month they
222
+ * are applied in that order.
223
+ */
224
+ export interface DemandOverrideType {
225
+ /**
226
+ * Override type ID.
227
+ */
228
+ id: string;
229
+
230
+ /**
231
+ * Stable code used when creating an override.
232
+ */
233
+ code: 'absolute' | 'delta_units' | 'delta_percent';
234
+
235
+ /**
236
+ * Creation timestamp.
237
+ */
238
+ created_at: string;
239
+
240
+ /**
241
+ * Display name of the type.
242
+ */
243
+ name: string;
244
+
245
+ /**
246
+ * Resource type identifier.
247
+ */
248
+ object: 'demand_override_type';
249
+
250
+ /**
251
+ * Last updated timestamp.
252
+ */
253
+ updated_at: string;
254
+ }
255
+
256
+ /**
257
+ * List represents a paginated list of resources.
258
+ */
259
+ export interface ListDemandOverrideType {
260
+ /**
261
+ * Resources in this page.
262
+ */
263
+ data: Array<DemandOverrideType>;
264
+
265
+ /**
266
+ * Resource type identifier.
267
+ */
268
+ object: 'list';
269
+
270
+ /**
271
+ * PageInfo contains URL-based pagination metadata.
272
+ */
273
+ page_info: APIKeysAPI.PageInfo;
274
+ }
275
+
276
+ /**
277
+ * List represents a paginated list of resources.
278
+ */
279
+ export interface ListMachineDowntimeReason {
280
+ /**
281
+ * Resources in this page.
282
+ */
283
+ data: Array<MachineDowntimeReason>;
284
+
285
+ /**
286
+ * Resource type identifier.
287
+ */
288
+ object: 'list';
289
+
290
+ /**
291
+ * PageInfo contains URL-based pagination metadata.
292
+ */
293
+ page_info: APIKeysAPI.PageInfo;
294
+ }
295
+
296
+ /**
297
+ * List represents a paginated list of resources.
298
+ */
299
+ export interface ListMachineStatus {
300
+ /**
301
+ * Resources in this page.
302
+ */
303
+ data: Array<MachineStatus>;
304
+
305
+ /**
306
+ * Resource type identifier.
307
+ */
308
+ object: 'list';
309
+
310
+ /**
311
+ * PageInfo contains URL-based pagination metadata.
312
+ */
313
+ page_info: APIKeysAPI.PageInfo;
314
+ }
315
+
316
+ /**
317
+ * List represents a paginated list of resources.
318
+ */
319
+ export interface ListScheduleDeviationType {
320
+ /**
321
+ * Resources in this page.
322
+ */
323
+ data: Array<ScheduleDeviationType>;
324
+
325
+ /**
326
+ * Resource type identifier.
327
+ */
328
+ object: 'list';
329
+
330
+ /**
331
+ * PageInfo contains URL-based pagination metadata.
332
+ */
333
+ page_info: APIKeysAPI.PageInfo;
334
+ }
335
+
336
+ /**
337
+ * One campaign on a machine, with how far through it the floor is.
338
+ */
339
+ export interface MachineCampaign {
340
+ /**
341
+ * Entity is a polymorphic reference to any resource in the system.
342
+ */
343
+ item: CoreAPI.Entity | null;
344
+
345
+ /**
346
+ * Quantity the plan asked for.
347
+ */
348
+ planned_quantity: number;
349
+
350
+ /**
351
+ * Constraint hours the campaign consumes.
352
+ */
353
+ planned_run_hours: number;
354
+
355
+ /**
356
+ * Entity is a polymorphic reference to any resource in the system.
357
+ */
358
+ production_run: CoreAPI.Entity | null;
359
+
360
+ /**
361
+ * Batches issued to the floor for this campaign.
362
+ */
363
+ released_batch_count: number;
364
+
365
+ /**
366
+ * Quantity still to make.
367
+ *
368
+ * Never negative: an over-run shows up in `scanned_quantity` rather than as
369
+ * negative remaining work.
370
+ */
371
+ remaining_quantity: number;
372
+
373
+ /**
374
+ * Batches of this campaign the floor has scanned.
375
+ */
376
+ scanned_batch_count: number;
377
+
378
+ /**
379
+ * Quantity the floor has scanned so far.
380
+ */
381
+ scanned_quantity: number;
382
+
383
+ /**
384
+ * Entity is a polymorphic reference to any resource in the system.
385
+ */
386
+ schedule_line: CoreAPI.Entity | null;
387
+
388
+ /**
389
+ * SKU of the item.
390
+ */
391
+ sku: string;
392
+
393
+ /**
394
+ * Where the campaign is in its lifecycle.
395
+ */
396
+ status: 'planned' | 'released' | 'in_progress' | 'complete' | 'cancelled';
397
+
398
+ /**
399
+ * Unit the quantities are counted in.
400
+ */
401
+ unit: string | null;
402
+
403
+ /**
404
+ * Zero-based week offset from the start of the horizon.
405
+ */
406
+ week_index: number;
407
+
408
+ /**
409
+ * First day of the week the campaign belongs to.
410
+ */
411
+ week_starts_at: string;
412
+ }
413
+
414
+ /**
415
+ * A reason a machine stopped running.
416
+ *
417
+ * The `oee_bucket` decides which OEE term the stoppage charges: `availability`
418
+ * losses reduce run time, `performance` losses are minor stops and speed loss,
419
+ * `quality` losses cover rework and holds, and `not_scheduled` time is removed
420
+ * from the OEE calculation entirely rather than counted against it.
421
+ */
422
+ export interface MachineDowntimeReason {
423
+ /**
424
+ * Downtime reason ID.
425
+ */
426
+ id: string;
427
+
428
+ /**
429
+ * Stable code used when logging downtime.
430
+ */
431
+ code:
432
+ | 'breakdown'
433
+ | 'changeover'
434
+ | 'material_shortage'
435
+ | 'no_operator'
436
+ | 'planned_maintenance'
437
+ | 'minor_stop'
438
+ | 'quality_hold'
439
+ | 'no_schedule';
440
+
441
+ /**
442
+ * Creation timestamp.
443
+ */
444
+ created_at: string;
445
+
446
+ /**
447
+ * Display name of the reason.
448
+ */
449
+ name: string;
450
+
451
+ /**
452
+ * Resource type identifier.
453
+ */
454
+ object: 'machine_downtime_reason';
455
+
456
+ /**
457
+ * Which OEE term this reason charges.
458
+ */
459
+ oee_bucket: 'availability' | 'performance' | 'quality' | 'not_scheduled';
460
+
461
+ /**
462
+ * Whether the stoppage was scheduled in advance, such as preventive maintenance.
463
+ */
464
+ planning_status: 'planned' | 'unplanned';
465
+
466
+ /**
467
+ * Display order, ascending.
468
+ */
469
+ sort_order: number;
470
+
471
+ /**
472
+ * Last updated timestamp.
473
+ */
474
+ updated_at: string;
475
+ }
476
+
477
+ /**
478
+ * The reason for a stoppage, as carried on a downtime event.
479
+ *
480
+ * A denormalized view of the reason taxonomy: the stable code plus the display
481
+ * name and OEE bucket resolved from it at read time.
482
+ */
483
+ export interface MachineDowntimeReasonSummary {
484
+ /**
485
+ * Stable code identifying the reason.
486
+ */
487
+ code:
488
+ | 'breakdown'
489
+ | 'changeover'
490
+ | 'material_shortage'
491
+ | 'no_operator'
492
+ | 'planned_maintenance'
493
+ | 'minor_stop'
494
+ | 'quality_hold'
495
+ | 'no_schedule';
496
+
497
+ /**
498
+ * Display name of the reason.
499
+ */
500
+ name: string | null;
501
+
502
+ /**
503
+ * Resource type identifier.
504
+ */
505
+ object: 'machine_downtime_reason';
506
+
507
+ /**
508
+ * Which OEE term this reason charges.
509
+ */
510
+ oee_bucket: 'availability' | 'performance' | 'quality' | 'not_scheduled' | null;
511
+ }
512
+
513
+ /**
514
+ * An open stoppage on a machine.
515
+ */
516
+ export interface MachineDowntimeSummary {
517
+ /**
518
+ * Entity is a polymorphic reference to any resource in the system.
519
+ */
520
+ event: CoreAPI.Entity | null;
521
+
522
+ /**
523
+ * Free-text note left by whoever logged it.
524
+ */
525
+ note: string | null;
526
+
527
+ /**
528
+ * The reason for a stoppage, as carried on a downtime event.
529
+ *
530
+ * A denormalized view of the reason taxonomy: the stable code plus the display
531
+ * name and OEE bucket resolved from it at read time.
532
+ */
533
+ reason: MachineDowntimeReasonSummary | null;
534
+
535
+ /**
536
+ * When the machine went down.
537
+ */
538
+ started_at: string;
539
+ }
540
+
541
+ /**
542
+ * What one machine is doing right now.
543
+ *
544
+ * Assembled from the published schedule, the batches the floor has scanned against
545
+ * it, and any open downtime. A machine with an open stoppage reads `down` even
546
+ * when it has a released campaign, because a broken machine is not producing
547
+ * whatever the plan says.
548
+ */
549
+ export interface MachineStatus {
550
+ /**
551
+ * One campaign on a machine, with how far through it the floor is.
552
+ */
553
+ current: MachineCampaign | null;
554
+
555
+ /**
556
+ * Entity is a polymorphic reference to any resource in the system.
557
+ */
558
+ department: CoreAPI.Entity | null;
559
+
560
+ /**
561
+ * An open stoppage on a machine.
562
+ */
563
+ downtime: MachineDowntimeSummary | null;
564
+
565
+ /**
566
+ * Entity is a polymorphic reference to any resource in the system.
567
+ */
568
+ machine: CoreAPI.Entity | null;
569
+
570
+ /**
571
+ * One campaign on a machine, with how far through it the floor is.
572
+ */
573
+ next: MachineCampaign | null;
574
+
575
+ /**
576
+ * Resource type identifier.
577
+ */
578
+ object: 'machine_status';
579
+
580
+ /**
581
+ * What the machine is doing.
582
+ *
583
+ * - `running`: a released campaign with work still to scan.
584
+ * - `idle`: nothing released to it.
585
+ * - `down`: an open downtime event, which outranks running.
586
+ */
587
+ status: 'running' | 'idle' | 'down';
588
+
589
+ /**
590
+ * Unit the week's quantities are counted in.
591
+ */
592
+ unit: string | null;
593
+
594
+ /**
595
+ * Planned for this machine this week.
596
+ */
597
+ week_planned_quantity: number;
598
+
599
+ /**
600
+ * Constraint hours planned on this machine this week.
601
+ */
602
+ week_planned_run_hours: number;
603
+
604
+ /**
605
+ * Scanned on this machine this week.
606
+ */
607
+ week_scanned_quantity: number;
608
+ }
609
+
610
+ /**
611
+ * A kind of hand change to a plan.
612
+ */
613
+ export interface ScheduleDeviationType {
614
+ /**
615
+ * Deviation type ID.
616
+ */
617
+ id: string;
618
+
619
+ /**
620
+ * Stable code recorded on a deviation.
621
+ */
622
+ code: 'line_added' | 'line_removed' | 'quantity_changed' | 'machine_changed' | 'resequenced' | 'week_moved';
623
+
624
+ /**
625
+ * Creation timestamp.
626
+ */
627
+ created_at: string;
628
+
629
+ /**
630
+ * Display name of the type.
631
+ */
632
+ name: string;
633
+
634
+ /**
635
+ * Resource type identifier.
636
+ */
637
+ object: 'schedule_deviation_type';
638
+
639
+ /**
640
+ * Last updated timestamp.
641
+ */
642
+ updated_at: string;
643
+ }
644
+
645
+ export interface OperationRetrieveMachineStatusParams {
646
+ /**
647
+ * The moment to read the floor at. Defaults to now.
648
+ */
649
+ as_of?: string;
650
+
651
+ /**
652
+ * Only include machines in these departments.
653
+ */
654
+ department_ids?: Array<string>;
61
655
  }
62
656
 
63
657
  Operations.ShippingTerms = ShippingTerms;
64
658
  Operations.Carriers = Carriers;
659
+ Operations.MachineDowntimeEvents = MachineDowntimeEvents;
660
+ Operations.DemandOverrides = DemandOverrides;
661
+ Operations.ProductionSchedules = ProductionSchedules;
65
662
  Operations.Locations = Locations;
66
663
  Operations.LocationTypes = LocationTypes;
67
664
  Operations.ScanningStations = ScanningStations;
68
665
 
69
666
  export declare namespace Operations {
667
+ export {
668
+ type DemandOverrideType as DemandOverrideType,
669
+ type ListDemandOverrideType as ListDemandOverrideType,
670
+ type ListMachineDowntimeReason as ListMachineDowntimeReason,
671
+ type ListMachineStatus as ListMachineStatus,
672
+ type ListScheduleDeviationType as ListScheduleDeviationType,
673
+ type MachineCampaign as MachineCampaign,
674
+ type MachineDowntimeReason as MachineDowntimeReason,
675
+ type MachineDowntimeReasonSummary as MachineDowntimeReasonSummary,
676
+ type MachineDowntimeSummary as MachineDowntimeSummary,
677
+ type MachineStatus as MachineStatus,
678
+ type ScheduleDeviationType as ScheduleDeviationType,
679
+ type OperationRetrieveMachineStatusParams as OperationRetrieveMachineStatusParams,
680
+ };
681
+
70
682
  export {
71
683
  ShippingTerms as ShippingTerms,
72
684
  type CreateShippingTermRequest as CreateShippingTermRequest,
@@ -91,6 +703,67 @@ export declare namespace Operations {
91
703
  type CarrierUpdateParams as CarrierUpdateParams,
92
704
  };
93
705
 
706
+ export {
707
+ MachineDowntimeEvents as MachineDowntimeEvents,
708
+ type CreateMachineDowntimeEventRequest as CreateMachineDowntimeEventRequest,
709
+ type ListMachineDowntimeEvent as ListMachineDowntimeEvent,
710
+ type MachineDowntimeEvent as MachineDowntimeEvent,
711
+ type UpdateMachineDowntimeEventRequest as UpdateMachineDowntimeEventRequest,
712
+ type MachineDowntimeEventDeleteResponse as MachineDowntimeEventDeleteResponse,
713
+ type MachineDowntimeEventListParams as MachineDowntimeEventListParams,
714
+ type MachineDowntimeEventRetrieveParams as MachineDowntimeEventRetrieveParams,
715
+ type MachineDowntimeEventCreateParams as MachineDowntimeEventCreateParams,
716
+ type MachineDowntimeEventUpdateParams as MachineDowntimeEventUpdateParams,
717
+ };
718
+
719
+ export {
720
+ DemandOverrides as DemandOverrides,
721
+ type CreateDemandOverrideRequest as CreateDemandOverrideRequest,
722
+ type DemandOverride as DemandOverride,
723
+ type ListDemandOverride as ListDemandOverride,
724
+ type UpdateDemandOverrideRequest as UpdateDemandOverrideRequest,
725
+ type DemandOverrideDeleteResponse as DemandOverrideDeleteResponse,
726
+ type DemandOverrideListParams as DemandOverrideListParams,
727
+ type DemandOverrideRetrieveParams as DemandOverrideRetrieveParams,
728
+ type DemandOverrideCreateParams as DemandOverrideCreateParams,
729
+ type DemandOverrideUpdateParams as DemandOverrideUpdateParams,
730
+ };
731
+
732
+ export {
733
+ ProductionSchedules as ProductionSchedules,
734
+ type GenerateProductionScheduleRequest as GenerateProductionScheduleRequest,
735
+ type ListProductionSchedule as ListProductionSchedule,
736
+ type ListProductionScheduleDerivedLine as ListProductionScheduleDerivedLine,
737
+ type ListProductionScheduleDeviation as ListProductionScheduleDeviation,
738
+ type ListProductionScheduleFinishedPolicy as ListProductionScheduleFinishedPolicy,
739
+ type ListProductionScheduleItemPolicy as ListProductionScheduleItemPolicy,
740
+ type ListReleaseScheduleBatch as ListReleaseScheduleBatch,
741
+ type ListReleasedScheduleLine as ListReleasedScheduleLine,
742
+ type ListScheduleAppliedOverride as ListScheduleAppliedOverride,
743
+ type ProductionSchedule as ProductionSchedule,
744
+ type ProductionScheduleDerivedLine as ProductionScheduleDerivedLine,
745
+ type ProductionScheduleDeviation as ProductionScheduleDeviation,
746
+ type ProductionScheduleFinishedPolicy as ProductionScheduleFinishedPolicy,
747
+ type ProductionScheduleItemPolicy as ProductionScheduleItemPolicy,
748
+ type ReleaseScheduleBatch as ReleaseScheduleBatch,
749
+ type ReleaseScheduleWeekPreview as ReleaseScheduleWeekPreview,
750
+ type ReleasedScheduleLine as ReleasedScheduleLine,
751
+ type ScheduleAppliedOverride as ScheduleAppliedOverride,
752
+ type ScheduleDiagnostics as ScheduleDiagnostics,
753
+ type ProductionScheduleDeleteResponse as ProductionScheduleDeleteResponse,
754
+ type ProductionScheduleListParams as ProductionScheduleListParams,
755
+ type ProductionScheduleCreateParams as ProductionScheduleCreateParams,
756
+ type ProductionScheduleRetrieveDerivedLinesParams as ProductionScheduleRetrieveDerivedLinesParams,
757
+ type ProductionScheduleRetrieveDeviationsParams as ProductionScheduleRetrieveDeviationsParams,
758
+ type ProductionScheduleRetrieveWeekReleasePreviewParams as ProductionScheduleRetrieveWeekReleasePreviewParams,
759
+ };
760
+
761
+ export {
762
+ type ProductionScheduleSettings as ProductionScheduleSettings,
763
+ type UpdateProductionScheduleSettingsRequest as UpdateProductionScheduleSettingsRequest,
764
+ type ProductionScheduleSettingUpdateParams as ProductionScheduleSettingUpdateParams,
765
+ };
766
+
94
767
  export {
95
768
  Locations as Locations,
96
769
  type CreateLocationRequest as CreateLocationRequest,