@trash-streamers/contracts 1.1.29 → 1.1.31

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.
@@ -31,6 +31,8 @@ export interface User {
31
31
  userName?: string | undefined;
32
32
  avatar?: string | undefined;
33
33
  displayName?: string | undefined;
34
+ updatedAt: Date | undefined;
35
+ createdAt: Date | undefined;
34
36
  }
35
37
  export declare const USERS_V1_PACKAGE_NAME = "users.v1";
36
38
  export interface UsersServiceClient {
@@ -9,8 +9,17 @@ exports.USERS_SERVICE_NAME = exports.USERS_V1_PACKAGE_NAME = exports.protobufPac
9
9
  exports.UsersServiceControllerMethods = UsersServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
+ const protobufjs_1 = require("protobufjs");
12
13
  exports.protobufPackage = "users.v1";
13
14
  exports.USERS_V1_PACKAGE_NAME = "users.v1";
15
+ protobufjs_1.wrappers[".google.protobuf.Timestamp"] = {
16
+ fromObject(value) {
17
+ return { seconds: value.getTime() / 1000, nanos: (value.getTime() % 1000) * 1e6 };
18
+ },
19
+ toObject(message) {
20
+ return new Date(message.seconds * 1000 + message.nanos / 1e6);
21
+ },
22
+ };
14
23
  function UsersServiceControllerMethods() {
15
24
  return function (constructor) {
16
25
  const grpcMethods = ["getMe", "getUsers", "createUser", "patchUser"];
@@ -2,4 +2,5 @@ export declare const PROTO_PATHS: {
2
2
  readonly AUTH: string;
3
3
  readonly ACCOUNT: string;
4
4
  readonly USERS: string;
5
+ readonly MEDIA: string;
5
6
  };
@@ -7,4 +7,5 @@ exports.PROTO_PATHS = {
7
7
  AUTH: (0, path_1.join)(ROOT_PATH, "auth.proto"),
8
8
  ACCOUNT: (0, path_1.join)(ROOT_PATH, "account.proto"),
9
9
  USERS: (0, path_1.join)(ROOT_PATH, "users.proto"),
10
+ MEDIA: (0, path_1.join)(ROOT_PATH, "media.proto"),
10
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trash-streamers/contracts",
3
- "version": "1.1.29",
3
+ "version": "1.1.31",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {
package/proto/users.proto CHANGED
@@ -2,6 +2,7 @@ syntax = "proto3";
2
2
 
3
3
  package users.v1;
4
4
 
5
+ import "google/protobuf/timestamp.proto";
5
6
  service UsersService {
6
7
  rpc GetMe (GetMeRequest) returns (GetMeResponse);
7
8
  rpc GetUsers (GetUsersRequest) returns (GetUsersResponse);
@@ -49,4 +50,6 @@ message User {
49
50
  optional string user_name = 2;
50
51
  optional string avatar = 3;
51
52
  optional string display_name = 4;
53
+ google.protobuf.Timestamp updated_at = 5;
54
+ google.protobuf.Timestamp created_at = 6;
52
55
  }