@augno/sdk 0.18.1 → 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.
- package/CHANGELOG.md +3 -5
- package/package.json +1 -1
- package/resources/catalog/catalog.d.mts +6 -6
- package/resources/catalog/catalog.d.mts.map +1 -1
- package/resources/catalog/catalog.d.ts +6 -6
- 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 +3 -3
- package/resources/catalog/index.d.mts.map +1 -1
- package/resources/catalog/index.d.ts +3 -3
- 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/actions.d.mts +249 -0
- package/resources/catalog/items/actions.d.mts.map +1 -0
- package/resources/catalog/items/actions.d.ts +249 -0
- package/resources/catalog/items/actions.d.ts.map +1 -0
- package/resources/catalog/items/actions.js +46 -0
- package/resources/catalog/items/actions.js.map +1 -0
- package/resources/catalog/items/actions.mjs +42 -0
- package/resources/catalog/items/actions.mjs.map +1 -0
- package/resources/catalog/items/index.d.mts +3 -1
- package/resources/catalog/items/index.d.mts.map +1 -1
- package/resources/catalog/items/index.d.ts +3 -1
- package/resources/catalog/items/index.d.ts.map +1 -1
- package/resources/catalog/items/index.js +5 -1
- package/resources/catalog/items/index.js.map +1 -1
- package/resources/catalog/items/index.mjs +2 -0
- package/resources/catalog/items/index.mjs.map +1 -1
- package/resources/catalog/items/inventory.d.mts +247 -0
- package/resources/catalog/items/inventory.d.mts.map +1 -0
- package/resources/catalog/items/inventory.d.ts +247 -0
- package/resources/catalog/items/inventory.d.ts.map +1 -0
- package/resources/catalog/items/inventory.js +75 -0
- package/resources/catalog/items/inventory.js.map +1 -0
- package/resources/catalog/items/inventory.mjs +71 -0
- package/resources/catalog/items/inventory.mjs.map +1 -0
- package/resources/catalog/items/items.d.mts +9 -104
- package/resources/catalog/items/items.d.mts.map +1 -1
- package/resources/catalog/items/items.d.ts +9 -104
- package/resources/catalog/items/items.d.ts.map +1 -1
- package/resources/catalog/items/items.js +8 -21
- package/resources/catalog/items/items.js.map +1 -1
- package/resources/catalog/items/items.mjs +8 -21
- package/resources/catalog/items/items.mjs.map +1 -1
- package/resources/catalog/materials/index.d.mts +1 -1
- package/resources/catalog/materials/index.d.mts.map +1 -1
- package/resources/catalog/materials/index.d.ts +1 -1
- package/resources/catalog/materials/index.d.ts.map +1 -1
- package/resources/catalog/materials/index.js.map +1 -1
- package/resources/catalog/materials/index.mjs.map +1 -1
- package/resources/catalog/materials/materials.d.mts +36 -3
- package/resources/catalog/materials/materials.d.mts.map +1 -1
- package/resources/catalog/materials/materials.d.ts +36 -3
- package/resources/catalog/materials/materials.d.ts.map +1 -1
- package/resources/catalog/materials/materials.js.map +1 -1
- package/resources/catalog/materials/materials.mjs.map +1 -1
- package/resources/catalog/product-lines/index.d.mts +1 -1
- package/resources/catalog/product-lines/index.d.mts.map +1 -1
- package/resources/catalog/product-lines/index.d.ts +1 -1
- package/resources/catalog/product-lines/index.d.ts.map +1 -1
- package/resources/catalog/product-lines/index.js.map +1 -1
- package/resources/catalog/product-lines/index.mjs.map +1 -1
- package/resources/catalog/product-lines/product-lines.d.mts +8 -23
- package/resources/catalog/product-lines/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines/product-lines.d.ts +8 -23
- package/resources/catalog/product-lines/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines/product-lines.js.map +1 -1
- package/resources/catalog/product-lines/product-lines.mjs.map +1 -1
- package/resources/core/audit-events.d.mts +4 -4
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +4 -4
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/core.d.mts +2 -2
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +2 -2
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/jobs.d.mts +2 -2
- package/resources/core/jobs.d.mts.map +1 -1
- package/resources/core/jobs.d.ts +2 -2
- package/resources/core/jobs.d.ts.map +1 -1
- package/resources/messaging/blocks.d.mts +4 -3
- package/resources/messaging/blocks.d.mts.map +1 -1
- package/resources/messaging/blocks.d.ts +4 -3
- package/resources/messaging/blocks.d.ts.map +1 -1
- package/resources/messaging/blocks.js.map +1 -1
- package/resources/messaging/blocks.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/index.d.mts +1 -1
- package/resources/operations/index.d.mts.map +1 -1
- package/resources/operations/index.d.ts +1 -1
- package/resources/operations/index.d.ts.map +1 -1
- package/resources/operations/index.js.map +1 -1
- package/resources/operations/index.mjs.map +1 -1
- package/resources/operations/machine-downtime-events.d.mts +56 -7
- package/resources/operations/machine-downtime-events.d.mts.map +1 -1
- package/resources/operations/machine-downtime-events.d.ts +56 -7
- package/resources/operations/machine-downtime-events.d.ts.map +1 -1
- package/resources/operations/machine-downtime-events.js +11 -7
- package/resources/operations/machine-downtime-events.js.map +1 -1
- package/resources/operations/machine-downtime-events.mjs +11 -7
- package/resources/operations/machine-downtime-events.mjs.map +1 -1
- package/resources/operations/operations.d.mts +2 -2
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +2 -2
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts +13 -12
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts +13 -12
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.js.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map +1 -1
- package/resources/operations/production-schedules/actions.d.mts +34 -1
- package/resources/operations/production-schedules/actions.d.mts.map +1 -1
- package/resources/operations/production-schedules/actions.d.ts +34 -1
- package/resources/operations/production-schedules/actions.d.ts.map +1 -1
- package/resources/operations/production-schedules/actions.js +8 -0
- package/resources/operations/production-schedules/actions.js.map +1 -1
- package/resources/operations/production-schedules/actions.mjs +8 -0
- package/resources/operations/production-schedules/actions.mjs.map +1 -1
- package/resources/operations/production-schedules/index.d.mts +1 -1
- package/resources/operations/production-schedules/index.d.mts.map +1 -1
- package/resources/operations/production-schedules/index.d.ts +1 -1
- package/resources/operations/production-schedules/index.d.ts.map +1 -1
- package/resources/operations/production-schedules/index.js.map +1 -1
- package/resources/operations/production-schedules/index.mjs.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.mts +295 -2
- package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.ts +295 -2
- package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.js +42 -0
- package/resources/operations/production-schedules/production-schedules.js.map +1 -1
- package/resources/operations/production-schedules/production-schedules.mjs +42 -0
- package/resources/operations/production-schedules/production-schedules.mjs.map +1 -1
- package/resources/operations/shipping-terms.d.mts +9 -9
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +9 -9
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/sales/account-groups.d.mts +2 -1
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +2 -1
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-prices/account-prices.d.mts +5 -4
- package/resources/sales/account-prices/account-prices.d.mts.map +1 -1
- package/resources/sales/account-prices/account-prices.d.ts +5 -4
- package/resources/sales/account-prices/account-prices.d.ts.map +1 -1
- package/resources/sales/account-prices/account-prices.js.map +1 -1
- package/resources/sales/account-prices/account-prices.mjs.map +1 -1
- package/resources/sales/account-users/sales-targets.d.mts +2 -2
- package/resources/sales/account-users/sales-targets.d.mts.map +1 -1
- package/resources/sales/account-users/sales-targets.d.ts +2 -2
- package/resources/sales/account-users/sales-targets.d.ts.map +1 -1
- package/resources/sales/customers/customers.d.mts +48 -19
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +48 -19
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +10 -5
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +10 -5
- 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/actions.d.mts +14 -2
- package/resources/sales/sales-orders/actions.d.mts.map +1 -1
- package/resources/sales/sales-orders/actions.d.ts +14 -2
- package/resources/sales/sales-orders/actions.d.ts.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 +10 -6
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +10 -6
- 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/resources/catalog/catalog.ts +2 -8
- package/src/resources/catalog/index.ts +1 -4
- package/src/resources/catalog/items/actions.ts +296 -0
- package/src/resources/catalog/items/index.ts +23 -3
- package/src/resources/catalog/items/inventory.ts +294 -0
- package/src/resources/catalog/items/items.ts +54 -124
- package/src/resources/catalog/materials/index.ts +1 -0
- package/src/resources/catalog/materials/materials.ts +41 -2
- package/src/resources/catalog/product-lines/index.ts +0 -1
- package/src/resources/catalog/product-lines/product-lines.ts +7 -25
- package/src/resources/core/audit-events.ts +30 -10
- package/src/resources/core/core.ts +15 -5
- package/src/resources/core/jobs.ts +8 -3
- package/src/resources/messaging/blocks.ts +4 -3
- package/src/resources/messaging/conversations/conversations.ts +24 -9
- package/src/resources/messaging/conversations/links.ts +16 -6
- package/src/resources/messaging/conversations/messages.ts +16 -6
- package/src/resources/messaging/notifications/notifications.ts +16 -6
- package/src/resources/operations/index.ts +4 -0
- package/src/resources/operations/machine-downtime-events.ts +62 -7
- package/src/resources/operations/operations.ts +8 -0
- package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +13 -12
- package/src/resources/operations/production-schedules/actions.ts +37 -1
- package/src/resources/operations/production-schedules/index.ts +4 -0
- package/src/resources/operations/production-schedules/production-schedules.ts +354 -1
- package/src/resources/operations/shipping-terms.ts +9 -9
- package/src/resources/sales/account-groups.ts +2 -1
- package/src/resources/sales/account-prices/account-prices.ts +5 -4
- package/src/resources/sales/account-users/sales-targets.ts +2 -2
- package/src/resources/sales/customers/customers.ts +62 -19
- package/src/resources/sales/customers/index.ts +1 -0
- package/src/resources/sales/index.ts +1 -0
- package/src/resources/sales/sales-orders/actions.ts +15 -1
- package/src/resources/sales/sales-orders/lines/lines.ts +5 -5
- package/src/resources/sales/sales-orders/sales-orders.ts +11 -5
- package/src/resources/sales/sales.ts +2 -0
- 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
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as CoreAPI from "../../core/core.js";
|
|
3
3
|
import * as APIKeysAPI from "../../auth/api-keys/api-keys.js";
|
|
4
|
+
import * as ActionsAPI from "./actions.js";
|
|
5
|
+
import { ActionBulkReconcileParams, Actions, BulkReconcileItemInput, BulkReconcileItemsRequest, BulkReconcileItemsResponse, ListReconcileErrorResult, ListReconciledItemResult, ListSkippedItemResult, ReconcileErrorResult, ReconciledItemResult, SkippedItemResult } from "./actions.js";
|
|
4
6
|
import * as AttributesAPI from "./attributes.js";
|
|
5
7
|
import { AttributeDeleteParams, AttributeUpdateParams, Attributes } from "./attributes.js";
|
|
8
|
+
import * as InventoryAPI from "./inventory.js";
|
|
9
|
+
import { ComputedQuantity, Inventory, InventoryListParams, InventoryUpdateParams, InventoryUpdateResponse, ItemInventory, QuantityInput, UpdateItemInventoryRequest } from "./inventory.js";
|
|
6
10
|
import * as PropertiesAPI from "../properties/properties.js";
|
|
7
11
|
import * as UnitGroupsAPI from "../unit-groups/unit-groups.js";
|
|
8
12
|
import * as UnitsAPI from "../units/units.js";
|
|
@@ -12,7 +16,9 @@ import { RequestOptions } from "../../../internal/request-options.js";
|
|
|
12
16
|
* List and manage inventory items.
|
|
13
17
|
*/
|
|
14
18
|
export declare class Items extends APIResource {
|
|
19
|
+
inventory: InventoryAPI.Inventory;
|
|
15
20
|
attributes: AttributesAPI.Attributes;
|
|
21
|
+
actions: ActionsAPI.Actions;
|
|
16
22
|
/**
|
|
17
23
|
* Returns a paginated list of items, newest first.
|
|
18
24
|
*
|
|
@@ -42,25 +48,6 @@ export declare class Items extends APIResource {
|
|
|
42
48
|
* ```
|
|
43
49
|
*/
|
|
44
50
|
retrieve(id: string, query?: ItemRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Item>;
|
|
45
|
-
/**
|
|
46
|
-
* Returns the stock position for an item: what is on hand, what is reserved
|
|
47
|
-
* against existing orders, what is free to promise, and what is short.
|
|
48
|
-
*
|
|
49
|
-
* Stock your account either owns or holds counts toward the on-hand figure, so
|
|
50
|
-
* customer-supplied material sitting in your facility is included. All four
|
|
51
|
-
* quantities are reported in the base unit of the item's category.
|
|
52
|
-
*
|
|
53
|
-
* This endpoint requires the permission: `items:read`.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* const itemInventory =
|
|
58
|
-
* await client.catalog.items.retrieveInventory(
|
|
59
|
-
* 'it_pej07ckhvu62',
|
|
60
|
-
* );
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
retrieveInventory(id: string, query?: ItemRetrieveInventoryParams | null | undefined, options?: RequestOptions): APIPromise<ItemInventory>;
|
|
64
51
|
/**
|
|
65
52
|
* Returns the lot this item is made in — how many, counted in what.
|
|
66
53
|
*
|
|
@@ -237,51 +224,6 @@ export interface ItemCategory {
|
|
|
237
224
|
*/
|
|
238
225
|
updated_at: string;
|
|
239
226
|
}
|
|
240
|
-
/**
|
|
241
|
-
* The stock position for an item: what is in stock, what is already committed, and
|
|
242
|
-
* what is still free to sell.
|
|
243
|
-
*
|
|
244
|
-
* All four quantities are reported in the same unit — the base unit of the item's
|
|
245
|
-
* category.
|
|
246
|
-
*/
|
|
247
|
-
export interface ItemInventory {
|
|
248
|
-
/**
|
|
249
|
-
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
250
|
-
*
|
|
251
|
-
* Quantities are shared building blocks rather than standalone records — other
|
|
252
|
-
* resources point at them to report stock levels, ordered and packed amounts,
|
|
253
|
-
* money, weights, and durations.
|
|
254
|
-
*/
|
|
255
|
-
available_to_promise: Quantity | null;
|
|
256
|
-
/**
|
|
257
|
-
* Resource type identifier.
|
|
258
|
-
*/
|
|
259
|
-
object: 'item_inventory';
|
|
260
|
-
/**
|
|
261
|
-
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
262
|
-
*
|
|
263
|
-
* Quantities are shared building blocks rather than standalone records — other
|
|
264
|
-
* resources point at them to report stock levels, ordered and packed amounts,
|
|
265
|
-
* money, weights, and durations.
|
|
266
|
-
*/
|
|
267
|
-
on_hand: Quantity | null;
|
|
268
|
-
/**
|
|
269
|
-
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
270
|
-
*
|
|
271
|
-
* Quantities are shared building blocks rather than standalone records — other
|
|
272
|
-
* resources point at them to report stock levels, ordered and packed amounts,
|
|
273
|
-
* money, weights, and durations.
|
|
274
|
-
*/
|
|
275
|
-
reserved: Quantity | null;
|
|
276
|
-
/**
|
|
277
|
-
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
278
|
-
*
|
|
279
|
-
* Quantities are shared building blocks rather than standalone records — other
|
|
280
|
-
* resources point at them to report stock levels, ordered and packed amounts,
|
|
281
|
-
* money, weights, and durations.
|
|
282
|
-
*/
|
|
283
|
-
short: Quantity | null;
|
|
284
|
-
}
|
|
285
227
|
/**
|
|
286
228
|
* The lot an item is made in — how many, counted in what.
|
|
287
229
|
*
|
|
@@ -350,38 +292,6 @@ export interface ListItem {
|
|
|
350
292
|
*/
|
|
351
293
|
page_info: APIKeysAPI.PageInfo;
|
|
352
294
|
}
|
|
353
|
-
/**
|
|
354
|
-
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
355
|
-
*
|
|
356
|
-
* Quantities are shared building blocks rather than standalone records — other
|
|
357
|
-
* resources point at them to report stock levels, ordered and packed amounts,
|
|
358
|
-
* money, weights, and durations.
|
|
359
|
-
*/
|
|
360
|
-
export interface Quantity {
|
|
361
|
-
/**
|
|
362
|
-
* Quantity ID.
|
|
363
|
-
*/
|
|
364
|
-
id: string;
|
|
365
|
-
/**
|
|
366
|
-
* Formatted value with unit abbreviation (e.g. "$1,234.56" or "100 kg").
|
|
367
|
-
*/
|
|
368
|
-
display_value: string;
|
|
369
|
-
/**
|
|
370
|
-
* Resource type identifier.
|
|
371
|
-
*/
|
|
372
|
-
object: 'quantity';
|
|
373
|
-
/**
|
|
374
|
-
* Unit of measurement used for conversions and product quantities.
|
|
375
|
-
*/
|
|
376
|
-
unit: UnitsAPI.Unit | null;
|
|
377
|
-
/**
|
|
378
|
-
* Raw decimal value of the quantity, as a string to preserve precision.
|
|
379
|
-
*
|
|
380
|
-
* This is the unformatted machine value; see `display_value` for the
|
|
381
|
-
* human-readable rendering with unit and thousands separators.
|
|
382
|
-
*/
|
|
383
|
-
value: string;
|
|
384
|
-
}
|
|
385
295
|
/**
|
|
386
296
|
* Value expressed as a ratio of two units, such as a price per kilogram or a
|
|
387
297
|
* throughput per hour.
|
|
@@ -501,13 +411,6 @@ export interface ItemRetrieveParams {
|
|
|
501
411
|
*/
|
|
502
412
|
include?: Array<'category' | 'unit_value' | 'unit_cost' | 'burn_rate' | 'attributes' | 'category.unit_group' | 'category.properties' | 'category.unit_group.base_unit' | 'category.unit_group.associated_units' | 'category.unit_group.associated_units.unit'>;
|
|
503
413
|
}
|
|
504
|
-
export interface ItemRetrieveInventoryParams {
|
|
505
|
-
/**
|
|
506
|
-
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
507
|
-
* `null`.
|
|
508
|
-
*/
|
|
509
|
-
include?: Array<'on_hand' | 'reserved' | 'available_to_promise' | 'short'>;
|
|
510
|
-
}
|
|
511
414
|
export interface ItemRetrieveLotDefaultParams {
|
|
512
415
|
/**
|
|
513
416
|
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
@@ -527,7 +430,9 @@ export interface ItemChangeCategoryParams {
|
|
|
527
430
|
include?: Array<'category' | 'unit_value' | 'unit_cost' | 'burn_rate' | 'attributes' | 'category.unit_group' | 'category.properties' | 'category.unit_group.base_unit' | 'category.unit_group.associated_units' | 'category.unit_group.associated_units.unit'>;
|
|
528
431
|
}
|
|
529
432
|
export declare namespace Items {
|
|
530
|
-
export { type Item as Item, type ItemCategory as ItemCategory, type
|
|
433
|
+
export { type Item as Item, type ItemCategory as ItemCategory, type ItemLotDefault as ItemLotDefault, type ListItem as ListItem, type Rate as Rate, type ItemListParams as ItemListParams, type ItemRetrieveParams as ItemRetrieveParams, type ItemRetrieveLotDefaultParams as ItemRetrieveLotDefaultParams, type ItemChangeCategoryParams as ItemChangeCategoryParams, };
|
|
434
|
+
export { Inventory as Inventory, type ComputedQuantity as ComputedQuantity, type ItemInventory as ItemInventory, type QuantityInput as QuantityInput, type UpdateItemInventoryRequest as UpdateItemInventoryRequest, type InventoryUpdateResponse as InventoryUpdateResponse, type InventoryListParams as InventoryListParams, type InventoryUpdateParams as InventoryUpdateParams, };
|
|
531
435
|
export { Attributes as Attributes, type AttributeUpdateParams as AttributeUpdateParams, type AttributeDeleteParams as AttributeDeleteParams, };
|
|
436
|
+
export { Actions as Actions, type BulkReconcileItemInput as BulkReconcileItemInput, type BulkReconcileItemsRequest as BulkReconcileItemsRequest, type BulkReconcileItemsResponse as BulkReconcileItemsResponse, type ListReconcileErrorResult as ListReconcileErrorResult, type ListReconciledItemResult as ListReconciledItemResult, type ListSkippedItemResult as ListSkippedItemResult, type ReconcileErrorResult as ReconcileErrorResult, type ReconciledItemResult as ReconciledItemResult, type SkippedItemResult as SkippedItemResult, type ActionBulkReconcileParams as ActionBulkReconcileParams, };
|
|
532
437
|
}
|
|
533
438
|
//# sourceMappingURL=items.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/resources/catalog/items/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,UAAU;OACf,KAAK,aAAa;OAClB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,UAAU,EAAE;OAC5D,KAAK,aAAa;OAClB,KAAK,aAAa;OAClB,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;
|
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/resources/catalog/items/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,UAAU;OACf,KAAK,UAAU;OACf,EACL,yBAAyB,EACzB,OAAO,EACP,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EAClB;OACM,KAAK,aAAa;OAClB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,UAAU,EAAE;OAC5D,KAAK,YAAY;OACjB,EACL,gBAAgB,EAChB,SAAS,EACT,mBAAmB,EACnB,q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4
|
exports.Items = void 0;
|
|
5
5
|
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const ActionsAPI = tslib_1.__importStar(require("./actions.js"));
|
|
8
|
+
const actions_1 = require("./actions.js");
|
|
7
9
|
const AttributesAPI = tslib_1.__importStar(require("./attributes.js"));
|
|
8
10
|
const attributes_1 = require("./attributes.js");
|
|
11
|
+
const InventoryAPI = tslib_1.__importStar(require("./inventory.js"));
|
|
12
|
+
const inventory_1 = require("./inventory.js");
|
|
9
13
|
const path_1 = require("../../../internal/utils/path.js");
|
|
10
14
|
/**
|
|
11
15
|
* List and manage inventory items.
|
|
@@ -13,7 +17,9 @@ const path_1 = require("../../../internal/utils/path.js");
|
|
|
13
17
|
class Items extends resource_1.APIResource {
|
|
14
18
|
constructor() {
|
|
15
19
|
super(...arguments);
|
|
20
|
+
this.inventory = new InventoryAPI.Inventory(this._client);
|
|
16
21
|
this.attributes = new AttributesAPI.Attributes(this._client);
|
|
22
|
+
this.actions = new ActionsAPI.Actions(this._client);
|
|
17
23
|
}
|
|
18
24
|
/**
|
|
19
25
|
* Returns a paginated list of items, newest first.
|
|
@@ -48,27 +54,6 @@ class Items extends resource_1.APIResource {
|
|
|
48
54
|
retrieve(id, query = {}, options) {
|
|
49
55
|
return this._client.get((0, path_1.path) `/v1/catalog/items/${id}`, { query, ...options });
|
|
50
56
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Returns the stock position for an item: what is on hand, what is reserved
|
|
53
|
-
* against existing orders, what is free to promise, and what is short.
|
|
54
|
-
*
|
|
55
|
-
* Stock your account either owns or holds counts toward the on-hand figure, so
|
|
56
|
-
* customer-supplied material sitting in your facility is included. All four
|
|
57
|
-
* quantities are reported in the base unit of the item's category.
|
|
58
|
-
*
|
|
59
|
-
* This endpoint requires the permission: `items:read`.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```ts
|
|
63
|
-
* const itemInventory =
|
|
64
|
-
* await client.catalog.items.retrieveInventory(
|
|
65
|
-
* 'it_pej07ckhvu62',
|
|
66
|
-
* );
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
retrieveInventory(id, query = {}, options) {
|
|
70
|
-
return this._client.get((0, path_1.path) `/v1/catalog/items/${id}/inventory`, { query, ...options });
|
|
71
|
-
}
|
|
72
57
|
/**
|
|
73
58
|
* Returns the lot this item is made in — how many, counted in what.
|
|
74
59
|
*
|
|
@@ -128,5 +113,7 @@ class Items extends resource_1.APIResource {
|
|
|
128
113
|
}
|
|
129
114
|
}
|
|
130
115
|
exports.Items = Items;
|
|
116
|
+
Items.Inventory = inventory_1.Inventory;
|
|
131
117
|
Items.Attributes = attributes_1.Attributes;
|
|
118
|
+
Items.Actions = actions_1.Actions;
|
|
132
119
|
//# sourceMappingURL=items.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/resources/catalog/items/items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,uEAA8C;AAC9C,gDAAwF;
|
|
1
|
+
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/resources/catalog/items/items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,iEAAwC;AACxC,0CAYmB;AACnB,uEAA8C;AAC9C,gDAAwF;AACxF,qEAA4C;AAC5C,8CASqB;AAMrB,0DAAoD;AAEpD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2GrE,CAAC;IAzGC;;;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TING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as ActionsAPI from "./actions.mjs";
|
|
4
|
+
import { Actions, } from "./actions.mjs";
|
|
3
5
|
import * as AttributesAPI from "./attributes.mjs";
|
|
4
6
|
import { Attributes } from "./attributes.mjs";
|
|
7
|
+
import * as InventoryAPI from "./inventory.mjs";
|
|
8
|
+
import { Inventory, } from "./inventory.mjs";
|
|
5
9
|
import { path } from "../../../internal/utils/path.mjs";
|
|
6
10
|
/**
|
|
7
11
|
* List and manage inventory items.
|
|
@@ -9,7 +13,9 @@ import { path } from "../../../internal/utils/path.mjs";
|
|
|
9
13
|
export class Items extends APIResource {
|
|
10
14
|
constructor() {
|
|
11
15
|
super(...arguments);
|
|
16
|
+
this.inventory = new InventoryAPI.Inventory(this._client);
|
|
12
17
|
this.attributes = new AttributesAPI.Attributes(this._client);
|
|
18
|
+
this.actions = new ActionsAPI.Actions(this._client);
|
|
13
19
|
}
|
|
14
20
|
/**
|
|
15
21
|
* Returns a paginated list of items, newest first.
|
|
@@ -44,27 +50,6 @@ export class Items extends APIResource {
|
|
|
44
50
|
retrieve(id, query = {}, options) {
|
|
45
51
|
return this._client.get(path `/v1/catalog/items/${id}`, { query, ...options });
|
|
46
52
|
}
|
|
47
|
-
/**
|
|
48
|
-
* Returns the stock position for an item: what is on hand, what is reserved
|
|
49
|
-
* against existing orders, what is free to promise, and what is short.
|
|
50
|
-
*
|
|
51
|
-
* Stock your account either owns or holds counts toward the on-hand figure, so
|
|
52
|
-
* customer-supplied material sitting in your facility is included. All four
|
|
53
|
-
* quantities are reported in the base unit of the item's category.
|
|
54
|
-
*
|
|
55
|
-
* This endpoint requires the permission: `items:read`.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const itemInventory =
|
|
60
|
-
* await client.catalog.items.retrieveInventory(
|
|
61
|
-
* 'it_pej07ckhvu62',
|
|
62
|
-
* );
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
retrieveInventory(id, query = {}, options) {
|
|
66
|
-
return this._client.get(path `/v1/catalog/items/${id}/inventory`, { query, ...options });
|
|
67
|
-
}
|
|
68
53
|
/**
|
|
69
54
|
* Returns the lot this item is made in — how many, counted in what.
|
|
70
55
|
*
|
|
@@ -123,5 +108,7 @@ export class Items extends APIResource {
|
|
|
123
108
|
});
|
|
124
109
|
}
|
|
125
110
|
}
|
|
111
|
+
Items.Inventory = Inventory;
|
|
126
112
|
Items.Attributes = Attributes;
|
|
113
|
+
Items.Actions = Actions;
|
|
127
114
|
//# sourceMappingURL=items.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.mjs","sourceRoot":"","sources":["../../../src/resources/catalog/items/items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,aAAa;OAClB,EAAgD,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"items.mjs","sourceRoot":"","sources":["../../../src/resources/catalog/items/items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,UAAU;OACf,EAEL,OAAO,GAUR;OACM,KAAK,aAAa;OAClB,EAAgD,UAAU,EAAE;OAC5D,KAAK,YAAY;OACjB,EAEL,SAAS,GAOV;OAMM,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2GrE,CAAC;IAzGC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,QAA2C,EAAE,EAAE,OAAwB;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,kBAAkB,CAChB,EAAU,EACV,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,cAAc,CACZ,UAAkB,EAClB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,aAAa,UAAU,EAAE,EAAE;YAC5E,KAAK,EAAE,EAAE,OAAO,EAAE;YAClB,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAuaD,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;AAC5B,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC;AAC9B,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Actions, type BulkUpsertMaterialsRequest, type UpsertMaterialInput, type UpsertMaterialProperty, type ActionBulkUpsertParams, } from "./actions.mjs";
|
|
2
|
-
export { Materials, type CreateMaterialRequest, type ListMaterial, type Material, type QuantityInputRequest, type RateInput, type UpdateMaterialRequest, type MaterialListParams, type MaterialRetrieveParams, type MaterialCreateParams, type MaterialUpdateParams, } from "./materials.mjs";
|
|
2
|
+
export { Materials, type CreateMaterialRequest, type ListMaterial, type Material, type Quantity, type QuantityInputRequest, type RateInput, type UpdateMaterialRequest, type MaterialListParams, type MaterialRetrieveParams, type MaterialCreateParams, type MaterialUpdateParams, } from "./materials.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/catalog/materials/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/catalog/materials/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Actions, type BulkUpsertMaterialsRequest, type UpsertMaterialInput, type UpsertMaterialProperty, type ActionBulkUpsertParams, } from "./actions.js";
|
|
2
|
-
export { Materials, type CreateMaterialRequest, type ListMaterial, type Material, type QuantityInputRequest, type RateInput, type UpdateMaterialRequest, type MaterialListParams, type MaterialRetrieveParams, type MaterialCreateParams, type MaterialUpdateParams, } from "./materials.js";
|
|
2
|
+
export { Materials, type CreateMaterialRequest, type ListMaterial, type Material, type Quantity, type QuantityInputRequest, type RateInput, type UpdateMaterialRequest, type MaterialListParams, type MaterialRetrieveParams, type MaterialCreateParams, type MaterialUpdateParams, } from "./materials.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/catalog/materials/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/catalog/materials/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/catalog/materials/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/catalog/materials/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,4CAaqB;AAZnB,sGAAA,SAAS,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/catalog/materials/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAKR;OACM,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/catalog/materials/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAKR;OACM,EACL,SAAS,GAYV"}
|
|
@@ -3,6 +3,7 @@ import * as APIKeysAPI from "../../auth/api-keys/api-keys.mjs";
|
|
|
3
3
|
import * as ItemsAPI from "../items/items.mjs";
|
|
4
4
|
import * as ActionsAPI from "./actions.mjs";
|
|
5
5
|
import { ActionBulkUpsertParams, Actions, BulkUpsertMaterialsRequest, UpsertMaterialInput, UpsertMaterialProperty } from "./actions.mjs";
|
|
6
|
+
import * as UnitsAPI from "../units/units.mjs";
|
|
6
7
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
7
8
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
8
9
|
/**
|
|
@@ -247,7 +248,7 @@ export interface Material {
|
|
|
247
248
|
* resources point at them to report stock levels, ordered and packed amounts,
|
|
248
249
|
* money, weights, and durations.
|
|
249
250
|
*/
|
|
250
|
-
lead_time:
|
|
251
|
+
lead_time: Quantity | null;
|
|
251
252
|
/**
|
|
252
253
|
* Resource type identifier.
|
|
253
254
|
*/
|
|
@@ -259,12 +260,44 @@ export interface Material {
|
|
|
259
260
|
* resources point at them to report stock levels, ordered and packed amounts,
|
|
260
261
|
* money, weights, and durations.
|
|
261
262
|
*/
|
|
262
|
-
order_point:
|
|
263
|
+
order_point: Quantity | null;
|
|
263
264
|
/**
|
|
264
265
|
* Last updated timestamp.
|
|
265
266
|
*/
|
|
266
267
|
updated_at: string;
|
|
267
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
271
|
+
*
|
|
272
|
+
* Quantities are shared building blocks rather than standalone records — other
|
|
273
|
+
* resources point at them to report stock levels, ordered and packed amounts,
|
|
274
|
+
* money, weights, and durations.
|
|
275
|
+
*/
|
|
276
|
+
export interface Quantity {
|
|
277
|
+
/**
|
|
278
|
+
* Quantity ID.
|
|
279
|
+
*/
|
|
280
|
+
id: string;
|
|
281
|
+
/**
|
|
282
|
+
* Formatted value with unit abbreviation (e.g. "$1,234.56" or "100 kg").
|
|
283
|
+
*/
|
|
284
|
+
display_value: string;
|
|
285
|
+
/**
|
|
286
|
+
* Resource type identifier.
|
|
287
|
+
*/
|
|
288
|
+
object: 'quantity';
|
|
289
|
+
/**
|
|
290
|
+
* Unit of measurement used for conversions and product quantities.
|
|
291
|
+
*/
|
|
292
|
+
unit: UnitsAPI.Unit | null;
|
|
293
|
+
/**
|
|
294
|
+
* Raw decimal value of the quantity, as a string to preserve precision.
|
|
295
|
+
*
|
|
296
|
+
* This is the unformatted machine value; see `display_value` for the
|
|
297
|
+
* human-readable rendering with unit and thousands separators.
|
|
298
|
+
*/
|
|
299
|
+
value: string;
|
|
300
|
+
}
|
|
268
301
|
/**
|
|
269
302
|
* A quantity, given as a decimal value and the unit it is measured in.
|
|
270
303
|
*/
|
|
@@ -483,7 +516,7 @@ export interface MaterialUpdateParams {
|
|
|
483
516
|
unit_cost?: RateInput;
|
|
484
517
|
}
|
|
485
518
|
export declare namespace Materials {
|
|
486
|
-
export { type CreateMaterialRequest as CreateMaterialRequest, type ListMaterial as ListMaterial, type Material as Material, type QuantityInputRequest as QuantityInputRequest, type RateInput as RateInput, type UpdateMaterialRequest as UpdateMaterialRequest, type MaterialListParams as MaterialListParams, type MaterialRetrieveParams as MaterialRetrieveParams, type MaterialCreateParams as MaterialCreateParams, type MaterialUpdateParams as MaterialUpdateParams, };
|
|
519
|
+
export { type CreateMaterialRequest as CreateMaterialRequest, type ListMaterial as ListMaterial, type Material as Material, type Quantity as Quantity, type QuantityInputRequest as QuantityInputRequest, type RateInput as RateInput, type UpdateMaterialRequest as UpdateMaterialRequest, type MaterialListParams as MaterialListParams, type MaterialRetrieveParams as MaterialRetrieveParams, type MaterialCreateParams as MaterialCreateParams, type MaterialUpdateParams as MaterialUpdateParams, };
|
|
487
520
|
export { Actions as Actions, type BulkUpsertMaterialsRequest as BulkUpsertMaterialsRequest, type UpsertMaterialInput as UpsertMaterialInput, type UpsertMaterialProperty as UpsertMaterialProperty, type ActionBulkUpsertParams as ActionBulkUpsertParams, };
|
|
488
521
|
}
|
|
489
522
|
//# sourceMappingURL=materials.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"materials.d.mts","sourceRoot":"","sources":["../../../src/resources/catalog/materials/materials.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,QAAQ;OACb,KAAK,UAAU;OACf,EACL,sBAAsB,EACtB,OAAO,EACP,0BAA0B,EAC1B,mBAAmB,EACnB,sBAAsB,EACvB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,kB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G;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAEtB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;;;OAQG;IACH,SAAS,EAAE,UAAU,CAAC,QAAQ,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAE3B;;;;;;OAMG;IACH,SAAS,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"materials.d.mts","sourceRoot":"","sources":["../../../src/resources/catalog/materials/materials.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,QAAQ;OACb,KAAK,UAAU;OACf,EACL,sBAAsB,EACtB,OAAO,EACP,0BAA0B,EAC1B,mBAAmB,EACnB,sBAAsB,EACvB;OACM,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;IAI3B;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,QAAQ,CAAC;IAIvB;;;;;;;;;;;;;;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CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -3,6 +3,7 @@ import * as APIKeysAPI from "../../auth/api-keys/api-keys.js";
|
|
|
3
3
|
import * as ItemsAPI from "../items/items.js";
|
|
4
4
|
import * as ActionsAPI from "./actions.js";
|
|
5
5
|
import { ActionBulkUpsertParams, Actions, BulkUpsertMaterialsRequest, UpsertMaterialInput, UpsertMaterialProperty } from "./actions.js";
|
|
6
|
+
import * as UnitsAPI from "../units/units.js";
|
|
6
7
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
7
8
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
8
9
|
/**
|
|
@@ -247,7 +248,7 @@ export interface Material {
|
|
|
247
248
|
* resources point at them to report stock levels, ordered and packed amounts,
|
|
248
249
|
* money, weights, and durations.
|
|
249
250
|
*/
|
|
250
|
-
lead_time:
|
|
251
|
+
lead_time: Quantity | null;
|
|
251
252
|
/**
|
|
252
253
|
* Resource type identifier.
|
|
253
254
|
*/
|
|
@@ -259,12 +260,44 @@ export interface Material {
|
|
|
259
260
|
* resources point at them to report stock levels, ordered and packed amounts,
|
|
260
261
|
* money, weights, and durations.
|
|
261
262
|
*/
|
|
262
|
-
order_point:
|
|
263
|
+
order_point: Quantity | null;
|
|
263
264
|
/**
|
|
264
265
|
* Last updated timestamp.
|
|
265
266
|
*/
|
|
266
267
|
updated_at: string;
|
|
267
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
271
|
+
*
|
|
272
|
+
* Quantities are shared building blocks rather than standalone records — other
|
|
273
|
+
* resources point at them to report stock levels, ordered and packed amounts,
|
|
274
|
+
* money, weights, and durations.
|
|
275
|
+
*/
|
|
276
|
+
export interface Quantity {
|
|
277
|
+
/**
|
|
278
|
+
* Quantity ID.
|
|
279
|
+
*/
|
|
280
|
+
id: string;
|
|
281
|
+
/**
|
|
282
|
+
* Formatted value with unit abbreviation (e.g. "$1,234.56" or "100 kg").
|
|
283
|
+
*/
|
|
284
|
+
display_value: string;
|
|
285
|
+
/**
|
|
286
|
+
* Resource type identifier.
|
|
287
|
+
*/
|
|
288
|
+
object: 'quantity';
|
|
289
|
+
/**
|
|
290
|
+
* Unit of measurement used for conversions and product quantities.
|
|
291
|
+
*/
|
|
292
|
+
unit: UnitsAPI.Unit | null;
|
|
293
|
+
/**
|
|
294
|
+
* Raw decimal value of the quantity, as a string to preserve precision.
|
|
295
|
+
*
|
|
296
|
+
* This is the unformatted machine value; see `display_value` for the
|
|
297
|
+
* human-readable rendering with unit and thousands separators.
|
|
298
|
+
*/
|
|
299
|
+
value: string;
|
|
300
|
+
}
|
|
268
301
|
/**
|
|
269
302
|
* A quantity, given as a decimal value and the unit it is measured in.
|
|
270
303
|
*/
|
|
@@ -483,7 +516,7 @@ export interface MaterialUpdateParams {
|
|
|
483
516
|
unit_cost?: RateInput;
|
|
484
517
|
}
|
|
485
518
|
export declare namespace Materials {
|
|
486
|
-
export { type CreateMaterialRequest as CreateMaterialRequest, type ListMaterial as ListMaterial, type Material as Material, type QuantityInputRequest as QuantityInputRequest, type RateInput as RateInput, type UpdateMaterialRequest as UpdateMaterialRequest, type MaterialListParams as MaterialListParams, type MaterialRetrieveParams as MaterialRetrieveParams, type MaterialCreateParams as MaterialCreateParams, type MaterialUpdateParams as MaterialUpdateParams, };
|
|
519
|
+
export { type CreateMaterialRequest as CreateMaterialRequest, type ListMaterial as ListMaterial, type Material as Material, type Quantity as Quantity, type QuantityInputRequest as QuantityInputRequest, type RateInput as RateInput, type UpdateMaterialRequest as UpdateMaterialRequest, type MaterialListParams as MaterialListParams, type MaterialRetrieveParams as MaterialRetrieveParams, type MaterialCreateParams as MaterialCreateParams, type MaterialUpdateParams as MaterialUpdateParams, };
|
|
487
520
|
export { Actions as Actions, type BulkUpsertMaterialsRequest as BulkUpsertMaterialsRequest, type UpsertMaterialInput as UpsertMaterialInput, type UpsertMaterialProperty as UpsertMaterialProperty, type ActionBulkUpsertParams as ActionBulkUpsertParams, };
|
|
488
521
|
}
|
|
489
522
|
//# sourceMappingURL=materials.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"materials.d.ts","sourceRoot":"","sources":["../../../src/resources/catalog/materials/materials.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,QAAQ;OACb,KAAK,UAAU;OACf,EACL,sBAAsB,EACtB,OAAO,EACP,0BAA0B,EAC1B,mBAAmB,EACnB,sBAAsB,EACvB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;IAI3B;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,QAAQ,CAAC;IAIvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAKpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAA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OAEG;IACH,SAAS,CAAC,EAAE,oBAAoB,CAAC;IAEjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;IAEnC;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAID,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"materials.js","sourceRoot":"","sources":["../../../src/resources/catalog/materials/materials.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,iEAAwC;AACxC,0CAMmB;
|
|
1
|
+
{"version":3,"file":"materials.js","sourceRoot":"","sources":["../../../src/resources/catalog/materials/materials.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,iEAAwC;AACxC,0CAMmB;AAInB,0DAAoD;AAEpD;;G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AE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AA5JD,8BA4JC;AA4dD,SAAS,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"materials.mjs","sourceRoot":"","sources":["../../../src/resources/catalog/materials/materials.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,UAAU;OACf,EAEL,OAAO,GAIR;
|
|
1
|
+
{"version":3,"file":"materials.mjs","sourceRoot":"","sources":["../../../src/resources/catalog/materials/materials.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,UAAU;OACf,EAEL,OAAO,GAIR;OAIM,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2JrE,CAAC;IAzJC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,EAAU,EACV,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,MAAM,CAAC,MAA4B,EAAE,OAAwB;QAC3D,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,MAAM,CACJ,EAAU,EACV,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AA4dD,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Actions, type BulkUpsertProductLinesRequest, type UpsertProductLineInput, type ActionBulkUpsertParams, } from "./actions.mjs";
|
|
2
|
-
export { ProductLines, type CreateProductLineRequest, type ListProductLine, type ProductLine, type
|
|
2
|
+
export { ProductLines, type CreateProductLineRequest, type ListProductLine, type ProductLine, type UpdateProductLineRequest, type ProductLineDeleteResponse, type ProductLineListParams, type ProductLineRetrieveParams, type ProductLineCreateParams, type ProductLineUpdateParams, } from "./product-lines.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/catalog/product-lines/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,YAAY,EACZ,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/catalog/product-lines/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,YAAY,EACZ,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Actions, type BulkUpsertProductLinesRequest, type UpsertProductLineInput, type ActionBulkUpsertParams, } from "./actions.js";
|
|
2
|
-
export { ProductLines, type CreateProductLineRequest, type ListProductLine, type ProductLine, type
|
|
2
|
+
export { ProductLines, type CreateProductLineRequest, type ListProductLine, type ProductLine, type UpdateProductLineRequest, type ProductLineDeleteResponse, type ProductLineListParams, type ProductLineRetrieveParams, type ProductLineCreateParams, type ProductLineUpdateParams, } from "./product-lines.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/catalog/product-lines/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,YAAY,EACZ,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/catalog/product-lines/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EACL,YAAY,EACZ,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/catalog/product-lines/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/catalog/product-lines/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,oDAWyB;AAVvB,6GAAA,YAAY,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/catalog/product-lines/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAIR;OACM,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/catalog/product-lines/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAIR;OACM,EACL,YAAY,GAUb"}
|