@openmrp/sdk 0.28.0 → 0.29.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 +2 -2
- package/package.json +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 +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/sales/sales-orders/actions.d.mts +57 -1
- package/resources/sales/sales-orders/actions.d.mts.map +1 -1
- package/resources/sales/sales-orders/actions.d.ts +57 -1
- package/resources/sales/sales-orders/actions.d.ts.map +1 -1
- package/resources/sales/sales-orders/actions.js.map +1 -1
- package/resources/sales/sales-orders/actions.mjs.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 +2 -2
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +2 -2
- 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/src/resources/core/audit-events.ts +4 -0
- package/src/resources/core/core.ts +2 -0
- package/src/resources/core/jobs.ts +1 -0
- package/src/resources/messaging/conversations/conversations.ts +3 -0
- package/src/resources/messaging/conversations/links.ts +2 -0
- package/src/resources/messaging/conversations/messages.ts +2 -0
- package/src/resources/messaging/notifications/notifications.ts +2 -0
- package/src/resources/sales/sales-orders/actions.ts +67 -0
- package/src/resources/sales/sales-orders/index.ts +2 -0
- package/src/resources/sales/sales-orders/sales-orders.ts +4 -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
|
@@ -734,6 +734,7 @@ export interface CreateConversationRequest {
|
|
|
734
734
|
| 'user_photo_upload_result'
|
|
735
735
|
| 'user_photo_url'
|
|
736
736
|
| 'batch_lot'
|
|
737
|
+
| 'production_run_batch_summary'
|
|
737
738
|
| 'check_duplicate_result'
|
|
738
739
|
| 'item_costs'
|
|
739
740
|
| 'item_trends'
|
|
@@ -1642,6 +1643,7 @@ export interface ConversationCreateParams {
|
|
|
1642
1643
|
| 'user_photo_upload_result'
|
|
1643
1644
|
| 'user_photo_url'
|
|
1644
1645
|
| 'batch_lot'
|
|
1646
|
+
| 'production_run_batch_summary'
|
|
1645
1647
|
| 'check_duplicate_result'
|
|
1646
1648
|
| 'item_costs'
|
|
1647
1649
|
| 'item_trends'
|
|
@@ -2045,6 +2047,7 @@ export interface ConversationListParams {
|
|
|
2045
2047
|
| 'user_photo_upload_result'
|
|
2046
2048
|
| 'user_photo_url'
|
|
2047
2049
|
| 'batch_lot'
|
|
2050
|
+
| 'production_run_batch_summary'
|
|
2048
2051
|
| 'check_duplicate_result'
|
|
2049
2052
|
| 'item_costs'
|
|
2050
2053
|
| 'item_trends'
|
|
@@ -368,6 +368,7 @@ export interface AddConversationLinkRequest {
|
|
|
368
368
|
| 'user_photo_upload_result'
|
|
369
369
|
| 'user_photo_url'
|
|
370
370
|
| 'batch_lot'
|
|
371
|
+
| 'production_run_batch_summary'
|
|
371
372
|
| 'check_duplicate_result'
|
|
372
373
|
| 'item_costs'
|
|
373
374
|
| 'item_trends'
|
|
@@ -765,6 +766,7 @@ export interface LinkCreateParams {
|
|
|
765
766
|
| 'user_photo_upload_result'
|
|
766
767
|
| 'user_photo_url'
|
|
767
768
|
| 'batch_lot'
|
|
769
|
+
| 'production_run_batch_summary'
|
|
768
770
|
| 'check_duplicate_result'
|
|
769
771
|
| 'item_costs'
|
|
770
772
|
| 'item_trends'
|
|
@@ -519,6 +519,7 @@ export interface SendMessageRequest {
|
|
|
519
519
|
| 'user_photo_upload_result'
|
|
520
520
|
| 'user_photo_url'
|
|
521
521
|
| 'batch_lot'
|
|
522
|
+
| 'production_run_batch_summary'
|
|
522
523
|
| 'check_duplicate_result'
|
|
523
524
|
| 'item_costs'
|
|
524
525
|
| 'item_trends'
|
|
@@ -979,6 +980,7 @@ export interface MessageCreateParams {
|
|
|
979
980
|
| 'user_photo_upload_result'
|
|
980
981
|
| 'user_photo_url'
|
|
981
982
|
| 'batch_lot'
|
|
983
|
+
| 'production_run_batch_summary'
|
|
982
984
|
| 'check_duplicate_result'
|
|
983
985
|
| 'item_costs'
|
|
984
986
|
| 'item_trends'
|
|
@@ -753,6 +753,7 @@ export interface SendNotificationRequest {
|
|
|
753
753
|
| 'user_photo_upload_result'
|
|
754
754
|
| 'user_photo_url'
|
|
755
755
|
| 'batch_lot'
|
|
756
|
+
| 'production_run_batch_summary'
|
|
756
757
|
| 'check_duplicate_result'
|
|
757
758
|
| 'item_costs'
|
|
758
759
|
| 'item_trends'
|
|
@@ -1127,6 +1128,7 @@ export interface NotificationCreateParams {
|
|
|
1127
1128
|
| 'user_photo_upload_result'
|
|
1128
1129
|
| 'user_photo_url'
|
|
1129
1130
|
| 'batch_lot'
|
|
1131
|
+
| 'production_run_batch_summary'
|
|
1130
1132
|
| 'check_duplicate_result'
|
|
1131
1133
|
| 'item_costs'
|
|
1132
1134
|
| 'item_trends'
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as CoreAPI from '../../core/core';
|
|
4
5
|
import * as BlocksAPI from '../../messaging/blocks';
|
|
6
|
+
import * as APIKeysAPI from '../../auth/api-keys/api-keys';
|
|
5
7
|
import * as SalesOrdersAPI from './sales-orders';
|
|
6
8
|
import { APIPromise } from '../../../core/api-promise';
|
|
7
9
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -283,6 +285,33 @@ export interface IssueSalesOrderRequest {
|
|
|
283
285
|
notify_customer: boolean;
|
|
284
286
|
}
|
|
285
287
|
|
|
288
|
+
/**
|
|
289
|
+
* A single page of resources, together with the metadata needed to page through
|
|
290
|
+
* the rest of the result set.
|
|
291
|
+
*/
|
|
292
|
+
export interface ListProductionRunBatchSummary {
|
|
293
|
+
/**
|
|
294
|
+
* Resources in this page.
|
|
295
|
+
*/
|
|
296
|
+
data: Array<ProductionRunBatchSummary>;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Resource type identifier.
|
|
300
|
+
*/
|
|
301
|
+
object: 'list';
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* PageInfo describes where the current page sits within a paginated result set and
|
|
305
|
+
* how to move to the adjacent pages.
|
|
306
|
+
*
|
|
307
|
+
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
308
|
+
* For a top-level list endpoint the URL repeats the original request's query
|
|
309
|
+
* string with only the cursor swapped, so following it preserves the same filters,
|
|
310
|
+
* search term, and page size.
|
|
311
|
+
*/
|
|
312
|
+
page_info: APIKeysAPI.PageInfo;
|
|
313
|
+
}
|
|
314
|
+
|
|
286
315
|
/**
|
|
287
316
|
* A production run: the group of shop-floor batches that are executed together,
|
|
288
317
|
* tracked from the first batch scan through to completion.
|
|
@@ -298,6 +327,12 @@ export interface ProductionRun {
|
|
|
298
327
|
*/
|
|
299
328
|
batch_count: number;
|
|
300
329
|
|
|
330
|
+
/**
|
|
331
|
+
* A single page of resources, together with the metadata needed to page through
|
|
332
|
+
* the rest of the result set.
|
|
333
|
+
*/
|
|
334
|
+
batch_summaries: ListProductionRunBatchSummary | null;
|
|
335
|
+
|
|
301
336
|
/**
|
|
302
337
|
* Time the run finished production.
|
|
303
338
|
*
|
|
@@ -347,6 +382,36 @@ export interface ProductionRun {
|
|
|
347
382
|
updated_at: string;
|
|
348
383
|
}
|
|
349
384
|
|
|
385
|
+
/**
|
|
386
|
+
* The batches of one item, counted in one unit, that a production run holds.
|
|
387
|
+
*/
|
|
388
|
+
export interface ProductionRunBatchSummary {
|
|
389
|
+
/**
|
|
390
|
+
* Number of batches in the total.
|
|
391
|
+
*/
|
|
392
|
+
batch_count: number;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
396
|
+
*/
|
|
397
|
+
item: CoreAPI.Entity | null;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Resource type identifier.
|
|
401
|
+
*/
|
|
402
|
+
object: 'production_run_batch_summary';
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Total quantity of the batches, as a decimal string.
|
|
406
|
+
*/
|
|
407
|
+
quantity_value: string;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
411
|
+
*/
|
|
412
|
+
unit: CoreAPI.Entity | null;
|
|
413
|
+
}
|
|
414
|
+
|
|
350
415
|
/**
|
|
351
416
|
* Request to preview the ship-by date a set of commitment inputs would produce.
|
|
352
417
|
*/
|
|
@@ -553,7 +618,9 @@ export declare namespace Actions {
|
|
|
553
618
|
type BulkDeleteSalesOrdersRequest as BulkDeleteSalesOrdersRequest,
|
|
554
619
|
type CommitmentQuoteStep as CommitmentQuoteStep,
|
|
555
620
|
type IssueSalesOrderRequest as IssueSalesOrderRequest,
|
|
621
|
+
type ListProductionRunBatchSummary as ListProductionRunBatchSummary,
|
|
556
622
|
type ProductionRun as ProductionRun,
|
|
623
|
+
type ProductionRunBatchSummary as ProductionRunBatchSummary,
|
|
557
624
|
type QuoteSalesOrderCommitmentRequest as QuoteSalesOrderCommitmentRequest,
|
|
558
625
|
type QuoteSalesOrderCommitmentResponse as QuoteSalesOrderCommitmentResponse,
|
|
559
626
|
type QuoteSalesOrderFreightResponse as QuoteSalesOrderFreightResponse,
|
|
@@ -5,7 +5,9 @@ export {
|
|
|
5
5
|
type BulkDeleteSalesOrdersRequest,
|
|
6
6
|
type CommitmentQuoteStep,
|
|
7
7
|
type IssueSalesOrderRequest,
|
|
8
|
+
type ListProductionRunBatchSummary,
|
|
8
9
|
type ProductionRun,
|
|
10
|
+
type ProductionRunBatchSummary,
|
|
9
11
|
type QuoteSalesOrderCommitmentRequest,
|
|
10
12
|
type QuoteSalesOrderCommitmentResponse,
|
|
11
13
|
type QuoteSalesOrderFreightResponse,
|
|
@@ -21,7 +21,9 @@ import {
|
|
|
21
21
|
BulkDeleteSalesOrdersRequest,
|
|
22
22
|
CommitmentQuoteStep,
|
|
23
23
|
IssueSalesOrderRequest,
|
|
24
|
+
ListProductionRunBatchSummary,
|
|
24
25
|
ProductionRun,
|
|
26
|
+
ProductionRunBatchSummary,
|
|
25
27
|
QuoteSalesOrderCommitmentRequest,
|
|
26
28
|
QuoteSalesOrderCommitmentResponse,
|
|
27
29
|
QuoteSalesOrderFreightResponse,
|
|
@@ -2279,7 +2281,9 @@ export declare namespace SalesOrders {
|
|
|
2279
2281
|
type BulkDeleteSalesOrdersRequest as BulkDeleteSalesOrdersRequest,
|
|
2280
2282
|
type CommitmentQuoteStep as CommitmentQuoteStep,
|
|
2281
2283
|
type IssueSalesOrderRequest as IssueSalesOrderRequest,
|
|
2284
|
+
type ListProductionRunBatchSummary as ListProductionRunBatchSummary,
|
|
2282
2285
|
type ProductionRun as ProductionRun,
|
|
2286
|
+
type ProductionRunBatchSummary as ProductionRunBatchSummary,
|
|
2283
2287
|
type QuoteSalesOrderCommitmentRequest as QuoteSalesOrderCommitmentRequest,
|
|
2284
2288
|
type QuoteSalesOrderCommitmentResponse as QuoteSalesOrderCommitmentResponse,
|
|
2285
2289
|
type QuoteSalesOrderFreightResponse as QuoteSalesOrderFreightResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.29.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.29.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.29.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.29.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|