@openmrp/sdk 0.24.2 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/CHANGELOG.md +3 -4
  2. package/README.md +1 -1
  3. package/client.js +1 -1
  4. package/client.mjs +1 -1
  5. package/package.json +1 -1
  6. package/resources/catalog/items/actions.d.mts +34 -12
  7. package/resources/catalog/items/actions.d.mts.map +1 -1
  8. package/resources/catalog/items/actions.d.ts +34 -12
  9. package/resources/catalog/items/actions.d.ts.map +1 -1
  10. package/resources/catalog/items/actions.js.map +1 -1
  11. package/resources/catalog/items/actions.mjs.map +1 -1
  12. package/resources/catalog/units/units.d.mts +3 -1
  13. package/resources/catalog/units/units.d.mts.map +1 -1
  14. package/resources/catalog/units/units.d.ts +3 -1
  15. package/resources/catalog/units/units.d.ts.map +1 -1
  16. package/resources/catalog/units/units.js +3 -1
  17. package/resources/catalog/units/units.js.map +1 -1
  18. package/resources/catalog/units/units.mjs +3 -1
  19. package/resources/catalog/units/units.mjs.map +1 -1
  20. package/resources/core/analytics.d.mts +1 -1
  21. package/resources/core/analytics.d.ts +1 -1
  22. package/resources/core/audit-events.d.mts +8 -4
  23. package/resources/core/audit-events.d.mts.map +1 -1
  24. package/resources/core/audit-events.d.ts +8 -4
  25. package/resources/core/audit-events.d.ts.map +1 -1
  26. package/resources/core/core.d.mts +2 -2
  27. package/resources/core/core.d.mts.map +1 -1
  28. package/resources/core/core.d.ts +2 -2
  29. package/resources/core/core.d.ts.map +1 -1
  30. package/resources/core/core.js.map +1 -1
  31. package/resources/core/core.mjs.map +1 -1
  32. package/resources/core/jobs.d.mts +1 -1
  33. package/resources/core/jobs.d.mts.map +1 -1
  34. package/resources/core/jobs.d.ts +1 -1
  35. package/resources/core/jobs.d.ts.map +1 -1
  36. package/resources/core/request-logs.d.mts +3 -0
  37. package/resources/core/request-logs.d.mts.map +1 -1
  38. package/resources/core/request-logs.d.ts +3 -0
  39. package/resources/core/request-logs.d.ts.map +1 -1
  40. package/resources/messaging/conversations/conversations.d.mts +3 -3
  41. package/resources/messaging/conversations/conversations.d.mts.map +1 -1
  42. package/resources/messaging/conversations/conversations.d.ts +3 -3
  43. package/resources/messaging/conversations/conversations.d.ts.map +1 -1
  44. package/resources/messaging/conversations/conversations.js.map +1 -1
  45. package/resources/messaging/conversations/conversations.mjs.map +1 -1
  46. package/resources/messaging/conversations/links.d.mts +2 -2
  47. package/resources/messaging/conversations/links.d.mts.map +1 -1
  48. package/resources/messaging/conversations/links.d.ts +2 -2
  49. package/resources/messaging/conversations/links.d.ts.map +1 -1
  50. package/resources/messaging/conversations/messages.d.mts +2 -2
  51. package/resources/messaging/conversations/messages.d.mts.map +1 -1
  52. package/resources/messaging/conversations/messages.d.ts +2 -2
  53. package/resources/messaging/conversations/messages.d.ts.map +1 -1
  54. package/resources/messaging/notifications/notifications.d.mts +2 -2
  55. package/resources/messaging/notifications/notifications.d.mts.map +1 -1
  56. package/resources/messaging/notifications/notifications.d.ts +2 -2
  57. package/resources/messaging/notifications/notifications.d.ts.map +1 -1
  58. package/resources/messaging/notifications/notifications.js.map +1 -1
  59. package/resources/messaging/notifications/notifications.mjs.map +1 -1
  60. package/resources/operations/inventory-change-logs/inventory-change-logs.d.mts +4 -0
  61. package/resources/operations/inventory-change-logs/inventory-change-logs.d.mts.map +1 -1
  62. package/resources/operations/inventory-change-logs/inventory-change-logs.d.ts +4 -0
  63. package/resources/operations/inventory-change-logs/inventory-change-logs.d.ts.map +1 -1
  64. package/resources/operations/inventory-change-logs/inventory-change-logs.js.map +1 -1
  65. package/resources/operations/inventory-change-logs/inventory-change-logs.mjs.map +1 -1
  66. package/resources/operations/picks/lines/lines.d.mts +1 -1
  67. package/resources/operations/picks/lines/lines.d.mts.map +1 -1
  68. package/resources/operations/picks/lines/lines.d.ts +1 -1
  69. package/resources/operations/picks/lines/lines.d.ts.map +1 -1
  70. package/resources/operations/picks/lines/lines.js.map +1 -1
  71. package/resources/operations/picks/lines/lines.mjs.map +1 -1
  72. package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts +3 -3
  73. package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts +3 -3
  74. package/resources/operations/production-schedules/lines.d.mts +3 -3
  75. package/resources/operations/production-schedules/lines.d.ts +3 -3
  76. package/resources/operations/production-schedules/production-schedules.d.mts +6 -6
  77. package/resources/operations/production-schedules/production-schedules.d.ts +6 -6
  78. package/resources/operations/production-schedules/production-schedules.js +1 -1
  79. package/resources/operations/production-schedules/production-schedules.mjs +1 -1
  80. package/src/client.ts +1 -1
  81. package/src/resources/catalog/items/actions.ts +36 -12
  82. package/src/resources/catalog/units/units.ts +3 -1
  83. package/src/resources/core/analytics.ts +1 -1
  84. package/src/resources/core/audit-events.ts +44 -4
  85. package/src/resources/core/core.ts +20 -2
  86. package/src/resources/core/jobs.ts +10 -1
  87. package/src/resources/core/request-logs.ts +3 -0
  88. package/src/resources/messaging/conversations/conversations.ts +30 -3
  89. package/src/resources/messaging/conversations/links.ts +20 -2
  90. package/src/resources/messaging/conversations/messages.ts +20 -2
  91. package/src/resources/messaging/notifications/notifications.ts +20 -2
  92. package/src/resources/operations/inventory-change-logs/inventory-change-logs.ts +4 -0
  93. package/src/resources/operations/picks/lines/lines.ts +1 -6
  94. package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +3 -3
  95. package/src/resources/operations/production-schedules/lines.ts +3 -3
  96. package/src/resources/operations/production-schedules/production-schedules.ts +6 -6
  97. package/src/version.ts +1 -1
  98. package/version.d.mts +1 -1
  99. package/version.d.ts +1 -1
  100. package/version.js +1 -1
  101. package/version.mjs +1 -1
