@augno/sdk 0.18.2 → 0.19.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 (170) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/package.json +1 -1
  3. package/resources/catalog/catalog.d.mts +6 -6
  4. package/resources/catalog/catalog.d.mts.map +1 -1
  5. package/resources/catalog/catalog.d.ts +6 -6
  6. package/resources/catalog/catalog.d.ts.map +1 -1
  7. package/resources/catalog/catalog.js.map +1 -1
  8. package/resources/catalog/catalog.mjs.map +1 -1
  9. package/resources/catalog/index.d.mts +3 -3
  10. package/resources/catalog/index.d.mts.map +1 -1
  11. package/resources/catalog/index.d.ts +3 -3
  12. package/resources/catalog/index.d.ts.map +1 -1
  13. package/resources/catalog/index.js.map +1 -1
  14. package/resources/catalog/index.mjs.map +1 -1
  15. package/resources/catalog/items/actions.d.mts +249 -0
  16. package/resources/catalog/items/actions.d.mts.map +1 -0
  17. package/resources/catalog/items/actions.d.ts +249 -0
  18. package/resources/catalog/items/actions.d.ts.map +1 -0
  19. package/resources/catalog/items/actions.js +46 -0
  20. package/resources/catalog/items/actions.js.map +1 -0
  21. package/resources/catalog/items/actions.mjs +42 -0
  22. package/resources/catalog/items/actions.mjs.map +1 -0
  23. package/resources/catalog/items/index.d.mts +3 -1
  24. package/resources/catalog/items/index.d.mts.map +1 -1
  25. package/resources/catalog/items/index.d.ts +3 -1
  26. package/resources/catalog/items/index.d.ts.map +1 -1
  27. package/resources/catalog/items/index.js +5 -1
  28. package/resources/catalog/items/index.js.map +1 -1
  29. package/resources/catalog/items/index.mjs +2 -0
  30. package/resources/catalog/items/index.mjs.map +1 -1
  31. package/resources/catalog/items/inventory.d.mts +247 -0
  32. package/resources/catalog/items/inventory.d.mts.map +1 -0
  33. package/resources/catalog/items/inventory.d.ts +247 -0
  34. package/resources/catalog/items/inventory.d.ts.map +1 -0
  35. package/resources/catalog/items/inventory.js +75 -0
  36. package/resources/catalog/items/inventory.js.map +1 -0
  37. package/resources/catalog/items/inventory.mjs +71 -0
  38. package/resources/catalog/items/inventory.mjs.map +1 -0
  39. package/resources/catalog/items/items.d.mts +9 -104
  40. package/resources/catalog/items/items.d.mts.map +1 -1
  41. package/resources/catalog/items/items.d.ts +9 -104
  42. package/resources/catalog/items/items.d.ts.map +1 -1
  43. package/resources/catalog/items/items.js +8 -21
  44. package/resources/catalog/items/items.js.map +1 -1
  45. package/resources/catalog/items/items.mjs +8 -21
  46. package/resources/catalog/items/items.mjs.map +1 -1
  47. package/resources/catalog/materials/index.d.mts +1 -1
  48. package/resources/catalog/materials/index.d.mts.map +1 -1
  49. package/resources/catalog/materials/index.d.ts +1 -1
  50. package/resources/catalog/materials/index.d.ts.map +1 -1
  51. package/resources/catalog/materials/index.js.map +1 -1
  52. package/resources/catalog/materials/index.mjs.map +1 -1
  53. package/resources/catalog/materials/materials.d.mts +36 -3
  54. package/resources/catalog/materials/materials.d.mts.map +1 -1
  55. package/resources/catalog/materials/materials.d.ts +36 -3
  56. package/resources/catalog/materials/materials.d.ts.map +1 -1
  57. package/resources/catalog/materials/materials.js.map +1 -1
  58. package/resources/catalog/materials/materials.mjs.map +1 -1
  59. package/resources/catalog/product-lines/index.d.mts +1 -1
  60. package/resources/catalog/product-lines/index.d.mts.map +1 -1
  61. package/resources/catalog/product-lines/index.d.ts +1 -1
  62. package/resources/catalog/product-lines/index.d.ts.map +1 -1
  63. package/resources/catalog/product-lines/index.js.map +1 -1
  64. package/resources/catalog/product-lines/index.mjs.map +1 -1
  65. package/resources/catalog/product-lines/product-lines.d.mts +8 -23
  66. package/resources/catalog/product-lines/product-lines.d.mts.map +1 -1
  67. package/resources/catalog/product-lines/product-lines.d.ts +8 -23
  68. package/resources/catalog/product-lines/product-lines.d.ts.map +1 -1
  69. package/resources/catalog/product-lines/product-lines.js.map +1 -1
  70. package/resources/catalog/product-lines/product-lines.mjs.map +1 -1
  71. package/resources/core/audit-events.d.mts +4 -4
  72. package/resources/core/audit-events.d.mts.map +1 -1
  73. package/resources/core/audit-events.d.ts +4 -4
  74. package/resources/core/audit-events.d.ts.map +1 -1
  75. package/resources/core/core.d.mts +2 -2
  76. package/resources/core/core.d.mts.map +1 -1
  77. package/resources/core/core.d.ts +2 -2
  78. package/resources/core/core.d.ts.map +1 -1
  79. package/resources/core/core.js.map +1 -1
  80. package/resources/core/core.mjs.map +1 -1
  81. package/resources/core/jobs.d.mts +2 -2
  82. package/resources/core/jobs.d.mts.map +1 -1
  83. package/resources/core/jobs.d.ts +2 -2
  84. package/resources/core/jobs.d.ts.map +1 -1
  85. package/resources/messaging/blocks.d.mts +4 -3
  86. package/resources/messaging/blocks.d.mts.map +1 -1
  87. package/resources/messaging/blocks.d.ts +4 -3
  88. package/resources/messaging/blocks.d.ts.map +1 -1
  89. package/resources/messaging/blocks.js.map +1 -1
  90. package/resources/messaging/blocks.mjs.map +1 -1
  91. package/resources/messaging/conversations/conversations.d.mts +3 -3
  92. package/resources/messaging/conversations/conversations.d.mts.map +1 -1
  93. package/resources/messaging/conversations/conversations.d.ts +3 -3
  94. package/resources/messaging/conversations/conversations.d.ts.map +1 -1
  95. package/resources/messaging/conversations/conversations.js.map +1 -1
  96. package/resources/messaging/conversations/conversations.mjs.map +1 -1
  97. package/resources/messaging/conversations/links.d.mts +2 -2
  98. package/resources/messaging/conversations/links.d.mts.map +1 -1
  99. package/resources/messaging/conversations/links.d.ts +2 -2
  100. package/resources/messaging/conversations/links.d.ts.map +1 -1
  101. package/resources/messaging/conversations/messages.d.mts +2 -2
  102. package/resources/messaging/conversations/messages.d.mts.map +1 -1
  103. package/resources/messaging/conversations/messages.d.ts +2 -2
  104. package/resources/messaging/conversations/messages.d.ts.map +1 -1
  105. package/resources/messaging/notifications/notifications.d.mts +2 -2
  106. package/resources/messaging/notifications/notifications.d.mts.map +1 -1
  107. package/resources/messaging/notifications/notifications.d.ts +2 -2
  108. package/resources/messaging/notifications/notifications.d.ts.map +1 -1
  109. package/resources/messaging/notifications/notifications.js.map +1 -1
  110. package/resources/messaging/notifications/notifications.mjs.map +1 -1
  111. package/resources/operations/machine-downtime-events.d.mts +5 -5
  112. package/resources/operations/machine-downtime-events.d.mts.map +1 -1
  113. package/resources/operations/machine-downtime-events.d.ts +5 -5
  114. package/resources/operations/machine-downtime-events.d.ts.map +1 -1
  115. package/resources/operations/shipping-terms.d.mts +9 -9
  116. package/resources/operations/shipping-terms.d.mts.map +1 -1
  117. package/resources/operations/shipping-terms.d.ts +9 -9
  118. package/resources/operations/shipping-terms.d.ts.map +1 -1
  119. package/resources/sales/account-prices/account-prices.d.mts +3 -3
  120. package/resources/sales/account-prices/account-prices.d.mts.map +1 -1
  121. package/resources/sales/account-prices/account-prices.d.ts +3 -3
  122. package/resources/sales/account-prices/account-prices.d.ts.map +1 -1
  123. package/resources/sales/account-users/sales-targets.d.mts +2 -2
  124. package/resources/sales/account-users/sales-targets.d.mts.map +1 -1
  125. package/resources/sales/account-users/sales-targets.d.ts +2 -2
  126. package/resources/sales/account-users/sales-targets.d.ts.map +1 -1
  127. package/resources/sales/customers/customers.d.mts +5 -5
  128. package/resources/sales/customers/customers.d.mts.map +1 -1
  129. package/resources/sales/customers/customers.d.ts +5 -5
  130. package/resources/sales/customers/customers.d.ts.map +1 -1
  131. package/resources/sales/sales-orders/lines/lines.d.mts +5 -5
  132. package/resources/sales/sales-orders/lines/lines.d.mts.map +1 -1
  133. package/resources/sales/sales-orders/lines/lines.d.ts +5 -5
  134. package/resources/sales/sales-orders/lines/lines.d.ts.map +1 -1
  135. package/resources/sales/sales-orders/sales-orders.d.mts +8 -4
  136. package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
  137. package/resources/sales/sales-orders/sales-orders.d.ts +8 -4
  138. package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
  139. package/resources/sales/sales-orders/sales-orders.js.map +1 -1
  140. package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
  141. package/src/resources/catalog/catalog.ts +2 -8
  142. package/src/resources/catalog/index.ts +1 -4
  143. package/src/resources/catalog/items/actions.ts +296 -0
  144. package/src/resources/catalog/items/index.ts +23 -3
  145. package/src/resources/catalog/items/inventory.ts +294 -0
  146. package/src/resources/catalog/items/items.ts +54 -124
  147. package/src/resources/catalog/materials/index.ts +1 -0
  148. package/src/resources/catalog/materials/materials.ts +41 -2
  149. package/src/resources/catalog/product-lines/index.ts +0 -1
  150. package/src/resources/catalog/product-lines/product-lines.ts +7 -25
  151. package/src/resources/core/audit-events.ts +26 -10
  152. package/src/resources/core/core.ts +13 -5
  153. package/src/resources/core/jobs.ts +7 -3
  154. package/src/resources/messaging/blocks.ts +4 -3
  155. package/src/resources/messaging/conversations/conversations.ts +21 -9
  156. package/src/resources/messaging/conversations/links.ts +14 -6
  157. package/src/resources/messaging/conversations/messages.ts +14 -6
  158. package/src/resources/messaging/notifications/notifications.ts +14 -6
  159. package/src/resources/operations/machine-downtime-events.ts +5 -5
  160. package/src/resources/operations/shipping-terms.ts +9 -9
  161. package/src/resources/sales/account-prices/account-prices.ts +3 -3
  162. package/src/resources/sales/account-users/sales-targets.ts +2 -2
  163. package/src/resources/sales/customers/customers.ts +5 -5
  164. package/src/resources/sales/sales-orders/lines/lines.ts +5 -5
  165. package/src/resources/sales/sales-orders/sales-orders.ts +9 -4
  166. package/src/version.ts +1 -1
  167. package/version.d.mts +1 -1
  168. package/version.d.ts +1 -1
  169. package/version.js +1 -1
  170. package/version.mjs +1 -1
