@trash-streamers/contracts 1.1.67 → 1.1.68
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/dist/gen/ts/account.d.ts +28 -0
- package/dist/gen/ts/account.js +196 -1
- package/dist/gen/ts/auth.d.ts +21 -0
- package/dist/gen/ts/auth.js +84 -1
- package/dist/gen/ts/google/protobuf/timestamp.d.ts +16 -0
- package/dist/gen/ts/google/protobuf/timestamp.js +15 -1
- package/dist/gen/ts/media.d.ts +21 -0
- package/dist/gen/ts/media.js +90 -1
- package/dist/gen/ts/users.d.ts +26 -0
- package/dist/gen/ts/users.js +152 -1
- package/dist/gen/ts/video.d.ts +27 -0
- package/dist/gen/ts/video.js +186 -1
- package/package.json +2 -2
package/dist/gen/ts/account.d.ts
CHANGED
|
@@ -59,6 +59,19 @@ export interface Account {
|
|
|
59
59
|
updatedAt: Date | undefined;
|
|
60
60
|
}
|
|
61
61
|
export declare const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
|
|
62
|
+
export declare const GetAccountRequest: MessageFns<GetAccountRequest>;
|
|
63
|
+
export declare const GetAccountResponse: MessageFns<GetAccountResponse>;
|
|
64
|
+
export declare const InitEmailChangeRequest: MessageFns<InitEmailChangeRequest>;
|
|
65
|
+
export declare const InitEmailChangeResponse: MessageFns<InitEmailChangeResponse>;
|
|
66
|
+
export declare const ConfirmEmailChangeRequest: MessageFns<ConfirmEmailChangeRequest>;
|
|
67
|
+
export declare const ConfirmEmailChangeResponse: MessageFns<ConfirmEmailChangeResponse>;
|
|
68
|
+
export declare const InitPhoneChangeRequest: MessageFns<InitPhoneChangeRequest>;
|
|
69
|
+
export declare const InitPhoneChangeResponse: MessageFns<InitPhoneChangeResponse>;
|
|
70
|
+
export declare const ConfirmPhoneChangeRequest: MessageFns<ConfirmPhoneChangeRequest>;
|
|
71
|
+
export declare const ConfirmPhoneChangeResponse: MessageFns<ConfirmPhoneChangeResponse>;
|
|
72
|
+
export declare const GetAccountsRequest: MessageFns<GetAccountsRequest>;
|
|
73
|
+
export declare const GetAccountsResponse: MessageFns<GetAccountsResponse>;
|
|
74
|
+
export declare const Account: MessageFns<Account>;
|
|
62
75
|
export interface AccountServiceClient {
|
|
63
76
|
getAccount(request: GetAccountRequest): Observable<GetAccountResponse>;
|
|
64
77
|
getAccounts(request: GetAccountsRequest): Observable<GetAccountsResponse>;
|
|
@@ -77,3 +90,18 @@ export interface AccountServiceController {
|
|
|
77
90
|
}
|
|
78
91
|
export declare function AccountServiceControllerMethods(): (constructor: Function) => void;
|
|
79
92
|
export declare const ACCOUNT_SERVICE_NAME = "AccountService";
|
|
93
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
94
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
95
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
96
|
+
} : Partial<T>;
|
|
97
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
98
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
99
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
100
|
+
} & {
|
|
101
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
102
|
+
};
|
|
103
|
+
export interface MessageFns<T> {
|
|
104
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
105
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
106
|
+
}
|
|
107
|
+
export {};
|
package/dist/gen/ts/account.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v6.33.5
|
|
6
6
|
// source: account.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ACCOUNT_SERVICE_NAME = exports.ACCOUNT_V1_PACKAGE_NAME = exports.Role = exports.protobufPackage = void 0;
|
|
8
|
+
exports.ACCOUNT_SERVICE_NAME = exports.Account = exports.GetAccountsResponse = exports.GetAccountsRequest = exports.ConfirmPhoneChangeResponse = exports.ConfirmPhoneChangeRequest = exports.InitPhoneChangeResponse = exports.InitPhoneChangeRequest = exports.ConfirmEmailChangeResponse = exports.ConfirmEmailChangeRequest = exports.InitEmailChangeResponse = exports.InitEmailChangeRequest = exports.GetAccountResponse = exports.GetAccountRequest = exports.ACCOUNT_V1_PACKAGE_NAME = exports.Role = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AccountServiceControllerMethods = AccountServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
@@ -26,6 +26,201 @@ protobufjs_1.wrappers[".google.protobuf.Timestamp"] = {
|
|
|
26
26
|
return new Date(message.seconds * 1000 + message.nanos / 1e6);
|
|
27
27
|
},
|
|
28
28
|
};
|
|
29
|
+
function createBaseGetAccountRequest() {
|
|
30
|
+
return { id: "" };
|
|
31
|
+
}
|
|
32
|
+
exports.GetAccountRequest = {
|
|
33
|
+
create(base) {
|
|
34
|
+
return exports.GetAccountRequest.fromPartial(base ?? {});
|
|
35
|
+
},
|
|
36
|
+
fromPartial(object) {
|
|
37
|
+
const message = createBaseGetAccountRequest();
|
|
38
|
+
message.id = object.id ?? "";
|
|
39
|
+
return message;
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
function createBaseGetAccountResponse() {
|
|
43
|
+
return { account: undefined };
|
|
44
|
+
}
|
|
45
|
+
exports.GetAccountResponse = {
|
|
46
|
+
create(base) {
|
|
47
|
+
return exports.GetAccountResponse.fromPartial(base ?? {});
|
|
48
|
+
},
|
|
49
|
+
fromPartial(object) {
|
|
50
|
+
const message = createBaseGetAccountResponse();
|
|
51
|
+
message.account = (object.account !== undefined && object.account !== null)
|
|
52
|
+
? exports.Account.fromPartial(object.account)
|
|
53
|
+
: undefined;
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
function createBaseInitEmailChangeRequest() {
|
|
58
|
+
return { email: "", userId: "" };
|
|
59
|
+
}
|
|
60
|
+
exports.InitEmailChangeRequest = {
|
|
61
|
+
create(base) {
|
|
62
|
+
return exports.InitEmailChangeRequest.fromPartial(base ?? {});
|
|
63
|
+
},
|
|
64
|
+
fromPartial(object) {
|
|
65
|
+
const message = createBaseInitEmailChangeRequest();
|
|
66
|
+
message.email = object.email ?? "";
|
|
67
|
+
message.userId = object.userId ?? "";
|
|
68
|
+
return message;
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
function createBaseInitEmailChangeResponse() {
|
|
72
|
+
return { ok: false };
|
|
73
|
+
}
|
|
74
|
+
exports.InitEmailChangeResponse = {
|
|
75
|
+
create(base) {
|
|
76
|
+
return exports.InitEmailChangeResponse.fromPartial(base ?? {});
|
|
77
|
+
},
|
|
78
|
+
fromPartial(object) {
|
|
79
|
+
const message = createBaseInitEmailChangeResponse();
|
|
80
|
+
message.ok = object.ok ?? false;
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
function createBaseConfirmEmailChangeRequest() {
|
|
85
|
+
return { email: "", code: "", userId: "" };
|
|
86
|
+
}
|
|
87
|
+
exports.ConfirmEmailChangeRequest = {
|
|
88
|
+
create(base) {
|
|
89
|
+
return exports.ConfirmEmailChangeRequest.fromPartial(base ?? {});
|
|
90
|
+
},
|
|
91
|
+
fromPartial(object) {
|
|
92
|
+
const message = createBaseConfirmEmailChangeRequest();
|
|
93
|
+
message.email = object.email ?? "";
|
|
94
|
+
message.code = object.code ?? "";
|
|
95
|
+
message.userId = object.userId ?? "";
|
|
96
|
+
return message;
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
function createBaseConfirmEmailChangeResponse() {
|
|
100
|
+
return { ok: false };
|
|
101
|
+
}
|
|
102
|
+
exports.ConfirmEmailChangeResponse = {
|
|
103
|
+
create(base) {
|
|
104
|
+
return exports.ConfirmEmailChangeResponse.fromPartial(base ?? {});
|
|
105
|
+
},
|
|
106
|
+
fromPartial(object) {
|
|
107
|
+
const message = createBaseConfirmEmailChangeResponse();
|
|
108
|
+
message.ok = object.ok ?? false;
|
|
109
|
+
return message;
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
function createBaseInitPhoneChangeRequest() {
|
|
113
|
+
return { phone: "", userId: "" };
|
|
114
|
+
}
|
|
115
|
+
exports.InitPhoneChangeRequest = {
|
|
116
|
+
create(base) {
|
|
117
|
+
return exports.InitPhoneChangeRequest.fromPartial(base ?? {});
|
|
118
|
+
},
|
|
119
|
+
fromPartial(object) {
|
|
120
|
+
const message = createBaseInitPhoneChangeRequest();
|
|
121
|
+
message.phone = object.phone ?? "";
|
|
122
|
+
message.userId = object.userId ?? "";
|
|
123
|
+
return message;
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
function createBaseInitPhoneChangeResponse() {
|
|
127
|
+
return { ok: false };
|
|
128
|
+
}
|
|
129
|
+
exports.InitPhoneChangeResponse = {
|
|
130
|
+
create(base) {
|
|
131
|
+
return exports.InitPhoneChangeResponse.fromPartial(base ?? {});
|
|
132
|
+
},
|
|
133
|
+
fromPartial(object) {
|
|
134
|
+
const message = createBaseInitPhoneChangeResponse();
|
|
135
|
+
message.ok = object.ok ?? false;
|
|
136
|
+
return message;
|
|
137
|
+
},
|
|
138
|
+
};
|
|
139
|
+
function createBaseConfirmPhoneChangeRequest() {
|
|
140
|
+
return { phone: "", code: "", userId: "" };
|
|
141
|
+
}
|
|
142
|
+
exports.ConfirmPhoneChangeRequest = {
|
|
143
|
+
create(base) {
|
|
144
|
+
return exports.ConfirmPhoneChangeRequest.fromPartial(base ?? {});
|
|
145
|
+
},
|
|
146
|
+
fromPartial(object) {
|
|
147
|
+
const message = createBaseConfirmPhoneChangeRequest();
|
|
148
|
+
message.phone = object.phone ?? "";
|
|
149
|
+
message.code = object.code ?? "";
|
|
150
|
+
message.userId = object.userId ?? "";
|
|
151
|
+
return message;
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
function createBaseConfirmPhoneChangeResponse() {
|
|
155
|
+
return { ok: false };
|
|
156
|
+
}
|
|
157
|
+
exports.ConfirmPhoneChangeResponse = {
|
|
158
|
+
create(base) {
|
|
159
|
+
return exports.ConfirmPhoneChangeResponse.fromPartial(base ?? {});
|
|
160
|
+
},
|
|
161
|
+
fromPartial(object) {
|
|
162
|
+
const message = createBaseConfirmPhoneChangeResponse();
|
|
163
|
+
message.ok = object.ok ?? false;
|
|
164
|
+
return message;
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
function createBaseGetAccountsRequest() {
|
|
168
|
+
return { ids: [] };
|
|
169
|
+
}
|
|
170
|
+
exports.GetAccountsRequest = {
|
|
171
|
+
create(base) {
|
|
172
|
+
return exports.GetAccountsRequest.fromPartial(base ?? {});
|
|
173
|
+
},
|
|
174
|
+
fromPartial(object) {
|
|
175
|
+
const message = createBaseGetAccountsRequest();
|
|
176
|
+
message.ids = object.ids?.map((e) => e) || [];
|
|
177
|
+
return message;
|
|
178
|
+
},
|
|
179
|
+
};
|
|
180
|
+
function createBaseGetAccountsResponse() {
|
|
181
|
+
return { accounts: [] };
|
|
182
|
+
}
|
|
183
|
+
exports.GetAccountsResponse = {
|
|
184
|
+
create(base) {
|
|
185
|
+
return exports.GetAccountsResponse.fromPartial(base ?? {});
|
|
186
|
+
},
|
|
187
|
+
fromPartial(object) {
|
|
188
|
+
const message = createBaseGetAccountsResponse();
|
|
189
|
+
message.accounts = object.accounts?.map((e) => exports.Account.fromPartial(e)) || [];
|
|
190
|
+
return message;
|
|
191
|
+
},
|
|
192
|
+
};
|
|
193
|
+
function createBaseAccount() {
|
|
194
|
+
return {
|
|
195
|
+
id: "",
|
|
196
|
+
phone: "",
|
|
197
|
+
email: "",
|
|
198
|
+
isPhoneVerified: false,
|
|
199
|
+
isEmailVerified: false,
|
|
200
|
+
role: Role.USER,
|
|
201
|
+
userId: "",
|
|
202
|
+
createdAt: undefined,
|
|
203
|
+
updatedAt: undefined,
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
exports.Account = {
|
|
207
|
+
create(base) {
|
|
208
|
+
return exports.Account.fromPartial(base ?? {});
|
|
209
|
+
},
|
|
210
|
+
fromPartial(object) {
|
|
211
|
+
const message = createBaseAccount();
|
|
212
|
+
message.id = object.id ?? "";
|
|
213
|
+
message.phone = object.phone ?? "";
|
|
214
|
+
message.email = object.email ?? "";
|
|
215
|
+
message.isPhoneVerified = object.isPhoneVerified ?? false;
|
|
216
|
+
message.isEmailVerified = object.isEmailVerified ?? false;
|
|
217
|
+
message.role = object.role ?? Role.USER;
|
|
218
|
+
message.userId = object.userId ?? "";
|
|
219
|
+
message.createdAt = object.createdAt ?? undefined;
|
|
220
|
+
message.updatedAt = object.updatedAt ?? undefined;
|
|
221
|
+
return message;
|
|
222
|
+
},
|
|
223
|
+
};
|
|
29
224
|
function AccountServiceControllerMethods() {
|
|
30
225
|
return function (constructor) {
|
|
31
226
|
const grpcMethods = [
|
package/dist/gen/ts/auth.d.ts
CHANGED
|
@@ -29,6 +29,12 @@ export interface RefreshResponse {
|
|
|
29
29
|
refreshToken: string;
|
|
30
30
|
}
|
|
31
31
|
export declare const AUTH_V1_PACKAGE_NAME = "auth.v1";
|
|
32
|
+
export declare const SendOtpRequest: MessageFns<SendOtpRequest>;
|
|
33
|
+
export declare const SendOtpResponse: MessageFns<SendOtpResponse>;
|
|
34
|
+
export declare const VerifyOtpRequest: MessageFns<VerifyOtpRequest>;
|
|
35
|
+
export declare const VerifyOtpResponse: MessageFns<VerifyOtpResponse>;
|
|
36
|
+
export declare const RefreshRequest: MessageFns<RefreshRequest>;
|
|
37
|
+
export declare const RefreshResponse: MessageFns<RefreshResponse>;
|
|
32
38
|
export interface AuthServiceClient {
|
|
33
39
|
sendOtp(request: SendOtpRequest): Observable<SendOtpResponse>;
|
|
34
40
|
verifyOtp(request: VerifyOtpRequest): Observable<VerifyOtpResponse>;
|
|
@@ -41,3 +47,18 @@ export interface AuthServiceController {
|
|
|
41
47
|
}
|
|
42
48
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
43
49
|
export declare const AUTH_SERVICE_NAME = "AuthService";
|
|
50
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
51
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
52
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
53
|
+
} : Partial<T>;
|
|
54
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
55
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
56
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
57
|
+
} & {
|
|
58
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
59
|
+
};
|
|
60
|
+
export interface MessageFns<T> {
|
|
61
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
62
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
package/dist/gen/ts/auth.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v6.33.5
|
|
6
6
|
// source: auth.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AUTH_SERVICE_NAME = exports.AUTH_V1_PACKAGE_NAME = exports.AuthType = exports.protobufPackage = void 0;
|
|
8
|
+
exports.AUTH_SERVICE_NAME = exports.RefreshResponse = exports.RefreshRequest = exports.VerifyOtpResponse = exports.VerifyOtpRequest = exports.SendOtpResponse = exports.SendOtpRequest = exports.AUTH_V1_PACKAGE_NAME = exports.AuthType = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AuthServiceControllerMethods = AuthServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
@@ -17,6 +17,89 @@ var AuthType;
|
|
|
17
17
|
AuthType["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
18
18
|
})(AuthType || (exports.AuthType = AuthType = {}));
|
|
19
19
|
exports.AUTH_V1_PACKAGE_NAME = "auth.v1";
|
|
20
|
+
function createBaseSendOtpRequest() {
|
|
21
|
+
return { identifier: "", type: AuthType.PHONE };
|
|
22
|
+
}
|
|
23
|
+
exports.SendOtpRequest = {
|
|
24
|
+
create(base) {
|
|
25
|
+
return exports.SendOtpRequest.fromPartial(base ?? {});
|
|
26
|
+
},
|
|
27
|
+
fromPartial(object) {
|
|
28
|
+
const message = createBaseSendOtpRequest();
|
|
29
|
+
message.identifier = object.identifier ?? "";
|
|
30
|
+
message.type = object.type ?? AuthType.PHONE;
|
|
31
|
+
return message;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
function createBaseSendOtpResponse() {
|
|
35
|
+
return { ok: false };
|
|
36
|
+
}
|
|
37
|
+
exports.SendOtpResponse = {
|
|
38
|
+
create(base) {
|
|
39
|
+
return exports.SendOtpResponse.fromPartial(base ?? {});
|
|
40
|
+
},
|
|
41
|
+
fromPartial(object) {
|
|
42
|
+
const message = createBaseSendOtpResponse();
|
|
43
|
+
message.ok = object.ok ?? false;
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
function createBaseVerifyOtpRequest() {
|
|
48
|
+
return { identifier: "", type: AuthType.PHONE, code: "" };
|
|
49
|
+
}
|
|
50
|
+
exports.VerifyOtpRequest = {
|
|
51
|
+
create(base) {
|
|
52
|
+
return exports.VerifyOtpRequest.fromPartial(base ?? {});
|
|
53
|
+
},
|
|
54
|
+
fromPartial(object) {
|
|
55
|
+
const message = createBaseVerifyOtpRequest();
|
|
56
|
+
message.identifier = object.identifier ?? "";
|
|
57
|
+
message.type = object.type ?? AuthType.PHONE;
|
|
58
|
+
message.code = object.code ?? "";
|
|
59
|
+
return message;
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
function createBaseVerifyOtpResponse() {
|
|
63
|
+
return { accessToken: "", refreshToken: "" };
|
|
64
|
+
}
|
|
65
|
+
exports.VerifyOtpResponse = {
|
|
66
|
+
create(base) {
|
|
67
|
+
return exports.VerifyOtpResponse.fromPartial(base ?? {});
|
|
68
|
+
},
|
|
69
|
+
fromPartial(object) {
|
|
70
|
+
const message = createBaseVerifyOtpResponse();
|
|
71
|
+
message.accessToken = object.accessToken ?? "";
|
|
72
|
+
message.refreshToken = object.refreshToken ?? "";
|
|
73
|
+
return message;
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
function createBaseRefreshRequest() {
|
|
77
|
+
return { refreshToken: "" };
|
|
78
|
+
}
|
|
79
|
+
exports.RefreshRequest = {
|
|
80
|
+
create(base) {
|
|
81
|
+
return exports.RefreshRequest.fromPartial(base ?? {});
|
|
82
|
+
},
|
|
83
|
+
fromPartial(object) {
|
|
84
|
+
const message = createBaseRefreshRequest();
|
|
85
|
+
message.refreshToken = object.refreshToken ?? "";
|
|
86
|
+
return message;
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
function createBaseRefreshResponse() {
|
|
90
|
+
return { accessToken: "", refreshToken: "" };
|
|
91
|
+
}
|
|
92
|
+
exports.RefreshResponse = {
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.RefreshResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBaseRefreshResponse();
|
|
98
|
+
message.accessToken = object.accessToken ?? "";
|
|
99
|
+
message.refreshToken = object.refreshToken ?? "";
|
|
100
|
+
return message;
|
|
101
|
+
},
|
|
102
|
+
};
|
|
20
103
|
function AuthServiceControllerMethods() {
|
|
21
104
|
return function (constructor) {
|
|
22
105
|
const grpcMethods = ["sendOtp", "verifyOtp", "refresh"];
|
|
@@ -107,3 +107,19 @@ export interface Timestamp {
|
|
|
107
107
|
nanos: number;
|
|
108
108
|
}
|
|
109
109
|
export declare const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
110
|
+
export declare const Timestamp: MessageFns<Timestamp>;
|
|
111
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
112
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
113
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
114
|
+
} : Partial<T>;
|
|
115
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
116
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
117
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
118
|
+
} & {
|
|
119
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
120
|
+
};
|
|
121
|
+
export interface MessageFns<T> {
|
|
122
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
123
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
124
|
+
}
|
|
125
|
+
export {};
|
|
@@ -5,7 +5,21 @@
|
|
|
5
5
|
// protoc v6.33.5
|
|
6
6
|
// source: google/protobuf/timestamp.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
8
|
+
exports.Timestamp = exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
exports.protobufPackage = "google.protobuf";
|
|
11
11
|
exports.GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
12
|
+
function createBaseTimestamp() {
|
|
13
|
+
return { seconds: 0, nanos: 0 };
|
|
14
|
+
}
|
|
15
|
+
exports.Timestamp = {
|
|
16
|
+
create(base) {
|
|
17
|
+
return exports.Timestamp.fromPartial(base ?? {});
|
|
18
|
+
},
|
|
19
|
+
fromPartial(object) {
|
|
20
|
+
const message = createBaseTimestamp();
|
|
21
|
+
message.seconds = object.seconds ?? 0;
|
|
22
|
+
message.nanos = object.nanos ?? 0;
|
|
23
|
+
return message;
|
|
24
|
+
},
|
|
25
|
+
};
|
package/dist/gen/ts/media.d.ts
CHANGED
|
@@ -35,6 +35,12 @@ export interface GetVideoUploadTicketResponse {
|
|
|
35
35
|
videoId: string;
|
|
36
36
|
}
|
|
37
37
|
export declare const MEDIA_V1_PACKAGE_NAME = "media.v1";
|
|
38
|
+
export declare const UploadImageRequest: MessageFns<UploadImageRequest>;
|
|
39
|
+
export declare const UploadImageResponse: MessageFns<UploadImageResponse>;
|
|
40
|
+
export declare const GetImageRequest: MessageFns<GetImageRequest>;
|
|
41
|
+
export declare const GetImageResponse: MessageFns<GetImageResponse>;
|
|
42
|
+
export declare const GetVideoUploadTicketRequest: MessageFns<GetVideoUploadTicketRequest>;
|
|
43
|
+
export declare const GetVideoUploadTicketResponse: MessageFns<GetVideoUploadTicketResponse>;
|
|
38
44
|
export interface MediaServiceClient {
|
|
39
45
|
uploadImage(request: UploadImageRequest): Observable<UploadImageResponse>;
|
|
40
46
|
getImage(request: GetImageRequest): Observable<GetImageResponse>;
|
|
@@ -47,3 +53,18 @@ export interface MediaServiceController {
|
|
|
47
53
|
}
|
|
48
54
|
export declare function MediaServiceControllerMethods(): (constructor: Function) => void;
|
|
49
55
|
export declare const MEDIA_SERVICE_NAME = "MediaService";
|
|
56
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
57
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
58
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
59
|
+
} : Partial<T>;
|
|
60
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
61
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
62
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
63
|
+
} & {
|
|
64
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
65
|
+
};
|
|
66
|
+
export interface MessageFns<T> {
|
|
67
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
68
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
69
|
+
}
|
|
70
|
+
export {};
|
package/dist/gen/ts/media.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v6.33.5
|
|
6
6
|
// source: media.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.MEDIA_SERVICE_NAME = exports.MEDIA_V1_PACKAGE_NAME = exports.Folder = exports.protobufPackage = void 0;
|
|
8
|
+
exports.MEDIA_SERVICE_NAME = exports.GetVideoUploadTicketResponse = exports.GetVideoUploadTicketRequest = exports.GetImageResponse = exports.GetImageRequest = exports.UploadImageResponse = exports.UploadImageRequest = exports.MEDIA_V1_PACKAGE_NAME = exports.Folder = exports.protobufPackage = void 0;
|
|
9
9
|
exports.MediaServiceControllerMethods = MediaServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
@@ -26,6 +26,95 @@ protobufjs_1.wrappers[".google.protobuf.Timestamp"] = {
|
|
|
26
26
|
return new Date(message.seconds * 1000 + message.nanos / 1e6);
|
|
27
27
|
},
|
|
28
28
|
};
|
|
29
|
+
function createBaseUploadImageRequest() {
|
|
30
|
+
return { fileName: "", folder: Folder.AVATAR, contentType: "", data: new Uint8Array(0) };
|
|
31
|
+
}
|
|
32
|
+
exports.UploadImageRequest = {
|
|
33
|
+
create(base) {
|
|
34
|
+
return exports.UploadImageRequest.fromPartial(base ?? {});
|
|
35
|
+
},
|
|
36
|
+
fromPartial(object) {
|
|
37
|
+
const message = createBaseUploadImageRequest();
|
|
38
|
+
message.fileName = object.fileName ?? "";
|
|
39
|
+
message.folder = object.folder ?? Folder.AVATAR;
|
|
40
|
+
message.contentType = object.contentType ?? "";
|
|
41
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
42
|
+
message.resizeWidth = object.resizeWidth ?? undefined;
|
|
43
|
+
message.resizeHeight = object.resizeHeight ?? undefined;
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
function createBaseUploadImageResponse() {
|
|
48
|
+
return { key: "", updatedAt: undefined };
|
|
49
|
+
}
|
|
50
|
+
exports.UploadImageResponse = {
|
|
51
|
+
create(base) {
|
|
52
|
+
return exports.UploadImageResponse.fromPartial(base ?? {});
|
|
53
|
+
},
|
|
54
|
+
fromPartial(object) {
|
|
55
|
+
const message = createBaseUploadImageResponse();
|
|
56
|
+
message.key = object.key ?? "";
|
|
57
|
+
message.updatedAt = object.updatedAt ?? undefined;
|
|
58
|
+
return message;
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
function createBaseGetImageRequest() {
|
|
62
|
+
return { key: "" };
|
|
63
|
+
}
|
|
64
|
+
exports.GetImageRequest = {
|
|
65
|
+
create(base) {
|
|
66
|
+
return exports.GetImageRequest.fromPartial(base ?? {});
|
|
67
|
+
},
|
|
68
|
+
fromPartial(object) {
|
|
69
|
+
const message = createBaseGetImageRequest();
|
|
70
|
+
message.key = object.key ?? "";
|
|
71
|
+
return message;
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
function createBaseGetImageResponse() {
|
|
75
|
+
return { data: new Uint8Array(0), contentType: "" };
|
|
76
|
+
}
|
|
77
|
+
exports.GetImageResponse = {
|
|
78
|
+
create(base) {
|
|
79
|
+
return exports.GetImageResponse.fromPartial(base ?? {});
|
|
80
|
+
},
|
|
81
|
+
fromPartial(object) {
|
|
82
|
+
const message = createBaseGetImageResponse();
|
|
83
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
84
|
+
message.contentType = object.contentType ?? "";
|
|
85
|
+
return message;
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
function createBaseGetVideoUploadTicketRequest() {
|
|
89
|
+
return { fileName: "", contentType: "", ownerId: "" };
|
|
90
|
+
}
|
|
91
|
+
exports.GetVideoUploadTicketRequest = {
|
|
92
|
+
create(base) {
|
|
93
|
+
return exports.GetVideoUploadTicketRequest.fromPartial(base ?? {});
|
|
94
|
+
},
|
|
95
|
+
fromPartial(object) {
|
|
96
|
+
const message = createBaseGetVideoUploadTicketRequest();
|
|
97
|
+
message.fileName = object.fileName ?? "";
|
|
98
|
+
message.contentType = object.contentType ?? "";
|
|
99
|
+
message.ownerId = object.ownerId ?? "";
|
|
100
|
+
return message;
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
function createBaseGetVideoUploadTicketResponse() {
|
|
104
|
+
return { uploadUrl: "", fileKey: "", videoId: "" };
|
|
105
|
+
}
|
|
106
|
+
exports.GetVideoUploadTicketResponse = {
|
|
107
|
+
create(base) {
|
|
108
|
+
return exports.GetVideoUploadTicketResponse.fromPartial(base ?? {});
|
|
109
|
+
},
|
|
110
|
+
fromPartial(object) {
|
|
111
|
+
const message = createBaseGetVideoUploadTicketResponse();
|
|
112
|
+
message.uploadUrl = object.uploadUrl ?? "";
|
|
113
|
+
message.fileKey = object.fileKey ?? "";
|
|
114
|
+
message.videoId = object.videoId ?? "";
|
|
115
|
+
return message;
|
|
116
|
+
},
|
|
117
|
+
};
|
|
29
118
|
function MediaServiceControllerMethods() {
|
|
30
119
|
return function (constructor) {
|
|
31
120
|
const grpcMethods = ["uploadImage", "getImage", "getVideoUploadTicket"];
|
package/dist/gen/ts/users.d.ts
CHANGED
|
@@ -42,6 +42,17 @@ export interface User {
|
|
|
42
42
|
createdAt: Date | undefined;
|
|
43
43
|
}
|
|
44
44
|
export declare const USERS_V1_PACKAGE_NAME = "users.v1";
|
|
45
|
+
export declare const GetMeRequest: MessageFns<GetMeRequest>;
|
|
46
|
+
export declare const GetMeResponse: MessageFns<GetMeResponse>;
|
|
47
|
+
export declare const GetUsersRequest: MessageFns<GetUsersRequest>;
|
|
48
|
+
export declare const GetUsersResponse: MessageFns<GetUsersResponse>;
|
|
49
|
+
export declare const CreateUserRequest: MessageFns<CreateUserRequest>;
|
|
50
|
+
export declare const CreateUserResponse: MessageFns<CreateUserResponse>;
|
|
51
|
+
export declare const PatchUserRequest: MessageFns<PatchUserRequest>;
|
|
52
|
+
export declare const PatchUserResponse: MessageFns<PatchUserResponse>;
|
|
53
|
+
export declare const DeleteAvatarProfileRequest: MessageFns<DeleteAvatarProfileRequest>;
|
|
54
|
+
export declare const DeleteAvatarProfileResponse: MessageFns<DeleteAvatarProfileResponse>;
|
|
55
|
+
export declare const User: MessageFns<User>;
|
|
45
56
|
export interface UsersServiceClient {
|
|
46
57
|
getMe(request: GetMeRequest): Observable<GetMeResponse>;
|
|
47
58
|
getUsers(request: GetUsersRequest): Observable<GetUsersResponse>;
|
|
@@ -58,3 +69,18 @@ export interface UsersServiceController {
|
|
|
58
69
|
}
|
|
59
70
|
export declare function UsersServiceControllerMethods(): (constructor: Function) => void;
|
|
60
71
|
export declare const USERS_SERVICE_NAME = "UsersService";
|
|
72
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
73
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
74
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
75
|
+
} : Partial<T>;
|
|
76
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
77
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
78
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
79
|
+
} & {
|
|
80
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
81
|
+
};
|
|
82
|
+
export interface MessageFns<T> {
|
|
83
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
84
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
85
|
+
}
|
|
86
|
+
export {};
|
package/dist/gen/ts/users.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v6.33.5
|
|
6
6
|
// source: users.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.USERS_SERVICE_NAME = exports.USERS_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
8
|
+
exports.USERS_SERVICE_NAME = exports.User = exports.DeleteAvatarProfileResponse = exports.DeleteAvatarProfileRequest = exports.PatchUserResponse = exports.PatchUserRequest = exports.CreateUserResponse = exports.CreateUserRequest = exports.GetUsersResponse = exports.GetUsersRequest = exports.GetMeResponse = exports.GetMeRequest = exports.USERS_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.UsersServiceControllerMethods = UsersServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
@@ -20,6 +20,157 @@ protobufjs_1.wrappers[".google.protobuf.Timestamp"] = {
|
|
|
20
20
|
return new Date(message.seconds * 1000 + message.nanos / 1e6);
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
|
+
function createBaseGetMeRequest() {
|
|
24
|
+
return { id: "" };
|
|
25
|
+
}
|
|
26
|
+
exports.GetMeRequest = {
|
|
27
|
+
create(base) {
|
|
28
|
+
return exports.GetMeRequest.fromPartial(base ?? {});
|
|
29
|
+
},
|
|
30
|
+
fromPartial(object) {
|
|
31
|
+
const message = createBaseGetMeRequest();
|
|
32
|
+
message.id = object.id ?? "";
|
|
33
|
+
return message;
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
function createBaseGetMeResponse() {
|
|
37
|
+
return { user: undefined };
|
|
38
|
+
}
|
|
39
|
+
exports.GetMeResponse = {
|
|
40
|
+
create(base) {
|
|
41
|
+
return exports.GetMeResponse.fromPartial(base ?? {});
|
|
42
|
+
},
|
|
43
|
+
fromPartial(object) {
|
|
44
|
+
const message = createBaseGetMeResponse();
|
|
45
|
+
message.user = (object.user !== undefined && object.user !== null) ? exports.User.fromPartial(object.user) : undefined;
|
|
46
|
+
return message;
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
function createBaseGetUsersRequest() {
|
|
50
|
+
return { ids: [] };
|
|
51
|
+
}
|
|
52
|
+
exports.GetUsersRequest = {
|
|
53
|
+
create(base) {
|
|
54
|
+
return exports.GetUsersRequest.fromPartial(base ?? {});
|
|
55
|
+
},
|
|
56
|
+
fromPartial(object) {
|
|
57
|
+
const message = createBaseGetUsersRequest();
|
|
58
|
+
message.ids = object.ids?.map((e) => e) || [];
|
|
59
|
+
return message;
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
function createBaseGetUsersResponse() {
|
|
63
|
+
return { users: [] };
|
|
64
|
+
}
|
|
65
|
+
exports.GetUsersResponse = {
|
|
66
|
+
create(base) {
|
|
67
|
+
return exports.GetUsersResponse.fromPartial(base ?? {});
|
|
68
|
+
},
|
|
69
|
+
fromPartial(object) {
|
|
70
|
+
const message = createBaseGetUsersResponse();
|
|
71
|
+
message.users = object.users?.map((e) => exports.User.fromPartial(e)) || [];
|
|
72
|
+
return message;
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
function createBaseCreateUserRequest() {
|
|
76
|
+
return { id: "" };
|
|
77
|
+
}
|
|
78
|
+
exports.CreateUserRequest = {
|
|
79
|
+
create(base) {
|
|
80
|
+
return exports.CreateUserRequest.fromPartial(base ?? {});
|
|
81
|
+
},
|
|
82
|
+
fromPartial(object) {
|
|
83
|
+
const message = createBaseCreateUserRequest();
|
|
84
|
+
message.id = object.id ?? "";
|
|
85
|
+
return message;
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
function createBaseCreateUserResponse() {
|
|
89
|
+
return { ok: false };
|
|
90
|
+
}
|
|
91
|
+
exports.CreateUserResponse = {
|
|
92
|
+
create(base) {
|
|
93
|
+
return exports.CreateUserResponse.fromPartial(base ?? {});
|
|
94
|
+
},
|
|
95
|
+
fromPartial(object) {
|
|
96
|
+
const message = createBaseCreateUserResponse();
|
|
97
|
+
message.ok = object.ok ?? false;
|
|
98
|
+
return message;
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
function createBasePatchUserRequest() {
|
|
102
|
+
return { userId: "" };
|
|
103
|
+
}
|
|
104
|
+
exports.PatchUserRequest = {
|
|
105
|
+
create(base) {
|
|
106
|
+
return exports.PatchUserRequest.fromPartial(base ?? {});
|
|
107
|
+
},
|
|
108
|
+
fromPartial(object) {
|
|
109
|
+
const message = createBasePatchUserRequest();
|
|
110
|
+
message.userId = object.userId ?? "";
|
|
111
|
+
message.name = object.name ?? undefined;
|
|
112
|
+
message.avatar = object.avatar ?? undefined;
|
|
113
|
+
return message;
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
function createBasePatchUserResponse() {
|
|
117
|
+
return { ok: false };
|
|
118
|
+
}
|
|
119
|
+
exports.PatchUserResponse = {
|
|
120
|
+
create(base) {
|
|
121
|
+
return exports.PatchUserResponse.fromPartial(base ?? {});
|
|
122
|
+
},
|
|
123
|
+
fromPartial(object) {
|
|
124
|
+
const message = createBasePatchUserResponse();
|
|
125
|
+
message.ok = object.ok ?? false;
|
|
126
|
+
return message;
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
function createBaseDeleteAvatarProfileRequest() {
|
|
130
|
+
return { userId: "", key: "" };
|
|
131
|
+
}
|
|
132
|
+
exports.DeleteAvatarProfileRequest = {
|
|
133
|
+
create(base) {
|
|
134
|
+
return exports.DeleteAvatarProfileRequest.fromPartial(base ?? {});
|
|
135
|
+
},
|
|
136
|
+
fromPartial(object) {
|
|
137
|
+
const message = createBaseDeleteAvatarProfileRequest();
|
|
138
|
+
message.userId = object.userId ?? "";
|
|
139
|
+
message.key = object.key ?? "";
|
|
140
|
+
return message;
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
function createBaseDeleteAvatarProfileResponse() {
|
|
144
|
+
return { ok: false };
|
|
145
|
+
}
|
|
146
|
+
exports.DeleteAvatarProfileResponse = {
|
|
147
|
+
create(base) {
|
|
148
|
+
return exports.DeleteAvatarProfileResponse.fromPartial(base ?? {});
|
|
149
|
+
},
|
|
150
|
+
fromPartial(object) {
|
|
151
|
+
const message = createBaseDeleteAvatarProfileResponse();
|
|
152
|
+
message.ok = object.ok ?? false;
|
|
153
|
+
return message;
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
function createBaseUser() {
|
|
157
|
+
return { id: "", updatedAt: undefined, createdAt: undefined };
|
|
158
|
+
}
|
|
159
|
+
exports.User = {
|
|
160
|
+
create(base) {
|
|
161
|
+
return exports.User.fromPartial(base ?? {});
|
|
162
|
+
},
|
|
163
|
+
fromPartial(object) {
|
|
164
|
+
const message = createBaseUser();
|
|
165
|
+
message.id = object.id ?? "";
|
|
166
|
+
message.userName = object.userName ?? undefined;
|
|
167
|
+
message.avatar = object.avatar ?? undefined;
|
|
168
|
+
message.displayName = object.displayName ?? undefined;
|
|
169
|
+
message.updatedAt = object.updatedAt ?? undefined;
|
|
170
|
+
message.createdAt = object.createdAt ?? undefined;
|
|
171
|
+
return message;
|
|
172
|
+
},
|
|
173
|
+
};
|
|
23
174
|
function UsersServiceControllerMethods() {
|
|
24
175
|
return function (constructor) {
|
|
25
176
|
const grpcMethods = ["getMe", "getUsers", "createUser", "patchUser", "deleteAvatarProfile"];
|
package/dist/gen/ts/video.d.ts
CHANGED
|
@@ -68,6 +68,18 @@ export interface Video {
|
|
|
68
68
|
createdAt: Date | undefined;
|
|
69
69
|
}
|
|
70
70
|
export declare const VIDEO_V1_PACKAGE_NAME = "video.v1";
|
|
71
|
+
export declare const ConfirmVideoUploadRequest: MessageFns<ConfirmVideoUploadRequest>;
|
|
72
|
+
export declare const ConfirmVideoUploadResponse: MessageFns<ConfirmVideoUploadResponse>;
|
|
73
|
+
export declare const GetAllVideosOwnerRequest: MessageFns<GetAllVideosOwnerRequest>;
|
|
74
|
+
export declare const GetAllVideosOwnerResponse: MessageFns<GetAllVideosOwnerResponse>;
|
|
75
|
+
export declare const PublicVideoBySlugRequest: MessageFns<PublicVideoBySlugRequest>;
|
|
76
|
+
export declare const PublicVideoBySlugResponce: MessageFns<PublicVideoBySlugResponce>;
|
|
77
|
+
export declare const SettingVideoBySlugRequest: MessageFns<SettingVideoBySlugRequest>;
|
|
78
|
+
export declare const SettingVideoBySlugResponce: MessageFns<SettingVideoBySlugResponce>;
|
|
79
|
+
export declare const UpdateSettingsVideoRequst: MessageFns<UpdateSettingsVideoRequst>;
|
|
80
|
+
export declare const UpdateSettingsVideoResponse: MessageFns<UpdateSettingsVideoResponse>;
|
|
81
|
+
export declare const FieldMask: MessageFns<FieldMask>;
|
|
82
|
+
export declare const Video: MessageFns<Video>;
|
|
71
83
|
export interface VideoServiceClient {
|
|
72
84
|
confirmVideoUpload(request: ConfirmVideoUploadRequest): Observable<ConfirmVideoUploadResponse>;
|
|
73
85
|
getAllVideosOwner(request: GetAllVideosOwnerRequest): Observable<GetAllVideosOwnerResponse>;
|
|
@@ -84,3 +96,18 @@ export interface VideoServiceController {
|
|
|
84
96
|
}
|
|
85
97
|
export declare function VideoServiceControllerMethods(): (constructor: Function) => void;
|
|
86
98
|
export declare const VIDEO_SERVICE_NAME = "VideoService";
|
|
99
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
100
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
101
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
102
|
+
} : Partial<T>;
|
|
103
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
104
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
105
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
106
|
+
} & {
|
|
107
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
108
|
+
};
|
|
109
|
+
export interface MessageFns<T> {
|
|
110
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
111
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
112
|
+
}
|
|
113
|
+
export {};
|
package/dist/gen/ts/video.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v6.33.5
|
|
6
6
|
// source: video.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.VIDEO_SERVICE_NAME = exports.VIDEO_V1_PACKAGE_NAME = exports.Status = exports.Access = exports.protobufPackage = void 0;
|
|
8
|
+
exports.VIDEO_SERVICE_NAME = exports.Video = exports.FieldMask = exports.UpdateSettingsVideoResponse = exports.UpdateSettingsVideoRequst = exports.SettingVideoBySlugResponce = exports.SettingVideoBySlugRequest = exports.PublicVideoBySlugResponce = exports.PublicVideoBySlugRequest = exports.GetAllVideosOwnerResponse = exports.GetAllVideosOwnerRequest = exports.ConfirmVideoUploadResponse = exports.ConfirmVideoUploadRequest = exports.VIDEO_V1_PACKAGE_NAME = exports.Status = exports.Access = exports.protobufPackage = void 0;
|
|
9
9
|
exports.VideoServiceControllerMethods = VideoServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
@@ -35,6 +35,191 @@ protobufjs_1.wrappers[".google.protobuf.Timestamp"] = {
|
|
|
35
35
|
return new Date(message.seconds * 1000 + message.nanos / 1e6);
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
|
+
function createBaseConfirmVideoUploadRequest() {
|
|
39
|
+
return { videoId: "", fileKey: "", contentType: "", ownerId: "" };
|
|
40
|
+
}
|
|
41
|
+
exports.ConfirmVideoUploadRequest = {
|
|
42
|
+
create(base) {
|
|
43
|
+
return exports.ConfirmVideoUploadRequest.fromPartial(base ?? {});
|
|
44
|
+
},
|
|
45
|
+
fromPartial(object) {
|
|
46
|
+
const message = createBaseConfirmVideoUploadRequest();
|
|
47
|
+
message.videoId = object.videoId ?? "";
|
|
48
|
+
message.fileKey = object.fileKey ?? "";
|
|
49
|
+
message.contentType = object.contentType ?? "";
|
|
50
|
+
message.ownerId = object.ownerId ?? "";
|
|
51
|
+
return message;
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
function createBaseConfirmVideoUploadResponse() {
|
|
55
|
+
return { success: false };
|
|
56
|
+
}
|
|
57
|
+
exports.ConfirmVideoUploadResponse = {
|
|
58
|
+
create(base) {
|
|
59
|
+
return exports.ConfirmVideoUploadResponse.fromPartial(base ?? {});
|
|
60
|
+
},
|
|
61
|
+
fromPartial(object) {
|
|
62
|
+
const message = createBaseConfirmVideoUploadResponse();
|
|
63
|
+
message.success = object.success ?? false;
|
|
64
|
+
return message;
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
function createBaseGetAllVideosOwnerRequest() {
|
|
68
|
+
return { ownerId: "" };
|
|
69
|
+
}
|
|
70
|
+
exports.GetAllVideosOwnerRequest = {
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.GetAllVideosOwnerRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaseGetAllVideosOwnerRequest();
|
|
76
|
+
message.ownerId = object.ownerId ?? "";
|
|
77
|
+
return message;
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
function createBaseGetAllVideosOwnerResponse() {
|
|
81
|
+
return { videos: [] };
|
|
82
|
+
}
|
|
83
|
+
exports.GetAllVideosOwnerResponse = {
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.GetAllVideosOwnerResponse.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseGetAllVideosOwnerResponse();
|
|
89
|
+
message.videos = object.videos?.map((e) => exports.Video.fromPartial(e)) || [];
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
function createBasePublicVideoBySlugRequest() {
|
|
94
|
+
return { slug: "" };
|
|
95
|
+
}
|
|
96
|
+
exports.PublicVideoBySlugRequest = {
|
|
97
|
+
create(base) {
|
|
98
|
+
return exports.PublicVideoBySlugRequest.fromPartial(base ?? {});
|
|
99
|
+
},
|
|
100
|
+
fromPartial(object) {
|
|
101
|
+
const message = createBasePublicVideoBySlugRequest();
|
|
102
|
+
message.slug = object.slug ?? "";
|
|
103
|
+
return message;
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
function createBasePublicVideoBySlugResponce() {
|
|
107
|
+
return { video: undefined };
|
|
108
|
+
}
|
|
109
|
+
exports.PublicVideoBySlugResponce = {
|
|
110
|
+
create(base) {
|
|
111
|
+
return exports.PublicVideoBySlugResponce.fromPartial(base ?? {});
|
|
112
|
+
},
|
|
113
|
+
fromPartial(object) {
|
|
114
|
+
const message = createBasePublicVideoBySlugResponce();
|
|
115
|
+
message.video = (object.video !== undefined && object.video !== null) ? exports.Video.fromPartial(object.video) : undefined;
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
function createBaseSettingVideoBySlugRequest() {
|
|
120
|
+
return { slug: "", ownerId: "" };
|
|
121
|
+
}
|
|
122
|
+
exports.SettingVideoBySlugRequest = {
|
|
123
|
+
create(base) {
|
|
124
|
+
return exports.SettingVideoBySlugRequest.fromPartial(base ?? {});
|
|
125
|
+
},
|
|
126
|
+
fromPartial(object) {
|
|
127
|
+
const message = createBaseSettingVideoBySlugRequest();
|
|
128
|
+
message.slug = object.slug ?? "";
|
|
129
|
+
message.ownerId = object.ownerId ?? "";
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
function createBaseSettingVideoBySlugResponce() {
|
|
134
|
+
return { video: undefined };
|
|
135
|
+
}
|
|
136
|
+
exports.SettingVideoBySlugResponce = {
|
|
137
|
+
create(base) {
|
|
138
|
+
return exports.SettingVideoBySlugResponce.fromPartial(base ?? {});
|
|
139
|
+
},
|
|
140
|
+
fromPartial(object) {
|
|
141
|
+
const message = createBaseSettingVideoBySlugResponce();
|
|
142
|
+
message.video = (object.video !== undefined && object.video !== null) ? exports.Video.fromPartial(object.video) : undefined;
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
function createBaseUpdateSettingsVideoRequst() {
|
|
147
|
+
return { slug: "", ownerId: "", video: undefined, updateMask: undefined };
|
|
148
|
+
}
|
|
149
|
+
exports.UpdateSettingsVideoRequst = {
|
|
150
|
+
create(base) {
|
|
151
|
+
return exports.UpdateSettingsVideoRequst.fromPartial(base ?? {});
|
|
152
|
+
},
|
|
153
|
+
fromPartial(object) {
|
|
154
|
+
const message = createBaseUpdateSettingsVideoRequst();
|
|
155
|
+
message.slug = object.slug ?? "";
|
|
156
|
+
message.ownerId = object.ownerId ?? "";
|
|
157
|
+
message.video = (object.video !== undefined && object.video !== null) ? exports.Video.fromPartial(object.video) : undefined;
|
|
158
|
+
message.updateMask = (object.updateMask !== undefined && object.updateMask !== null)
|
|
159
|
+
? exports.FieldMask.fromPartial(object.updateMask)
|
|
160
|
+
: undefined;
|
|
161
|
+
return message;
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
function createBaseUpdateSettingsVideoResponse() {
|
|
165
|
+
return { video: undefined };
|
|
166
|
+
}
|
|
167
|
+
exports.UpdateSettingsVideoResponse = {
|
|
168
|
+
create(base) {
|
|
169
|
+
return exports.UpdateSettingsVideoResponse.fromPartial(base ?? {});
|
|
170
|
+
},
|
|
171
|
+
fromPartial(object) {
|
|
172
|
+
const message = createBaseUpdateSettingsVideoResponse();
|
|
173
|
+
message.video = (object.video !== undefined && object.video !== null) ? exports.Video.fromPartial(object.video) : undefined;
|
|
174
|
+
return message;
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
function createBaseFieldMask() {
|
|
178
|
+
return { paths: [] };
|
|
179
|
+
}
|
|
180
|
+
exports.FieldMask = {
|
|
181
|
+
create(base) {
|
|
182
|
+
return exports.FieldMask.fromPartial(base ?? {});
|
|
183
|
+
},
|
|
184
|
+
fromPartial(object) {
|
|
185
|
+
const message = createBaseFieldMask();
|
|
186
|
+
message.paths = object.paths?.map((e) => e) || [];
|
|
187
|
+
return message;
|
|
188
|
+
},
|
|
189
|
+
};
|
|
190
|
+
function createBaseVideo() {
|
|
191
|
+
return {
|
|
192
|
+
id: "",
|
|
193
|
+
ownerId: "",
|
|
194
|
+
title: "",
|
|
195
|
+
access: Access.PUBLIC,
|
|
196
|
+
status: Status.PENDING,
|
|
197
|
+
slug: "",
|
|
198
|
+
updatedAt: undefined,
|
|
199
|
+
createdAt: undefined,
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
exports.Video = {
|
|
203
|
+
create(base) {
|
|
204
|
+
return exports.Video.fromPartial(base ?? {});
|
|
205
|
+
},
|
|
206
|
+
fromPartial(object) {
|
|
207
|
+
const message = createBaseVideo();
|
|
208
|
+
message.id = object.id ?? "";
|
|
209
|
+
message.ownerId = object.ownerId ?? "";
|
|
210
|
+
message.title = object.title ?? "";
|
|
211
|
+
message.description = object.description ?? undefined;
|
|
212
|
+
message.access = object.access ?? Access.PUBLIC;
|
|
213
|
+
message.status = object.status ?? Status.PENDING;
|
|
214
|
+
message.slug = object.slug ?? "";
|
|
215
|
+
message.thumbnailUrl = object.thumbnailUrl ?? undefined;
|
|
216
|
+
message.durationSeconds = object.durationSeconds ?? undefined;
|
|
217
|
+
message.path = object.path ?? undefined;
|
|
218
|
+
message.updatedAt = object.updatedAt ?? undefined;
|
|
219
|
+
message.createdAt = object.createdAt ?? undefined;
|
|
220
|
+
return message;
|
|
221
|
+
},
|
|
222
|
+
};
|
|
38
223
|
function VideoServiceControllerMethods() {
|
|
39
224
|
return function (constructor) {
|
|
40
225
|
const grpcMethods = [
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trash-streamers/contracts",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.68",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc -p tsconfig.build.json",
|
|
8
|
-
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./src/gen/ts --ts_proto_opt=nestJs=true,package=omit,stringEnums=true,useDate=true"
|
|
8
|
+
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./src/gen/ts --ts_proto_opt=nestJs=true,package=omit,stringEnums=true,useDate=true,outputPartialMethods=true"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|