@@ -621,6 +621,7 @@ export interface SendNotificationRequest {
621
621
  | 'priority'
622
622
  | 'delivery'
623
623
  | 'delivery_line'
624
+ | 'delivery_related'
624
625
  | 'sales_order'
625
626
  | 'location'
626
627
  | 'location_type'
@@ -700,11 +701,14 @@ export interface SendNotificationRequest {
700
701
  | 'map'
701
702
  | 'purchase_order'
702
703
  | 'purchase_order_line'
704
+ | 'purchase_order_related'
703
705
  | 'supplier'
704
- | 'supplier_summary'
705
706
  | 'receivable_entry'
706
707
  | 'receiving_order'
707
708
  | 'receiving_order_line'
709
+ | 'receiving_order_totals'
710
+ | 'receiving_order_stage_total'
711
+ | 'receiving_order_related'
708
712
  | 'email_contact'
709
713
  | 'allocation_entry'
710
714
  | 'open_credit_entry'
@@ -746,6 +750,11 @@ export interface SendNotificationRequest {
746
750
  | 'user_photo_url'
747
751
  | 'batch_lot'
748
752
  | 'check_duplicate_result'
753
+ | 'item_costs'
754
+ | 'item_trends'
755
+ | 'reconciled_item_result'
756
+ | 'skipped_item_result'
757
+ | 'reconcile_error_result'
749
758
  | 'item_trend_point'
750
759
  | 'tenancy_pending_registration'
751
760
  | 'invoice_allocation_entry'
@@ -983,6 +992,7 @@ export interface NotificationCreateParams {
983
992
  | 'priority'
984
993
  | 'delivery'
985
994
  | 'delivery_line'
995
+ | 'delivery_related'
986
996
  | 'sales_order'
987
997
  | 'location'
988
998
  | 'location_type'
@@ -1062,11 +1072,14 @@ export interface NotificationCreateParams {
1062
1072
  | 'map'
1063
1073
  | 'purchase_order'
1064
1074
  | 'purchase_order_line'
1075
+ | 'purchase_order_related'
1065
1076
  | 'supplier'
1066
- | 'supplier_summary'
1067
1077
  | 'receivable_entry'
1068
1078
  | 'receiving_order'
1069
1079
  | 'receiving_order_line'
1080
+ | 'receiving_order_totals'
1081
+ | 'receiving_order_stage_total'
1082
+ | 'receiving_order_related'
1070
1083
  | 'email_contact'
1071
1084
  | 'allocation_entry'
1072
1085
  | 'open_credit_entry'
@@ -1108,6 +1121,11 @@ export interface NotificationCreateParams {
1108
1121
  | 'user_photo_url'
1109
1122
  | 'batch_lot'
1110
1123
  | 'check_duplicate_result'
1124
+ | 'item_costs'
1125
+ | 'item_trends'
1126
+ | 'reconciled_item_result'
1127
+ | 'skipped_item_result'
1128
+ | 'reconcile_error_result'
1111
1129
  | 'item_trend_point'
1112
1130
  | 'tenancy_pending_registration'
1113
1131
  | 'invoice_allocation_entry'
@@ -209,6 +209,10 @@ export interface InventoryChangeLogListParams {
209
209
 
210
210
  /**
211
211
  * Restricts results to change logs created on or after this timestamp.
212
+ *
213
+ * Defaults to 90 days before `ends_at`, or before now when `ends_at` is also
214
+ * omitted, unless `item_ids` is given — an item's history is returned whole. Pass
215
+ * an earlier timestamp to search further back.
212
216
  */
213
217
  starts_at?: string;
214
218
  }
@@ -68,12 +68,7 @@ export interface LineUpdateParams {
68
68
  * are returned as `null`.
69
69
  */
70
70
  include?: Array<
71
- | 'sales_order_line'
72
- | 'sales_order_line.product'
73
- | 'quantity'
74
- | 'quantity.unit'
75
- | 'ordered_quantity'
76
- | 'ordered_quantity.unit'
71
+ 'sales_order_line' | 'sales_order_line.product' | 'quantity.unit' | 'ordered_quantity.unit'
77
72
  >;
78
73
 
79
74
  /**
@@ -155,7 +155,7 @@ export interface ProductionScheduleSettings {
155
155
  /**
156
156
  * Typical changeover duration.
157
157
  *
158
- * Changeover time is modelled as rising with the number of new inputs a product
158
+ * Changeover time is modeled as rising with the number of new inputs a product
159
159
  * introduces, between the minimum and maximum below. The slope is calibrated from
160
160
  * production history so the model reproduces this average across the transitions
161
161
  * actually observed, which is why the value belongs at the changeover time the
@@ -440,7 +440,7 @@ export interface UpdateProductionScheduleSettingsRequest {
440
440
  /**
441
441
  * Typical changeover duration.
442
442
  *
443
- * Changeover time is modelled as rising with the number of new inputs a product
443
+ * Changeover time is modeled as rising with the number of new inputs a product
444
444
  * introduces, between the minimum and maximum below. The slope is calibrated from
445
445
  * production history so the model reproduces this average across the transitions
446
446
  * actually observed; set it to the changeover time the floor typically reports
@@ -700,7 +700,7 @@ export interface ProductionScheduleSettingUpdateParams {
700
700
  /**
701
701
  * Typical changeover duration.
702
702
  *
703
- * Changeover time is modelled as rising with the number of new inputs a product
703
+ * Changeover time is modeled as rising with the number of new inputs a product
704
704
  * introduces, between the minimum and maximum below. The slope is calibrated from
705
705
  * production history so the model reproduces this average across the transitions
706
706
  * actually observed; set it to the changeover time the floor typically reports
@@ -197,7 +197,7 @@ export interface CreateProductionScheduleLineRequest {
197
197
  * Machine hours the campaign will take.
198
198
  *
199
199
  * Left unset, it is estimated from the rate this version was solved with for this
200
- * item, so the week's utilisation still reflects the added work. An item the
200
+ * item, so the week's utilization still reflects the added work. An item the
201
201
  * version holds no policy for estimates to zero.
202
202
  */
203
203
  run_hours?: number;
@@ -271,7 +271,7 @@ export interface ProductionScheduleLine {
271
271
  object: 'production_schedule_line';
272
272
 
273
273
  /**
274
- * Modelled changeover time before the campaign.
274
+ * Modeled changeover time before the campaign.
275
275
  */
276
276
  planned_changeover_minutes: number;
277
277
 
@@ -561,7 +561,7 @@ export interface LineCreateParams {
561
561
  * Machine hours the campaign will take.
562
562
  *
563
563
  * Left unset, it is estimated from the rate this version was solved with for this
564
- * item, so the week's utilisation still reflects the added work. An item the
564
+ * item, so the week's utilization still reflects the added work. An item the
565
565
  * version holds no policy for estimates to zero.
566
566
  */
567
567
  run_hours?: number;
@@ -205,7 +205,7 @@ export class ProductionSchedules extends APIResource {
205
205
  * lines are where that pooling is undone, against each finished SKU's own stock
206
206
  * position, its own orders, and the hours the rest of the factory has that week.
207
207
  *
208
- * Levelled, not merely allocated. Work that does not fit a week moves to the next
208
+ * Leveled, not merely allocated. Work that does not fit a week moves to the next
209
209
  * one rather than being dropped, so the plan never asks the second stage for more
210
210
  * hours than it has. Two things bound it, and they are reported separately in the
211
211
  * schedule's diagnostics because they call for opposite responses: a SKU held back
@@ -417,7 +417,7 @@ export interface GenerateProductionScheduleRequest {
417
417
  /**
418
418
  * Human-readable label for the version, such as the week it was cut for.
419
419
  *
420
- * Purely for recognising the version in a list; versions are numbered
420
+ * Purely for recognizing the version in a list; versions are numbered
421
421
  * automatically and the number is what identifies them.
422
422
  */
423
423
  name?: string;
@@ -1947,8 +1947,8 @@ export interface ScheduleDiagnostics {
1947
1947
  * introduces.
1948
1948
  *
1949
1949
  * Calibrated from measured production against `average_inputs_added`, so the
1950
- * modelled changeover lands on the time the floor actually reports rather than on
1951
- * a fixed allowance.
1950
+ * modeled changeover lands on the time the floor actually reports rather than on a
1951
+ * fixed allowance.
1952
1952
  */
1953
1953
  changeover_slope_minutes: number;
1954
1954
 
@@ -2069,7 +2069,7 @@ export interface ScheduleFinishingDiagnostics {
2069
2069
  greige_starved_skus: Array<string>;
2070
2070
 
2071
2071
  /**
2072
- * Finished goods with no measured finishing rate, which cannot be levelled because
2072
+ * Finished goods with no measured finishing rate, which cannot be leveled because
2073
2073
  * the hours they cost are unknown.
2074
2074
  */
2075
2075
  items_without_run_rate: Array<string>;
@@ -2252,7 +2252,7 @@ export interface ProductionScheduleCreateParams {
2252
2252
  /**
2253
2253
  * Human-readable label for the version, such as the week it was cut for.
2254
2254
  *
2255
- * Purely for recognising the version in a list; versions are numbered
2255
+ * Purely for recognizing the version in a list; versions are numbered
2256
2256
  * automatically and the number is what identifies them.
2257
2257
  */
2258
2258
  name?: string;
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.24.2'; // x-release-please-version
1
+ export const VERSION = '0.25.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.24.2";
1
+ export declare const VERSION = "0.25.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.24.2";
1
+ export declare const VERSION = "0.25.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.24.2'; // x-release-please-version
4
+ exports.VERSION = '0.25.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.24.2'; // x-release-please-version
1
+ export const VERSION = '0.25.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map