diff --git a/README.md b/README.md index c3aec28..f155879 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ end for an order, we would use `order: %Order{id: "1234"}` instead of `order_id: "1234"`. - Date & Time - We use string fields to represent ISO 8601 formatted date and time fields. This is built into most -languages by default, and if you are using elixir, you can simply use `DateTime.to_iso8601/1`. +languages by default, and if you are using Elixir, you can simply use `DateTime.to_iso8601/1`. ### Deploying diff --git a/protos/bottle/inventory/v1.proto b/protos/bottle/inventory/v1.proto index 1307d28..23eadcc 100644 --- a/protos/bottle/inventory/v1.proto +++ b/protos/bottle/inventory/v1.proto @@ -1,4 +1,4 @@ -syntax = "proto3"; + syntax = "proto3"; import "bottle/inventory/v1/service.proto"; @@ -10,6 +10,7 @@ service V1 { rpc ListSkuQuantity(bottle.inventory.v1.ListSkuQuantityRequest) returns (stream bottle.inventory.v1.ListSkuQuantityResponse); rpc ListSkuAvailability(bottle.inventory.v1.ListSkuAvailabilityRequest) returns (stream bottle.inventory.v1.ListSkuAvailabilityResponse); rpc GetSkuDetails(bottle.inventory.v1.GetSkuDetailsRequest) returns (bottle.inventory.v1.GetSkuDetailsResponse); + rpc ListSkuMovements(bottle.inventory.v1.ListSkuMovementsRequest) returns (stream bottle.inventory.v1.ListSkuMovementsResponse); rpc ListLocations(bottle.inventory.v1.ListLocationsRequest) returns (stream bottle.inventory.v1.ListLocationsResponse); } diff --git a/protos/bottle/inventory/v1/movement.proto b/protos/bottle/inventory/v1/movement.proto new file mode 100644 index 0000000..eb3df57 --- /dev/null +++ b/protos/bottle/inventory/v1/movement.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package bottle.inventory.v1; + +import "bottle/inventory/v1/location.proto"; +import "bottle/inventory/v1/part.proto"; + +message Movement { + string id = 1; + bottle.inventory.v1.Part part = 2; + bottle.inventory.v1.Location from_location = 3; + bottle.inventory.v1.Location to_location = 4; + string inserted_at = 5; +} diff --git a/protos/bottle/inventory/v1/service.proto b/protos/bottle/inventory/v1/service.proto index 50b104c..6b0c5f1 100644 --- a/protos/bottle/inventory/v1/service.proto +++ b/protos/bottle/inventory/v1/service.proto @@ -2,6 +2,7 @@ syntax = "proto3"; import "bottle/inventory/v1/component.proto"; import "bottle/inventory/v1/location.proto"; +import "bottle/inventory/v1/movement.proto"; import "bottle/inventory/v1/sku.proto"; package bottle.inventory.v1; @@ -39,9 +40,7 @@ message ListComponentAvailabilityResponse { repeated PickingOption picking_options = 4; } -message ListSkuQuantityRequest { - string request_id = 1; -} +message ListSkuQuantityRequest { string request_id = 1; } message ListSkuQuantityResponse { string request_id = 1; @@ -86,3 +85,13 @@ message ListLocationsResponse { string request_id = 1; bottle.inventory.v1.Location location = 2; } + +message ListSkuMovementsRequest { + string request_id = 1; + bottle.inventory.v1.Sku sku = 2; +} + +message ListSkuMovementsResponse { + string request_id = 1; + repeated bottle.inventory.v1.Movement movements = 2; +}