@openmrp/sdk 0.20.0 → 0.22.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 +11 -2
- package/README.md +1 -1
- package/client.js +1 -1
- package/client.mjs +1 -1
- package/package.json +1 -1
- package/resources/auth/api-keys/api-keys.d.mts +4 -4
- package/resources/auth/api-keys/api-keys.d.ts +4 -4
- 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 +1 -1
- package/resources/core/jobs.d.mts.map +1 -1
- package/resources/core/jobs.d.ts +1 -1
- package/resources/core/jobs.d.ts.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 +2 -0
- package/resources/operations/index.d.mts.map +1 -1
- package/resources/operations/index.d.ts +2 -0
- package/resources/operations/index.d.ts.map +1 -1
- package/resources/operations/index.js +15 -11
- package/resources/operations/index.js.map +1 -1
- package/resources/operations/index.mjs +2 -0
- package/resources/operations/index.mjs.map +1 -1
- package/resources/operations/inventory-change-logs/actions.d.mts +60 -0
- package/resources/operations/inventory-change-logs/actions.d.mts.map +1 -0
- package/resources/operations/inventory-change-logs/actions.d.ts +60 -0
- package/resources/operations/inventory-change-logs/actions.d.ts.map +1 -0
- package/resources/operations/inventory-change-logs/actions.js +30 -0
- package/resources/operations/inventory-change-logs/actions.js.map +1 -0
- package/resources/operations/inventory-change-logs/actions.mjs +26 -0
- package/resources/operations/inventory-change-logs/actions.mjs.map +1 -0
- package/resources/operations/inventory-change-logs/index.d.mts +3 -0
- package/resources/operations/inventory-change-logs/index.d.mts.map +1 -0
- package/resources/operations/inventory-change-logs/index.d.ts +3 -0
- package/resources/operations/inventory-change-logs/index.d.ts.map +1 -0
- package/resources/operations/inventory-change-logs/index.js +9 -0
- package/resources/operations/inventory-change-logs/index.js.map +1 -0
- package/resources/operations/inventory-change-logs/index.mjs +4 -0
- package/resources/operations/inventory-change-logs/index.mjs.map +1 -0
- package/resources/operations/inventory-change-logs/inventory-change-logs.d.mts +188 -0
- package/resources/operations/inventory-change-logs/inventory-change-logs.d.mts.map +1 -0
- package/resources/operations/inventory-change-logs/inventory-change-logs.d.ts +188 -0
- package/resources/operations/inventory-change-logs/inventory-change-logs.d.ts.map +1 -0
- package/resources/operations/inventory-change-logs/inventory-change-logs.js +55 -0
- package/resources/operations/inventory-change-logs/inventory-change-logs.js.map +1 -0
- package/resources/operations/inventory-change-logs/inventory-change-logs.mjs +50 -0
- package/resources/operations/inventory-change-logs/inventory-change-logs.mjs.map +1 -0
- package/resources/operations/inventory-change-logs.d.mts +2 -0
- package/resources/operations/inventory-change-logs.d.mts.map +1 -0
- package/resources/operations/inventory-change-logs.d.ts +2 -0
- package/resources/operations/inventory-change-logs.d.ts.map +1 -0
- package/resources/operations/inventory-change-logs.js +6 -0
- package/resources/operations/inventory-change-logs.js.map +1 -0
- package/resources/operations/inventory-change-logs.mjs +3 -0
- package/resources/operations/inventory-change-logs.mjs.map +1 -0
- package/resources/operations/operations.d.mts +8 -0
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +8 -0
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js +8 -0
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs +8 -0
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/operations/picks/actions.d.mts +111 -0
- package/resources/operations/picks/actions.d.mts.map +1 -0
- package/resources/operations/picks/actions.d.ts +111 -0
- package/resources/operations/picks/actions.d.ts.map +1 -0
- package/resources/operations/picks/actions.js +93 -0
- package/resources/operations/picks/actions.js.map +1 -0
- package/resources/operations/picks/actions.mjs +89 -0
- package/resources/operations/picks/actions.mjs.map +1 -0
- package/resources/operations/picks/index.d.mts +4 -0
- package/resources/operations/picks/index.d.mts.map +1 -0
- package/resources/operations/picks/index.d.ts +4 -0
- package/resources/operations/picks/index.d.ts.map +1 -0
- package/resources/operations/picks/index.js +11 -0
- package/resources/operations/picks/index.js.map +1 -0
- package/resources/operations/picks/index.mjs +5 -0
- package/resources/operations/picks/index.mjs.map +1 -0
- package/resources/operations/picks/lines/actions.d.mts +65 -0
- package/resources/operations/picks/lines/actions.d.mts.map +1 -0
- package/resources/operations/picks/lines/actions.d.ts +65 -0
- package/resources/operations/picks/lines/actions.d.ts.map +1 -0
- package/resources/operations/picks/lines/actions.js +59 -0
- package/resources/operations/picks/lines/actions.js.map +1 -0
- package/resources/operations/picks/lines/actions.mjs +55 -0
- package/resources/operations/picks/lines/actions.mjs.map +1 -0
- package/resources/operations/picks/lines/index.d.mts +3 -0
- package/resources/operations/picks/lines/index.d.mts.map +1 -0
- package/resources/operations/picks/lines/index.d.ts +3 -0
- package/resources/operations/picks/lines/index.d.ts.map +1 -0
- package/resources/operations/picks/lines/index.js +9 -0
- package/resources/operations/picks/lines/index.js.map +1 -0
- package/resources/operations/picks/lines/index.mjs +4 -0
- package/resources/operations/picks/lines/index.mjs.map +1 -0
- package/resources/operations/picks/lines/lines.d.mts +70 -0
- package/resources/operations/picks/lines/lines.d.mts.map +1 -0
- package/resources/operations/picks/lines/lines.d.ts +70 -0
- package/resources/operations/picks/lines/lines.d.ts.map +1 -0
- package/resources/operations/picks/lines/lines.js +48 -0
- package/resources/operations/picks/lines/lines.js.map +1 -0
- package/resources/operations/picks/lines/lines.mjs +43 -0
- package/resources/operations/picks/lines/lines.mjs.map +1 -0
- package/resources/operations/picks/lines.d.mts +2 -0
- package/resources/operations/picks/lines.d.mts.map +1 -0
- package/resources/operations/picks/lines.d.ts +2 -0
- package/resources/operations/picks/lines.d.ts.map +1 -0
- package/resources/operations/picks/lines.js +6 -0
- package/resources/operations/picks/lines.js.map +1 -0
- package/resources/operations/picks/lines.mjs +3 -0
- package/resources/operations/picks/lines.mjs.map +1 -0
- package/resources/operations/picks/picks.d.mts +383 -0
- package/resources/operations/picks/picks.d.mts.map +1 -0
- package/resources/operations/picks/picks.d.ts +383 -0
- package/resources/operations/picks/picks.d.ts.map +1 -0
- package/resources/operations/picks/picks.js +57 -0
- package/resources/operations/picks/picks.js.map +1 -0
- package/resources/operations/picks/picks.mjs +52 -0
- package/resources/operations/picks/picks.mjs.map +1 -0
- package/resources/operations/picks.d.mts +2 -0
- package/resources/operations/picks.d.mts.map +1 -0
- package/resources/operations/picks.d.ts +2 -0
- package/resources/operations/picks.d.ts.map +1 -0
- package/resources/operations/picks.js +6 -0
- package/resources/operations/picks.js.map +1 -0
- package/resources/operations/picks.mjs +3 -0
- package/resources/operations/picks.mjs.map +1 -0
- package/resources/sales/account-prices/account-prices.d.mts +13 -0
- package/resources/sales/account-prices/account-prices.d.mts.map +1 -1
- package/resources/sales/account-prices/account-prices.d.ts +13 -0
- 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/customers/customers.d.mts +54 -0
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +54 -0
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +2 -0
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +2 -0
- package/resources/sales/customers/customers.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 +12 -40
- package/resources/sales/sales-orders/actions.d.mts.map +1 -1
- package/resources/sales/sales-orders/actions.d.ts +12 -40
- package/resources/sales/sales-orders/actions.d.ts.map +1 -1
- package/resources/sales/sales-orders/index.d.mts +1 -1
- package/resources/sales/sales-orders/index.d.mts.map +1 -1
- package/resources/sales/sales-orders/index.d.ts +1 -1
- package/resources/sales/sales-orders/index.d.ts.map +1 -1
- package/resources/sales/sales-orders/index.js.map +1 -1
- package/resources/sales/sales-orders/index.mjs.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.mts +105 -63
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +105 -63
- 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 +1 -1
- package/src/resources/auth/api-keys/api-keys.ts +4 -4
- package/src/resources/core/audit-events.ts +16 -4
- package/src/resources/core/core.ts +8 -2
- package/src/resources/core/jobs.ts +4 -1
- package/src/resources/messaging/conversations/conversations.ts +12 -3
- package/src/resources/messaging/conversations/links.ts +8 -2
- package/src/resources/messaging/conversations/messages.ts +8 -2
- package/src/resources/messaging/notifications/notifications.ts +8 -2
- package/src/resources/operations/index.ts +19 -0
- package/src/resources/operations/inventory-change-logs/actions.ts +73 -0
- package/src/resources/operations/inventory-change-logs/index.ts +10 -0
- package/src/resources/operations/inventory-change-logs/inventory-change-logs.ts +239 -0
- package/src/resources/operations/inventory-change-logs.ts +3 -0
- package/src/resources/operations/operations.ts +47 -0
- package/src/resources/operations/picks/actions.ts +131 -0
- package/src/resources/operations/picks/index.ts +16 -0
- package/src/resources/operations/picks/lines/actions.ts +78 -0
- package/src/resources/operations/picks/lines/index.ts +4 -0
- package/src/resources/operations/picks/lines/lines.ts +100 -0
- package/src/resources/operations/picks/lines.ts +3 -0
- package/src/resources/operations/picks/picks.ts +502 -0
- package/src/resources/operations/picks.ts +3 -0
- package/src/resources/sales/account-prices/account-prices.ts +14 -0
- package/src/resources/sales/customers/customers.ts +58 -0
- package/src/resources/sales/index.ts +1 -0
- package/src/resources/sales/sales-orders/actions.ts +12 -55
- package/src/resources/sales/sales-orders/index.ts +1 -0
- package/src/resources/sales/sales-orders/sales-orders.ts +124 -79
- 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
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as APIKeysAPI from "../../auth/api-keys/api-keys.js";
|
|
3
|
+
import * as ItemsAPI from "../../catalog/items/items.js";
|
|
4
|
+
import * as MaterialsAPI from "../../catalog/materials/materials.js";
|
|
5
|
+
import * as ActionsAPI from "./actions.js";
|
|
6
|
+
import { ActionPackParams, Actions, PackPickRequest } from "./actions.js";
|
|
7
|
+
import * as AccountPricesAPI from "../../sales/account-prices/account-prices.js";
|
|
8
|
+
import * as SalesOrdersAPI from "../../sales/sales-orders/sales-orders.js";
|
|
9
|
+
import * as LinesAPI from "./lines/lines.js";
|
|
10
|
+
import { LineUpdateParams, Lines, UpdatePickLineRequest } from "./lines/lines.js";
|
|
11
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
12
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
13
|
+
/**
|
|
14
|
+
* List, view, pick, void, and pack picks and pick lines.
|
|
15
|
+
*/
|
|
16
|
+
export declare class Picks extends APIResource {
|
|
17
|
+
actions: ActionsAPI.Actions;
|
|
18
|
+
lines: LinesAPI.Lines;
|
|
19
|
+
/**
|
|
20
|
+
* Returns a paginated list of picks, soonest ship-by date first.
|
|
21
|
+
*
|
|
22
|
+
* The `q` search term matches the pick number, the sales order number, the
|
|
23
|
+
* customer PO number, and the customer's name or number.
|
|
24
|
+
*
|
|
25
|
+
* This endpoint requires the permissions: `picks:read`, `customers:read`,
|
|
26
|
+
* `suppliers:read`.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const listPick = await client.operations.picks.list();
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
list(query?: PickListParams | null | undefined, options?: RequestOptions): APIPromise<ListPick>;
|
|
34
|
+
/**
|
|
35
|
+
* Returns a pick by ID.
|
|
36
|
+
*
|
|
37
|
+
* This endpoint requires the permission: `picks:read`.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const pick = await client.operations.picks.retrieve(
|
|
42
|
+
* 'pk_6eilj488bq8d',
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
retrieve(id: string, query?: PickRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Pick>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A single page of resources, together with the metadata needed to page through
|
|
50
|
+
* the rest of the result set.
|
|
51
|
+
*/
|
|
52
|
+
export interface ListPick {
|
|
53
|
+
/**
|
|
54
|
+
* Resources in this page.
|
|
55
|
+
*/
|
|
56
|
+
data: Array<Pick>;
|
|
57
|
+
/**
|
|
58
|
+
* Resource type identifier.
|
|
59
|
+
*/
|
|
60
|
+
object: 'list';
|
|
61
|
+
/**
|
|
62
|
+
* PageInfo describes where the current page sits within a paginated result set and
|
|
63
|
+
* how to move to the adjacent pages.
|
|
64
|
+
*
|
|
65
|
+
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
66
|
+
* For a top-level list endpoint the URL repeats the original request's query
|
|
67
|
+
* string with only the cursor swapped, so following it preserves the same filters,
|
|
68
|
+
* search term, and page size.
|
|
69
|
+
*/
|
|
70
|
+
page_info: APIKeysAPI.PageInfo;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* A single page of resources, together with the metadata needed to page through
|
|
74
|
+
* the rest of the result set.
|
|
75
|
+
*/
|
|
76
|
+
export interface ListPickLine {
|
|
77
|
+
/**
|
|
78
|
+
* Resources in this page.
|
|
79
|
+
*/
|
|
80
|
+
data: Array<PickLine>;
|
|
81
|
+
/**
|
|
82
|
+
* Resource type identifier.
|
|
83
|
+
*/
|
|
84
|
+
object: 'list';
|
|
85
|
+
/**
|
|
86
|
+
* PageInfo describes where the current page sits within a paginated result set and
|
|
87
|
+
* how to move to the adjacent pages.
|
|
88
|
+
*
|
|
89
|
+
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
90
|
+
* For a top-level list endpoint the URL repeats the original request's query
|
|
91
|
+
* string with only the cursor swapped, so following it preserves the same filters,
|
|
92
|
+
* search term, and page size.
|
|
93
|
+
*/
|
|
94
|
+
page_info: APIKeysAPI.PageInfo;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* A warehouse picking task for a sales order, tracking the quantities to pull from
|
|
98
|
+
* inventory and pack for shipment.
|
|
99
|
+
*
|
|
100
|
+
* A pick is created automatically when a sales order is issued, with one line for
|
|
101
|
+
* each order line whose product is of type `sale` service, shipping, tax, credit
|
|
102
|
+
* and return lines are skipped — and nothing picked yet.
|
|
103
|
+
*/
|
|
104
|
+
export interface Pick {
|
|
105
|
+
/**
|
|
106
|
+
* Pick ID.
|
|
107
|
+
*/
|
|
108
|
+
id: string;
|
|
109
|
+
/**
|
|
110
|
+
* Commitment describes when a record is due to ship: what was asked for, what that
|
|
111
|
+
* resolved to, and which rule decided.
|
|
112
|
+
*
|
|
113
|
+
* It is a generic, reusable sub-resource shared by anything carrying a ship-by
|
|
114
|
+
* commitment — a sales order, the pick that fulfills it, or a preview of an order
|
|
115
|
+
* that does not exist yet.
|
|
116
|
+
*
|
|
117
|
+
* The three inputs are alternative answers to the same question and at most one is
|
|
118
|
+
* ever set; `lead_time_source` reports which of them, or which level of the
|
|
119
|
+
* customer chain, produced the date. They are written flat on the create and
|
|
120
|
+
* update bodies, the way a carrier is written as `carrier_id` and read back under
|
|
121
|
+
* `freight`.
|
|
122
|
+
*/
|
|
123
|
+
commitment: SalesOrdersAPI.Commitment | null;
|
|
124
|
+
/**
|
|
125
|
+
* Creation timestamp.
|
|
126
|
+
*/
|
|
127
|
+
created_at: string;
|
|
128
|
+
/**
|
|
129
|
+
* CreatedBy describes who created a resource and their relationship to the account
|
|
130
|
+
* that owns it.
|
|
131
|
+
*
|
|
132
|
+
* It is resolved from the resource's create audit event.
|
|
133
|
+
*/
|
|
134
|
+
created_by: SalesOrdersAPI.CreatedBy | null;
|
|
135
|
+
/**
|
|
136
|
+
* A business you sell to, with its contact details, default fulfillment settings,
|
|
137
|
+
* and order policies.
|
|
138
|
+
*/
|
|
139
|
+
customer: AccountPricesAPI.Customer | null;
|
|
140
|
+
/**
|
|
141
|
+
* The customer's own purchase order number for the sales order this pick fulfills.
|
|
142
|
+
*/
|
|
143
|
+
customer_purchase_order_number: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* Timestamp when the pick was finished.
|
|
146
|
+
*/
|
|
147
|
+
finished_at: string | null;
|
|
148
|
+
/**
|
|
149
|
+
* Freight describes the carrier selection and freight billing for a record.
|
|
150
|
+
*
|
|
151
|
+
* It is a generic, reusable sub-resource shared by anything that carries shipping
|
|
152
|
+
* configuration — a sales order, a purchase order, or a shipment.
|
|
153
|
+
*/
|
|
154
|
+
freight: SalesOrdersAPI.Freight | null;
|
|
155
|
+
/**
|
|
156
|
+
* Timestamp of the most recent shipment sent (null until shipped).
|
|
157
|
+
*/
|
|
158
|
+
last_shipped_at: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* Number of lines on this pick.
|
|
161
|
+
*/
|
|
162
|
+
line_count: number;
|
|
163
|
+
/**
|
|
164
|
+
* A single page of resources, together with the metadata needed to page through
|
|
165
|
+
* the rest of the result set.
|
|
166
|
+
*/
|
|
167
|
+
lines: ListPickLine | null;
|
|
168
|
+
/**
|
|
169
|
+
* Free-form note carried from the sales order this pick fulfills.
|
|
170
|
+
*/
|
|
171
|
+
note: string | null;
|
|
172
|
+
/**
|
|
173
|
+
* Human-readable number that identifies the pick, distinct from the `id`.
|
|
174
|
+
*/
|
|
175
|
+
number: string;
|
|
176
|
+
/**
|
|
177
|
+
* Resource type identifier.
|
|
178
|
+
*/
|
|
179
|
+
object: 'pick';
|
|
180
|
+
/**
|
|
181
|
+
* How urgently the pick should be worked.
|
|
182
|
+
*/
|
|
183
|
+
priority: 'low' | 'normal' | 'high';
|
|
184
|
+
/**
|
|
185
|
+
* Groups the records a pick sits between — the order it fulfills and the shipments
|
|
186
|
+
* packed from it — and is returned only once at least one member has been
|
|
187
|
+
* expanded.
|
|
188
|
+
*/
|
|
189
|
+
related: PickRelated | null;
|
|
190
|
+
/**
|
|
191
|
+
* A saved address that can be used for billing and shipping on sales orders,
|
|
192
|
+
* invoices, and shipments.
|
|
193
|
+
*/
|
|
194
|
+
ship_to: APIKeysAPI.Address | null;
|
|
195
|
+
/**
|
|
196
|
+
* Progress through each fulfillment stage of a pick.
|
|
197
|
+
*/
|
|
198
|
+
totals: PickTotals | null;
|
|
199
|
+
/**
|
|
200
|
+
* Last updated timestamp.
|
|
201
|
+
*/
|
|
202
|
+
updated_at: string;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* A single line on a pick, tracking the quantity picked against one sales order
|
|
206
|
+
* line.
|
|
207
|
+
*/
|
|
208
|
+
export interface PickLine {
|
|
209
|
+
/**
|
|
210
|
+
* Pick line ID.
|
|
211
|
+
*/
|
|
212
|
+
id: string;
|
|
213
|
+
/**
|
|
214
|
+
* Creation timestamp.
|
|
215
|
+
*/
|
|
216
|
+
created_at: string;
|
|
217
|
+
/**
|
|
218
|
+
* An entry in your catalog: something you sell, consume, or build with.
|
|
219
|
+
*/
|
|
220
|
+
item: ItemsAPI.Item | null;
|
|
221
|
+
/**
|
|
222
|
+
* Resource type identifier.
|
|
223
|
+
*/
|
|
224
|
+
object: 'pick_line';
|
|
225
|
+
/**
|
|
226
|
+
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
227
|
+
*
|
|
228
|
+
* Quantities are shared building blocks rather than standalone records — other
|
|
229
|
+
* resources point at them to report stock levels, ordered and packed amounts,
|
|
230
|
+
* money, weights, and durations.
|
|
231
|
+
*/
|
|
232
|
+
ordered_quantity: MaterialsAPI.Quantity | null;
|
|
233
|
+
/**
|
|
234
|
+
* Timestamp when the line was packed.
|
|
235
|
+
*/
|
|
236
|
+
packed_at: string | null;
|
|
237
|
+
/**
|
|
238
|
+
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
239
|
+
*
|
|
240
|
+
* Quantities are shared building blocks rather than standalone records — other
|
|
241
|
+
* resources point at them to report stock levels, ordered and packed amounts,
|
|
242
|
+
* money, weights, and durations.
|
|
243
|
+
*/
|
|
244
|
+
quantity: MaterialsAPI.Quantity | null;
|
|
245
|
+
/**
|
|
246
|
+
* A single line item on a sales order.
|
|
247
|
+
*/
|
|
248
|
+
sales_order_line: SalesOrdersAPI.SalesOrderLine | null;
|
|
249
|
+
/**
|
|
250
|
+
* Last updated timestamp.
|
|
251
|
+
*/
|
|
252
|
+
updated_at: string;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Groups the records a pick sits between — the order it fulfills and the shipments
|
|
256
|
+
* packed from it — and is returned only once at least one member has been
|
|
257
|
+
* expanded.
|
|
258
|
+
*/
|
|
259
|
+
export interface PickRelated {
|
|
260
|
+
/**
|
|
261
|
+
* Resource type identifier.
|
|
262
|
+
*/
|
|
263
|
+
object: 'pick_related';
|
|
264
|
+
/**
|
|
265
|
+
* Record is a lightweight reference to a business record — a sales order, purchase
|
|
266
|
+
* order, pick, shipment, production run, invoice, etc.
|
|
267
|
+
*
|
|
268
|
+
* Like the `actor` and `entity` references, it carries just enough to identify and
|
|
269
|
+
* label the referenced record without embedding its full resource. The `status`
|
|
270
|
+
* and `metadata` fields hold type-specific detail that varies by the kind of
|
|
271
|
+
* record referenced.
|
|
272
|
+
*/
|
|
273
|
+
sales_order: SalesOrdersAPI.Record | null;
|
|
274
|
+
/**
|
|
275
|
+
* A single page of resources, together with the metadata needed to page through
|
|
276
|
+
* the rest of the result set.
|
|
277
|
+
*/
|
|
278
|
+
shipments: SalesOrdersAPI.ListRecord | null;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* How far one fulfillment stage of a pick has progressed.
|
|
282
|
+
*/
|
|
283
|
+
export interface PickStageTotal {
|
|
284
|
+
/**
|
|
285
|
+
* Progress as a fraction between 0 and 1.
|
|
286
|
+
*/
|
|
287
|
+
completion: number;
|
|
288
|
+
/**
|
|
289
|
+
* Resource type identifier.
|
|
290
|
+
*/
|
|
291
|
+
object: 'pick_stage_total';
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Progress through each fulfillment stage of a pick.
|
|
295
|
+
*/
|
|
296
|
+
export interface PickTotals {
|
|
297
|
+
/**
|
|
298
|
+
* Resource type identifier.
|
|
299
|
+
*/
|
|
300
|
+
object: 'pick_totals';
|
|
301
|
+
/**
|
|
302
|
+
* How far one fulfillment stage of a pick has progressed.
|
|
303
|
+
*/
|
|
304
|
+
packed: PickStageTotal;
|
|
305
|
+
/**
|
|
306
|
+
* How far one fulfillment stage of a pick has progressed.
|
|
307
|
+
*/
|
|
308
|
+
picked: PickStageTotal;
|
|
309
|
+
}
|
|
310
|
+
export interface PickListParams {
|
|
311
|
+
/**
|
|
312
|
+
* Opaque cursor token identifying where the page of results starts.
|
|
313
|
+
*
|
|
314
|
+
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
315
|
+
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
316
|
+
* page.
|
|
317
|
+
*/
|
|
318
|
+
cursor?: string;
|
|
319
|
+
/**
|
|
320
|
+
* Restricts results to picks whose customer belongs to any of these account
|
|
321
|
+
* groups, matching the `type` on the customer.
|
|
322
|
+
*/
|
|
323
|
+
customer_group_ids?: Array<string>;
|
|
324
|
+
/**
|
|
325
|
+
* Restricts results to picks raised for any of these customers.
|
|
326
|
+
*/
|
|
327
|
+
customer_ids?: Array<string>;
|
|
328
|
+
/**
|
|
329
|
+
* Latest pick creation date to include, in `YYYY-MM-DD` format. Inclusive of the
|
|
330
|
+
* date itself.
|
|
331
|
+
*/
|
|
332
|
+
ends_at?: string;
|
|
333
|
+
/**
|
|
334
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
335
|
+
* `null`.
|
|
336
|
+
*/
|
|
337
|
+
include?: Array<'customer' | 'created_by' | 'freight' | 'related.sales_order' | 'related.shipments' | 'lines' | 'lines.item' | 'lines.sales_order_line' | 'lines.sales_order_line.product' | 'lines.quantity' | 'lines.quantity.unit' | 'lines.ordered_quantity' | 'lines.ordered_quantity.unit'>;
|
|
338
|
+
/**
|
|
339
|
+
* Maximum number of results to return in a single page.
|
|
340
|
+
*/
|
|
341
|
+
limit?: number;
|
|
342
|
+
/**
|
|
343
|
+
* Restricts results to picks with at least one line whose product belongs to any
|
|
344
|
+
* of these product lines.
|
|
345
|
+
*/
|
|
346
|
+
product_line_ids?: Array<string>;
|
|
347
|
+
/**
|
|
348
|
+
* Free-text search term used to filter results.
|
|
349
|
+
*
|
|
350
|
+
* Which fields are matched against the term varies by endpoint.
|
|
351
|
+
*/
|
|
352
|
+
q?: string;
|
|
353
|
+
/**
|
|
354
|
+
* Orders the results: `ship_by_date` puts the soonest delivery commitment first,
|
|
355
|
+
* with picks whose order has no ship-by date last; `created_at` puts the newest
|
|
356
|
+
* pick first.
|
|
357
|
+
*/
|
|
358
|
+
sort?: 'ship_by_date' | 'created_at';
|
|
359
|
+
/**
|
|
360
|
+
* Earliest pick creation date to include, in `YYYY-MM-DD` format.
|
|
361
|
+
*/
|
|
362
|
+
starts_at?: string;
|
|
363
|
+
/**
|
|
364
|
+
* Restricts results to picks in this state.
|
|
365
|
+
*
|
|
366
|
+
* - `open`: picks that have not been finished.
|
|
367
|
+
* - `closed`: picks that have been finished.
|
|
368
|
+
*/
|
|
369
|
+
status?: 'open' | 'closed';
|
|
370
|
+
}
|
|
371
|
+
export interface PickRetrieveParams {
|
|
372
|
+
/**
|
|
373
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
374
|
+
* `null`.
|
|
375
|
+
*/
|
|
376
|
+
include?: Array<'customer' | 'created_by' | 'freight' | 'related.sales_order' | 'related.shipments' | 'lines' | 'lines.item' | 'lines.sales_order_line' | 'lines.sales_order_line.product' | 'lines.quantity' | 'lines.quantity.unit' | 'lines.ordered_quantity' | 'lines.ordered_quantity.unit'>;
|
|
377
|
+
}
|
|
378
|
+
export declare namespace Picks {
|
|
379
|
+
export { type ListPick as ListPick, type ListPickLine as ListPickLine, type Pick as Pick, type PickLine as PickLine, type PickRelated as PickRelated, type PickStageTotal as PickStageTotal, type PickTotals as PickTotals, type PickListParams as PickListParams, type PickRetrieveParams as PickRetrieveParams, };
|
|
380
|
+
export { Actions as Actions, type PackPickRequest as PackPickRequest, type ActionPackParams as ActionPackParams, };
|
|
381
|
+
export { Lines as Lines, type UpdatePickLineRequest as UpdatePickLineRequest, type LineUpdateParams as LineUpdateParams, };
|
|
382
|
+
}
|
|
383
|
+
//# sourceMappingURL=picks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picks.d.ts","sourceRoot":"","sources":["../../../src/resources/operations/picks/picks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,QAAQ;OACb,KAAK,YAAY;OACjB,KAAK,UAAU;OACf,EAAE,gBAAgB,EAAE,OAAO,EAAE,eAAe,EAAE;OAC9C,KAAK,gBAAgB;OACrB,KAAK,cAAc;OACnB,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,KAAK,EAAE,qBAAqB,EAAE;OAClD,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAInG;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAGpB;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC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C7B,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Picks = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const ActionsAPI = tslib_1.__importStar(require("./actions.js"));
|
|
8
|
+
const actions_1 = require("./actions.js");
|
|
9
|
+
const LinesAPI = tslib_1.__importStar(require("./lines/lines.js"));
|
|
10
|
+
const lines_1 = require("./lines/lines.js");
|
|
11
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
12
|
+
/**
|
|
13
|
+
* List, view, pick, void, and pack picks and pick lines.
|
|
14
|
+
*/
|
|
15
|
+
class Picks extends resource_1.APIResource {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.actions = new ActionsAPI.Actions(this._client);
|
|
19
|
+
this.lines = new LinesAPI.Lines(this._client);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns a paginated list of picks, soonest ship-by date first.
|
|
23
|
+
*
|
|
24
|
+
* The `q` search term matches the pick number, the sales order number, the
|
|
25
|
+
* customer PO number, and the customer's name or number.
|
|
26
|
+
*
|
|
27
|
+
* This endpoint requires the permissions: `picks:read`, `customers:read`,
|
|
28
|
+
* `suppliers:read`.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const listPick = await client.operations.picks.list();
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
list(query = {}, options) {
|
|
36
|
+
return this._client.get('/v1/operations/picks', { query, ...options });
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns a pick by ID.
|
|
40
|
+
*
|
|
41
|
+
* This endpoint requires the permission: `picks:read`.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const pick = await client.operations.picks.retrieve(
|
|
46
|
+
* 'pk_6eilj488bq8d',
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
retrieve(id, query = {}, options) {
|
|
51
|
+
return this._client.get((0, path_1.path) `/v1/operations/picks/${id}`, { query, ...options });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.Picks = Picks;
|
|
55
|
+
Picks.Actions = actions_1.Actions;
|
|
56
|
+
Picks.Lines = lines_1.Lines;
|
|
57
|
+
//# sourceMappingURL=picks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picks.js","sourceRoot":"","sources":["../../../src/resources/operations/picks/picks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAIrD,iEAAwC;AACxC,0CAAuE;AAGvE,mEAA0C;AAC1C,4CAA+E;AAG/E,0DAAoD;AAEpD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuC3D,CAAC;IArCC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,QAA2C,EAAE,EAAE,OAAwB;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AAzCD,sBAyCC;AA8ZD,KAAK,CAAC,OAAO,GAAG,iBAAO,CAAC;AACxB,KAAK,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as ActionsAPI from "./actions.mjs";
|
|
4
|
+
import { Actions } from "./actions.mjs";
|
|
5
|
+
import * as LinesAPI from "./lines/lines.mjs";
|
|
6
|
+
import { Lines } from "./lines/lines.mjs";
|
|
7
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
8
|
+
/**
|
|
9
|
+
* List, view, pick, void, and pack picks and pick lines.
|
|
10
|
+
*/
|
|
11
|
+
export class Picks extends APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.actions = new ActionsAPI.Actions(this._client);
|
|
15
|
+
this.lines = new LinesAPI.Lines(this._client);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns a paginated list of picks, soonest ship-by date first.
|
|
19
|
+
*
|
|
20
|
+
* The `q` search term matches the pick number, the sales order number, the
|
|
21
|
+
* customer PO number, and the customer's name or number.
|
|
22
|
+
*
|
|
23
|
+
* This endpoint requires the permissions: `picks:read`, `customers:read`,
|
|
24
|
+
* `suppliers:read`.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const listPick = await client.operations.picks.list();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
list(query = {}, options) {
|
|
32
|
+
return this._client.get('/v1/operations/picks', { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Returns a pick by ID.
|
|
36
|
+
*
|
|
37
|
+
* This endpoint requires the permission: `picks:read`.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const pick = await client.operations.picks.retrieve(
|
|
42
|
+
* 'pk_6eilj488bq8d',
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
retrieve(id, query = {}, options) {
|
|
47
|
+
return this._client.get(path `/v1/operations/picks/${id}`, { query, ...options });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
Picks.Actions = Actions;
|
|
51
|
+
Picks.Lines = Lines;
|
|
52
|
+
//# sourceMappingURL=picks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picks.mjs","sourceRoot":"","sources":["../../../src/resources/operations/picks/picks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,KAAK,UAAU;OACf,EAAoB,OAAO,EAAmB;OAG9C,KAAK,QAAQ;OACb,EAAoB,KAAK,EAAyB;OAGlD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuC3D,CAAC;IArCC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,QAA2C,EAAE,EAAE,OAAwB;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AA8ZD,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;AACxB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picks.d.mts","sourceRoot":"","sources":["../../src/resources/operations/picks.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picks.d.ts","sourceRoot":"","sources":["../../src/resources/operations/picks.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./picks/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=picks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picks.js","sourceRoot":"","sources":["../../src/resources/operations/picks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picks.mjs","sourceRoot":"","sources":["../../src/resources/operations/picks.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -449,6 +449,19 @@ export interface CustomerContactInfo {
|
|
|
449
449
|
* not supply its own.
|
|
450
450
|
*/
|
|
451
451
|
export interface CustomerDefaults {
|
|
452
|
+
/**
|
|
453
|
+
* How this customer's orders are produced.
|
|
454
|
+
*
|
|
455
|
+
* - `make_to_stock`: their order history feeds the production-schedule forecast,
|
|
456
|
+
* so stock is built ahead of their demand.
|
|
457
|
+
* - `make_to_order`: their history is left out of the forecast; their orders are
|
|
458
|
+
* produced only once placed, and fit into the schedule on their own ship-by
|
|
459
|
+
* dates.
|
|
460
|
+
*
|
|
461
|
+
* With none set here the customer inherits its account group's policy, then falls
|
|
462
|
+
* back to make-to-stock.
|
|
463
|
+
*/
|
|
464
|
+
fulfillment_policy: 'make_to_stock' | 'make_to_order' | null;
|
|
452
465
|
/**
|
|
453
466
|
* Calendar days between an order being issued and it being due to ship.
|
|
454
467
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-prices.d.mts","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/account-prices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,gBAAgB;OACrB,KAAK,UAAU;OACf,KAAK,iBAAiB;OACtB,KAAK,QAAQ;OACb,KAAK,YAAY;OACjB,KAAK,eAAe;OACpB,KAAK,aAAa;OAClB,KAAK,UAAU;OACf,EAAE,2BAA2B,EAAE,OAAO,EAAE,sBAAsB,EAAE;OAChE,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;;;;OAeG;IACH,I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,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"account-prices.d.mts","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/account-prices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,gBAAgB;OACrB,KAAK,UAAU;OACf,KAAK,iBAAiB;OACtB,KAAK,QAAQ;OACb,KAAK,YAAY;OACjB,KAAK,eAAe;OACpB,KAAK,aAAa;OAClB,KAAK,UAAU;OACf,EAAE,2BAA2B,EAAE,OAAO,EAAE,sBAAsB,EAAE;OAChE,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;IAI3B;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,C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OAAO,IAAI,OAAO,EAClB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -449,6 +449,19 @@ export interface CustomerContactInfo {
|
|
|
449
449
|
* not supply its own.
|
|
450
450
|
*/
|
|
451
451
|
export interface CustomerDefaults {
|
|
452
|
+
/**
|
|
453
|
+
* How this customer's orders are produced.
|
|
454
|
+
*
|
|
455
|
+
* - `make_to_stock`: their order history feeds the production-schedule forecast,
|
|
456
|
+
* so stock is built ahead of their demand.
|
|
457
|
+
* - `make_to_order`: their history is left out of the forecast; their orders are
|
|
458
|
+
* produced only once placed, and fit into the schedule on their own ship-by
|
|
459
|
+
* dates.
|
|
460
|
+
*
|
|
461
|
+
* With none set here the customer inherits its account group's policy, then falls
|
|
462
|
+
* back to make-to-stock.
|
|
463
|
+
*/
|
|
464
|
+
fulfillment_policy: 'make_to_stock' | 'make_to_order' | null;
|
|
452
465
|
/**
|
|
453
466
|
* Calendar days between an order being issued and it being due to ship.
|
|
454
467
|
*
|