@augno/sdk 0.16.1 → 0.17.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 (175) hide show
  1. package/CHANGELOG.md +4 -3
  2. package/README.md +1 -1
  3. package/client.js +1 -1
  4. package/client.mjs +1 -1
  5. package/package.json +1 -1
  6. package/resources/catalog/item-categories/actions.d.mts +8 -2
  7. package/resources/catalog/item-categories/actions.d.mts.map +1 -1
  8. package/resources/catalog/item-categories/actions.d.ts +8 -2
  9. package/resources/catalog/item-categories/actions.d.ts.map +1 -1
  10. package/resources/catalog/item-categories/actions.js +7 -2
  11. package/resources/catalog/item-categories/actions.js.map +1 -1
  12. package/resources/catalog/item-categories/actions.mjs +7 -2
  13. package/resources/catalog/item-categories/actions.mjs.map +1 -1
  14. package/resources/catalog/materials/actions.d.mts +7 -2
  15. package/resources/catalog/materials/actions.d.mts.map +1 -1
  16. package/resources/catalog/materials/actions.d.ts +7 -2
  17. package/resources/catalog/materials/actions.d.ts.map +1 -1
  18. package/resources/catalog/materials/actions.js +7 -2
  19. package/resources/catalog/materials/actions.js.map +1 -1
  20. package/resources/catalog/materials/actions.mjs +7 -2
  21. package/resources/catalog/materials/actions.mjs.map +1 -1
  22. package/resources/catalog/parts/actions.d.mts +7 -2
  23. package/resources/catalog/parts/actions.d.mts.map +1 -1
  24. package/resources/catalog/parts/actions.d.ts +7 -2
  25. package/resources/catalog/parts/actions.d.ts.map +1 -1
  26. package/resources/catalog/parts/actions.js +7 -2
  27. package/resources/catalog/parts/actions.js.map +1 -1
  28. package/resources/catalog/parts/actions.mjs +7 -2
  29. package/resources/catalog/parts/actions.mjs.map +1 -1
  30. package/resources/catalog/product-lines/actions.d.mts +8 -2
  31. package/resources/catalog/product-lines/actions.d.mts.map +1 -1
  32. package/resources/catalog/product-lines/actions.d.ts +8 -2
  33. package/resources/catalog/product-lines/actions.d.ts.map +1 -1
  34. package/resources/catalog/product-lines/actions.js +7 -2
  35. package/resources/catalog/product-lines/actions.js.map +1 -1
  36. package/resources/catalog/product-lines/actions.mjs +7 -2
  37. package/resources/catalog/product-lines/actions.mjs.map +1 -1
  38. package/resources/catalog/products/actions.d.mts +7 -2
  39. package/resources/catalog/products/actions.d.mts.map +1 -1
  40. package/resources/catalog/products/actions.d.ts +7 -2
  41. package/resources/catalog/products/actions.d.ts.map +1 -1
  42. package/resources/catalog/products/actions.js +7 -2
  43. package/resources/catalog/products/actions.js.map +1 -1
  44. package/resources/catalog/products/actions.mjs +7 -2
  45. package/resources/catalog/products/actions.mjs.map +1 -1
  46. package/resources/catalog/properties/actions.d.mts +8 -3
  47. package/resources/catalog/properties/actions.d.mts.map +1 -1
  48. package/resources/catalog/properties/actions.d.ts +8 -3
  49. package/resources/catalog/properties/actions.d.ts.map +1 -1
  50. package/resources/catalog/properties/actions.js +7 -2
  51. package/resources/catalog/properties/actions.js.map +1 -1
  52. package/resources/catalog/properties/actions.mjs +7 -2
  53. package/resources/catalog/properties/actions.mjs.map +1 -1
  54. package/resources/catalog/unit-groups/actions.d.mts +7 -2
  55. package/resources/catalog/unit-groups/actions.d.mts.map +1 -1
  56. package/resources/catalog/unit-groups/actions.d.ts +7 -2
  57. package/resources/catalog/unit-groups/actions.d.ts.map +1 -1
  58. package/resources/catalog/unit-groups/actions.js +7 -2
  59. package/resources/catalog/unit-groups/actions.js.map +1 -1
  60. package/resources/catalog/unit-groups/actions.mjs +7 -2
  61. package/resources/catalog/unit-groups/actions.mjs.map +1 -1
  62. package/resources/catalog/units/actions.d.mts +8 -2
  63. package/resources/catalog/units/actions.d.mts.map +1 -1
  64. package/resources/catalog/units/actions.d.ts +8 -2
  65. package/resources/catalog/units/actions.d.ts.map +1 -1
  66. package/resources/catalog/units/actions.js +7 -2
  67. package/resources/catalog/units/actions.js.map +1 -1
  68. package/resources/catalog/units/actions.mjs +7 -2
  69. package/resources/catalog/units/actions.mjs.map +1 -1
  70. package/resources/core/analytics.d.mts +195 -1
  71. package/resources/core/analytics.d.mts.map +1 -1
  72. package/resources/core/analytics.d.ts +195 -1
  73. package/resources/core/analytics.d.ts.map +1 -1
  74. package/resources/core/analytics.js +11 -0
  75. package/resources/core/analytics.js.map +1 -1
  76. package/resources/core/analytics.mjs +11 -0
  77. package/resources/core/analytics.mjs.map +1 -1
  78. package/resources/core/audit-events.d.mts +4 -4
  79. package/resources/core/audit-events.d.mts.map +1 -1
  80. package/resources/core/audit-events.d.ts +4 -4
  81. package/resources/core/audit-events.d.ts.map +1 -1
  82. package/resources/core/core.d.mts +6 -6
  83. package/resources/core/core.d.mts.map +1 -1
  84. package/resources/core/core.d.ts +6 -6
  85. package/resources/core/core.d.ts.map +1 -1
  86. package/resources/core/core.js.map +1 -1
  87. package/resources/core/core.mjs +1 -1
  88. package/resources/core/core.mjs.map +1 -1
  89. package/resources/core/index.d.mts +2 -2
  90. package/resources/core/index.d.mts.map +1 -1
  91. package/resources/core/index.d.ts +2 -2
  92. package/resources/core/index.d.ts.map +1 -1
  93. package/resources/core/index.js.map +1 -1
  94. package/resources/core/index.mjs.map +1 -1
  95. package/resources/core/jobs.d.mts +102 -60
  96. package/resources/core/jobs.d.mts.map +1 -1
  97. package/resources/core/jobs.d.ts +102 -60
  98. package/resources/core/jobs.d.ts.map +1 -1
  99. package/resources/core/jobs.js +12 -6
  100. package/resources/core/jobs.js.map +1 -1
  101. package/resources/core/jobs.mjs +12 -6
  102. package/resources/core/jobs.mjs.map +1 -1
  103. package/resources/identity/account-users/account-users.d.mts +39 -0
  104. package/resources/identity/account-users/account-users.d.mts.map +1 -1
  105. package/resources/identity/account-users/account-users.d.ts +39 -0
  106. package/resources/identity/account-users/account-users.d.ts.map +1 -1
  107. package/resources/identity/account-users/account-users.js.map +1 -1
  108. package/resources/identity/account-users/account-users.mjs.map +1 -1
  109. package/resources/messaging/blocks.d.mts +8 -0
  110. package/resources/messaging/blocks.d.mts.map +1 -1
  111. package/resources/messaging/blocks.d.ts +8 -0
  112. package/resources/messaging/blocks.d.ts.map +1 -1
  113. package/resources/messaging/conversations/conversations.d.mts +3 -3
  114. package/resources/messaging/conversations/conversations.d.mts.map +1 -1
  115. package/resources/messaging/conversations/conversations.d.ts +3 -3
  116. package/resources/messaging/conversations/conversations.d.ts.map +1 -1
  117. package/resources/messaging/conversations/conversations.js.map +1 -1
  118. package/resources/messaging/conversations/conversations.mjs.map +1 -1
  119. package/resources/messaging/conversations/links.d.mts +2 -2
  120. package/resources/messaging/conversations/links.d.mts.map +1 -1
  121. package/resources/messaging/conversations/links.d.ts +2 -2
  122. package/resources/messaging/conversations/links.d.ts.map +1 -1
  123. package/resources/messaging/conversations/messages.d.mts +2 -2
  124. package/resources/messaging/conversations/messages.d.mts.map +1 -1
  125. package/resources/messaging/conversations/messages.d.ts +2 -2
  126. package/resources/messaging/conversations/messages.d.ts.map +1 -1
  127. package/resources/messaging/notifications/notifications.d.mts +2 -2
  128. package/resources/messaging/notifications/notifications.d.mts.map +1 -1
  129. package/resources/messaging/notifications/notifications.d.ts +2 -2
  130. package/resources/messaging/notifications/notifications.d.ts.map +1 -1
  131. package/resources/messaging/notifications/notifications.js.map +1 -1
  132. package/resources/messaging/notifications/notifications.mjs.map +1 -1
  133. package/resources/operations/locations/actions.d.mts +7 -2
  134. package/resources/operations/locations/actions.d.mts.map +1 -1
  135. package/resources/operations/locations/actions.d.ts +7 -2
  136. package/resources/operations/locations/actions.d.ts.map +1 -1
  137. package/resources/operations/locations/actions.js +7 -2
  138. package/resources/operations/locations/actions.js.map +1 -1
  139. package/resources/operations/locations/actions.mjs +7 -2
  140. package/resources/operations/locations/actions.mjs.map +1 -1
  141. package/resources/operations/production-schedules/production-schedules.d.mts +5 -3
  142. package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -1
  143. package/resources/operations/production-schedules/production-schedules.d.ts +5 -3
  144. package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -1
  145. package/resources/operations/production-schedules/production-schedules.js +5 -3
  146. package/resources/operations/production-schedules/production-schedules.js.map +1 -1
  147. package/resources/operations/production-schedules/production-schedules.mjs +5 -3
  148. package/resources/operations/production-schedules/production-schedules.mjs.map +1 -1
  149. package/src/client.ts +1 -1
  150. package/src/resources/catalog/item-categories/actions.ts +15 -3
  151. package/src/resources/catalog/materials/actions.ts +14 -3
  152. package/src/resources/catalog/parts/actions.ts +14 -3
  153. package/src/resources/catalog/product-lines/actions.ts +15 -3
  154. package/src/resources/catalog/products/actions.ts +14 -3
  155. package/src/resources/catalog/properties/actions.ts +15 -4
  156. package/src/resources/catalog/unit-groups/actions.ts +14 -3
  157. package/src/resources/catalog/units/actions.ts +15 -3
  158. package/src/resources/core/analytics.ts +231 -0
  159. package/src/resources/core/audit-events.ts +16 -0
  160. package/src/resources/core/core.ts +30 -2
  161. package/src/resources/core/index.ts +7 -1
  162. package/src/resources/core/jobs.ts +422 -67
  163. package/src/resources/identity/account-users/account-users.ts +44 -0
  164. package/src/resources/messaging/blocks.ts +9 -0
  165. package/src/resources/messaging/conversations/conversations.ts +12 -0
  166. package/src/resources/messaging/conversations/links.ts +8 -0
  167. package/src/resources/messaging/conversations/messages.ts +8 -0
  168. package/src/resources/messaging/notifications/notifications.ts +8 -0
  169. package/src/resources/operations/locations/actions.ts +14 -3
  170. package/src/resources/operations/production-schedules/production-schedules.ts +5 -3
  171. package/src/version.ts +1 -1
  172. package/version.d.mts +1 -1
  173. package/version.d.ts +1 -1
  174. package/version.js +1 -1
  175. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"production-schedules.js","sourceRoot":"","sources":["../../../src/resources/operations/production-schedules/production-schedules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAIrD,iEAAwC;AACxC,0CAwBmB;AACnB,6DAAoC;AACpC,sCAWiB;AAGjB,0DAAoD;AAEpD;;GAEG;AACH,MAAa,mBAAoB,SAAQ,sBAAW;IAApD;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC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C"}
