@augno/sdk 0.12.6 → 0.13.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.
- package/CHANGELOG.md +7 -2
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/catalog/catalog.d.mts +4 -4
- package/resources/catalog/catalog.d.mts.map +1 -1
- package/resources/catalog/catalog.d.ts +4 -4
- package/resources/catalog/catalog.d.ts.map +1 -1
- package/resources/catalog/catalog.js.map +1 -1
- package/resources/catalog/catalog.mjs.map +1 -1
- package/resources/catalog/index.d.mts +2 -2
- package/resources/catalog/index.d.mts.map +1 -1
- package/resources/catalog/index.d.ts +2 -2
- package/resources/catalog/index.d.ts.map +1 -1
- package/resources/catalog/index.js.map +1 -1
- package/resources/catalog/index.mjs.map +1 -1
- package/resources/catalog/items/index.d.mts +1 -1
- package/resources/catalog/items/index.d.mts.map +1 -1
- package/resources/catalog/items/index.d.ts +1 -1
- package/resources/catalog/items/index.d.ts.map +1 -1
- package/resources/catalog/items/index.js.map +1 -1
- package/resources/catalog/items/index.mjs.map +1 -1
- package/resources/catalog/items/items.d.mts +77 -1
- package/resources/catalog/items/items.d.mts.map +1 -1
- package/resources/catalog/items/items.d.ts +77 -1
- package/resources/catalog/items/items.d.ts.map +1 -1
- package/resources/catalog/items/items.js +29 -0
- package/resources/catalog/items/items.js.map +1 -1
- package/resources/catalog/items/items.mjs +29 -0
- package/resources/catalog/items/items.mjs.map +1 -1
- package/resources/catalog/product-lines.d.mts +42 -8
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +42 -8
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +3 -3
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +3 -3
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products.d.mts +2 -2
- package/resources/catalog/products.d.ts +2 -2
- package/resources/catalog/products.js +2 -2
- package/resources/catalog/products.mjs +2 -2
- package/resources/core/analytics.d.mts +547 -0
- package/resources/core/analytics.d.mts.map +1 -0
- package/resources/core/analytics.d.ts +547 -0
- package/resources/core/analytics.d.ts.map +1 -0
- package/resources/core/analytics.js +67 -0
- package/resources/core/analytics.js.map +1 -0
- package/resources/core/analytics.mjs +63 -0
- package/resources/core/analytics.mjs.map +1 -0
- package/resources/core/audit-events.d.mts +16 -3
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +16 -3
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/core.d.mts +8 -3
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +8 -3
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js +4 -0
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs +4 -0
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/index.d.mts +1 -0
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +1 -0
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.js +3 -1
- package/resources/core/index.js.map +1 -1
- package/resources/core/index.mjs +1 -0
- package/resources/core/index.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messaging/conversations/conversations.d.mts +3 -3
- package/resources/messaging/conversations/conversations.d.mts.map +1 -1
- package/resources/messaging/conversations/conversations.d.ts +3 -3
- package/resources/messaging/conversations/conversations.d.ts.map +1 -1
- package/resources/messaging/conversations/conversations.js.map +1 -1
- package/resources/messaging/conversations/conversations.mjs.map +1 -1
- package/resources/messaging/conversations/links.d.mts +2 -2
- package/resources/messaging/conversations/links.d.mts.map +1 -1
- package/resources/messaging/conversations/links.d.ts +2 -2
- package/resources/messaging/conversations/links.d.ts.map +1 -1
- package/resources/messaging/conversations/messages.d.mts +2 -2
- package/resources/messaging/conversations/messages.d.mts.map +1 -1
- package/resources/messaging/conversations/messages.d.ts +2 -2
- package/resources/messaging/conversations/messages.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.d.mts +2 -2
- package/resources/messaging/notifications/notifications.d.mts.map +1 -1
- package/resources/messaging/notifications/notifications.d.ts +2 -2
- package/resources/messaging/notifications/notifications.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.js.map +1 -1
- package/resources/messaging/notifications/notifications.mjs.map +1 -1
- package/resources/operations/demand-overrides.d.mts +463 -0
- package/resources/operations/demand-overrides.d.mts.map +1 -0
- package/resources/operations/demand-overrides.d.ts +463 -0
- package/resources/operations/demand-overrides.d.ts.map +1 -0
- package/resources/operations/demand-overrides.js +118 -0
- package/resources/operations/demand-overrides.js.map +1 -0
- package/resources/operations/demand-overrides.mjs +114 -0
- package/resources/operations/demand-overrides.mjs.map +1 -0
- package/resources/operations/index.d.mts +5 -1
- package/resources/operations/index.d.mts.map +1 -1
- package/resources/operations/index.d.ts +5 -1
- package/resources/operations/index.d.ts.map +1 -1
- package/resources/operations/index.js +9 -1
- package/resources/operations/index.js.map +1 -1
- package/resources/operations/index.mjs +5 -1
- package/resources/operations/index.mjs.map +1 -1
- package/resources/operations/machine-downtime-events.d.mts +424 -0
- package/resources/operations/machine-downtime-events.d.mts.map +1 -0
- package/resources/operations/machine-downtime-events.d.ts +424 -0
- package/resources/operations/machine-downtime-events.d.ts.map +1 -0
- package/resources/operations/machine-downtime-events.js +110 -0
- package/resources/operations/machine-downtime-events.js.map +1 -0
- package/resources/operations/machine-downtime-events.mjs +106 -0
- package/resources/operations/machine-downtime-events.mjs.map +1 -0
- package/resources/operations/operations.d.mts +444 -0
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +444 -0
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js +89 -0
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs +89 -0
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/operations/production-schedule-settings/index.d.mts +3 -0
- package/resources/operations/production-schedule-settings/index.d.mts.map +1 -0
- package/resources/operations/production-schedule-settings/index.d.ts +3 -0
- package/resources/operations/production-schedule-settings/index.d.ts.map +1 -0
- package/resources/operations/production-schedule-settings/index.js +9 -0
- package/resources/operations/production-schedule-settings/index.js.map +1 -0
- package/resources/operations/production-schedule-settings/index.mjs +4 -0
- package/resources/operations/production-schedule-settings/index.mjs.map +1 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts +470 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts.map +1 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts +470 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts.map +1 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.js +88 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.js.map +1 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.mjs +83 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map +1 -0
- package/resources/operations/production-schedule-settings/resources.d.mts +176 -0
- package/resources/operations/production-schedule-settings/resources.d.mts.map +1 -0
- package/resources/operations/production-schedule-settings/resources.d.ts +176 -0
- package/resources/operations/production-schedule-settings/resources.d.ts.map +1 -0
- package/resources/operations/production-schedule-settings/resources.js +74 -0
- package/resources/operations/production-schedule-settings/resources.js.map +1 -0
- package/resources/operations/production-schedule-settings/resources.mjs +70 -0
- package/resources/operations/production-schedule-settings/resources.mjs.map +1 -0
- package/resources/operations/production-schedule-settings.d.mts +2 -0
- package/resources/operations/production-schedule-settings.d.mts.map +1 -0
- package/resources/operations/production-schedule-settings.d.ts +2 -0
- package/resources/operations/production-schedule-settings.d.ts.map +1 -0
- package/resources/operations/production-schedule-settings.js +6 -0
- package/resources/operations/production-schedule-settings.js.map +1 -0
- package/resources/operations/production-schedule-settings.mjs +3 -0
- package/resources/operations/production-schedule-settings.mjs.map +1 -0
- package/resources/operations/production-schedules/actions.d.mts +668 -0
- package/resources/operations/production-schedules/actions.d.mts.map +1 -0
- package/resources/operations/production-schedules/actions.d.ts +668 -0
- package/resources/operations/production-schedules/actions.d.ts.map +1 -0
- package/resources/operations/production-schedules/actions.js +181 -0
- package/resources/operations/production-schedules/actions.js.map +1 -0
- package/resources/operations/production-schedules/actions.mjs +177 -0
- package/resources/operations/production-schedules/actions.mjs.map +1 -0
- package/resources/operations/production-schedules/index.d.mts +4 -0
- package/resources/operations/production-schedules/index.d.mts.map +1 -0
- package/resources/operations/production-schedules/index.d.ts +4 -0
- package/resources/operations/production-schedules/index.d.ts.map +1 -0
- package/resources/operations/production-schedules/index.js +11 -0
- package/resources/operations/production-schedules/index.js.map +1 -0
- package/resources/operations/production-schedules/index.mjs +5 -0
- package/resources/operations/production-schedules/index.mjs.map +1 -0
- package/resources/operations/production-schedules/lines.d.mts +420 -0
- package/resources/operations/production-schedules/lines.d.mts.map +1 -0
- package/resources/operations/production-schedules/lines.d.ts +420 -0
- package/resources/operations/production-schedules/lines.d.ts.map +1 -0
- package/resources/operations/production-schedules/lines.js +106 -0
- package/resources/operations/production-schedules/lines.js.map +1 -0
- package/resources/operations/production-schedules/lines.mjs +102 -0
- package/resources/operations/production-schedules/lines.mjs.map +1 -0
- package/resources/operations/production-schedules/production-schedules.d.mts +1177 -0
- package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -0
- package/resources/operations/production-schedules/production-schedules.d.ts +1177 -0
- package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -0
- package/resources/operations/production-schedules/production-schedules.js +238 -0
- package/resources/operations/production-schedules/production-schedules.js.map +1 -0
- package/resources/operations/production-schedules/production-schedules.mjs +233 -0
- package/resources/operations/production-schedules/production-schedules.mjs.map +1 -0
- package/resources/operations/production-schedules.d.mts +2 -0
- package/resources/operations/production-schedules.d.mts.map +1 -0
- package/resources/operations/production-schedules.d.ts +2 -0
- package/resources/operations/production-schedules.d.ts.map +1 -0
- package/resources/operations/production-schedules.js +6 -0
- package/resources/operations/production-schedules.js.map +1 -0
- package/resources/operations/production-schedules.mjs +3 -0
- package/resources/operations/production-schedules.mjs.map +1 -0
- package/resources/operations/shipping-terms.d.mts +9 -8
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +9 -8
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/sales/customers/customers.d.mts +6 -18
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +6 -18
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs.map +1 -1
- package/resources/sales/customers/index.d.mts +1 -1
- package/resources/sales/customers/index.d.mts.map +1 -1
- package/resources/sales/customers/index.d.ts +1 -1
- package/resources/sales/customers/index.d.ts.map +1 -1
- package/resources/sales/customers/index.js.map +1 -1
- package/resources/sales/customers/index.mjs.map +1 -1
- package/resources/sales/index.d.mts +1 -1
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +1 -1
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.mts +5 -5
- package/resources/sales/sales-orders/lines/lines.d.mts.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.ts +5 -5
- package/resources/sales/sales-orders/lines/lines.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.mts +5 -4
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +5 -4
- package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +2 -2
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +2 -2
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs.map +1 -1
- package/src/client.ts +30 -2
- package/src/resources/catalog/catalog.ts +6 -0
- package/src/resources/catalog/index.ts +3 -0
- package/src/resources/catalog/items/index.ts +2 -0
- package/src/resources/catalog/items/items.ts +92 -0
- package/src/resources/catalog/product-lines.ts +49 -7
- package/src/resources/catalog/products.ts +2 -2
- package/src/resources/core/analytics.ts +677 -0
- package/src/resources/core/audit-events.ts +353 -0
- package/src/resources/core/core.ts +84 -1
- package/src/resources/core/index.ts +18 -0
- package/src/resources/index.ts +15 -1
- package/src/resources/messaging/conversations/conversations.ts +63 -0
- package/src/resources/messaging/conversations/links.ts +42 -0
- package/src/resources/messaging/conversations/messages.ts +42 -0
- package/src/resources/messaging/notifications/notifications.ts +42 -0
- package/src/resources/operations/demand-overrides.ts +626 -0
- package/src/resources/operations/index.ts +72 -1
- package/src/resources/operations/machine-downtime-events.ts +584 -0
- package/src/resources/operations/operations.ts +673 -0
- package/src/resources/operations/production-schedule-settings/index.ts +15 -0
- package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +595 -0
- package/src/resources/operations/production-schedule-settings/resources.ts +217 -0
- package/src/resources/operations/production-schedule-settings.ts +3 -0
- package/src/resources/operations/production-schedules/actions.ts +835 -0
- package/src/resources/operations/production-schedules/index.ts +64 -0
- package/src/resources/operations/production-schedules/lines.ts +584 -0
- package/src/resources/operations/production-schedules/production-schedules.ts +1548 -0
- package/src/resources/operations/production-schedules.ts +3 -0
- package/src/resources/operations/shipping-terms.ts +9 -8
- package/src/resources/sales/customers/customers.ts +5 -20
- package/src/resources/sales/customers/index.ts +0 -1
- package/src/resources/sales/index.ts +0 -1
- package/src/resources/sales/sales-orders/lines/lines.ts +5 -5
- package/src/resources/sales/sales-orders/sales-orders.ts +15 -2
- package/src/resources/sales/sales.ts +0 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as UnitsAPI from '../units';
|
|
5
|
+
import * as CoreAPI from '../../core/core';
|
|
5
6
|
import * as APIKeysAPI from '../../auth/api-keys/api-keys';
|
|
6
7
|
import * as AttributesAPI from './attributes';
|
|
7
8
|
import { AttributeDeleteParams, AttributeUpdateParams, Attributes } from './attributes';
|
|
@@ -73,6 +74,40 @@ export class Items extends APIResource {
|
|
|
73
74
|
return this._client.get(path`/v1/catalog/items/${id}/inventory`, { query, ...options });
|
|
74
75
|
}
|
|
75
76
|
|
|
77
|
+
/**
|
|
78
|
+
* Returns the lot this item is made in — how many, counted in what.
|
|
79
|
+
*
|
|
80
|
+
* A lot is a doff, a pallet, a batch: the quantity production is issued in. The
|
|
81
|
+
* unit is what makes it meaningful, since 60 pairs and 60 eaches are different
|
|
82
|
+
* lots, so `quantity` should never be read without `unit`.
|
|
83
|
+
*
|
|
84
|
+
* Resolved through the same chain the production schedule uses, most specific
|
|
85
|
+
* first: a per-item override, then the item's own product line, then the product
|
|
86
|
+
* lines of the finished goods it becomes, then the account-wide default. `source`
|
|
87
|
+
* names which rule applied. Intermediate items like greige are not sold and have
|
|
88
|
+
* no product line of their own, which is why they inherit from what they become.
|
|
89
|
+
*
|
|
90
|
+
* `quantity` is `0` when nothing in the chain supplies a lot. That means the item
|
|
91
|
+
* has no lot convention, not that its lot is zero.
|
|
92
|
+
*
|
|
93
|
+
* This endpoint requires the permission: `items:read`.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* const itemLotDefault =
|
|
98
|
+
* await client.catalog.items.retrieveLotDefault(
|
|
99
|
+
* 'it_0131e386ac683e8c29a71f6f1f',
|
|
100
|
+
* );
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
retrieveLotDefault(
|
|
104
|
+
id: string,
|
|
105
|
+
query: ItemRetrieveLotDefaultParams | null | undefined = {},
|
|
106
|
+
options?: RequestOptions,
|
|
107
|
+
): APIPromise<ItemLotDefault> {
|
|
108
|
+
return this._client.get(path`/v1/catalog/items/${id}/lot-default`, { query, ...options });
|
|
109
|
+
}
|
|
110
|
+
|
|
76
111
|
/**
|
|
77
112
|
* Moves an item to a different category.
|
|
78
113
|
*
|
|
@@ -275,6 +310,53 @@ export interface ItemInventory {
|
|
|
275
310
|
short: Quantity | null;
|
|
276
311
|
}
|
|
277
312
|
|
|
313
|
+
/**
|
|
314
|
+
* The lot an item is made in — how many, counted in what.
|
|
315
|
+
*
|
|
316
|
+
* A lot is the quantity production is issued in: a doff, a pallet, a batch. The
|
|
317
|
+
* unit is what makes it meaningful, since 60 pairs and 60 eaches are different
|
|
318
|
+
* lots.
|
|
319
|
+
*/
|
|
320
|
+
export interface ItemLotDefault {
|
|
321
|
+
/**
|
|
322
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
323
|
+
*/
|
|
324
|
+
item: CoreAPI.Entity | null;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Resource type identifier.
|
|
328
|
+
*/
|
|
329
|
+
object: 'item_lot_default';
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
333
|
+
*/
|
|
334
|
+
product_line: CoreAPI.Entity | null;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Units in one lot.
|
|
338
|
+
*
|
|
339
|
+
* `0` means the item has no lot convention, not that its lot is zero.
|
|
340
|
+
*/
|
|
341
|
+
quantity: number;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Which rule in the chain produced this lot.
|
|
345
|
+
*
|
|
346
|
+
* - `item_override`: a lot size set on the item itself.
|
|
347
|
+
* - `product_line`: the convention of the line the item sells under.
|
|
348
|
+
* - `downstream_product_line`: inherited from the finished goods this item
|
|
349
|
+
* becomes, for intermediates that are not themselves sold.
|
|
350
|
+
* - `account_default`: the account-wide fallback.
|
|
351
|
+
*/
|
|
352
|
+
source: 'item_override' | 'product_line' | 'downstream_product_line' | 'account_default' | '';
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Unit of measurement used for conversions and product quantities.
|
|
356
|
+
*/
|
|
357
|
+
unit: UnitsAPI.Unit | null;
|
|
358
|
+
}
|
|
359
|
+
|
|
278
360
|
/**
|
|
279
361
|
* List represents a paginated list of resources.
|
|
280
362
|
*/
|
|
@@ -494,6 +576,14 @@ export interface ItemRetrieveInventoryParams {
|
|
|
494
576
|
include?: Array<'on_hand' | 'reserved' | 'available_to_promise' | 'short'>;
|
|
495
577
|
}
|
|
496
578
|
|
|
579
|
+
export interface ItemRetrieveLotDefaultParams {
|
|
580
|
+
/**
|
|
581
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
582
|
+
* `null`.
|
|
583
|
+
*/
|
|
584
|
+
include?: Array<'unit'>;
|
|
585
|
+
}
|
|
586
|
+
|
|
497
587
|
export interface ItemChangeCategoryParams {
|
|
498
588
|
/**
|
|
499
589
|
* Path param: Item ID.
|
|
@@ -525,12 +615,14 @@ export declare namespace Items {
|
|
|
525
615
|
type Item as Item,
|
|
526
616
|
type ItemCategory as ItemCategory,
|
|
527
617
|
type ItemInventory as ItemInventory,
|
|
618
|
+
type ItemLotDefault as ItemLotDefault,
|
|
528
619
|
type ListItem as ListItem,
|
|
529
620
|
type Quantity as Quantity,
|
|
530
621
|
type Rate as Rate,
|
|
531
622
|
type ItemListParams as ItemListParams,
|
|
532
623
|
type ItemRetrieveParams as ItemRetrieveParams,
|
|
533
624
|
type ItemRetrieveInventoryParams as ItemRetrieveInventoryParams,
|
|
625
|
+
type ItemRetrieveLotDefaultParams as ItemRetrieveLotDefaultParams,
|
|
534
626
|
type ItemChangeCategoryParams as ItemChangeCategoryParams,
|
|
535
627
|
};
|
|
536
628
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as APIKeysAPI from '../auth/api-keys/api-keys';
|
|
5
|
+
import * as ItemsAPI from './items/items';
|
|
5
6
|
import * as UnitGroupsAPI from './unit-groups/unit-groups';
|
|
6
7
|
import { APIPromise } from '../../core/api-promise';
|
|
7
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -42,7 +43,7 @@ export class ProductLines extends APIResource {
|
|
|
42
43
|
* ```ts
|
|
43
44
|
* const productLine =
|
|
44
45
|
* await client.catalog.productLines.retrieve(
|
|
45
|
-
* '
|
|
46
|
+
* 'pdln_01996357326a0d3f7b129542ea',
|
|
46
47
|
* );
|
|
47
48
|
* ```
|
|
48
49
|
*/
|
|
@@ -87,7 +88,7 @@ export class ProductLines extends APIResource {
|
|
|
87
88
|
* ```ts
|
|
88
89
|
* const productLine =
|
|
89
90
|
* await client.catalog.productLines.update(
|
|
90
|
-
* '
|
|
91
|
+
* 'pdln_01996357326a0d3f7b129542ea',
|
|
91
92
|
* {
|
|
92
93
|
* commission_policy: 'commission_applied',
|
|
93
94
|
* freight_policy: 'billed_freight',
|
|
@@ -122,7 +123,7 @@ export class ProductLines extends APIResource {
|
|
|
122
123
|
* ```ts
|
|
123
124
|
* const productLine =
|
|
124
125
|
* await client.catalog.productLines.delete(
|
|
125
|
-
* '
|
|
126
|
+
* 'pdln_01996357326a0d3f7b129542ea',
|
|
126
127
|
* );
|
|
127
128
|
* ```
|
|
128
129
|
*/
|
|
@@ -168,6 +169,11 @@ export interface CreateProductLineRequest {
|
|
|
168
169
|
* line.
|
|
169
170
|
*/
|
|
170
171
|
unit_group_id: string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* A value with an associated unit, used in create and update requests.
|
|
175
|
+
*/
|
|
176
|
+
default_lot?: QuantityInput;
|
|
171
177
|
}
|
|
172
178
|
|
|
173
179
|
/**
|
|
@@ -216,6 +222,11 @@ export interface ProductLine {
|
|
|
216
222
|
*/
|
|
217
223
|
created_at: string;
|
|
218
224
|
|
|
225
|
+
/**
|
|
226
|
+
* Value with an associated unit.
|
|
227
|
+
*/
|
|
228
|
+
default_lot: ItemsAPI.Quantity | null;
|
|
229
|
+
|
|
219
230
|
/**
|
|
220
231
|
* Free-form description of the product line.
|
|
221
232
|
*/
|
|
@@ -262,6 +273,21 @@ export interface ProductLine {
|
|
|
262
273
|
updated_at: string;
|
|
263
274
|
}
|
|
264
275
|
|
|
276
|
+
/**
|
|
277
|
+
* A value with an associated unit, used in create and update requests.
|
|
278
|
+
*/
|
|
279
|
+
export interface QuantityInput {
|
|
280
|
+
/**
|
|
281
|
+
* ID of the unit of measure for the value.
|
|
282
|
+
*/
|
|
283
|
+
unit_id: string;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Decimal value, as a string to preserve precision.
|
|
287
|
+
*/
|
|
288
|
+
value: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
265
291
|
/**
|
|
266
292
|
* Request to partially update a product line.
|
|
267
293
|
*/
|
|
@@ -275,6 +301,11 @@ export interface UpdateProductLineRequest {
|
|
|
275
301
|
*/
|
|
276
302
|
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
277
303
|
|
|
304
|
+
/**
|
|
305
|
+
* A value with an associated unit, used in create and update requests.
|
|
306
|
+
*/
|
|
307
|
+
default_lot?: QuantityInput | null;
|
|
308
|
+
|
|
278
309
|
/**
|
|
279
310
|
* Default freight policy for products in this product line.
|
|
280
311
|
*
|
|
@@ -317,7 +348,7 @@ export interface ProductLineListParams {
|
|
|
317
348
|
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
318
349
|
* `null`.
|
|
319
350
|
*/
|
|
320
|
-
include?: Array<'owner' | 'owner.account' | 'unit_group'>;
|
|
351
|
+
include?: Array<'owner' | 'owner.account' | 'unit_group' | 'default_lot' | 'default_lot.unit'>;
|
|
321
352
|
|
|
322
353
|
/**
|
|
323
354
|
* Maximum number of results to return in a single page.
|
|
@@ -337,7 +368,7 @@ export interface ProductLineRetrieveParams {
|
|
|
337
368
|
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
338
369
|
* `null`.
|
|
339
370
|
*/
|
|
340
|
-
include?: Array<'owner' | 'owner.account' | 'unit_group'>;
|
|
371
|
+
include?: Array<'owner' | 'owner.account' | 'unit_group' | 'default_lot' | 'default_lot.unit'>;
|
|
341
372
|
}
|
|
342
373
|
|
|
343
374
|
export interface ProductLineCreateParams {
|
|
@@ -379,7 +410,12 @@ export interface ProductLineCreateParams {
|
|
|
379
410
|
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
380
411
|
* are returned as `null`.
|
|
381
412
|
*/
|
|
382
|
-
include?: Array<'owner' | 'owner.account' | 'unit_group'>;
|
|
413
|
+
include?: Array<'owner' | 'owner.account' | 'unit_group' | 'default_lot' | 'default_lot.unit'>;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Body param: A value with an associated unit, used in create and update requests.
|
|
417
|
+
*/
|
|
418
|
+
default_lot?: QuantityInput;
|
|
383
419
|
}
|
|
384
420
|
|
|
385
421
|
export interface ProductLineUpdateParams {
|
|
@@ -387,7 +423,7 @@ export interface ProductLineUpdateParams {
|
|
|
387
423
|
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
388
424
|
* are returned as `null`.
|
|
389
425
|
*/
|
|
390
|
-
include?: Array<'owner' | 'owner.account' | 'unit_group'>;
|
|
426
|
+
include?: Array<'owner' | 'owner.account' | 'unit_group' | 'default_lot' | 'default_lot.unit'>;
|
|
391
427
|
|
|
392
428
|
/**
|
|
393
429
|
* Body param: Default commission policy for products in this product line.
|
|
@@ -398,6 +434,11 @@ export interface ProductLineUpdateParams {
|
|
|
398
434
|
*/
|
|
399
435
|
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
400
436
|
|
|
437
|
+
/**
|
|
438
|
+
* Body param: A value with an associated unit, used in create and update requests.
|
|
439
|
+
*/
|
|
440
|
+
default_lot?: QuantityInput | null;
|
|
441
|
+
|
|
401
442
|
/**
|
|
402
443
|
* Body param: Default freight policy for products in this product line.
|
|
403
444
|
*
|
|
@@ -429,6 +470,7 @@ export declare namespace ProductLines {
|
|
|
429
470
|
type CreateProductLineRequest as CreateProductLineRequest,
|
|
430
471
|
type ListProductLine as ListProductLine,
|
|
431
472
|
type ProductLine as ProductLine,
|
|
473
|
+
type QuantityInput as QuantityInput,
|
|
432
474
|
type UpdateProductLineRequest as UpdateProductLineRequest,
|
|
433
475
|
type ProductLineDeleteResponse as ProductLineDeleteResponse,
|
|
434
476
|
type ProductLineListParams as ProductLineListParams,
|
|
@@ -70,7 +70,7 @@ export class Products extends APIResource {
|
|
|
70
70
|
* notes:
|
|
71
71
|
* 'Ships with a 2-year warranty; register for extended coverage.',
|
|
72
72
|
* portal_visibility: 'visible',
|
|
73
|
-
* product_line_id: '
|
|
73
|
+
* product_line_id: 'pdln_01996357326a0d3f7b129542ea',
|
|
74
74
|
* unit_cost: {
|
|
75
75
|
* value: '112.00',
|
|
76
76
|
* numerator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
@@ -153,7 +153,7 @@ export class Products extends APIResource {
|
|
|
153
153
|
* ```ts
|
|
154
154
|
* const product =
|
|
155
155
|
* await client.catalog.products.changeProductLine(
|
|
156
|
-
* '
|
|
156
|
+
* 'pdln_01996357326a0d3f7b129542ea',
|
|
157
157
|
* { id: 'pd_013c29ab3f1518d0004094c316' },
|
|
158
158
|
* );
|
|
159
159
|
* ```
|