@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.
Files changed (214) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/package.json +1 -1
  3. package/resources/catalog/product-lines/product-lines.d.mts +53 -0
  4. package/resources/catalog/product-lines/product-lines.d.mts.map +1 -1
  5. package/resources/catalog/product-lines/product-lines.d.ts +53 -0
  6. package/resources/catalog/product-lines/product-lines.d.ts.map +1 -1
  7. package/resources/catalog/product-lines/product-lines.js.map +1 -1
  8. package/resources/catalog/product-lines/product-lines.mjs.map +1 -1
  9. package/resources/core/analytics.d.mts +252 -1
  10. package/resources/core/analytics.d.mts.map +1 -1
  11. package/resources/core/analytics.d.ts +252 -1
  12. package/resources/core/analytics.d.ts.map +1 -1
  13. package/resources/core/analytics.js +38 -0
  14. package/resources/core/analytics.js.map +1 -1
  15. package/resources/core/analytics.mjs +38 -0
  16. package/resources/core/analytics.mjs.map +1 -1
  17. package/resources/core/audit-events.d.mts +4 -4
  18. package/resources/core/audit-events.d.mts.map +1 -1
  19. package/resources/core/audit-events.d.ts +4 -4
  20. package/resources/core/audit-events.d.ts.map +1 -1
  21. package/resources/core/core.d.mts +4 -4
  22. package/resources/core/core.d.mts.map +1 -1
  23. package/resources/core/core.d.ts +4 -4
  24. package/resources/core/core.d.ts.map +1 -1
  25. package/resources/core/core.js.map +1 -1
  26. package/resources/core/core.mjs.map +1 -1
  27. package/resources/core/index.d.mts +1 -1
  28. package/resources/core/index.d.mts.map +1 -1
  29. package/resources/core/index.d.ts +1 -1
  30. package/resources/core/index.d.ts.map +1 -1
  31. package/resources/core/index.js.map +1 -1
  32. package/resources/core/index.mjs.map +1 -1
  33. package/resources/messaging/conversations/conversations.d.mts +3 -3
  34. package/resources/messaging/conversations/conversations.d.mts.map +1 -1
  35. package/resources/messaging/conversations/conversations.d.ts +3 -3
  36. package/resources/messaging/conversations/conversations.d.ts.map +1 -1
  37. package/resources/messaging/conversations/conversations.js.map +1 -1
  38. package/resources/messaging/conversations/conversations.mjs.map +1 -1
  39. package/resources/messaging/conversations/links.d.mts +2 -2
  40. package/resources/messaging/conversations/links.d.mts.map +1 -1
  41. package/resources/messaging/conversations/links.d.ts +2 -2
  42. package/resources/messaging/conversations/links.d.ts.map +1 -1
  43. package/resources/messaging/conversations/messages.d.mts +2 -2
  44. package/resources/messaging/conversations/messages.d.mts.map +1 -1
  45. package/resources/messaging/conversations/messages.d.ts +2 -2
  46. package/resources/messaging/conversations/messages.d.ts.map +1 -1
  47. package/resources/messaging/notifications/notifications.d.mts +2 -2
  48. package/resources/messaging/notifications/notifications.d.mts.map +1 -1
  49. package/resources/messaging/notifications/notifications.d.ts +2 -2
  50. package/resources/messaging/notifications/notifications.d.ts.map +1 -1
  51. package/resources/messaging/notifications/notifications.js.map +1 -1
  52. package/resources/messaging/notifications/notifications.mjs.map +1 -1
  53. package/resources/operations/fulfillment-recommendations/actions.d.mts +59 -0
  54. package/resources/operations/fulfillment-recommendations/actions.d.mts.map +1 -0
  55. package/resources/operations/fulfillment-recommendations/actions.d.ts +59 -0
  56. package/resources/operations/fulfillment-recommendations/actions.d.ts.map +1 -0
  57. package/resources/operations/fulfillment-recommendations/actions.js +40 -0
  58. package/resources/operations/fulfillment-recommendations/actions.js.map +1 -0
  59. package/resources/operations/fulfillment-recommendations/actions.mjs +36 -0
  60. package/resources/operations/fulfillment-recommendations/actions.mjs.map +1 -0
  61. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.mts +165 -0
  62. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.mts.map +1 -0
  63. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.ts +165 -0
  64. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.ts.map +1 -0
  65. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.js +52 -0
  66. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.js.map +1 -0
  67. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.mjs +47 -0
  68. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.mjs.map +1 -0
  69. package/resources/operations/fulfillment-recommendations/index.d.mts +3 -0
  70. package/resources/operations/fulfillment-recommendations/index.d.mts.map +1 -0
  71. package/resources/operations/fulfillment-recommendations/index.d.ts +3 -0
  72. package/resources/operations/fulfillment-recommendations/index.d.ts.map +1 -0
  73. package/resources/operations/fulfillment-recommendations/index.js +9 -0
  74. package/resources/operations/fulfillment-recommendations/index.js.map +1 -0
  75. package/resources/operations/fulfillment-recommendations/index.mjs +4 -0
  76. package/resources/operations/fulfillment-recommendations/index.mjs.map +1 -0
  77. package/resources/operations/fulfillment-recommendations.d.mts +2 -0
  78. package/resources/operations/fulfillment-recommendations.d.mts.map +1 -0
  79. package/resources/operations/fulfillment-recommendations.d.ts +2 -0
  80. package/resources/operations/fulfillment-recommendations.d.ts.map +1 -0
  81. package/resources/operations/fulfillment-recommendations.js +6 -0
  82. package/resources/operations/fulfillment-recommendations.js.map +1 -0
  83. package/resources/operations/fulfillment-recommendations.mjs +3 -0
  84. package/resources/operations/fulfillment-recommendations.mjs.map +1 -0
  85. package/resources/operations/index.d.mts +2 -1
  86. package/resources/operations/index.d.mts.map +1 -1
  87. package/resources/operations/index.d.ts +2 -1
  88. package/resources/operations/index.d.ts.map +1 -1
  89. package/resources/operations/index.js +11 -9
  90. package/resources/operations/index.js.map +1 -1
  91. package/resources/operations/index.mjs +1 -0
  92. package/resources/operations/index.mjs.map +1 -1
  93. package/resources/operations/operations.d.mts +6 -2
  94. package/resources/operations/operations.d.mts.map +1 -1
  95. package/resources/operations/operations.d.ts +6 -2
  96. package/resources/operations/operations.d.ts.map +1 -1
  97. package/resources/operations/operations.js +4 -0
  98. package/resources/operations/operations.js.map +1 -1
  99. package/resources/operations/operations.mjs +4 -0
  100. package/resources/operations/operations.mjs.map +1 -1
  101. package/resources/operations/production-schedule-settings/index.d.mts +1 -0
  102. package/resources/operations/production-schedule-settings/index.d.mts.map +1 -1
  103. package/resources/operations/production-schedule-settings/index.d.ts +1 -0
  104. package/resources/operations/production-schedule-settings/index.d.ts.map +1 -1
  105. package/resources/operations/production-schedule-settings/index.js +3 -1
  106. package/resources/operations/production-schedule-settings/index.js.map +1 -1
  107. package/resources/operations/production-schedule-settings/index.mjs +1 -0
  108. package/resources/operations/production-schedule-settings/index.mjs.map +1 -1
  109. package/resources/operations/production-schedule-settings/items.d.mts +228 -0
  110. package/resources/operations/production-schedule-settings/items.d.mts.map +1 -0
  111. package/resources/operations/production-schedule-settings/items.d.ts +228 -0
  112. package/resources/operations/production-schedule-settings/items.d.ts.map +1 -0
  113. package/resources/operations/production-schedule-settings/items.js +109 -0
  114. package/resources/operations/production-schedule-settings/items.js.map +1 -0
  115. package/resources/operations/production-schedule-settings/items.mjs +105 -0
  116. package/resources/operations/production-schedule-settings/items.mjs.map +1 -0
  117. package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts +60 -0
  118. package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts.map +1 -1
  119. package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts +60 -0
  120. package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts.map +1 -1
  121. package/resources/operations/production-schedule-settings/production-schedule-settings.js +6 -0
  122. package/resources/operations/production-schedule-settings/production-schedule-settings.js.map +1 -1
  123. package/resources/operations/production-schedule-settings/production-schedule-settings.mjs +6 -0
  124. package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map +1 -1
  125. package/resources/operations/production-schedules/actions.d.mts +117 -1
  126. package/resources/operations/production-schedules/actions.d.mts.map +1 -1
  127. package/resources/operations/production-schedules/actions.d.ts +117 -1
  128. package/resources/operations/production-schedules/actions.d.ts.map +1 -1
  129. package/resources/operations/production-schedules/actions.js +34 -0
  130. package/resources/operations/production-schedules/actions.js.map +1 -1
  131. package/resources/operations/production-schedules/actions.mjs +34 -0
  132. package/resources/operations/production-schedules/actions.mjs.map +1 -1
  133. package/resources/operations/production-schedules/index.d.mts +2 -2
  134. package/resources/operations/production-schedules/index.d.mts.map +1 -1
  135. package/resources/operations/production-schedules/index.d.ts +2 -2
  136. package/resources/operations/production-schedules/index.d.ts.map +1 -1
  137. package/resources/operations/production-schedules/index.js.map +1 -1
  138. package/resources/operations/production-schedules/index.mjs.map +1 -1
  139. package/resources/operations/production-schedules/production-schedules.d.mts +260 -3
  140. package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -1
  141. package/resources/operations/production-schedules/production-schedules.d.ts +260 -3
  142. package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -1
  143. package/resources/operations/production-schedules/production-schedules.js +29 -0
  144. package/resources/operations/production-schedules/production-schedules.js.map +1 -1
  145. package/resources/operations/production-schedules/production-schedules.mjs +29 -0
  146. package/resources/operations/production-schedules/production-schedules.mjs.map +1 -1
  147. package/resources/sales/account-groups.d.mts +27 -0
  148. package/resources/sales/account-groups.d.mts.map +1 -1
  149. package/resources/sales/account-groups.d.ts +27 -0
  150. package/resources/sales/account-groups.d.ts.map +1 -1
  151. package/resources/sales/customers/customers.d.mts +99 -1
  152. package/resources/sales/customers/customers.d.mts.map +1 -1
  153. package/resources/sales/customers/customers.d.ts +99 -1
  154. package/resources/sales/customers/customers.d.ts.map +1 -1
  155. package/resources/sales/customers/customers.js +27 -0
  156. package/resources/sales/customers/customers.js.map +1 -1
  157. package/resources/sales/customers/customers.mjs +27 -0
  158. package/resources/sales/customers/customers.mjs.map +1 -1
  159. package/resources/sales/customers/index.d.mts +1 -1
  160. package/resources/sales/customers/index.d.mts.map +1 -1
  161. package/resources/sales/customers/index.d.ts +1 -1
  162. package/resources/sales/customers/index.d.ts.map +1 -1
  163. package/resources/sales/customers/index.js.map +1 -1
  164. package/resources/sales/customers/index.mjs.map +1 -1
  165. package/resources/sales/index.d.mts +1 -1
  166. package/resources/sales/index.d.mts.map +1 -1
  167. package/resources/sales/index.d.ts +1 -1
  168. package/resources/sales/index.d.ts.map +1 -1
  169. package/resources/sales/index.js.map +1 -1
  170. package/resources/sales/index.mjs.map +1 -1
  171. package/resources/sales/sales-orders/sales-orders.d.mts +35 -0
  172. package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
  173. package/resources/sales/sales-orders/sales-orders.d.ts +35 -0
  174. package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
  175. package/resources/sales/sales-orders/sales-orders.js.map +1 -1
  176. package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
  177. package/resources/sales/sales.d.mts +2 -2
  178. package/resources/sales/sales.d.mts.map +1 -1
  179. package/resources/sales/sales.d.ts +2 -2
  180. package/resources/sales/sales.d.ts.map +1 -1
  181. package/resources/sales/sales.js.map +1 -1
  182. package/resources/sales/sales.mjs.map +1 -1
  183. package/src/resources/catalog/product-lines/product-lines.ts +58 -0
  184. package/src/resources/core/analytics.ts +300 -0
  185. package/src/resources/core/audit-events.ts +40 -0
  186. package/src/resources/core/core.ts +34 -0
  187. package/src/resources/core/index.ts +7 -0
  188. package/src/resources/messaging/conversations/conversations.ts +30 -0
  189. package/src/resources/messaging/conversations/links.ts +20 -0
  190. package/src/resources/messaging/conversations/messages.ts +20 -0
  191. package/src/resources/messaging/notifications/notifications.ts +20 -0
  192. package/src/resources/operations/fulfillment-recommendations/actions.ts +75 -0
  193. package/src/resources/operations/fulfillment-recommendations/fulfillment-recommendations.ts +206 -0
  194. package/src/resources/operations/fulfillment-recommendations/index.ts +8 -0
  195. package/src/resources/operations/fulfillment-recommendations.ts +3 -0
  196. package/src/resources/operations/index.ts +11 -0
  197. package/src/resources/operations/operations.ts +27 -0
  198. package/src/resources/operations/production-schedule-settings/index.ts +8 -0
  199. package/src/resources/operations/production-schedule-settings/items.ts +273 -0
  200. package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +82 -0
  201. package/src/resources/operations/production-schedules/actions.ts +144 -0
  202. package/src/resources/operations/production-schedules/index.ts +9 -0
  203. package/src/resources/operations/production-schedules/production-schedules.ts +310 -0
  204. package/src/resources/sales/account-groups.ts +32 -0
  205. package/src/resources/sales/customers/customers.ts +112 -0
  206. package/src/resources/sales/customers/index.ts +1 -0
  207. package/src/resources/sales/index.ts +1 -0
  208. package/src/resources/sales/sales-orders/sales-orders.ts +41 -0
  209. package/src/resources/sales/sales.ts +2 -0
  210. package/src/version.ts +1 -1
  211. package/version.d.mts +1 -1
  212. package/version.d.ts +1 -1
  213. package/version.js +1 -1
  214. package/version.mjs +1 -1