1
+ {"version":3,"file":"production-schedules.js","sourceRoot":"","sources":["../../../src/resources/operations/production-schedules/production-schedules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAIrD,iEAAwC;AACxC,0CAwBmB;AACnB,6DAAoC;AACpC,sCAWiB;AAGjB,0DAAoD;AAEpD;;GAEG;AACH,MAAa,mBAAoB,SAAQ,sBAAW;IAApD;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwSrE,CAAC;IAtSC;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,MAAM,CACJ,OAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6CAA6C,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uCAAuC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB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AAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uCAAuC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;CACF;AA1SD,kDA0SC;AAkmDD,mBAAmB,CAAC,KAAK,GAAG,aAAK,CAAC;AAClC,mBAAmB,CAAC,OAAO,GAAG,iBAAO,CAAC"}
@@ -144,7 +144,7 @@ export class ProductionSchedules extends APIResource {
144
144
  return this._client.get(path `/v1/operations/production-schedules/${id}/finished-policies`, options);
145
145
  }
146
146
  /**
147
- * Returns the downstream department work implied by a schedule's constraint plan.
147
+ * Returns the department work implied by a schedule's constraint plan.
148
148
  *
149
149
  * The solver schedules only the constraint; every other department's work is
150
150
  * derived from it by walking the production-step graph, applying each step's
@@ -152,8 +152,10 @@ export class ProductionSchedules extends APIResource {
152
152
  * rather than a second plan someone has to maintain.
153
153
  *
154
154
  * `explosion_depth` is how many steps downstream the work sits, which is what a
155
- * readiness indicator keys off. Work whose derived week falls past the schedule's
156
- * horizon is still returned a department needs to see it coming.
155
+ * readiness indicator keys off. Depth 0 is the constraint's own campaigns, so a
156
+ * plant with nothing configured downstream of its constraint still gets the work
157
+ * it actually scheduled. Work whose derived week falls past the schedule's horizon
158
+ * is still returned — a department needs to see it coming.
157
159
  *
158
160
  * This endpoint requires the permission: `production_schedules:read`.
159
161
  *
@@ -1 +1 @@
1
- {"version":3,"file":"production-schedules.mjs","sourceRoot":"","sources":["../../../src/resources/operations/production-schedules/production-schedules.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,KAAK,UAAU;OACf,EAML,OAAO,GAkBR;OACM,KAAK,QAAQ;OACb,EAOL,KAAK,GAIN;OAGM,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,mBAA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mB,CAAC,OAAO,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"production-schedules.mjs","sourceRoot":"","sources":["../../../src/resources/operations/production-schedules/production-schedules.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,KAAK,UAAU;OACf,EAML,OAAO,GAkBR;OACM,KAAK,QAAQ;OACb,EAOL,KAAK,GAIN;OAGM,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAApD;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwSrE,CAAC;IAtSC;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,MAAM,CACJ,OAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6CAA6C,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uCAAuC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;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EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uCAAuC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;CACF;AAkmDD,mBAAmB,CAAC,KAAK,GAAG,KAAK,CAAC;AAClC,mBAAmB,CAAC,OAAO,GAAG,OAAO,CAAC"}
package/src/client.ts CHANGED
@@ -722,7 +722,7 @@ export class Augno {
722
722
  {
723
723
  Accept: 'application/json',
724
724
  'User-Agent': this.getUserAgent(),
725
- 'Augno-Version': '1.0.forge-preview.2',
725
+ 'Augno-Version': '1.0.forge-preview.3',
726
726
  'Augno-Account': this.augnoAccountID,
727
727
  },
728
728
  await this.authHeaders(options),
@@ -29,8 +29,13 @@ export class Actions extends APIResource {
29
29
  * });
30
30
  * ```
31
31
  */
32
- bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
33
- return this._client.post('/v1/catalog/item-categories/actions/bulk-upsert', { body, ...options });
32
+ bulkUpsert(params: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
33
+ const { include, ...body } = params;
34
+ return this._client.post('/v1/catalog/item-categories/actions/bulk-upsert', {
35
+ query: { include },
36
+ body,
37
+ ...options,
38
+ });
34
39
  }
35
40
  }