@@ -4,7 +4,7 @@ import { APIResource } from '../../../core/resource';
4
4
  import * as CoreAPI from '../../core/core';
5
5
  import * as AccountGroupsAPI from '../account-groups';
6
6
  import * as AddressesAPI from '../addresses';
7
- import * as ProductLinesAPI from '../../catalog/product-lines/product-lines';
7
+ import * as InventoryAPI from '../../catalog/items/inventory';
8
8
  import * as AccountPricesAPI from '../account-prices/account-prices';
9
9
  import * as ActionsAPI from './actions';
10
10
  import { ActionMergeParams, Actions, MergeCustomersRequest } from './actions';
@@ -295,7 +295,7 @@ export interface CreateCustomerRequest {
295
295
  * The unit may be a currency, so money amounts such as a credit limit are written
296
296
  * the same way as physical amounts like weights or counts.
297
297
  */
298
- credit_limit?: ProductLinesAPI.QuantityInput;
298
+ credit_limit?: InventoryAPI.QuantityInput;
299
299
 
300
300
  /**
301
301
  * IDs of the account groups of type `pricing_group` to assign to this customer,
@@ -497,7 +497,7 @@ export interface UpdateCustomerRequest {
497
497
  * The unit may be a currency, so money amounts such as a credit limit are written
498
498
  * the same way as physical amounts like weights or counts.
499
499
  */
500
- credit_limit?: ProductLinesAPI.QuantityInput | null;
500
+ credit_limit?: InventoryAPI.QuantityInput | null;
501
501
 
502
502
  /**
503
503
  * IDs of the account groups of type `pricing_group` to assign to this customer,
@@ -910,7 +910,7 @@ export interface CustomerCreateParams {
910
910
  * The unit may be a currency, so money amounts such as a credit limit are written
911
911
  * the same way as physical amounts like weights or counts.
912
912
  */
913
- credit_limit?: ProductLinesAPI.QuantityInput;
913
+ credit_limit?: InventoryAPI.QuantityInput;
914
914
 
915
915
  /**
916
916
  * Body param: IDs of the account groups of type `pricing_group` to assign to this
@@ -1079,7 +1079,7 @@ export interface CustomerUpdateParams {
1079
1079
  * The unit may be a currency, so money amounts such as a credit limit are written
1080
1080
  * the same way as physical amounts like weights or counts.
1081
1081
  */
1082
- credit_limit?: ProductLinesAPI.QuantityInput | null;
1082
+ credit_limit?: InventoryAPI.QuantityInput | null;
1083
1083
 
1084
1084
  /**
1085
1085
  * Body param: IDs of the account groups of type `pricing_group` to assign to this
@@ -1,8 +1,8 @@
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 InventoryAPI from '../../../catalog/items/inventory';
4
5
  import * as MaterialsAPI from '../../../catalog/materials/materials';
5
- import * as ProductLinesAPI from '../../../catalog/product-lines/product-lines';
6
6
  import * as SalesOrdersAPI from '../sales-orders';
7
7
  import * as ActionsAPI from './actions';
8
8
  import {
@@ -145,7 +145,7 @@ export interface CreateSalesOrderLineRequest {
145
145
  * The unit may be a currency, so money amounts such as a credit limit are written
146
146
  * the same way as physical amounts like weights or counts.
147
147
  */
148
- quantity: ProductLinesAPI.QuantityInput;
148
+ quantity: InventoryAPI.QuantityInput;
149
149
 
150
150
  /**
151
151
  * The product description recorded on the line.
@@ -182,7 +182,7 @@ export interface UpdateSalesOrderLineRequest {
182
182
  * The unit may be a currency, so money amounts such as a credit limit are written
183
183
  * the same way as physical amounts like weights or counts.
184
184
  */
185
- quantity?: ProductLinesAPI.QuantityInput;
185
+ quantity?: InventoryAPI.QuantityInput;
186
186
 
187
187
  /**
188
188
  * A value expressed as a ratio of two units, supplied on create and update
@@ -222,7 +222,7 @@ export interface LineCreateParams {
222
222
  * The unit may be a currency, so money amounts such as a credit limit are written
223
223
  * the same way as physical amounts like weights or counts.
224
224
  */
225
- quantity: ProductLinesAPI.QuantityInput;
225
+ quantity: InventoryAPI.QuantityInput;
226
226
 
227
227
  /**
228
228
  * Query param: Sub-objects to expand in the response. When omitted, sub-objects
@@ -273,7 +273,7 @@ export interface LineUpdateParams {
273
273
  * The unit may be a currency, so money amounts such as a credit limit are written
274
274
  * the same way as physical amounts like weights or counts.
275
275
  */
276
- quantity?: ProductLinesAPI.QuantityInput;
276
+ quantity?: InventoryAPI.QuantityInput;
277
277
 
278
278
  /**
279
279
  * Body param: A value expressed as a ratio of two units, supplied on create and
@@ -3,9 +3,9 @@
3
3
  import { APIResource } from '../../../core/resource';
4
4
  import * as RequestLogsAPI from '../../core/request-logs';
5
5
  import * as APIKeysAPI from '../../auth/api-keys/api-keys';
6
+ import * as InventoryAPI from '../../catalog/items/inventory';
6
7
  import * as ItemsAPI from '../../catalog/items/items';
7
8
  import * as MaterialsAPI from '../../catalog/materials/materials';
8
- import * as ProductLinesAPI from '../../catalog/product-lines/product-lines';
9
9
  import * as ProductsAPI from '../../catalog/products/products';
10
10
  import * as UnitsAPI from '../../catalog/units/units';
11
11
  import * as AccountPricesAPI from '../account-prices/account-prices';
@@ -354,7 +354,7 @@ export interface CreateSalesOrderLineInput {
354
354
  * The unit may be a currency, so money amounts such as a credit limit are written
355
355
  * the same way as physical amounts like weights or counts.
356
356
  */
357
- quantity: ProductLinesAPI.QuantityInput;
357
+ quantity: InventoryAPI.QuantityInput;
358
358
 
359
359
  /**
360
360
  * Description recorded on the line.
@@ -792,7 +792,7 @@ export interface QuoteSalesOrderLineInput {
792
792
  * The unit may be a currency, so money amounts such as a credit limit are written
793
793
  * the same way as physical amounts like weights or counts.
794
794
  */
795
- quantity: ProductLinesAPI.QuantityInput;
795
+ quantity: InventoryAPI.QuantityInput;
796
796
  }
