Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion protos/bottle/inventory/v1.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax = "proto3";
syntax = "proto3";

import "bottle/inventory/v1/service.proto";

Expand All @@ -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);
}
14 changes: 14 additions & 0 deletions protos/bottle/inventory/v1/movement.proto
Original file line number Diff line number Diff line change
@@ -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;
}
15 changes: 12 additions & 3 deletions protos/bottle/inventory/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}