36
41
 
@@ -97,9 +102,16 @@ export interface UpsertItemCategoryInput {
97
102
 
98
103
  export interface ActionBulkUpsertParams {
99
104
  /**
100
- * Item categories to create or update, matched by name within the account.
105
+ * Body param: Item categories to create or update, matched by name within the
106
+ * account.
101
107
  */
102
108
  item_categories: Array<UpsertItemCategoryInput>;
109
+
110
+ /**
111
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
112
+ * are returned as `null`.
113
+ */
114
+ include?: Array<'created_by' | 'created_by.role'>;
103
115
  }
104
116
 
105
117
  export declare namespace Actions {
@@ -29,8 +29,13 @@ export class Actions extends APIResource {
29
29
  * });
30
30
  * ```
31
31
  */
32
- bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
33
- return this._client.post('/v1/catalog/materials/actions/bulk-upsert', { body, ...options });
32
+ bulkUpsert(params: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
33
+ const { include, ...body } = params;
34
+ return this._client.post('/v1/catalog/materials/actions/bulk-upsert', {
35
+ query: { include },
36
+ body,
37
+ ...options,
38
+ });
34
39
  }
35
40
  }
36
41
 
@@ -126,9 +131,15 @@ export interface UpsertMaterialProperty {
126
131
 
127
132
  export interface ActionBulkUpsertParams {
128
133
  /**
129
- * Materials to create or update, matched by SKU within the account.
134
+ * Body param: Materials to create or update, matched by SKU within the account.
130
135
  */
131
136
  materials: Array<UpsertMaterialInput>;
137
+
138
+ /**
139
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
140
+ * are returned as `null`.
141
+ */
142
+ include?: Array<'created_by' | 'created_by.role'>;
132
143
  }
133
144
 
134
145
  export declare namespace Actions {
@@ -28,8 +28,13 @@ export class Actions extends APIResource {
28
28
  * });
29
29
  * ```
30
30
  */
31
- bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
32
- return this._client.post('/v1/catalog/parts/actions/bulk-upsert', { body, ...options });
31
+ bulkUpsert(params: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
32
+ const { include, ...body } = params;
33
+ return this._client.post('/v1/catalog/parts/actions/bulk-upsert', {
34
+ query: { include },
35
+ body,
36
+ ...options,
37
+ });
33
38
  }
34
39
  }
