jr-common-micro 1.1.129 → 1.1.131

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.
@@ -57,5 +57,11 @@ export declare const PMediaService: {
57
57
  readonly O: typeof WatchedVideoResponse;
58
58
  readonly kind: MethodKind.ServerStreaming;
59
59
  };
60
+ readonly removeUserData: {
61
+ readonly name: "RemoveUserData";
62
+ readonly I: typeof ByIdRequest;
63
+ readonly O: typeof EmptyResponse;
64
+ readonly kind: MethodKind.ServerStreaming;
65
+ };
60
66
  };
61
67
  };
@@ -60,5 +60,11 @@ exports.PMediaService = {
60
60
  O: media_messages_pb_js_1.WatchedVideoResponse,
61
61
  kind: protobuf_1.MethodKind.ServerStreaming,
62
62
  },
63
+ removeUserData: {
64
+ name: "RemoveUserData",
65
+ I: general_pb_js_1.ByIdRequest,
66
+ O: general_pb_js_1.EmptyResponse,
67
+ kind: protobuf_1.MethodKind.ServerStreaming,
68
+ },
63
69
  }
64
70
  };
@@ -20,6 +20,7 @@ export interface PMediaServiceClient {
20
20
  storeVideoLastTime(request: StoreVideoLastTimeRequest, metadata?: Metadata): Observable<EmptyResponse>;
21
21
  getFileStatus(request: FileStatusRequest, metadata?: Metadata): Observable<FileStatusResponse>;
22
22
  getWatchedVideos(request: ByIdRequest, metadata?: Metadata): Observable<WatchedVideoResponse>;
23
+ removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
23
24
  }
24
25
  export interface PMediaServiceController {
25
26
  store(request: FileStoreRequest, metadata?: Metadata): Observable<EmptyResponse>;
@@ -29,6 +30,7 @@ export interface PMediaServiceController {
29
30
  storeVideoLastTime(request: StoreVideoLastTimeRequest, metadata?: Metadata): Observable<EmptyResponse>;
30
31
  getFileStatus(request: FileStatusRequest, metadata?: Metadata): Observable<FileStatusResponse>;
31
32
  getWatchedVideos(request: ByIdRequest, metadata?: Metadata): Observable<WatchedVideoResponse>;
33
+ removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
32
34
  }
33
35
  export declare function PMediaServiceControllerMethods(): (constructor: Function) => void;
34
36
  export declare const P_MEDIA_SERVICE_NAME = "PMediaService";
@@ -31,6 +31,7 @@ function PMediaServiceControllerMethods() {
31
31
  "storeVideoLastTime",
32
32
  "getFileStatus",
33
33
  "getWatchedVideos",
34
+ "removeUserData",
34
35
  ];
35
36
  for (const method of grpcMethods) {
36
37
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
@@ -13,10 +13,12 @@ export interface GoogleRequest {
13
13
  email: string;
14
14
  id_token: string;
15
15
  access_token: string;
16
+ language?: string | undefined;
16
17
  }
17
18
  export interface AppleRequest {
18
19
  identity_token: string;
19
20
  email?: string | undefined;
21
+ language?: string | undefined;
20
22
  }
21
23
  export interface LoginResponse {
22
24
  status: ResponseStatus | undefined;
@@ -30,6 +30,7 @@ export declare class GoogleRequest extends Message<GoogleRequest> {
30
30
  email: string;
31
31
  idToken: string;
32
32
  accessToken: string;
33
+ language?: string;
33
34
  constructor(data?: PartialMessage<GoogleRequest>);
34
35
  static readonly runtime: typeof proto3;
35
36
  static readonly typeName = "micro.v1.user.GoogleRequest";
@@ -42,6 +43,7 @@ export declare class GoogleRequest extends Message<GoogleRequest> {
42
43
  export declare class AppleRequest extends Message<AppleRequest> {
43
44
  identityToken: string;
44
45
  email?: string;
46
+ language?: string;
45
47
  constructor(data?: PartialMessage<AppleRequest>);
46
48
  static readonly runtime: typeof proto3;
47
49
  static readonly typeName = "micro.v1.user.AppleRequest";
@@ -62,6 +62,7 @@ class GoogleRequest extends protobuf_1.Message {
62
62
  email = "";
63
63
  idToken = "";
64
64
  accessToken = "";
65
+ language;
65
66
  constructor(data) {
66
67
  super();
67
68
  protobuf_1.proto3.util.initPartial(data, this);
@@ -72,6 +73,7 @@ class GoogleRequest extends protobuf_1.Message {
72
73
  { no: 1, name: "email", kind: "scalar", T: 9 },
73
74
  { no: 2, name: "id_token", kind: "scalar", T: 9 },
74
75
  { no: 3, name: "access_token", kind: "scalar", T: 9 },
76
+ { no: 4, name: "language", kind: "scalar", T: 9, opt: true },
75
77
  ]);
76
78
  static fromBinary(bytes, options) {
77
79
  return new GoogleRequest().fromBinary(bytes, options);
@@ -90,6 +92,7 @@ exports.GoogleRequest = GoogleRequest;
90
92
  class AppleRequest extends protobuf_1.Message {
91
93
  identityToken = "";
92
94
  email;
95
+ language;
93
96
  constructor(data) {
94
97
  super();
95
98
  protobuf_1.proto3.util.initPartial(data, this);
@@ -99,6 +102,7 @@ class AppleRequest extends protobuf_1.Message {
99
102
  static fields = protobuf_1.proto3.util.newFieldList(() => [
100
103
  { no: 1, name: "identity_token", kind: "scalar", T: 9 },
101
104
  { no: 2, name: "email", kind: "scalar", T: 9, opt: true },
105
+ { no: 3, name: "language", kind: "scalar", T: 9, opt: true },
102
106
  ]);
103
107
  static fromBinary(bytes, options) {
104
108
  return new AppleRequest().fromBinary(bytes, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.129",
3
+ "version": "1.1.131",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -17,6 +17,7 @@ service PMediaService {
17
17
  rpc StoreVideoLastTime(StoreVideoLastTimeRequest) returns(stream EmptyResponse) {}
18
18
  rpc GetFileStatus(FileStatusRequest) returns(stream FileStatusResponse) {}
19
19
  rpc GetWatchedVideos(ByIdRequest) returns(stream WatchedVideoResponse) {}
20
+ rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
20
21
  }
21
22
 
22
23
 
@@ -24,11 +24,16 @@ message GoogleRequest {
24
24
  string email = 1;
25
25
  string id_token = 2;
26
26
  string access_token = 3;
27
+ // The person's language (tr, en, ...): the welcome e-mail of a new
28
+ // account goes in Turkish for tr, in English otherwise.
29
+ optional string language = 4;
27
30
  }
28
31
 
29
32
  message AppleRequest {
30
33
  string identity_token = 1;
31
34
  optional string email = 2;
35
+ // As in GoogleRequest.
36
+ optional string language = 3;
32
37
  }
33
38
 
34
39
  message LoginResponse {