@managesome/eposmatic-toolkit 0.3.9 → 0.3.10

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.
@@ -43,6 +43,43 @@ export interface IBulkDeleteResponse {
43
43
  export type IBulkDeleteItemsResponse = IBulkDeleteResponse;
44
44
  /** Response of `DELETE /categories/bulk-delete/:tenant_id` (items-service). */
45
45
  export type IBulkDeleteCategoriesResponse = IBulkDeleteResponse;
46
+ /**
47
+ * Request body for `DELETE /warehouse-items/bulk-delete/:warehouse_id`
48
+ * (operations-service).
49
+ *
50
+ * `item_ids` is capped at 100 unique ids per call and validated
51
+ * all-or-nothing: if any id is missing for the warehouse, the whole call is
52
+ * rejected with a 400 that lists the offending ids.
53
+ */
54
+ export interface IBulkDeleteWarehouseItemsBody {
55
+ item_ids: string[];
56
+ }
57
+ /**
58
+ * Request body for `DELETE /warehouse-categories/bulk-delete/:warehouse_id`
59
+ * (operations-service).
60
+ *
61
+ * `category_ids` is capped at 100 unique ids per call and validated
62
+ * all-or-nothing: if any id is missing for the warehouse or belongs to a
63
+ * category that still contains items, the whole call is rejected with a 400.
64
+ */
65
+ export interface IBulkDeleteWarehouseCategoriesBody {
66
+ category_ids: string[];
67
+ }
68
+ /**
69
+ * Response shared by `DELETE /warehouse-items/bulk-delete/:warehouse_id` and
70
+ * `DELETE /warehouse-categories/bulk-delete/:warehouse_id`
71
+ * (operations-service).
72
+ */
73
+ export interface IBulkDeleteWarehouseResponse {
74
+ /** Number of unique ids requested for deletion. */
75
+ requested_count: number;
76
+ /** Number of documents actually deleted (equals `requested_count` on success). */
77
+ deleted_count: number;
78
+ /** Canonical ids of the deleted documents. */
79
+ _ids: string[];
80
+ /** Warehouse the deleted documents belonged to. */
81
+ warehouse_id: string;
82
+ }
46
83
  export interface IPreviewTargetCustomersBody {
47
84
  mode: CUSTOMER_TARGET_MODE_ENUM;
48
85
  search?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",