797
797
 
798
798
  /**
@@ -1230,6 +1230,11 @@ export interface SalesOrderLine {
1230
1230
  */
1231
1231
  created_at: string;
1232
1232
 
1233
+ /**
1234
+ * An entry in your catalog: something you sell, consume, or build with.
1235
+ */
1236
+ item: ItemsAPI.Item | null;
1237
+
1233
1238
  /**
1234
1239
  * Position of the line on the order.
1235
1240
  *
@@ -1276,7 +1281,7 @@ export interface SalesOrderLine {
1276
1281
  * resources point at them to report stock levels, ordered and packed amounts,
1277
1282
  * money, weights, and durations.
1278
1283
  */
1279
- quantity_ordered: ItemsAPI.Quantity | null;
1284
+ quantity_ordered: MaterialsAPI.Quantity | null;
1280
1285
 
1281
1286
  /**
1282
1287
  * Derived monetary totals for a sales order or one of its lines.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.18.2'; // x-release-please-version
1
+ export const VERSION = '0.19.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.18.2";
1
+ export declare const VERSION = "0.19.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.18.2";
1
+ export declare const VERSION = "0.19.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.18.2'; // x-release-please-version
4
+ exports.VERSION = '0.19.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.18.2'; // x-release-please-version
1
+ export const VERSION = '0.19.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map