@@ -16,6 +16,8 @@ import * as ShippingTermsAPI from "./shipping-terms.mjs";
16
16
  import { ShippingTerms, } from "./shipping-terms.mjs";
17
17
  import * as CarriersAPI from "./carriers/carriers.mjs";
18
18
  import { Carriers, } from "./carriers/carriers.mjs";
19
+ import * as FulfillmentRecommendationsAPI from "./fulfillment-recommendations/fulfillment-recommendations.mjs";
20
+ import { FulfillmentRecommendations, } from "./fulfillment-recommendations/fulfillment-recommendations.mjs";
19
21
  import * as LocationsAPI from "./locations/locations.mjs";
20
22
  import { Locations, } from "./locations/locations.mjs";
21
23
  import * as ProductionScheduleSettingsAPI from "./production-schedule-settings/production-schedule-settings.mjs";
@@ -34,6 +36,7 @@ export class Operations extends APIResource {
34
36
  this.demandOverrides = new DemandOverridesAPI.DemandOverrides(this._client);
35
37
  this.productionSchedules = new ProductionSchedulesAPI.ProductionSchedules(this._client);
36
38
  this.productionScheduleSettings = new ProductionScheduleSettingsAPI.ProductionScheduleSettings(this._client);
39
+ this.fulfillmentRecommendations = new FulfillmentRecommendationsAPI.FulfillmentRecommendations(this._client);
37
40
  this.locations = new LocationsAPI.Locations(this._client);
38
41
  this.locationTypes = new LocationTypesAPI.LocationTypes(this._client);
39
42
  this.shipments = new ShipmentsAPI.Shipments(this._client);
@@ -131,6 +134,7 @@ Operations.Machines = Machines;
131
134
  Operations.MachineDowntimeEvents = MachineDowntimeEvents;
132
135
  Operations.DemandOverrides = DemandOverrides;
133
136
  Operations.ProductionSchedules = ProductionSchedules;
137
+ Operations.FulfillmentRecommendations = FulfillmentRecommendations;
134
138
  Operations.Locations = Locations;
135
139
  Operations.LocationTypes = LocationTypes;
136
140
  Operations.Shipments = Shipments;
@@ -1 +1 @@
1
- {"version":3,"file":"operations.mjs","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,kBAAkB;OACvB,EAQL,eAAe,GAGhB;OACM,KAAK,cAAc;OACnB,EAQL,WAAW,GAGZ;OACM,KAAK,gBAAgB;OACrB,EAA0D,aAAa,EAAE;OACzE,KAAK,wBAAwB;OAC7B,EASL,qBAAqB,GAEtB;OACM,KAAK,WAAW;OAChB,EAOL,QAAQ,GAET;OACM,KAAK,mBAAmB;OACxB,EAOL,gBAAgB,GAEjB;OACM,KAAK,gBAAgB;OACrB,EAQL,aAAa,GAEd;OAEM,KAAK,WAAW;OAChB,EAML,QAAQ,GAIT;OACM,KAAK,YAAY;OACjB,EAOL,SAAS,GAEV;OACM,KAAK,6BAA6B;OAMlC,KAAK,sBAAsB;OAC3B,EAqBL,mBAAmB,GAMpB;OACM,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE;AAIpB,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,0BAAqB,GACnB,IAAI,wBAAwB,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CA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;;;;;;;OA6BG;IACH,qBAAqB,CACnB,QAAiE,EAAE,EACnE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,2BAA2B,CAAC,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;OAUG;IACH,8BAA8B,CAAC,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yCAAyC,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAmfD,UAAU,CAAC,aAAa,GAAG,aAAa,CAAC;AACzC,UAAU,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC/B,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;AACrC,UAAU,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC/B,UAAU,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;AACzD,UAAU,CAAC,eAAe,GAAG,eAAe,CAAC;AAC7C,UAAU,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;AACrD,UAAU,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;AACnE,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC;AACjC,UAAU,CAAC,aAAa,GAAG,aAAa,CAAC;AACzC,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC;AACjC,UAAU,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
@@ -1,3 +1,4 @@
1
+ export { Items, type ListProductionScheduleItemSetting, type ProductionScheduleItemSetting, type UpsertItemSettingRequest, type ItemDeleteResponse, type ItemUpdateParams, } from "./items.mjs";
1
2
  export { ProductionScheduleSettings, type UpdateProductionScheduleSettingsRequest, type ProductionScheduleSettingUpdateParams, } from "./production-schedule-settings.mjs";
2
3
  export { Resources, type ListProductionScheduleResourceSetting, type ProductionScheduleResourceSetting, type UpsertResourceSettingRequest, type ResourceDeleteResponse, type ResourceUpdateParams, } from "./resources.mjs";
3
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":"OAEO,EACL,0BAA0B,EAC1B,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C;OACM,EACL,SAAS,EACT,KAAK,qCAAqC,EAC1C,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB;OACM,EACL,0BAA0B,EAC1B,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C;OACM,EACL,SAAS,EACT,KAAK,qCAAqC,EAC1C,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B"}
@@ -1,3 +1,4 @@
1
+ export { Items, type ListProductionScheduleItemSetting, type ProductionScheduleItemSetting, type UpsertItemSettingRequest, type ItemDeleteResponse, type ItemUpdateParams, } from "./items.js";
1
2
  export { ProductionScheduleSettings, type UpdateProductionScheduleSettingsRequest, type ProductionScheduleSettingUpdateParams, } from "./production-schedule-settings.js";
2
3
  export { Resources, type ListProductionScheduleResourceSetting, type ProductionScheduleResourceSetting, type UpsertResourceSettingRequest, type ResourceDeleteResponse, type ResourceUpdateParams, } from "./resources.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":"OAEO,EACL,0BAA0B,EAC1B,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C;OACM,EACL,SAAS,EACT,KAAK,qCAAqC,EAC1C,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB;OACM,EACL,0BAA0B,EAC1B,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C;OACM,EACL,SAAS,EACT,KAAK,qCAAqC,EAC1C,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B"}
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Resources = exports.ProductionScheduleSettings = void 0;
4
+ exports.Resources = exports.ProductionScheduleSettings = exports.Items = void 0;
5
+ var items_1 = require("./items.js");
6
+ Object.defineProperty(exports, "Items", { enumerable: true, get: function () { return items_1.Items; } });
5
7
  var production_schedule_settings_1 = require("./production-schedule-settings.js");
6
8
  Object.defineProperty(exports, "ProductionScheduleSettings", { enumerable: true, get: function () { return production_schedule_settings_1.ProductionScheduleSettings; } });
7
9
  var resources_1 = require("./resources.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kFAIwC;AAHtC,0IAAA,0BAA0B,OAAA;AAI5B,4CAOqB;AANnB,sGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAOiB;AANf,8FAAA,KAAK,OAAA;AAOP,kFAIwC;AAHtC,0IAAA,0BAA0B,OAAA;AAI5B,4CAOqB;AANnB,sGAAA,SAAS,OAAA"}
@@ -1,4 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Items, } from "./items.mjs";
2
3
  export { ProductionScheduleSettings, } from "./production-schedule-settings.mjs";
