/*
 * Created by jonathan.jesperson@pluto.tv on 11/11/2022.
 * Copyright (c) PlutoTV Inc 2022.
 */

syntax = "proto3";

package gracenoterunspackage;

option go_package = "github.com/Pluto-tv/service-dal/golang_client";
option java_package = "tv.pluto.ip.dal.gracenoteruns";

service GracenoteRunsManager {
  // CFeedsSyncDocuments (Server Stream)
  //
  rpc CFeedsSyncDocuments(CFeedsSyncDocumentsRequest) returns (stream GracenoteRun) {}

  // CFeedsSyncAllIds (Server Stream)
  //
  rpc CFeedsSyncAllIds(CFeedsSyncAllIdsRequest) returns (stream Id) {}
}

message CFeedsSyncAllIdsRequest {}

message Id {
  string id = 1;
}

message CFeedsSyncDocumentsRequest {
  // Expressed as a valid javascript Date, https://en.wikipedia.org/wiki/ISO_8601
  string last_run_at = 1;
}

message GracenoteRun {
  string id = 1;
  string run_id = 2;
  string run_date = 3;
  string max_update_id = 4;
  string created_at = 5;
}