35
40
 
@@ -114,9 +119,15 @@ export interface UpsertPartProperty {
114
119
 
115
120
  export interface ActionBulkUpsertParams {
116
121
  /**
117
- * Parts to create or update, matched by SKU within the account.
122
+ * Body param: Parts to create or update, matched by SKU within the account.
118
123
  */
119
124
  parts: Array<UpsertPartInput>;
125
+
126
+ /**
127
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
128
+ * are returned as `null`.
129
+ */
130
+ include?: Array<'created_by' | 'created_by.role'>;
120
131
  }
121
132
 
122
133
  export declare namespace Actions {
@@ -29,8 +29,13 @@ export class Actions extends APIResource {
29
29
  * });
30
30
  * ```
31
31
  */
32
- bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
33
- return this._client.post('/v1/catalog/product-lines/actions/bulk-upsert', { body, ...options });
32
+ bulkUpsert(params: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
33
+ const { include, ...body } = params;
34
+ return this._client.post('/v1/catalog/product-lines/actions/bulk-upsert', {
35
+ query: { include },
36
+ body,
37
+ ...options,
38
+ });
34
39
  }
35
40
  }
36
41
 
@@ -83,9 +88,16 @@ export interface UpsertProductLineInput {
83
88
 
84
89
  export interface ActionBulkUpsertParams {
85
90
  /**
86
- * Product lines to create or update, matched by name within the account.
91
+ * Body param: Product lines to create or update, matched by name within the
92
+ * account.
87
93
  */
88
94
  product_lines: Array<UpsertProductLineInput>;
95
+
96
+ /**
97
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
98
+ * are returned as `null`.
99
+ */
100
+ include?: Array<'created_by' | 'created_by.role'>;
89
101
  }
90
102
 
91
103
  export declare namespace Actions {
@@ -29,8 +29,13 @@ export class Actions extends APIResource {
29
29
  * });
30
30
  * ```
31
31
  */
32
- bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
33
- return this._client.post('/v1/catalog/products/actions/bulk-upsert', { body, ...options });
32
+ bulkUpsert(params: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
33
+ const { include, ...body } = params;
34
+ return this._client.post('/v1/catalog/products/actions/bulk-upsert', {
35
+ query: { include },
36
+ body,
37
+ ...options,
38
+ });
34
39
  }
35
40
  }
