@final-commerce/command-frame 0.1.35 → 0.1.36

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.
@@ -16,16 +16,6 @@ export const productsTopic = {
16
16
  id: "product-updated",
17
17
  name: "Product Updated",
18
18
  description: "Published when a product is synced/updated"
19
- },
20
- {
21
- id: "inventory-adjusted",
22
- name: "Inventory Adjusted",
23
- description: "Published when a variant's inventory stock is manually adjusted"
24
- },
25
- {
26
- id: "inventory-updated",
27
- name: "Inventory Updated",
28
- description: "Published when a variant's inventory stock changes (e.g. after a sale or restock)"
29
19
  }
30
20
  ]
31
21
  };
@@ -4,11 +4,7 @@
4
4
  */
5
5
  export * from "./product-created/types";
6
6
  export * from "./product-updated/types";
7
- export * from "./inventory-adjusted/types";
8
- export * from "./inventory-updated/types";
9
7
  import type { ProductCreatedPayload } from "./product-created/types";
10
8
  import type { ProductUpdatedPayload } from "./product-updated/types";
11
- import type { InventoryAdjustedPayload } from "./inventory-adjusted/types";
12
- import type { InventoryUpdatedPayload } from "./inventory-updated/types";
13
- export type ProductsEventPayload = ProductCreatedPayload | ProductUpdatedPayload | InventoryAdjustedPayload | InventoryUpdatedPayload;
14
- export type ProductsEventType = "product-created" | "product-updated" | "inventory-adjusted" | "inventory-updated";
9
+ export type ProductsEventPayload = ProductCreatedPayload | ProductUpdatedPayload;
10
+ export type ProductsEventType = "product-created" | "product-updated";
@@ -5,5 +5,3 @@
5
5
  // Re-export all event types
6
6
  export * from "./product-created/types";
7
7
  export * from "./product-updated/types";
8
- export * from "./inventory-adjusted/types";
9
- export * from "./inventory-updated/types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@final-commerce/command-frame",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "Commands Frame library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,9 +0,0 @@
1
- import type { TopicEvent } from "../../../types";
2
- export interface InventoryAdjustedPayload {
3
- variantId: string;
4
- amount: number;
5
- stockType: "add" | "subtract";
6
- previousStock?: number;
7
- newStock?: number;
8
- }
9
- export type InventoryAdjustedEvent = TopicEvent<InventoryAdjustedPayload>;
@@ -1,8 +0,0 @@
1
- import type { TopicEvent } from "../../../types";
2
- export interface InventoryUpdatedPayload {
3
- variantId: string;
4
- previousStock?: number;
5
- newStock?: number;
6
- delta?: number;
7
- }
8
- export type InventoryUpdatedEvent = TopicEvent<InventoryUpdatedPayload>;