jr-common-micro 1.1.107 → 1.1.108

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.
@@ -358,6 +358,8 @@ export interface ReferralDetailsDto {
358
358
  export interface ReferralDetails {
359
359
  uid: string;
360
360
  status: string;
361
+ api_refusals: number;
362
+ next_check_at: string;
361
363
  }
362
364
  export interface StoreLastWatchedVideoRequest {
363
365
  lesson_id: string;
@@ -591,6 +591,8 @@ export declare class ReferralDetailsDto extends Message<ReferralDetailsDto> {
591
591
  export declare class ReferralDetails extends Message<ReferralDetails> {
592
592
  uid: string;
593
593
  status: string;
594
+ apiRefusals: number;
595
+ nextCheckAt: string;
594
596
  constructor(data?: PartialMessage<ReferralDetails>);
595
597
  static readonly runtime: typeof proto3;
596
598
  static readonly typeName = "micro.v1.education.ReferralDetails";
@@ -1223,6 +1223,8 @@ exports.ReferralDetailsDto = ReferralDetailsDto;
1223
1223
  class ReferralDetails extends protobuf_1.Message {
1224
1224
  uid = "";
1225
1225
  status = "";
1226
+ apiRefusals = 0;
1227
+ nextCheckAt = "";
1226
1228
  constructor(data) {
1227
1229
  super();
1228
1230
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1232,6 +1234,8 @@ class ReferralDetails extends protobuf_1.Message {
1232
1234
  static fields = protobuf_1.proto3.util.newFieldList(() => [
1233
1235
  { no: 1, name: "uid", kind: "scalar", T: 9 },
1234
1236
  { no: 2, name: "status", kind: "scalar", T: 9 },
1237
+ { no: 3, name: "api_refusals", kind: "scalar", T: 5 },
1238
+ { no: 4, name: "next_check_at", kind: "scalar", T: 9 },
1235
1239
  ]);
1236
1240
  static fromBinary(bytes, options) {
1237
1241
  return new ReferralDetails().fromBinary(bytes, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.107",
3
+ "version": "1.1.108",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -292,6 +292,13 @@ message ReferralDetailsDto {
292
292
  message ReferralDetails {
293
293
  string uid = 1;
294
294
  string status = 2;
295
+ // A pending UID the exchange's affiliate API looked up and did not find
296
+ // among our referrals: how many times in a row (0 = never, also when the
297
+ // exchange has no API check). Reset when the person sends a UID again.
298
+ int32 api_refusals = 3;
299
+ // When the API looks again (RFC 3339 UTC); empty once it has stopped
300
+ // (after the fifth "not ours") or when no check is due.
301
+ string next_check_at = 4;
295
302
  }
296
303
 
297
304
  message StoreLastWatchedVideoRequest {