36
41
 
@@ -133,9 +138,15 @@ export interface UpsertProductProperty {
133
138
 
134
139
  export interface ActionBulkUpsertParams {
135
140
  /**
136
- * Products to create or update, matched by SKU within the account.
141
+ * Body param: Products to create or update, matched by SKU within the account.
137
142
  */
138
143
  products: Array<UpsertProductInput>;
144
+
145
+ /**
146
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
147
+ * are returned as `null`.
148
+ */
149
+ include?: Array<'created_by' | 'created_by.role'>;
139
150
  }
140
151
 
141
152
  export declare namespace Actions {
@@ -27,8 +27,13 @@ export class Actions extends APIResource {
27
27
  * });
28
28
  * ```
29
29
  */
30
- bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
31
- return this._client.post('/v1/catalog/properties/actions/bulk-upsert', { body, ...options });
30
+ bulkUpsert(params: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
31
+ const { include, ...body } = params;
32
+ return this._client.post('/v1/catalog/properties/actions/bulk-upsert', {
33
+ query: { include },
34
+ body,
35
+ ...options,
36
+ });
32
37
  }
33
38
  }
34
39
 
@@ -86,10 +91,16 @@ export interface UpsertPropertyInput {
86
91
 
87
92
  export interface ActionBulkUpsertParams {
88
93
  /**
89
- * Properties to create or update, matched by name (case-insensitive) within the
90
- * account.
94
+ * Body param: Properties to create or update, matched by name (case-insensitive)
95
+ * within the account.
91
96
  */
92
97
  properties: Array<UpsertPropertyInput>;
98
+
99
+ /**
100
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
101
+ * are returned as `null`.
102
+ */
103
+ include?: Array<'created_by' | 'created_by.role'>;
93
104
  }
94
105
 
95
106
  export declare namespace Actions {
@@ -33,8 +33,13 @@ export class Actions extends APIResource {
33
33
  * });
34
34
  * ```
35
35
  */
36
- bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
37
- return this._client.post('/v1/catalog/unit-groups/actions/bulk-upsert', { body, ...options });
36
+ bulkUpsert(params: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
37
+ const { include, ...body } = params;
38
+ return this._client.post('/v1/catalog/unit-groups/actions/bulk-upsert', {
39
+ query: { include },
40
+ body,
41
+ ...options,
42
+ });
38
43
  }
39
44
  }
