@pulsar.money/atlas-sdk 0.4.21 → 0.5.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/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.js +1 -0
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/messages/dto/bulk-message.dto.d.ts +3 -0
- package/dist/modules/messages/dto/bulk-message.dto.js +8 -0
- package/dist/modules/messages/dto/bulk-message.dto.js.map +1 -0
- package/dist/modules/messages/dto/create-message.dto.d.ts +9 -0
- package/dist/modules/messages/dto/create-message.dto.js +55 -0
- package/dist/modules/messages/dto/create-message.dto.js.map +1 -0
- package/dist/modules/messages/dto/get-messages.dto.d.ts +3 -0
- package/dist/modules/messages/dto/get-messages.dto.js +26 -0
- package/dist/modules/messages/dto/get-messages.dto.js.map +1 -0
- package/dist/modules/messages/index.d.ts +6 -0
- package/dist/modules/messages/index.js +23 -0
- package/dist/modules/messages/index.js.map +1 -0
- package/dist/modules/messages/messages.controller.d.ts +14 -0
- package/dist/modules/messages/messages.controller.js +92 -0
- package/dist/modules/messages/messages.controller.js.map +1 -0
- package/dist/modules/messages/messages.service.d.ts +16 -0
- package/dist/modules/messages/messages.service.js +107 -0
- package/dist/modules/messages/messages.service.js.map +1 -0
- package/dist/modules/messages/messages.types.d.ts +28 -0
- package/dist/modules/messages/messages.types.js +11 -0
- package/dist/modules/messages/messages.types.js.map +1 -0
- package/dist/modules/public-profiles/public-profile.service.d.ts +2 -0
- package/dist/modules/public-profiles/public-profile.service.js +31 -0
- package/dist/modules/public-profiles/public-profile.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
package/dist/modules/index.d.ts
CHANGED
package/dist/modules/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./profiles"), exports);
|
|
18
18
|
__exportStar(require("./payments"), exports);
|
|
19
19
|
__exportStar(require("./public-profiles"), exports);
|
|
20
|
+
__exportStar(require("./messages"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,oDAAkC;AAClC,6CAA2B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BulkMessageDto = void 0;
|
|
4
|
+
const create_message_dto_1 = require("./create-message.dto");
|
|
5
|
+
class BulkMessageDto extends create_message_dto_1.CreateMessageDto {
|
|
6
|
+
}
|
|
7
|
+
exports.BulkMessageDto = BulkMessageDto;
|
|
8
|
+
//# sourceMappingURL=bulk-message.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-message.dto.js","sourceRoot":"","sources":["../../../../src/modules/messages/dto/bulk-message.dto.ts"],"names":[],"mappings":";;;AAAA,6DAAwD;AAExD,MAAa,cAAe,SAAQ,qCAAgB;CAAG;AAAvD,wCAAuD"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateMessageDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const messages_types_1 = require("../messages.types");
|
|
16
|
+
class CreateMessageDto {
|
|
17
|
+
}
|
|
18
|
+
exports.CreateMessageDto = CreateMessageDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({ required: true }),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.MinLength)(1),
|
|
23
|
+
(0, class_validator_1.MaxLength)(255),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateMessageDto.prototype, "title", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ required: true }),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CreateMessageDto.prototype, "description", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsUrl)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateMessageDto.prototype, "iconUrl", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ required: false, enum: messages_types_1.MessageType }),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsEnum)(messages_types_1.MessageType),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateMessageDto.prototype, "type", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsUrl)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreateMessageDto.prototype, "link", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsDate)(),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], CreateMessageDto.prototype, "expiresAt", void 0);
|
|
55
|
+
//# sourceMappingURL=create-message.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-message.dto.js","sourceRoot":"","sources":["../../../../src/modules/messages/dto/create-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAoG;AACpG,sDAAgD;AAEhD,MAAa,gBAAgB;CA8B5B;AA9BD,4CA8BC;AAzBC;IAJC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC/B,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;+CACD;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC/B,IAAA,0BAAQ,GAAE;;qDACS;AAKpB;IAHC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iDACS;AAKjB;IAHC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,4BAAW,EAAE,CAAC;IACnD,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,4BAAW,CAAC;;8CACD;AAKnB;IAHC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;8CACM;AAKd;IAHC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACG,IAAI;mDAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetMessagesDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
class GetMessagesDto {
|
|
17
|
+
}
|
|
18
|
+
exports.GetMessagesDto = GetMessagesDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_validator_1.IsBoolean)(),
|
|
23
|
+
(0, class_transformer_1.Transform)(({ value }) => value === 'true'),
|
|
24
|
+
__metadata("design:type", Boolean)
|
|
25
|
+
], GetMessagesDto.prototype, "includeRead", void 0);
|
|
26
|
+
//# sourceMappingURL=get-messages.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-messages.dto.js","sourceRoot":"","sources":["../../../../src/modules/messages/dto/get-messages.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAwD;AACxD,yDAA8C;AAE9C,MAAa,cAAc;CAM1B;AAND,wCAMC;AADC;IAJC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,CAAC;;mDACrB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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("./messages.service"), exports);
|
|
18
|
+
__exportStar(require("./messages.controller"), exports);
|
|
19
|
+
__exportStar(require("./messages.types"), exports);
|
|
20
|
+
__exportStar(require("./dto/create-message.dto"), exports);
|
|
21
|
+
__exportStar(require("./dto/get-messages.dto"), exports);
|
|
22
|
+
__exportStar(require("./dto/bulk-message.dto"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/messages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,wDAAsC;AACtC,mDAAiC;AACjC,2DAAyC;AACzC,yDAAuC;AACvC,yDAAuC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MessagesService } from "./messages.service";
|
|
2
|
+
import { GetMessagesDto } from "./dto/get-messages.dto";
|
|
3
|
+
import { Message } from "./messages.types";
|
|
4
|
+
export declare class MessagesController {
|
|
5
|
+
private readonly messagesService;
|
|
6
|
+
constructor(messagesService: MessagesService);
|
|
7
|
+
getUserMessages(address: string, query: GetMessagesDto): Promise<Message[]>;
|
|
8
|
+
markAsRead(address: string, messageId: string): Promise<void>;
|
|
9
|
+
markAllAsRead(address: string): Promise<void>;
|
|
10
|
+
deleteMessage(address: string, messageId: string): Promise<void>;
|
|
11
|
+
getUnreadCount(address: string): Promise<{
|
|
12
|
+
count: number;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.MessagesController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
const messages_service_1 = require("./messages.service");
|
|
19
|
+
const get_messages_dto_1 = require("./dto/get-messages.dto");
|
|
20
|
+
const wallet_address_decorator_1 = require("../../decorator/wallet-address.decorator");
|
|
21
|
+
let MessagesController = class MessagesController {
|
|
22
|
+
constructor(messagesService) {
|
|
23
|
+
this.messagesService = messagesService;
|
|
24
|
+
}
|
|
25
|
+
async getUserMessages(address, query) {
|
|
26
|
+
return this.messagesService.getUserMessages(address, query.includeRead);
|
|
27
|
+
}
|
|
28
|
+
async markAsRead(address, messageId) {
|
|
29
|
+
return this.messagesService.markAsRead(address, messageId);
|
|
30
|
+
}
|
|
31
|
+
async markAllAsRead(address) {
|
|
32
|
+
return this.messagesService.markAllAsRead(address);
|
|
33
|
+
}
|
|
34
|
+
async deleteMessage(address, messageId) {
|
|
35
|
+
return this.messagesService.deleteMessage(address, messageId);
|
|
36
|
+
}
|
|
37
|
+
async getUnreadCount(address) {
|
|
38
|
+
const count = await this.messagesService.getUnreadCount(address);
|
|
39
|
+
return { count };
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.MessagesController = MessagesController;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, common_1.Get)(),
|
|
45
|
+
(0, swagger_1.ApiOperation)({ summary: "Get user messages" }),
|
|
46
|
+
(0, swagger_1.ApiQuery)({ name: "includeRead", required: false, type: Boolean }),
|
|
47
|
+
__param(0, (0, wallet_address_decorator_1.WalletAddress)()),
|
|
48
|
+
__param(1, (0, common_1.Query)()),
|
|
49
|
+
__metadata("design:type", Function),
|
|
50
|
+
__metadata("design:paramtypes", [String, get_messages_dto_1.GetMessagesDto]),
|
|
51
|
+
__metadata("design:returntype", Promise)
|
|
52
|
+
], MessagesController.prototype, "getUserMessages", null);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, common_1.Post)("read/:messageId"),
|
|
55
|
+
(0, swagger_1.ApiOperation)({ summary: "Mark message as read" }),
|
|
56
|
+
__param(0, (0, wallet_address_decorator_1.WalletAddress)()),
|
|
57
|
+
__param(1, (0, common_1.Param)("messageId")),
|
|
58
|
+
__metadata("design:type", Function),
|
|
59
|
+
__metadata("design:paramtypes", [String, String]),
|
|
60
|
+
__metadata("design:returntype", Promise)
|
|
61
|
+
], MessagesController.prototype, "markAsRead", null);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, common_1.Post)("read-all"),
|
|
64
|
+
(0, swagger_1.ApiOperation)({ summary: "Mark all messages as read" }),
|
|
65
|
+
__param(0, (0, wallet_address_decorator_1.WalletAddress)()),
|
|
66
|
+
__metadata("design:type", Function),
|
|
67
|
+
__metadata("design:paramtypes", [String]),
|
|
68
|
+
__metadata("design:returntype", Promise)
|
|
69
|
+
], MessagesController.prototype, "markAllAsRead", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, common_1.Delete)(":messageId"),
|
|
72
|
+
(0, swagger_1.ApiOperation)({ summary: "Delete a message" }),
|
|
73
|
+
__param(0, (0, wallet_address_decorator_1.WalletAddress)()),
|
|
74
|
+
__param(1, (0, common_1.Param)("messageId")),
|
|
75
|
+
__metadata("design:type", Function),
|
|
76
|
+
__metadata("design:paramtypes", [String, String]),
|
|
77
|
+
__metadata("design:returntype", Promise)
|
|
78
|
+
], MessagesController.prototype, "deleteMessage", null);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, common_1.Get)("unread-count"),
|
|
81
|
+
(0, swagger_1.ApiOperation)({ summary: "Get unread message count" }),
|
|
82
|
+
__param(0, (0, wallet_address_decorator_1.WalletAddress)()),
|
|
83
|
+
__metadata("design:type", Function),
|
|
84
|
+
__metadata("design:paramtypes", [String]),
|
|
85
|
+
__metadata("design:returntype", Promise)
|
|
86
|
+
], MessagesController.prototype, "getUnreadCount", null);
|
|
87
|
+
exports.MessagesController = MessagesController = __decorate([
|
|
88
|
+
(0, swagger_1.ApiTags)("Messages"),
|
|
89
|
+
(0, common_1.Controller)("messages"),
|
|
90
|
+
__metadata("design:paramtypes", [messages_service_1.MessagesService])
|
|
91
|
+
], MessagesController);
|
|
92
|
+
//# sourceMappingURL=messages.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.controller.js","sourceRoot":"","sources":["../../../src/modules/messages/messages.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,6CAAkE;AAClE,yDAAqD;AACrD,6DAAwD;AAExD,uFAAyE;AAIlE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YAA6B,eAAgC;QAAhC,oBAAe,GAAf,eAAe,CAAiB;IAAG,CAAC;IAK3D,AAAN,KAAK,CAAC,eAAe,CACF,OAAe,EACvB,KAAqB;QAE9B,OAAO,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC1E,CAAC;IAIK,AAAN,KAAK,CAAC,UAAU,CACG,OAAe,EACZ,SAAiB;QAErC,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC7D,CAAC;IAIK,AAAN,KAAK,CAAC,aAAa,CAAkB,OAAe;QAClD,OAAO,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,OA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;;;uDAGpB;AAIK;IAFL,IAAA,YAAG,EAAC,cAAc,CAAC;IACnB,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC;IAEnD,WAAA,IAAA,wCAAa,GAAE,CAAA;;;;wDAIjB;6BA5CU,kBAAkB;IAF9B,IAAA,iBAAO,EAAC,UAAU,CAAC;IACnB,IAAA,mBAAU,EAAC,UAAU,CAAC;qCAEyB,kCAAe;GADlD,kBAAkB,CA6C9B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Message } from "./messages.types";
|
|
2
|
+
import { CreateMessageDto } from "./dto/create-message.dto";
|
|
3
|
+
import { BulkMessageDto } from "./dto/bulk-message.dto";
|
|
4
|
+
export declare class MessagesService {
|
|
5
|
+
private readonly axiosInstance;
|
|
6
|
+
constructor();
|
|
7
|
+
private createJwt;
|
|
8
|
+
getUserMessages(address: string, includeRead?: boolean): Promise<Message[]>;
|
|
9
|
+
markAsRead(address: string, messageId: string): Promise<void>;
|
|
10
|
+
markAllAsRead(address: string): Promise<void>;
|
|
11
|
+
deleteMessage(address: string, messageId: string): Promise<void>;
|
|
12
|
+
getUnreadCount(address: string): Promise<number>;
|
|
13
|
+
sendBulkMessage(input: BulkMessageDto): Promise<number>;
|
|
14
|
+
createMessage(address: string, input: CreateMessageDto): Promise<Message>;
|
|
15
|
+
private handleAxiosError;
|
|
16
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MessagesService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const axios_1 = require("axios");
|
|
15
|
+
const jsonwebtoken_1 = require("jsonwebtoken");
|
|
16
|
+
const api_config_service_1 = require("../../config/api-config.service");
|
|
17
|
+
let MessagesService = class MessagesService {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.axiosInstance = axios_1.default.create({
|
|
20
|
+
baseURL: api_config_service_1.ApiConfigService.getAtlasBaseUrl(),
|
|
21
|
+
});
|
|
22
|
+
this.axiosInstance.interceptors.request.use((config) => {
|
|
23
|
+
const token = this.createJwt();
|
|
24
|
+
config.headers["Authorization"] = `Bearer ${token}`;
|
|
25
|
+
return config;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
createJwt() {
|
|
29
|
+
const payload = {
|
|
30
|
+
exp: Math.floor(Date.now() / 1000) + 60,
|
|
31
|
+
};
|
|
32
|
+
return (0, jsonwebtoken_1.sign)(payload, api_config_service_1.ApiConfigService.getAtlasJwtSecret());
|
|
33
|
+
}
|
|
34
|
+
async getUserMessages(address, includeRead = false) {
|
|
35
|
+
try {
|
|
36
|
+
const response = await this.axiosInstance.get(`/messages/${address}`, {
|
|
37
|
+
params: { includeRead },
|
|
38
|
+
});
|
|
39
|
+
return response.data;
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
this.handleAxiosError(error);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
async markAsRead(address, messageId) {
|
|
46
|
+
try {
|
|
47
|
+
await this.axiosInstance.post(`/messages/${address}/${messageId}/read`);
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
this.handleAxiosError(error);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
async markAllAsRead(address) {
|
|
54
|
+
try {
|
|
55
|
+
await this.axiosInstance.post(`/messages/${address}/read-all`);
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
this.handleAxiosError(error);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
async deleteMessage(address, messageId) {
|
|
62
|
+
try {
|
|
63
|
+
await this.axiosInstance.delete(`/messages/${address}/${messageId}`);
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
this.handleAxiosError(error);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async getUnreadCount(address) {
|
|
70
|
+
try {
|
|
71
|
+
const response = await this.axiosInstance.get(`/messages/${address}/unread-count`);
|
|
72
|
+
return response.data.count;
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
this.handleAxiosError(error);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
async sendBulkMessage(input) {
|
|
79
|
+
try {
|
|
80
|
+
const response = await this.axiosInstance.post("/messages/bulk", input);
|
|
81
|
+
return response.data.count;
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
this.handleAxiosError(error);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
async createMessage(address, input) {
|
|
88
|
+
try {
|
|
89
|
+
const response = await this.axiosInstance.post(`/messages/${address}`, input);
|
|
90
|
+
return response.data;
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
this.handleAxiosError(error);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
handleAxiosError(error) {
|
|
97
|
+
var _a, _b;
|
|
98
|
+
const errorMessage = ((_b = (_a = error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) || "An error occurred";
|
|
99
|
+
throw new common_1.BadRequestException(errorMessage);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
exports.MessagesService = MessagesService;
|
|
103
|
+
exports.MessagesService = MessagesService = __decorate([
|
|
104
|
+
(0, common_1.Injectable)(),
|
|
105
|
+
__metadata("design:paramtypes", [])
|
|
106
|
+
], MessagesService);
|
|
107
|
+
//# sourceMappingURL=messages.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.service.js","sourceRoot":"","sources":["../../../src/modules/messages/messages.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAoF;AACpF,iCAA6C;AAC7C,+CAAoC;AACpC,wEAAmE;AAM5D,IAAM,eAAe,GAArB,MAAM,eAAe;IAG1B;QACE,IAAI,CAAC,aAAa,GAAG,eAAK,CAAC,MAAM,CAAC;YAChC,OAAO,EAAE,qCAAgB,CAAC,eAAe,EAAE;SAC5C,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YACrD,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAC/B,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,KAAK,EAAE,CAAC;YACpD,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,SAAS;QACf,MAAM,OAAO,GAAG;YACd,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE;SACxC,CAAC;QACF,OAAO,IAAA,mBAAI,EAAC,OAAO,EAAE,qCAAgB,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,OAAe,EAAE,cAAuB,KAAK;QACjE,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,aAAa,OAAO,EAAE,EAAE;gBACp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IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;YACxE,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;SAC5B;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;SAC9B;IACH,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAAe,EAAE,KAAuB;QAC1D,IAAI;YACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,OAAO,EAAE,EAAE,KAAK,CAAC,CAAC;YAC9E,OAAO,QAAQ,CAAC,IAAI,CAAC;SACtB;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;SAC9B;IACH,CAAC;IAEO,gBAAgB,CAAC,KAAU;;QACjC,MAAM,YAAY,GAAG,CAAA,MAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,IAAI,0CAAE,KAAK,KAAI,mBAAmB,CAAC;QACxE,MAAM,IAAI,4BAAmB,CAAC,YAAY,CAAC,CAAC;IAC9C,CAAC;CACF,CAAA;AAxFY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;;GACA,eAAe,CAwF3B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare enum MessageType {
|
|
2
|
+
INFO = "info",
|
|
3
|
+
WARNING = "warning",
|
|
4
|
+
SUCCESS = "success",
|
|
5
|
+
ERROR = "error"
|
|
6
|
+
}
|
|
7
|
+
export interface MessageTemplate {
|
|
8
|
+
id: number;
|
|
9
|
+
guid: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
iconUrl: string;
|
|
13
|
+
type: MessageType;
|
|
14
|
+
link: string;
|
|
15
|
+
expiresAt?: Date;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
}
|
|
18
|
+
export interface Message {
|
|
19
|
+
id: number;
|
|
20
|
+
guid: string;
|
|
21
|
+
userId: number;
|
|
22
|
+
templateId: number;
|
|
23
|
+
read: boolean;
|
|
24
|
+
readAt?: Date;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
template: MessageTemplate;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageType = void 0;
|
|
4
|
+
var MessageType;
|
|
5
|
+
(function (MessageType) {
|
|
6
|
+
MessageType["INFO"] = "info";
|
|
7
|
+
MessageType["WARNING"] = "warning";
|
|
8
|
+
MessageType["SUCCESS"] = "success";
|
|
9
|
+
MessageType["ERROR"] = "error";
|
|
10
|
+
})(MessageType || (exports.MessageType = MessageType = {}));
|
|
11
|
+
//# sourceMappingURL=messages.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.types.js","sourceRoot":"","sources":["../../../src/modules/messages/messages.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB"}
|
|
@@ -10,4 +10,6 @@ export declare class PublicProfilesAtlasService {
|
|
|
10
10
|
getPublicProfile(username: string): Promise<Profile>;
|
|
11
11
|
searchProfiles(query: string, limit?: number): Promise<Profile[]>;
|
|
12
12
|
getTrendingProfiles(period?: TrendingPeriod, limit?: number): Promise<Profile[]>;
|
|
13
|
+
getPublicProfileByAddress(address: string): Promise<Profile>;
|
|
14
|
+
checkTokensSent(senderAddress: string): Promise<boolean>;
|
|
13
15
|
}
|
|
@@ -87,6 +87,37 @@ let PublicProfilesAtlasService = class PublicProfilesAtlasService {
|
|
|
87
87
|
this.handleAxiosError(error);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
+
async getPublicProfileByAddress(address) {
|
|
91
|
+
var _a;
|
|
92
|
+
if (!address) {
|
|
93
|
+
throw new common_1.BadRequestException("Address is required");
|
|
94
|
+
}
|
|
95
|
+
try {
|
|
96
|
+
const response = await this.axiosInstance.get(`/public-profiles/address/${address}`);
|
|
97
|
+
if (!response.data) {
|
|
98
|
+
throw new common_1.NotFoundException("Profile not found or not public");
|
|
99
|
+
}
|
|
100
|
+
return response.data;
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 404) {
|
|
104
|
+
throw new common_1.NotFoundException("Profile not found or not public");
|
|
105
|
+
}
|
|
106
|
+
this.handleAxiosError(error);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
async checkTokensSent(senderAddress) {
|
|
110
|
+
if (!senderAddress) {
|
|
111
|
+
throw new common_1.BadRequestException("Sender address is required");
|
|
112
|
+
}
|
|
113
|
+
try {
|
|
114
|
+
const response = await this.axiosInstance.get(`/public-profiles/check-tokens-sent/${senderAddress}`);
|
|
115
|
+
return response.data.has_sent_tokens;
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
this.handleAxiosError(error);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
90
121
|
};
|
|
91
122
|
exports.PublicProfilesAtlasService = PublicProfilesAtlasService;
|
|
92
123
|
exports.PublicProfilesAtlasService = PublicProfilesAtlasService = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-profile.service.js","sourceRoot":"","sources":["../../../src/modules/public-profiles/public-profile.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"public-profile.service.js","sourceRoot":"","sources":["../../../src/modules/public-profiles/public-profile.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAIwB;AACxB,iCAA6C;AA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