3
4
  export { Resources, } from "./resources.mjs";
4
5
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,0BAA0B,GAG3B;OACM,EACL,SAAS,GAMV"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAMN;OACM,EACL,0BAA0B,GAG3B;OACM,EACL,SAAS,GAMV"}
@@ -0,0 +1,228 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import * as CoreAPI from "../../core/core.mjs";
3
+ import * as APIKeysAPI from "../../auth/api-keys/api-keys.mjs";
4
+ import { APIPromise } from "../../../core/api-promise.mjs";
5
+ import { RequestOptions } from "../../../internal/request-options.mjs";
6
+ /**
7
+ * The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
8
+ */
9
+ export declare class Items extends APIResource {
10
+ /**
11
+ * Returns every per-item planning override in the account.
12
+ *
13
+ * Only items that have been given an override appear here. An item with none is
14
+ * planned on the account defaults and its product line's conventions, which is the
15
+ * normal case — this is the list of exceptions, not a list of every item.
16
+ *
17
+ * This endpoint requires the permission: `production_schedules:read`.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const listProductionScheduleItemSetting =
22
+ * await client.operations.productionScheduleSettings.items.list();
23
+ * ```
24
+ */
25
+ list(options?: RequestOptions): APIPromise<ListProductionScheduleItemSetting>;
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: string, options?: RequestOptions): APIPromise<ProductionScheduleItemSetting>;
45
+ /**
46
+ * Writes the planning overrides for one item.
47
+ *
48
+ * An item has at most one set of overrides, so this replaces the existing entry
49
+ * rather than adding a second, and the entry keeps the ID it already had.
50
+ *
51
+ * The fulfillment policy is the most consequential of these. A `make_to_order`
52
+ * item contributes no forecast demand and holds no safety stock, so it is built
53
+ * only against orders already on the book — which is what stops a slow mover
54
+ * accumulating inventory nobody asked for. It also propagates: an intermediate
55
+ * item is planned to order only when every finished good it becomes is, so one
56
+ * stocked sibling keeps the whole family buffered.
57
+ *
58
+ * Overrides are read when a plan is generated, so a change takes effect on the
59
+ * next generated version and leaves existing ones untouched.
60
+ *
61
+ * This endpoint requires the permission: `production_schedules:update`.
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const productionScheduleItemSetting =
66
+ * await client.operations.productionScheduleSettings.items.update(
67
+ * 'example',
68
+ * {
69
+ * participation_status: 'included',
70
+ * fulfillment_policy: 'make_to_order',
71
+ * },
72
+ * );
73
+ * ```
74
+ */
75
+ update(itemID: string, body: ItemUpdateParams, options?: RequestOptions): APIPromise<ProductionScheduleItemSetting>;
76
+ /**
77
+ * Removes one item's planning overrides, returning it to the account defaults and
78
+ * its product line's conventions.
79
+ *
80
+ * Fails with a not-found error when the item has no overrides, rather than
81
+ * reporting success: a mistyped item ID would otherwise read as a change that
82
+ * never happened.
83
+ *
84
+ * This endpoint requires the permission: `production_schedules:update`.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * const item =
89
+ * await client.operations.productionScheduleSettings.items.delete(
90
+ * 'example',
91
+ * );
92
+ * ```
93
+ */
94
+ delete(itemID: string, options?: RequestOptions): APIPromise<ItemDeleteResponse>;
95
+ }
96
+ /**
97
+ * A single page of resources, together with the metadata needed to page through
98
+ * the rest of the result set.
99
+ */
100
+ export interface ListProductionScheduleItemSetting {
101
+ /**
102
+ * Resources in this page.
103
+ */
104
+ data: Array<ProductionScheduleItemSetting>;
105
+ /**
106
+ * Resource type identifier.
107
+ */
108
+ object: 'list';
109
+ /**
110
+ * PageInfo describes where the current page sits within a paginated result set and
111
+ * how to move to the adjacent pages.
112
+ *
113
+ * Page a list by following the URLs below rather than assembling cursors yourself.
114
+ * For a top-level list endpoint the URL repeats the original request's query
115
+ * string with only the cursor swapped, so following it preserves the same filters,
116
+ * search term, and page size.
117
+ */
118
+ page_info: APIKeysAPI.PageInfo;
119
+ }
120
+ /**
121
+ * Planning overrides for one item, on top of the account-wide assumptions.
122
+ */
123
+ export interface ProductionScheduleItemSetting {
124
+ /**
125
+ * Item setting ID.
126
+ */
127
+ id: string;
128
+ /**
129
+ * Creation timestamp.
130
+ */
131
+ created_at: string;
132
+ /**
133
+ * How this item is produced.
134
+ *
135
+ * - `make_to_stock`: built to the forecast, holding a safety stock against its
136
+ * variability.
137
+ * - `make_to_order`: built only against orders already on the book, holding no
138
+ * buffer.
139
+ *
140
+ * Null inherits from the item's product line, then from the account default.
141
+ */
142
+ fulfillment_policy: 'make_to_stock' | 'make_to_order' | null;
143
+ /**
144
+ * Entity is a polymorphic reference to any resource in the system.
145
+ */
146
+ item: CoreAPI.Entity | null;
147
+ /**
148
+ * Units in one production lot for this item, overriding the lot its product line
149
+ * would supply.
150
+ */
151
+ lot_multiple_units: number | null;
152
+ /**
153
+ * Resource type identifier.
154
+ */
155
+ object: 'production_schedule_item_setting';
156
+ /**
157
+ * Whether this item takes part in planning.
158
+ *
159
+ * An excluded item is left out of the plan entirely: no campaigns, no policy, no
160
+ * capacity.
161
+ */
162
+ participation_status: 'included' | 'excluded';
163
+ /**
164
+ * Last updated timestamp.
165
+ */
166
+ updated_at: string;
167
+ }
168
+ /**
169
+ * Request to write one item's planning overrides.
170
+ */
171
+ export interface UpsertItemSettingRequest {
172
+ /**
173
+ * Whether this item takes part in planning.
174
+ *
175
+ * An excluded item is left out of the plan entirely: no campaigns, no policy, no
176
+ * capacity.
177
+ */
178
+ participation_status: 'included' | 'excluded';
179
+ /**
180
+ * How this item is produced.
181
+ *
182
+ * - `make_to_stock`: built to the forecast, holding a safety stock against its
183
+ * variability.
184
+ * - `make_to_order`: built only against orders already on the book, holding no
185
+ * buffer.
186
+ *
187
+ * Clearing it returns the item to its product line's policy, then to the account
188
+ * default.
189
+ */
190
+ fulfillment_policy?: 'make_to_stock' | 'make_to_order' | null;
191
+ /**
192
+ * Units in one production lot for this item, overriding the lot its product line
193
+ * would supply.
194
+ */
195
+ lot_multiple_units?: number;
196
+ }
197
+ export interface ItemDeleteResponse {
198
+ }
199
+ export interface ItemUpdateParams {
200
+ /**
201
+ * Whether this item takes part in planning.
202
+ *
203
+ * An excluded item is left out of the plan entirely: no campaigns, no policy, no
204
+ * capacity.
205
+ */
206
+ participation_status: 'included' | 'excluded';
207
+ /**
208
+ * How this item is produced.
209
+ *
210
+ * - `make_to_stock`: built to the forecast, holding a safety stock against its
211
+ * variability.
212
+ * - `make_to_order`: built only against orders already on the book, holding no
213
+ * buffer.
214
+ *
215
+ * Clearing it returns the item to its product line's policy, then to the account
216
+ * default.
217
+ */
218
+ fulfillment_policy?: 'make_to_stock' | 'make_to_order' | null;
219
+ /**
220
+ * Units in one production lot for this item, overriding the lot its product line
221
+ * would supply.
222
+ */
223
+ lot_multiple_units?: number;
224
+ }
225
+ export declare namespace Items {
226
+ export { type ListProductionScheduleItemSetting as ListProductionScheduleItemSetting, type ProductionScheduleItemSetting as ProductionScheduleItemSetting, type UpsertItemSettingRequest as UpsertItemSettingRequest, type ItemDeleteResponse as ItemDeleteResponse, type ItemUpdateParams as ItemUpdateParams, };
227
+ }
228
+ //# sourceMappingURL=items.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.d.mts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iCAAiC,CAAC;IAI7E;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAI7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAO5C;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGjF;AAED;;;GAGG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAE3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAA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kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -0,0 +1,228 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import * as CoreAPI from "../../core/core.js";
3
+ import * as APIKeysAPI from "../../auth/api-keys/api-keys.js";
4
+ import { APIPromise } from "../../../core/api-promise.js";
5
+ import { RequestOptions } from "../../../internal/request-options.js";
6
+ /**
7
+ * The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
8
+ */
9
+ export declare class Items extends APIResource {
10
+ /**
11
+ * Returns every per-item planning override in the account.
12
+ *
13
+ * Only items that have been given an override appear here. An item with none is
14
+ * planned on the account defaults and its product line's conventions, which is the
15
+ * normal case — this is the list of exceptions, not a list of every item.
16
+ *
17
+ * This endpoint requires the permission: `production_schedules:read`.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const listProductionScheduleItemSetting =
22
+ * await client.operations.productionScheduleSettings.items.list();
23
+ * ```
24
+ */
25
+ list(options?: RequestOptions): APIPromise<ListProductionScheduleItemSetting>;
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: string, options?: RequestOptions): APIPromise<ProductionScheduleItemSetting>;
45
+ /**
46
+ * Writes the planning overrides for one item.
47
+ *
48
+ * An item has at most one set of overrides, so this replaces the existing entry
49
+ * rather than adding a second, and the entry keeps the ID it already had.
50
+ *
51
+ * The fulfillment policy is the most consequential of these. A `make_to_order`
52
+ * item contributes no forecast demand and holds no safety stock, so it is built
53
+ * only against orders already on the book — which is what stops a slow mover
54
+ * accumulating inventory nobody asked for. It also propagates: an intermediate
55
+ * item is planned to order only when every finished good it becomes is, so one
56
+ * stocked sibling keeps the whole family buffered.
57
+ *
58
+ * Overrides are read when a plan is generated, so a change takes effect on the
59
+ * next generated version and leaves existing ones untouched.
60
+ *
61
+ * This endpoint requires the permission: `production_schedules:update`.
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const productionScheduleItemSetting =
66
+ * await client.operations.productionScheduleSettings.items.update(
67
+ * 'example',
68
+ * {
69
+ * participation_status: 'included',
70
+ * fulfillment_policy: 'make_to_order',
71
+ * },
72
+ * );
73
+ * ```
74
+ */
75
+ update(itemID: string, body: ItemUpdateParams, options?: RequestOptions): APIPromise<ProductionScheduleItemSetting>;
76
+ /**
77
+ * Removes one item's planning overrides, returning it to the account defaults and
78
+ * its product line's conventions.
79
+ *
80
+ * Fails with a not-found error when the item has no overrides, rather than
81
+ * reporting success: a mistyped item ID would otherwise read as a change that
82
+ * never happened.
83
+ *
84
+ * This endpoint requires the permission: `production_schedules:update`.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * const item =
89
+ * await client.operations.productionScheduleSettings.items.delete(
90
+ * 'example',
91
+ * );
92
+ * ```
93
+ */
94
+ delete(itemID: string, options?: RequestOptions): APIPromise<ItemDeleteResponse>;
95
+ }
96
+ /**
97
+ * A single page of resources, together with the metadata needed to page through
98
+ * the rest of the result set.
99
+ */
100
+ export interface ListProductionScheduleItemSetting {
101
+ /**
102
+ * Resources in this page.
103
+ */
104
+ data: Array<ProductionScheduleItemSetting>;
105
+ /**
106
+ * Resource type identifier.
107
+ */
108
+ object: 'list';
109
+ /**
110
+ * PageInfo describes where the current page sits within a paginated result set and
111
+ * how to move to the adjacent pages.
112
+ *
113
+ * Page a list by following the URLs below rather than assembling cursors yourself.
114
+ * For a top-level list endpoint the URL repeats the original request's query
115
+ * string with only the cursor swapped, so following it preserves the same filters,
116
+ * search term, and page size.
117
+ */
118
+ page_info: APIKeysAPI.PageInfo;
119
+ }
120
+ /**
121
+ * Planning overrides for one item, on top of the account-wide assumptions.
122
+ */
123
+ export interface ProductionScheduleItemSetting {
124
+ /**
125
+ * Item setting ID.
126
+ */
127
+ id: string;
128
+ /**
129
+ * Creation timestamp.
130
+ */
131
+ created_at: string;
132
+ /**
133
+ * How this item is produced.
134
+ *
135
+ * - `make_to_stock`: built to the forecast, holding a safety stock against its
136
+ * variability.
137
+ * - `make_to_order`: built only against orders already on the book, holding no
138
+ * buffer.
139
+ *
140
+ * Null inherits from the item's product line, then from the account default.
141
+ */
142
+ fulfillment_policy: 'make_to_stock' | 'make_to_order' | null;
143
+ /**
144
+ * Entity is a polymorphic reference to any resource in the system.
145
+ */
146
+ item: CoreAPI.Entity | null;
147
+ /**
148
+ * Units in one production lot for this item, overriding the lot its product line
149
+ * would supply.
150
+ */
151
+ lot_multiple_units: number | null;
152
+ /**
153
+ * Resource type identifier.
154
+ */
155
+ object: 'production_schedule_item_setting';
156
+ /**
157
+ * Whether this item takes part in planning.
158
+ *
159
+ * An excluded item is left out of the plan entirely: no campaigns, no policy, no
160
+ * capacity.
161
+ */
162
+ participation_status: 'included' | 'excluded';
163
+ /**
164
+ * Last updated timestamp.
165
+ */
166
+ updated_at: string;
167
+ }
168
+ /**
169
+ * Request to write one item's planning overrides.
170
+ */
171
+ export interface UpsertItemSettingRequest {
172
+ /**
173
+ * Whether this item takes part in planning.
174
+ *
175
+ * An excluded item is left out of the plan entirely: no campaigns, no policy, no
176
+ * capacity.
177
+ */
178
+ participation_status: 'included' | 'excluded';
179
+ /**
180
+ * How this item is produced.
181
+ *
182
+ * - `make_to_stock`: built to the forecast, holding a safety stock against its
183
+ * variability.
184
+ * - `make_to_order`: built only against orders already on the book, holding no
185
+ * buffer.
186
+ *
187
+ * Clearing it returns the item to its product line's policy, then to the account
188
+ * default.
189
+ */
190
+ fulfillment_policy?: 'make_to_stock' | 'make_to_order' | null;
191
+ /**
192
+ * Units in one production lot for this item, overriding the lot its product line
193
+ * would supply.
194
+ */
195
+ lot_multiple_units?: number;
196
+ }
197
+ export interface ItemDeleteResponse {
198
+ }
199
+ export interface ItemUpdateParams {
200
+ /**
201
+ * Whether this item takes part in planning.
202
+ *
203
+ * An excluded item is left out of the plan entirely: no campaigns, no policy, no
204
+ * capacity.
205
+ */
206
+ participation_status: 'included' | 'excluded';
207
+ /**
208
+ * How this item is produced.
209
+ *
210
+ * - `make_to_stock`: built to the forecast, holding a safety stock against its
211
+ * variability.
212
+ * - `make_to_order`: built only against orders already on the book, holding no
213
+ * buffer.
214
+ *
215
+ * Clearing it returns the item to its product line's policy, then to the account
216
+ * default.
217
+ */
218
+ fulfillment_policy?: 'make_to_stock' | 'make_to_order' | null;
219
+ /**
220
+ * Units in one production lot for this item, overriding the lot its product line
221
+ * would supply.
222
+ */
223
+ lot_multiple_units?: number;
224
+ }
225
+ export declare namespace Items {
226
+ export { type ListProductionScheduleItemSetting as ListProductionScheduleItemSetting, type ProductionScheduleItemSetting as ProductionScheduleItemSetting, type UpsertItemSettingRequest as UpsertItemSettingRequest, type ItemDeleteResponse as ItemDeleteResponse, type ItemUpdateParams as ItemUpdateParams, };
227
+ }
228
+ //# sourceMappingURL=items.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iCAAiC,CAAC;IAI7E;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG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