40
45
 
@@ -123,9 +128,15 @@ export interface UpsertUnitGroupInput {
123
128
 
124
129
  export interface ActionBulkUpsertParams {
125
130
  /**
126
- * Unit groups to create or update, matched by name within the account.
131
+ * Body param: Unit groups to create or update, matched by name within the account.
127
132
  */
128
133
  unit_groups: Array<UpsertUnitGroupInput>;
134
+
135
+ /**
136
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
137
+ * are returned as `null`.
138
+ */
139
+ include?: Array<'created_by' | 'created_by.role'>;
129
140
  }
130
141
 
131
142
  export declare namespace Actions {
@@ -31,8 +31,13 @@ export class Actions extends APIResource {
31
31
  * });
32
32
  * ```
33
33
  */
34
- bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
35
- return this._client.post('/v1/catalog/units/actions/bulk-upsert', { body, ...options });
34
+ bulkUpsert(params: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
35
+ const { include, ...body } = params;
36
+ return this._client.post('/v1/catalog/units/actions/bulk-upsert', {
37
+ query: { include },
38
+ body,
39
+ ...options,
40
+ });
36
41
  }
37
42
  }
38
43
 
@@ -96,9 +101,16 @@ export interface UpsertUnitInput {
96
101
 
97
102
  export interface ActionBulkUpsertParams {
98
103
  /**
99
- * Units to create or update, matched by name or abbreviation within the account.
104
+ * Body param: Units to create or update, matched by name or abbreviation within
105
+ * the account.
100
106
  */
101
107
  units: Array<UpsertUnitInput>;
108
+
109
+ /**
110
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
111
+ * are returned as `null`.
112
+ */
113
+ include?: Array<'created_by' | 'created_by.role'>;
102
114
  }
103
115
 
104
116
  export declare namespace Actions {
@@ -125,6 +125,17 @@ export class Analytics extends APIResource {
125
125
  * Every rate is null rather than zero when nothing was due, and average lateness
126
126
  * is measured over late orders only.
127
127
  *
128
+ * The same window is also returned sliced by customer, customer group, product
129
+ * line, and the rule each ship-by date came from — each ordered worst-first, and
130
+ * each derived from the same set of orders as the headline so a drilldown always
131
+ * adds up to it. `by_product_line` is the one exception to that: an order spanning
132
+ * two lines is counted under both, because a late order is late for every line on
133
+ * it.
134
+ *
135
+ * Every filter is empty-means-all and they combine with AND. They narrow
136
+ * `uncommitted_order_count` too, so the excluded count always describes the same
137
+ * slice of the order book the rates do.
138
+ *
128
139
  * This endpoint requires the permission: `sales_orders:read`.
129
140
  *
130
141
  * @example
@@ -160,10 +171,31 @@ export interface AnalyzeDeliveryPerformanceRequest {
160
171
  */
161
172
  starts_at: string;
162
173
 
174
+ /**
175
+ * Only measure orders whose customer sits in these groups.
176
+ */
177
+ customer_group_ids?: Array<string>;
178
+
179
+ /**
180
+ * Only measure orders bought by these customers. Their child accounts are
181
+ * included, matching how the sales analytics resolve a customer.
182
+ */
183
+ customer_ids?: Array<string>;
184
+
163
185
  /**
164
186
  * The period to break the results down by. Defaults to `week`.
165
187
  */
166
188
  granularity?: 'day' | 'week' | 'month';
189
+
190
+ /**
191
+ * Only measure orders containing at least one line in these product lines.
192
+ */
193
+ product_line_ids?: Array<string>;
194
+
195
+ /**
196
+ * Only measure orders owned by these sales reps.
197
+ */
198
+ sales_rep_ids?: Array<string>;
167
199
  }
168
200
 
169
201
  /**
@@ -176,6 +208,36 @@ export interface AnalyzeDeliveryPerformanceResponse {
176
208
  */
177
209
  backlog: ListDeliveryBacklogBucket | null;
178
210
 
211
+ /**
212
+ * A single page of resources, together with the metadata needed to page through
213
+ * the rest of the result set.
214
+ */
215
+ by_commitment_source: ListDeliveryBreakdown | null;
216
+
217
+ /**
218
+ * A single page of resources, together with the metadata needed to page through
219
+ * the rest of the result set.
220
+ */
221
+ by_customer: ListDeliveryBreakdown | null;
222
+
223
+ /**
224
+ * A single page of resources, together with the metadata needed to page through
225
+ * the rest of the result set.
226
+ */
227
+ by_customer_group: ListDeliveryBreakdown | null;
228
+
229
+ /**
230
+ * A single page of resources, together with the metadata needed to page through
231
+ * the rest of the result set.
232
+ */
233
+ by_product_line: ListDeliveryBreakdown | null;
234
+
235
+ /**
236
+ * A single page of resources, together with the metadata needed to page through
237
+ * the rest of the result set.
238
+ */
239
+ lateness: ListDeliveryLatenessBucket | null;
240
+
179
241
  /**
180
242
  * Resource type identifier.
181
243
  */
@@ -363,6 +425,15 @@ export interface AnalyzeScheduleAttainmentResponse {
363
425
  */
364
426
  object: 'analyze_schedule_attainment_response';
365
427
 
428
+ /**
429
+ * Machines the plan asked for over this window.
430
+ *
431
+ * Every figure in this response covers those machines only. Production scanned
432
+ * onto a machine no published version scheduled is excluded outright, so the score
433
+ * measures the plan that was made rather than the whole plant against it.
434
+ */
435
+ scheduled_machine_count: number;
436
+
366
437
  /**
367
438
  * Start of the measured period.
368
439
  */
@@ -491,6 +562,73 @@ export interface DeliveryBacklogBucket {
491
562
  units: number;
492
563
  }
493
564
 
565
+ /**
566
+ * Delivery performance for one slice of the order book.
567
+ */
568
+ export interface DeliveryBreakdown {
569
+ /**
570
+ * Identifier of the slice — a customer, customer group, product line, or
571
+ * commitment source. Empty when the dimension is unset on the orders in it.
572
+ */
573
+ key: string;
574
+
575
+ /**
576
+ * Display name for the slice.
577
+ */
578
+ label: string;
579
+
580
+ /**
581
+ * Resource type identifier.
582
+ */
583
+ object: 'delivery_breakdown';
584
+
585
+ /**
586
+ * Delivery reliability for one period, or for a whole window.
587
+ */
588
+ performance: DeliveryPerformance | null;
589
+ }
590
+
591
+ /**
592
+ * One band of how far the window's misses missed by.
593
+ */
594
+ export interface DeliveryLatenessBucket {
595
+ /**
596
+ * Name of the band.
597
+ */
598
+ label: string;
599
+
600
+ /**
601
+ * Upper bound in days late; `0` means unbounded.
602
+ */
603
+ max_days_late: number;
604
+
605
+ /**
606
+ * Lower bound of the band in days late.
607
+ */
608
+ min_days_late: number;
609
+
610
+ /**
611
+ * Resource type identifier.
612
+ */
613
+ object: 'delivery_lateness_bucket';
614
+
615
+ /**
616
+ * Orders in the band, shipped and unshipped.
617
+ */
618
+ order_count: number;
619
+
620
+ /**
621
+ * How many of them have since shipped. The remainder are still owed, and are the
622
+ * same orders `backlog` counts.
623
+ */
624
+ shipped_count: number;
625
+
626
+ /**
627
+ * Quantity still unpacked across the band's orders.
628
+ */
629
+ units: number;
630
+ }
631
+
494
632
  /**
495
633
  * Delivery reliability for one period, or for a whole window.
496
634
  */
@@ -615,6 +753,20 @@ export interface FrozenAdherence {
615
753
  */
616
754
  line_adherence_pct: number | null;
617
755
 
756
+ /**
757
+ * Campaigns the floor ran inside the frozen window that the frozen plan never
758
+ * called for, counted per machine-week-SKU.
759
+ *
760
+ * Working around a commitment breaks it as surely as editing it does, so this
761
+ * scores alongside the hand edits rather than beside them.
762
+ */
763
+ off_plan_lines: number;
764
+
765
+ /**
766
+ * Units behind those off-plan campaigns.
767
+ */
768
+ off_plan_quantity: number;
769
+
618
770
  /**
619
771
  * Entity is a polymorphic reference to any resource in the system.
620
772
  */
@@ -685,6 +837,60 @@ export interface ListDeliveryBacklogBucket {
685
837
  page_info: APIKeysAPI.PageInfo;
686
838
  }
687
839
 
840
+ /**
841
+ * A single page of resources, together with the metadata needed to page through
842
+ * the rest of the result set.
843
+ */
844
+ export interface ListDeliveryBreakdown {
845
+ /**
846
+ * Resources in this page.
847
+ */
848
+ data: Array<DeliveryBreakdown>;
849
+
850
+ /**
851
+ * Resource type identifier.
852
+ */
853
+ object: 'list';
854
+
855
+ /**
856
+ * PageInfo describes where the current page sits within a paginated result set and
857
+ * how to move to the adjacent pages.
858
+ *
859
+ * Page a list by following the URLs below rather than assembling cursors yourself.
860
+ * For a top-level list endpoint the URL repeats the original request's query
861
+ * string with only the cursor swapped, so following it preserves the same filters,
862
+ * search term, and page size.
863
+ */
864
+ page_info: APIKeysAPI.PageInfo;
865
+ }
866
+
867
+ /**
868
+ * A single page of resources, together with the metadata needed to page through
869
+ * the rest of the result set.
870
+ */
871
+ export interface ListDeliveryLatenessBucket {
872
+ /**
873
+ * Resources in this page.
874
+ */
875
+ data: Array<DeliveryLatenessBucket>;
876
+
877
+ /**
878
+ * Resource type identifier.
879
+ */
880
+ object: 'list';
881
+
882
+ /**
883
+ * PageInfo describes where the current page sits within a paginated result set and
884
+ * how to move to the adjacent pages.
885
+ *
886
+ * Page a list by following the URLs below rather than assembling cursors yourself.
887
+ * For a top-level list endpoint the URL repeats the original request's query
888
+ * string with only the cursor swapped, so following it preserves the same filters,
889
+ * search term, and page size.
890
+ */
891
+ page_info: APIKeysAPI.PageInfo;
892
+ }
893
+
688
894
  /**
689
895
  * A single page of resources, together with the metadata needed to page through
690
896
  * the rest of the result set.
@@ -1158,10 +1364,31 @@ export interface AnalyticsUpdateDeliveryPerformanceParams {
1158
1364
  */
1159
1365
  starts_at: string;
1160
1366
 
1367
+ /**
1368
+ * Only measure orders whose customer sits in these groups.
1369
+ */
1370
+ customer_group_ids?: Array<string>;
1371
+
1372
+ /**
1373
+ * Only measure orders bought by these customers. Their child accounts are
1374
+ * included, matching how the sales analytics resolve a customer.
1375
+ */
1376
+ customer_ids?: Array<string>;
1377
+
1161
1378
  /**
1162
1379
  * The period to break the results down by. Defaults to `week`.
1163
1380
  */
1164
1381
  granularity?: 'day' | 'week' | 'month';
1382
+
1383
+ /**
1384
+ * Only measure orders containing at least one line in these product lines.
1385
+ */
1386
+ product_line_ids?: Array<string>;
1387
+
1388
+ /**
1389
+ * Only measure orders owned by these sales reps.
1390
+ */
1391
+ sales_rep_ids?: Array<string>;
1165
1392
  }
1166
1393
 
1167
1394
  export declare namespace Analytics {
@@ -1176,10 +1403,14 @@ export declare namespace Analytics {
1176
1403
  type AnalyzeScheduleAttainmentResponse as AnalyzeScheduleAttainmentResponse,
1177
1404
  type AttainmentBucket as AttainmentBucket,
1178
1405
  type DeliveryBacklogBucket as DeliveryBacklogBucket,
1406
+ type DeliveryBreakdown as DeliveryBreakdown,
1407
+ type DeliveryLatenessBucket as DeliveryLatenessBucket,
1179
1408
  type DeliveryPerformance as DeliveryPerformance,
1180
1409
  type FrozenAdherence as FrozenAdherence,
1181
1410
  type ListAttainmentBucket as ListAttainmentBucket,
1182
1411
  type ListDeliveryBacklogBucket as ListDeliveryBacklogBucket,
1412
+ type ListDeliveryBreakdown as ListDeliveryBreakdown,
1413
+ type ListDeliveryLatenessBucket as ListDeliveryLatenessBucket,
1183
1414
  type ListDeliveryPerformance as ListDeliveryPerformance,
1184
1415
  type ListFrozenAdherence as ListFrozenAdherence,
1185
1416
  type ListOeeDepartment as ListOeeDepartment,