geniebox-shared-lib 2.0.0 → 2.0.1
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.
- package/README.md +636 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/dist/user.interface.d.ts +23 -7
- package/dist/user.interface.js +49 -6
- package/package.json +1 -1
- package/dist/account/account.client.d.ts +0 -11
- package/dist/account/account.client.js +0 -41
- package/dist/account/account.interface.d.ts +0 -184
- package/dist/account/account.interface.js +0 -625
- package/dist/ai/ai.client.d.ts +0 -12
- package/dist/ai/ai.client.js +0 -42
- package/dist/ai/ai.interface.d.ts +0 -138
- package/dist/ai/ai.interface.js +0 -532
- package/dist/ai/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/ai/google/protobuf/empty.interface.js +0 -35
- package/dist/ai/google/protobuf/struct.interface.d.ts +0 -91
- package/dist/ai/google/protobuf/struct.interface.js +0 -300
- package/dist/auth/auth.client.d.ts +0 -11
- package/dist/auth/auth.client.js +0 -44
- package/dist/auth/auth.interface.d.ts +0 -248
- package/dist/auth/auth.interface.js +0 -974
- package/dist/auth/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/auth/google/protobuf/empty.interface.js +0 -35
- package/dist/event/event.client.d.ts +0 -13
- package/dist/event/event.client.js +0 -48
- package/dist/event/event.interface.d.ts +0 -42
- package/dist/event/event.interface.js +0 -126
- package/dist/file/file.client.d.ts +0 -12
- package/dist/file/file.client.js +0 -42
- package/dist/file/file.interface.d.ts +0 -90
- package/dist/file/file.interface.js +0 -332
- package/dist/file.interface.d.ts +0 -90
- package/dist/file.interface.js +0 -332
- package/dist/key/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/key/google/protobuf/empty.interface.js +0 -35
- package/dist/key/key.client.d.ts +0 -12
- package/dist/key/key.client.js +0 -42
- package/dist/key/key.interface.d.ts +0 -134
- package/dist/key/key.interface.js +0 -430
- package/dist/openai/google/protobuf/struct.interface.d.ts +0 -91
- package/dist/openai/google/protobuf/struct.interface.js +0 -300
- package/dist/openai/openai.client.d.ts +0 -12
- package/dist/openai/openai.client.js +0 -43
- package/dist/openai/openai.interface.d.ts +0 -41
- package/dist/openai/openai.interface.js +0 -116
- package/dist/user/account.interface.d.ts +0 -184
- package/dist/user/account.interface.js +0 -625
- package/dist/user/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/user/google/protobuf/empty.interface.js +0 -35
- package/dist/user/google/protobuf/timestamp.interface.d.ts +0 -114
- package/dist/user/google/protobuf/timestamp.interface.js +0 -65
- package/dist/user/user.client.d.ts +0 -12
- package/dist/user/user.client.js +0 -42
- package/dist/user/user.interface.d.ts +0 -289
- package/dist/user/user.interface.js +0 -1264
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "google.protobuf";
|
|
3
|
-
/**
|
|
4
|
-
* A Timestamp represents a point in time independent of any time zone or local
|
|
5
|
-
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
6
|
-
* nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
|
7
|
-
* January 1, 1970, in the proleptic Gregorian calendar which extends the
|
|
8
|
-
* Gregorian calendar backwards to year one.
|
|
9
|
-
*
|
|
10
|
-
* All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
|
11
|
-
* second table is needed for interpretation, using a [24-hour linear
|
|
12
|
-
* smear](https://developers.google.com/time/smear).
|
|
13
|
-
*
|
|
14
|
-
* The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
|
15
|
-
* restricting to that range, we ensure that we can convert to and from [RFC
|
|
16
|
-
* 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
|
17
|
-
*
|
|
18
|
-
* # Examples
|
|
19
|
-
*
|
|
20
|
-
* Example 1: Compute Timestamp from POSIX `time()`.
|
|
21
|
-
*
|
|
22
|
-
* Timestamp timestamp;
|
|
23
|
-
* timestamp.set_seconds(time(NULL));
|
|
24
|
-
* timestamp.set_nanos(0);
|
|
25
|
-
*
|
|
26
|
-
* Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
|
27
|
-
*
|
|
28
|
-
* struct timeval tv;
|
|
29
|
-
* gettimeofday(&tv, NULL);
|
|
30
|
-
*
|
|
31
|
-
* Timestamp timestamp;
|
|
32
|
-
* timestamp.set_seconds(tv.tv_sec);
|
|
33
|
-
* timestamp.set_nanos(tv.tv_usec * 1000);
|
|
34
|
-
*
|
|
35
|
-
* Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
|
36
|
-
*
|
|
37
|
-
* FILETIME ft;
|
|
38
|
-
* GetSystemTimeAsFileTime(&ft);
|
|
39
|
-
* UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
|
40
|
-
*
|
|
41
|
-
* // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
|
42
|
-
* // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
|
43
|
-
* Timestamp timestamp;
|
|
44
|
-
* timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
|
45
|
-
* timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
|
46
|
-
*
|
|
47
|
-
* Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
|
48
|
-
*
|
|
49
|
-
* long millis = System.currentTimeMillis();
|
|
50
|
-
*
|
|
51
|
-
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
52
|
-
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
53
|
-
*
|
|
54
|
-
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
55
|
-
*
|
|
56
|
-
* Instant now = Instant.now();
|
|
57
|
-
*
|
|
58
|
-
* Timestamp timestamp =
|
|
59
|
-
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
60
|
-
* .setNanos(now.getNano()).build();
|
|
61
|
-
*
|
|
62
|
-
* Example 6: Compute Timestamp from current time in Python.
|
|
63
|
-
*
|
|
64
|
-
* timestamp = Timestamp()
|
|
65
|
-
* timestamp.GetCurrentTime()
|
|
66
|
-
*
|
|
67
|
-
* # JSON Mapping
|
|
68
|
-
*
|
|
69
|
-
* In JSON format, the Timestamp type is encoded as a string in the
|
|
70
|
-
* [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
|
71
|
-
* format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
|
72
|
-
* where {year} is always expressed using four digits while {month}, {day},
|
|
73
|
-
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
74
|
-
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
75
|
-
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
76
|
-
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
|
77
|
-
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
|
78
|
-
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
79
|
-
*
|
|
80
|
-
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
81
|
-
* 01:30 UTC on January 15, 2017.
|
|
82
|
-
*
|
|
83
|
-
* In JavaScript, one can convert a Date object to this format using the
|
|
84
|
-
* standard
|
|
85
|
-
* [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
|
86
|
-
* method. In Python, a standard `datetime.datetime` object can be converted
|
|
87
|
-
* to this format using
|
|
88
|
-
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
89
|
-
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
90
|
-
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
91
|
-
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
92
|
-
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
93
|
-
*/
|
|
94
|
-
export interface Timestamp {
|
|
95
|
-
/**
|
|
96
|
-
* Represents seconds of UTC time since Unix epoch
|
|
97
|
-
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
98
|
-
* 9999-12-31T23:59:59Z inclusive.
|
|
99
|
-
*/
|
|
100
|
-
seconds: number;
|
|
101
|
-
/**
|
|
102
|
-
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
103
|
-
* second values with fractions must still have non-negative nanos values
|
|
104
|
-
* that count forward in time. Must be from 0 to 999,999,999
|
|
105
|
-
* inclusive.
|
|
106
|
-
*/
|
|
107
|
-
nanos: number;
|
|
108
|
-
}
|
|
109
|
-
export declare const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
110
|
-
export declare const Timestamp: MessageFns<Timestamp>;
|
|
111
|
-
export interface MessageFns<T> {
|
|
112
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
113
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
114
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.7
|
|
5
|
-
// protoc v5.28.2
|
|
6
|
-
// source: google/protobuf/timestamp.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Timestamp = exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
-
/* eslint-disable */
|
|
10
|
-
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "google.protobuf";
|
|
12
|
-
exports.GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
13
|
-
function createBaseTimestamp() {
|
|
14
|
-
return { seconds: 0, nanos: 0 };
|
|
15
|
-
}
|
|
16
|
-
exports.Timestamp = {
|
|
17
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
18
|
-
if (message.seconds !== 0) {
|
|
19
|
-
writer.uint32(8).int64(message.seconds);
|
|
20
|
-
}
|
|
21
|
-
if (message.nanos !== 0) {
|
|
22
|
-
writer.uint32(16).int32(message.nanos);
|
|
23
|
-
}
|
|
24
|
-
return writer;
|
|
25
|
-
},
|
|
26
|
-
decode(input, length) {
|
|
27
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
28
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
-
const message = createBaseTimestamp();
|
|
30
|
-
while (reader.pos < end) {
|
|
31
|
-
const tag = reader.uint32();
|
|
32
|
-
switch (tag >>> 3) {
|
|
33
|
-
case 1: {
|
|
34
|
-
if (tag !== 8) {
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
message.seconds = longToNumber(reader.int64());
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
40
|
-
case 2: {
|
|
41
|
-
if (tag !== 16) {
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
message.nanos = reader.int32();
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
reader.skip(tag & 7);
|
|
52
|
-
}
|
|
53
|
-
return message;
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
function longToNumber(int64) {
|
|
57
|
-
const num = globalThis.Number(int64.toString());
|
|
58
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
59
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
60
|
-
}
|
|
61
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
62
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
63
|
-
}
|
|
64
|
-
return num;
|
|
65
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OnModuleInit } from "@nestjs/common";
|
|
2
|
-
import { ClientGrpc } from "@nestjs/microservices";
|
|
3
|
-
import { UserServiceClient } from "./user.interface";
|
|
4
|
-
export declare class UsersClient implements OnModuleInit {
|
|
5
|
-
private readonly client;
|
|
6
|
-
private readonly logger;
|
|
7
|
-
private userClient?;
|
|
8
|
-
constructor(client: ClientGrpc);
|
|
9
|
-
onModuleInit(): void;
|
|
10
|
-
get service(): UserServiceClient;
|
|
11
|
-
isReady(): boolean;
|
|
12
|
-
}
|
package/dist/user/user.client.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
var UsersClient_1;
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UsersClient = void 0;
|
|
17
|
-
const common_1 = require("@nestjs/common");
|
|
18
|
-
let UsersClient = UsersClient_1 = class UsersClient {
|
|
19
|
-
constructor(client) {
|
|
20
|
-
this.client = client;
|
|
21
|
-
this.logger = new common_1.Logger(UsersClient_1.name);
|
|
22
|
-
}
|
|
23
|
-
onModuleInit() {
|
|
24
|
-
this.userClient = this.client.getService("UserService");
|
|
25
|
-
this.logger.log("UserServiceClient initialized");
|
|
26
|
-
}
|
|
27
|
-
get service() {
|
|
28
|
-
if (!this.userClient) {
|
|
29
|
-
throw new common_1.InternalServerErrorException("UserService is not initialized yet");
|
|
30
|
-
}
|
|
31
|
-
return this.userClient;
|
|
32
|
-
}
|
|
33
|
-
isReady() {
|
|
34
|
-
return !!this.userClient;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.UsersClient = UsersClient;
|
|
38
|
-
exports.UsersClient = UsersClient = UsersClient_1 = __decorate([
|
|
39
|
-
(0, common_1.Injectable)(),
|
|
40
|
-
__param(0, (0, common_1.Inject)("USER_PACKAGE")),
|
|
41
|
-
__metadata("design:paramtypes", [Object])
|
|
42
|
-
], UsersClient);
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import type { handleUnaryCall, Metadata, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
import { Empty } from "./google/protobuf/empty.interface";
|
|
5
|
-
export declare const protobufPackage = "user";
|
|
6
|
-
export interface UserPersonal {
|
|
7
|
-
uuid: string;
|
|
8
|
-
userId: string;
|
|
9
|
-
photoUrl: string;
|
|
10
|
-
firstName: string;
|
|
11
|
-
lastName: string;
|
|
12
|
-
birthday: string;
|
|
13
|
-
/** "male" | "female" */
|
|
14
|
-
gender: string;
|
|
15
|
-
email: string;
|
|
16
|
-
emailVerified: boolean;
|
|
17
|
-
phoneNumber: string;
|
|
18
|
-
createdAt: string;
|
|
19
|
-
updatedAt: string;
|
|
20
|
-
}
|
|
21
|
-
export interface UserAuthentication {
|
|
22
|
-
uuid: string;
|
|
23
|
-
userId: string;
|
|
24
|
-
password?: string | undefined;
|
|
25
|
-
passwordHash: string;
|
|
26
|
-
}
|
|
27
|
-
export interface User {
|
|
28
|
-
uuid: string;
|
|
29
|
-
personal?: UserPersonal | undefined;
|
|
30
|
-
authentication?: UserAuthentication | undefined;
|
|
31
|
-
}
|
|
32
|
-
export interface CreateUserPersonal {
|
|
33
|
-
photoUrl?: string | undefined;
|
|
34
|
-
firstName: string;
|
|
35
|
-
lastName?: string | undefined;
|
|
36
|
-
birthday?: string | undefined;
|
|
37
|
-
/** "male" | "female" */
|
|
38
|
-
gender?: string | undefined;
|
|
39
|
-
email?: string | undefined;
|
|
40
|
-
phoneNumber?: string | undefined;
|
|
41
|
-
}
|
|
42
|
-
export interface CreateUserAuthentication {
|
|
43
|
-
password?: string | undefined;
|
|
44
|
-
}
|
|
45
|
-
export interface CreateUserRequest {
|
|
46
|
-
personal?: CreateUserPersonal | undefined;
|
|
47
|
-
authentication?: CreateUserAuthentication | undefined;
|
|
48
|
-
}
|
|
49
|
-
export interface GetByIdRequest {
|
|
50
|
-
uuid: string;
|
|
51
|
-
}
|
|
52
|
-
export interface FindByEmailRequest {
|
|
53
|
-
email: string;
|
|
54
|
-
}
|
|
55
|
-
export interface FindByPhoneRequest {
|
|
56
|
-
phoneNumber: string;
|
|
57
|
-
}
|
|
58
|
-
export interface UpdateUserRequest {
|
|
59
|
-
uuid: string;
|
|
60
|
-
personal?: UpdateUserPersonal | undefined;
|
|
61
|
-
authentication?: UserAuthentication | undefined;
|
|
62
|
-
}
|
|
63
|
-
export interface UpdateUserPersonal {
|
|
64
|
-
uuid?: string | undefined;
|
|
65
|
-
photoUrl?: string | undefined;
|
|
66
|
-
firstName: string;
|
|
67
|
-
lastName?: string | undefined;
|
|
68
|
-
birthday?: string | undefined;
|
|
69
|
-
gender?: string | undefined;
|
|
70
|
-
email?: string | undefined;
|
|
71
|
-
phoneNumber?: string | undefined;
|
|
72
|
-
}
|
|
73
|
-
export interface UpdatePasswordRequest {
|
|
74
|
-
uuid?: string | undefined;
|
|
75
|
-
oldPassword: string;
|
|
76
|
-
newPassword: string;
|
|
77
|
-
}
|
|
78
|
-
export interface ResetPasswordData {
|
|
79
|
-
uuid: string;
|
|
80
|
-
password: string;
|
|
81
|
-
}
|
|
82
|
-
export interface RemoveUserRequest {
|
|
83
|
-
uuid: string;
|
|
84
|
-
}
|
|
85
|
-
export interface UpdateEmailVerificationRequest {
|
|
86
|
-
userId: string;
|
|
87
|
-
verified: boolean;
|
|
88
|
-
}
|
|
89
|
-
export interface GetEmailVerificationStatusRequest {
|
|
90
|
-
uuid: string;
|
|
91
|
-
}
|
|
92
|
-
export interface UserResponse {
|
|
93
|
-
uuid: string;
|
|
94
|
-
photoUrl: string;
|
|
95
|
-
firstName: string;
|
|
96
|
-
lastName: string;
|
|
97
|
-
birthday: string;
|
|
98
|
-
gender: string;
|
|
99
|
-
phoneNumber: string;
|
|
100
|
-
email: string;
|
|
101
|
-
createdAt: string;
|
|
102
|
-
updatedAt: string;
|
|
103
|
-
}
|
|
104
|
-
export interface UsersResponse {
|
|
105
|
-
users: UserResponse[];
|
|
106
|
-
}
|
|
107
|
-
export interface EmailVerificationStatusResponse {
|
|
108
|
-
userId: string;
|
|
109
|
-
emailVerified: boolean;
|
|
110
|
-
}
|
|
111
|
-
export declare const USER_PACKAGE_NAME = "user";
|
|
112
|
-
export declare const UserPersonal: MessageFns<UserPersonal>;
|
|
113
|
-
export declare const UserAuthentication: MessageFns<UserAuthentication>;
|
|
114
|
-
export declare const User: MessageFns<User>;
|
|
115
|
-
export declare const CreateUserPersonal: MessageFns<CreateUserPersonal>;
|
|
116
|
-
export declare const CreateUserAuthentication: MessageFns<CreateUserAuthentication>;
|
|
117
|
-
export declare const CreateUserRequest: MessageFns<CreateUserRequest>;
|
|
118
|
-
export declare const GetByIdRequest: MessageFns<GetByIdRequest>;
|
|
119
|
-
export declare const FindByEmailRequest: MessageFns<FindByEmailRequest>;
|
|
120
|
-
export declare const FindByPhoneRequest: MessageFns<FindByPhoneRequest>;
|
|
121
|
-
export declare const UpdateUserRequest: MessageFns<UpdateUserRequest>;
|
|
122
|
-
export declare const UpdateUserPersonal: MessageFns<UpdateUserPersonal>;
|
|
123
|
-
export declare const UpdatePasswordRequest: MessageFns<UpdatePasswordRequest>;
|
|
124
|
-
export declare const ResetPasswordData: MessageFns<ResetPasswordData>;
|
|
125
|
-
export declare const RemoveUserRequest: MessageFns<RemoveUserRequest>;
|
|
126
|
-
export declare const UpdateEmailVerificationRequest: MessageFns<UpdateEmailVerificationRequest>;
|
|
127
|
-
export declare const GetEmailVerificationStatusRequest: MessageFns<GetEmailVerificationStatusRequest>;
|
|
128
|
-
export declare const UserResponse: MessageFns<UserResponse>;
|
|
129
|
-
export declare const UsersResponse: MessageFns<UsersResponse>;
|
|
130
|
-
export declare const EmailVerificationStatusResponse: MessageFns<EmailVerificationStatusResponse>;
|
|
131
|
-
export interface UserServiceClient {
|
|
132
|
-
create(request: CreateUserRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
133
|
-
findOne(request: GetByIdRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
134
|
-
findByEmail(request: FindByEmailRequest, metadata?: Metadata): Observable<User>;
|
|
135
|
-
findByPhone(request: FindByPhoneRequest, metadata?: Metadata): Observable<User>;
|
|
136
|
-
findAll(request: Empty, metadata?: Metadata): Observable<UsersResponse>;
|
|
137
|
-
update(request: UpdateUserRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
138
|
-
updatePersonal(request: UpdateUserPersonal, metadata?: Metadata): Observable<UserResponse>;
|
|
139
|
-
updatePassword(request: UpdatePasswordRequest, metadata?: Metadata): Observable<Empty>;
|
|
140
|
-
resetPassword(request: ResetPasswordData, metadata?: Metadata): Observable<Empty>;
|
|
141
|
-
remove(request: RemoveUserRequest, metadata?: Metadata): Observable<Empty>;
|
|
142
|
-
updateEmailVerification(request: UpdateEmailVerificationRequest, metadata?: Metadata): Observable<EmailVerificationStatusResponse>;
|
|
143
|
-
getEmailVerificationStatus(request: GetEmailVerificationStatusRequest, metadata?: Metadata): Observable<EmailVerificationStatusResponse>;
|
|
144
|
-
}
|
|
145
|
-
export interface UserServiceController {
|
|
146
|
-
create(request: CreateUserRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
147
|
-
findOne(request: GetByIdRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
148
|
-
findByEmail(request: FindByEmailRequest, metadata?: Metadata): Promise<User> | Observable<User> | User;
|
|
149
|
-
findByPhone(request: FindByPhoneRequest, metadata?: Metadata): Promise<User> | Observable<User> | User;
|
|
150
|
-
findAll(request: Empty, metadata?: Metadata): Promise<UsersResponse> | Observable<UsersResponse> | UsersResponse;
|
|
151
|
-
update(request: UpdateUserRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
152
|
-
updatePersonal(request: UpdateUserPersonal, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
153
|
-
updatePassword(request: UpdatePasswordRequest, metadata?: Metadata): void;
|
|
154
|
-
resetPassword(request: ResetPasswordData, metadata?: Metadata): void;
|
|
155
|
-
remove(request: RemoveUserRequest, metadata?: Metadata): void;
|
|
156
|
-
updateEmailVerification(request: UpdateEmailVerificationRequest, metadata?: Metadata): Promise<EmailVerificationStatusResponse> | Observable<EmailVerificationStatusResponse> | EmailVerificationStatusResponse;
|
|
157
|
-
getEmailVerificationStatus(request: GetEmailVerificationStatusRequest, metadata?: Metadata): Promise<EmailVerificationStatusResponse> | Observable<EmailVerificationStatusResponse> | EmailVerificationStatusResponse;
|
|
158
|
-
}
|
|
159
|
-
export declare function UserServiceControllerMethods(): (constructor: Function) => void;
|
|
160
|
-
export declare const USER_SERVICE_NAME = "UserService";
|
|
161
|
-
export type UserServiceService = typeof UserServiceService;
|
|
162
|
-
export declare const UserServiceService: {
|
|
163
|
-
readonly create: {
|
|
164
|
-
readonly path: "/user.UserService/create";
|
|
165
|
-
readonly requestStream: false;
|
|
166
|
-
readonly responseStream: false;
|
|
167
|
-
readonly requestSerialize: (value: CreateUserRequest) => Buffer;
|
|
168
|
-
readonly requestDeserialize: (value: Buffer) => CreateUserRequest;
|
|
169
|
-
readonly responseSerialize: (value: UserResponse) => Buffer;
|
|
170
|
-
readonly responseDeserialize: (value: Buffer) => UserResponse;
|
|
171
|
-
};
|
|
172
|
-
readonly findOne: {
|
|
173
|
-
readonly path: "/user.UserService/findOne";
|
|
174
|
-
readonly requestStream: false;
|
|
175
|
-
readonly responseStream: false;
|
|
176
|
-
readonly requestSerialize: (value: GetByIdRequest) => Buffer;
|
|
177
|
-
readonly requestDeserialize: (value: Buffer) => GetByIdRequest;
|
|
178
|
-
readonly responseSerialize: (value: UserResponse) => Buffer;
|
|
179
|
-
readonly responseDeserialize: (value: Buffer) => UserResponse;
|
|
180
|
-
};
|
|
181
|
-
readonly findByEmail: {
|
|
182
|
-
readonly path: "/user.UserService/findByEmail";
|
|
183
|
-
readonly requestStream: false;
|
|
184
|
-
readonly responseStream: false;
|
|
185
|
-
readonly requestSerialize: (value: FindByEmailRequest) => Buffer;
|
|
186
|
-
readonly requestDeserialize: (value: Buffer) => FindByEmailRequest;
|
|
187
|
-
readonly responseSerialize: (value: User) => Buffer;
|
|
188
|
-
readonly responseDeserialize: (value: Buffer) => User;
|
|
189
|
-
};
|
|
190
|
-
readonly findByPhone: {
|
|
191
|
-
readonly path: "/user.UserService/findByPhone";
|
|
192
|
-
readonly requestStream: false;
|
|
193
|
-
readonly responseStream: false;
|
|
194
|
-
readonly requestSerialize: (value: FindByPhoneRequest) => Buffer;
|
|
195
|
-
readonly requestDeserialize: (value: Buffer) => FindByPhoneRequest;
|
|
196
|
-
readonly responseSerialize: (value: User) => Buffer;
|
|
197
|
-
readonly responseDeserialize: (value: Buffer) => User;
|
|
198
|
-
};
|
|
199
|
-
readonly findAll: {
|
|
200
|
-
readonly path: "/user.UserService/findAll";
|
|
201
|
-
readonly requestStream: false;
|
|
202
|
-
readonly responseStream: false;
|
|
203
|
-
readonly requestSerialize: (value: Empty) => Buffer;
|
|
204
|
-
readonly requestDeserialize: (value: Buffer) => Empty;
|
|
205
|
-
readonly responseSerialize: (value: UsersResponse) => Buffer;
|
|
206
|
-
readonly responseDeserialize: (value: Buffer) => UsersResponse;
|
|
207
|
-
};
|
|
208
|
-
readonly update: {
|
|
209
|
-
readonly path: "/user.UserService/update";
|
|
210
|
-
readonly requestStream: false;
|
|
211
|
-
readonly responseStream: false;
|
|
212
|
-
readonly requestSerialize: (value: UpdateUserRequest) => Buffer;
|
|
213
|
-
readonly requestDeserialize: (value: Buffer) => UpdateUserRequest;
|
|
214
|
-
readonly responseSerialize: (value: UserResponse) => Buffer;
|
|
215
|
-
readonly responseDeserialize: (value: Buffer) => UserResponse;
|
|
216
|
-
};
|
|
217
|
-
readonly updatePersonal: {
|
|
218
|
-
readonly path: "/user.UserService/updatePersonal";
|
|
219
|
-
readonly requestStream: false;
|
|
220
|
-
readonly responseStream: false;
|
|
221
|
-
readonly requestSerialize: (value: UpdateUserPersonal) => Buffer;
|
|
222
|
-
readonly requestDeserialize: (value: Buffer) => UpdateUserPersonal;
|
|
223
|
-
readonly responseSerialize: (value: UserResponse) => Buffer;
|
|
224
|
-
readonly responseDeserialize: (value: Buffer) => UserResponse;
|
|
225
|
-
};
|
|
226
|
-
readonly updatePassword: {
|
|
227
|
-
readonly path: "/user.UserService/updatePassword";
|
|
228
|
-
readonly requestStream: false;
|
|
229
|
-
readonly responseStream: false;
|
|
230
|
-
readonly requestSerialize: (value: UpdatePasswordRequest) => Buffer;
|
|
231
|
-
readonly requestDeserialize: (value: Buffer) => UpdatePasswordRequest;
|
|
232
|
-
readonly responseSerialize: (value: Empty) => Buffer;
|
|
233
|
-
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
234
|
-
};
|
|
235
|
-
readonly resetPassword: {
|
|
236
|
-
readonly path: "/user.UserService/resetPassword";
|
|
237
|
-
readonly requestStream: false;
|
|
238
|
-
readonly responseStream: false;
|
|
239
|
-
readonly requestSerialize: (value: ResetPasswordData) => Buffer;
|
|
240
|
-
readonly requestDeserialize: (value: Buffer) => ResetPasswordData;
|
|
241
|
-
readonly responseSerialize: (value: Empty) => Buffer;
|
|
242
|
-
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
243
|
-
};
|
|
244
|
-
readonly remove: {
|
|
245
|
-
readonly path: "/user.UserService/remove";
|
|
246
|
-
readonly requestStream: false;
|
|
247
|
-
readonly responseStream: false;
|
|
248
|
-
readonly requestSerialize: (value: RemoveUserRequest) => Buffer;
|
|
249
|
-
readonly requestDeserialize: (value: Buffer) => RemoveUserRequest;
|
|
250
|
-
readonly responseSerialize: (value: Empty) => Buffer;
|
|
251
|
-
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
252
|
-
};
|
|
253
|
-
readonly updateEmailVerification: {
|
|
254
|
-
readonly path: "/user.UserService/updateEmailVerification";
|
|
255
|
-
readonly requestStream: false;
|
|
256
|
-
readonly responseStream: false;
|
|
257
|
-
readonly requestSerialize: (value: UpdateEmailVerificationRequest) => Buffer;
|
|
258
|
-
readonly requestDeserialize: (value: Buffer) => UpdateEmailVerificationRequest;
|
|
259
|
-
readonly responseSerialize: (value: EmailVerificationStatusResponse) => Buffer;
|
|
260
|
-
readonly responseDeserialize: (value: Buffer) => EmailVerificationStatusResponse;
|
|
261
|
-
};
|
|
262
|
-
readonly getEmailVerificationStatus: {
|
|
263
|
-
readonly path: "/user.UserService/getEmailVerificationStatus";
|
|
264
|
-
readonly requestStream: false;
|
|
265
|
-
readonly responseStream: false;
|
|
266
|
-
readonly requestSerialize: (value: GetEmailVerificationStatusRequest) => Buffer;
|
|
267
|
-
readonly requestDeserialize: (value: Buffer) => GetEmailVerificationStatusRequest;
|
|
268
|
-
readonly responseSerialize: (value: EmailVerificationStatusResponse) => Buffer;
|
|
269
|
-
readonly responseDeserialize: (value: Buffer) => EmailVerificationStatusResponse;
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
export interface UserServiceServer extends UntypedServiceImplementation {
|
|
273
|
-
create: handleUnaryCall<CreateUserRequest, UserResponse>;
|
|
274
|
-
findOne: handleUnaryCall<GetByIdRequest, UserResponse>;
|
|
275
|
-
findByEmail: handleUnaryCall<FindByEmailRequest, User>;
|
|
276
|
-
findByPhone: handleUnaryCall<FindByPhoneRequest, User>;
|
|
277
|
-
findAll: handleUnaryCall<Empty, UsersResponse>;
|
|
278
|
-
update: handleUnaryCall<UpdateUserRequest, UserResponse>;
|
|
279
|
-
updatePersonal: handleUnaryCall<UpdateUserPersonal, UserResponse>;
|
|
280
|
-
updatePassword: handleUnaryCall<UpdatePasswordRequest, Empty>;
|
|
281
|
-
resetPassword: handleUnaryCall<ResetPasswordData, Empty>;
|
|
282
|
-
remove: handleUnaryCall<RemoveUserRequest, Empty>;
|
|
283
|
-
updateEmailVerification: handleUnaryCall<UpdateEmailVerificationRequest, EmailVerificationStatusResponse>;
|
|
284
|
-
getEmailVerificationStatus: handleUnaryCall<GetEmailVerificationStatusRequest, EmailVerificationStatusResponse>;
|
|
285
|
-
}
|
|
286
|
-
export interface MessageFns<T> {
|
|
287
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
288
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
289
|
-
}
|