@barumetric/contracts 1.4.18 → 1.4.19
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/gen/ts/google/protobuf/empty.ts +2 -2
- package/gen/ts/google/protobuf/timestamp.ts +10 -9
- package/package.json +1 -1
- package/proto/account.proto +74 -74
- package/proto/auth.proto +153 -153
- package/proto/balance.proto +29 -29
- package/proto/images.proto +29 -29
- package/proto/listings.proto +126 -126
- package/proto/messages.proto +153 -153
- package/proto/session.proto +61 -61
- package/dist/events/account/email-changed.interface.d.ts +0 -4
- package/dist/events/account/email-changed.interface.js +0 -2
- package/dist/events/account/index.d.ts +0 -2
- package/dist/events/account/index.js +0 -18
- package/dist/events/account/phone-changed.interface.d.ts +0 -4
- package/dist/events/account/phone-changed.interface.js +0 -2
- package/dist/events/auth/index.d.ts +0 -1
- package/dist/events/auth/index.js +0 -17
- package/dist/events/auth/otp-requested.interface.d.ts +0 -5
- package/dist/events/auth/otp-requested.interface.js +0 -2
- package/dist/events/balance/index.d.ts +0 -1
- package/dist/events/balance/index.js +0 -17
- package/dist/events/balance/top-up.interface.d.ts +0 -5
- package/dist/events/balance/top-up.interface.js +0 -2
- package/dist/events/images/index.d.ts +0 -1
- package/dist/events/images/index.js +0 -17
- package/dist/events/images/process-images.interface.d.ts +0 -9
- package/dist/events/images/process-images.interface.js +0 -2
- package/dist/events/index.d.ts +0 -7
- package/dist/events/index.js +0 -23
- package/dist/events/listings/create-listing.interface.d.ts +0 -16
- package/dist/events/listings/create-listing.interface.js +0 -2
- package/dist/events/listings/delete-listing.interface.d.ts +0 -4
- package/dist/events/listings/delete-listing.interface.js +0 -2
- package/dist/events/listings/index.d.ts +0 -3
- package/dist/events/listings/index.js +0 -19
- package/dist/events/listings/update-listing.interface.d.ts +0 -17
- package/dist/events/listings/update-listing.interface.js +0 -2
- package/dist/events/messages/index.d.ts +0 -5
- package/dist/events/messages/index.js +0 -21
- package/dist/events/messages/mark-as-read-command.interface.d.ts +0 -9
- package/dist/events/messages/mark-as-read-command.interface.js +0 -2
- package/dist/events/messages/message-read-event.interface.d.ts +0 -13
- package/dist/events/messages/message-read-event.interface.js +0 -2
- package/dist/events/messages/message-sent-event.interface.d.ts +0 -32
- package/dist/events/messages/message-sent-event.interface.js +0 -2
- package/dist/events/messages/message-types.d.ts +0 -1
- package/dist/events/messages/message-types.js +0 -2
- package/dist/events/messages/send-message-command.interface.d.ts +0 -17
- package/dist/events/messages/send-message-command.interface.js +0 -2
- package/dist/events/payment/index.d.ts +0 -2
- package/dist/events/payment/index.js +0 -18
- package/dist/events/payment/payment-failed.interface.d.ts +0 -6
- package/dist/events/payment/payment-failed.interface.js +0 -2
- package/dist/events/payment/payment-succeeded.interface.d.ts +0 -6
- package/dist/events/payment/payment-succeeded.interface.js +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -18
- package/dist/proto/index.d.ts +0 -1
- package/dist/proto/index.js +0 -17
- package/dist/proto/paths.d.ts +0 -14
- package/dist/proto/paths.js +0 -18
- package/gen/ts/account.ts +0 -133
- package/gen/ts/auth.ts +0 -236
- package/gen/ts/balance.ts +0 -67
- package/gen/ts/categories.ts +0 -354
- package/gen/ts/google/protobuf/struct.ts +0 -197
- package/gen/ts/images.ts +0 -60
- package/gen/ts/listings.ts +0 -202
- package/gen/ts/media.ts +0 -77
- package/gen/ts/messages.ts +0 -211
- package/gen/ts/payment.ts +0 -190
- package/gen/ts/presence.ts +0 -127
- package/gen/ts/session.ts +0 -110
- package/gen/ts/users.ts +0 -277
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./email-changed.interface"), exports);
|
|
18
|
-
__exportStar(require("./phone-changed.interface"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './otp-requested.interface';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./otp-requested.interface"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./top-up.interface";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./top-up.interface"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./process-images.interface";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./process-images.interface"), exports);
|
package/dist/events/index.d.ts
DELETED
package/dist/events/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./account"), exports);
|
|
18
|
-
__exportStar(require("./auth"), exports);
|
|
19
|
-
__exportStar(require("./balance"), exports);
|
|
20
|
-
__exportStar(require("./listings"), exports);
|
|
21
|
-
__exportStar(require("./payment"), exports);
|
|
22
|
-
__exportStar(require("./images"), exports);
|
|
23
|
-
__exportStar(require("./messages"), exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface CreateListingEvent {
|
|
2
|
-
title: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
price?: number;
|
|
5
|
-
categoryId: string;
|
|
6
|
-
userId: string;
|
|
7
|
-
latitude?: number;
|
|
8
|
-
longitude?: number;
|
|
9
|
-
videoUrl?: string;
|
|
10
|
-
status?: string;
|
|
11
|
-
images?: Array<{
|
|
12
|
-
url: string;
|
|
13
|
-
order?: number;
|
|
14
|
-
}>;
|
|
15
|
-
attributes?: Record<string, any>;
|
|
16
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./create-listing.interface"), exports);
|
|
18
|
-
__exportStar(require("./update-listing.interface"), exports);
|
|
19
|
-
__exportStar(require("./delete-listing.interface"), exports);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface UpdateListingEvent {
|
|
2
|
-
id: string;
|
|
3
|
-
title?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
price?: number;
|
|
6
|
-
categoryId?: string;
|
|
7
|
-
userId: string;
|
|
8
|
-
latitude?: number;
|
|
9
|
-
longitude?: number;
|
|
10
|
-
videoUrl?: string;
|
|
11
|
-
status?: string;
|
|
12
|
-
images?: Array<{
|
|
13
|
-
url: string;
|
|
14
|
-
order?: number;
|
|
15
|
-
}>;
|
|
16
|
-
attributes?: Record<string, any>;
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./message-types"), exports);
|
|
18
|
-
__exportStar(require("./send-message-command.interface"), exports);
|
|
19
|
-
__exportStar(require("./mark-as-read-command.interface"), exports);
|
|
20
|
-
__exportStar(require("./message-sent-event.interface"), exports);
|
|
21
|
-
__exportStar(require("./message-read-event.interface"), exports);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RMQ event
|
|
3
|
-
* pattern: `messages.message.read`
|
|
4
|
-
*
|
|
5
|
-
* Emitted by: messages-service
|
|
6
|
-
* Consumed by: messages-service-ws
|
|
7
|
-
*/
|
|
8
|
-
export interface MessageReadEvent {
|
|
9
|
-
conversationId: string;
|
|
10
|
-
userId: string;
|
|
11
|
-
markedCount: number;
|
|
12
|
-
messageIds?: string[];
|
|
13
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { MessageType } from "./message-types";
|
|
2
|
-
export interface MessageDto {
|
|
3
|
-
id: string;
|
|
4
|
-
conversationId: string;
|
|
5
|
-
senderId: string;
|
|
6
|
-
text?: string | null;
|
|
7
|
-
type: MessageType;
|
|
8
|
-
imageUrl?: string | null;
|
|
9
|
-
fileUrl?: string | null;
|
|
10
|
-
fileName?: string | null;
|
|
11
|
-
fileSize?: number | null;
|
|
12
|
-
mimeType?: string | null;
|
|
13
|
-
read: boolean;
|
|
14
|
-
readAt?: string | null;
|
|
15
|
-
replyToIds: string[];
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* RMQ event
|
|
21
|
-
* pattern: `messages.message.sent`
|
|
22
|
-
*
|
|
23
|
-
* Emitted by: messages-service
|
|
24
|
-
* Consumed by: messages-service-ws
|
|
25
|
-
*/
|
|
26
|
-
export interface MessageSentEvent {
|
|
27
|
-
conversationId: string;
|
|
28
|
-
message: MessageDto;
|
|
29
|
-
senderId: string;
|
|
30
|
-
recipientId: string;
|
|
31
|
-
clientMessageId?: string | null;
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type MessageType = 'TEXT' | 'IMAGE' | 'FILE' | 'VOICE' | 'LOCATION' | 'SYSTEM';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { MessageType } from "./message-types";
|
|
2
|
-
/**
|
|
3
|
-
* RMQ event
|
|
4
|
-
* pattern: `messages.message.send`
|
|
5
|
-
*/
|
|
6
|
-
export interface SendMessageEvent {
|
|
7
|
-
conversationId: string;
|
|
8
|
-
senderId: string;
|
|
9
|
-
text?: string;
|
|
10
|
-
type?: MessageType;
|
|
11
|
-
imageUrl?: string;
|
|
12
|
-
fileUrl?: string;
|
|
13
|
-
fileName?: string;
|
|
14
|
-
fileSize?: number;
|
|
15
|
-
mimeType?: string;
|
|
16
|
-
replyToIds?: string[];
|
|
17
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./payment-succeeded.interface"), exports);
|
|
18
|
-
__exportStar(require("./payment-failed.interface"), exports);
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./proto"), exports);
|
|
18
|
-
__exportStar(require("./events"), exports);
|
package/dist/proto/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './paths';
|
package/dist/proto/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./paths"), exports);
|
package/dist/proto/paths.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const PROTO_PATHS: {
|
|
2
|
-
readonly AUTH: string;
|
|
3
|
-
readonly ACCOUNT: string;
|
|
4
|
-
readonly USERS: string;
|
|
5
|
-
readonly MEDIA: string;
|
|
6
|
-
readonly CATEGORIES: string;
|
|
7
|
-
readonly LISTINGS: string;
|
|
8
|
-
readonly IMAGES: string;
|
|
9
|
-
readonly SESSION: string;
|
|
10
|
-
readonly PRESENCE: string;
|
|
11
|
-
readonly PAYMENT: string;
|
|
12
|
-
readonly BALANCE: string;
|
|
13
|
-
readonly MESSAGES: string;
|
|
14
|
-
};
|
package/dist/proto/paths.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PROTO_PATHS = void 0;
|
|
4
|
-
const path_1 = require("path");
|
|
5
|
-
exports.PROTO_PATHS = {
|
|
6
|
-
AUTH: (0, path_1.join)(__dirname, "../../proto/auth.proto"),
|
|
7
|
-
ACCOUNT: (0, path_1.join)(__dirname, "../../proto/account.proto"),
|
|
8
|
-
USERS: (0, path_1.join)(__dirname, "../../proto/users.proto"),
|
|
9
|
-
MEDIA: (0, path_1.join)(__dirname, "../../proto/media.proto"),
|
|
10
|
-
CATEGORIES: (0, path_1.join)(__dirname, "../../proto/categories.proto"),
|
|
11
|
-
LISTINGS: (0, path_1.join)(__dirname, "../../proto/listings.proto"),
|
|
12
|
-
IMAGES: (0, path_1.join)(__dirname, "../../proto/images.proto"),
|
|
13
|
-
SESSION: (0, path_1.join)(__dirname, "../../proto/session.proto"),
|
|
14
|
-
PRESENCE: (0, path_1.join)(__dirname, "../../proto/presence.proto"),
|
|
15
|
-
PAYMENT: (0, path_1.join)(__dirname, "../../proto/payment.proto"),
|
|
16
|
-
BALANCE: (0, path_1.join)(__dirname, "../../proto/balance.proto"),
|
|
17
|
-
MESSAGES: (0, path_1.join)(__dirname, "../../proto/messages.proto"),
|
|
18
|
-
};
|
package/gen/ts/account.ts
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.1
|
|
4
|
-
// protoc v3.21.12
|
|
5
|
-
// source: account.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
9
|
-
import { Observable } from "rxjs";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "account.v1";
|
|
12
|
-
|
|
13
|
-
export enum Role {
|
|
14
|
-
GUEST = 0,
|
|
15
|
-
USER = 1,
|
|
16
|
-
PREMIUM = 2,
|
|
17
|
-
EDITOR = 3,
|
|
18
|
-
SUPPORT = 4,
|
|
19
|
-
MODERATOR = 5,
|
|
20
|
-
ADMIN = 6,
|
|
21
|
-
SUPERADMIN = 7,
|
|
22
|
-
UNRECOGNIZED = -1,
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface GetAccountRequest {
|
|
26
|
-
id: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface GetAccountResponse {
|
|
30
|
-
id: string;
|
|
31
|
-
phone: string;
|
|
32
|
-
email: string;
|
|
33
|
-
isPhoneVerified: boolean;
|
|
34
|
-
isEmailVerified: boolean;
|
|
35
|
-
role: Role;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface InitEmailChangeRequest {
|
|
39
|
-
email: string;
|
|
40
|
-
userId: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface InitEmailChangeResponse {
|
|
44
|
-
ok: boolean;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface ConfirmEmailChangeRequest {
|
|
48
|
-
email: string;
|
|
49
|
-
code: string;
|
|
50
|
-
userId: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface ConfirmEmailChangeResponse {
|
|
54
|
-
ok: boolean;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface InitPhoneChangeRequest {
|
|
58
|
-
phone: string;
|
|
59
|
-
userId: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface InitPhoneChangeResponse {
|
|
63
|
-
ok: boolean;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface ConfirmPhoneChangeRequest {
|
|
67
|
-
phone: string;
|
|
68
|
-
code: string;
|
|
69
|
-
userId: string;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface ConfirmPhoneChangeResponse {
|
|
73
|
-
ok: boolean;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
|
|
77
|
-
|
|
78
|
-
export interface AccountServiceClient {
|
|
79
|
-
getAccount(request: GetAccountRequest): Observable<GetAccountResponse>;
|
|
80
|
-
|
|
81
|
-
initEmailChange(request: InitEmailChangeRequest): Observable<InitEmailChangeResponse>;
|
|
82
|
-
|
|
83
|
-
confirmEmailChange(request: ConfirmEmailChangeRequest): Observable<ConfirmEmailChangeResponse>;
|
|
84
|
-
|
|
85
|
-
initPhoneChange(request: InitPhoneChangeRequest): Observable<InitPhoneChangeResponse>;
|
|
86
|
-
|
|
87
|
-
confirmPhoneChange(request: ConfirmPhoneChangeRequest): Observable<ConfirmPhoneChangeResponse>;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface AccountServiceController {
|
|
91
|
-
getAccount(
|
|
92
|
-
request: GetAccountRequest,
|
|
93
|
-
): Promise<GetAccountResponse> | Observable<GetAccountResponse> | GetAccountResponse;
|
|
94
|
-
|
|
95
|
-
initEmailChange(
|
|
96
|
-
request: InitEmailChangeRequest,
|
|
97
|
-
): Promise<InitEmailChangeResponse> | Observable<InitEmailChangeResponse> | InitEmailChangeResponse;
|
|
98
|
-
|
|
99
|
-
confirmEmailChange(
|
|
100
|
-
request: ConfirmEmailChangeRequest,
|
|
101
|
-
): Promise<ConfirmEmailChangeResponse> | Observable<ConfirmEmailChangeResponse> | ConfirmEmailChangeResponse;
|
|
102
|
-
|
|
103
|
-
initPhoneChange(
|
|
104
|
-
request: InitPhoneChangeRequest,
|
|
105
|
-
): Promise<InitPhoneChangeResponse> | Observable<InitPhoneChangeResponse> | InitPhoneChangeResponse;
|
|
106
|
-
|
|
107
|
-
confirmPhoneChange(
|
|
108
|
-
request: ConfirmPhoneChangeRequest,
|
|
109
|
-
): Promise<ConfirmPhoneChangeResponse> | Observable<ConfirmPhoneChangeResponse> | ConfirmPhoneChangeResponse;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export function AccountServiceControllerMethods() {
|
|
113
|
-
return function (constructor: Function) {
|
|
114
|
-
const grpcMethods: string[] = [
|
|
115
|
-
"getAccount",
|
|
116
|
-
"initEmailChange",
|
|
117
|
-
"confirmEmailChange",
|
|
118
|
-
"initPhoneChange",
|
|
119
|
-
"confirmPhoneChange",
|
|
120
|
-
];
|
|
121
|
-
for (const method of grpcMethods) {
|
|
122
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
123
|
-
GrpcMethod("AccountService", method)(constructor.prototype[method], method, descriptor);
|
|
124
|
-
}
|
|
125
|
-
const grpcStreamMethods: string[] = [];
|
|
126
|
-
for (const method of grpcStreamMethods) {
|
|
127
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
128
|
-
GrpcStreamMethod("AccountService", method)(constructor.prototype[method], method, descriptor);
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export const ACCOUNT_SERVICE_NAME = "AccountService";
|