@xoxno/types 1.0.53 → 1.0.55
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/cosmos-db/documents/chat/chat-message.doc.d.ts +26 -32
- package/dist/cosmos-db/documents/chat/chat-message.doc.js +71 -3
- package/dist/cosmos-db/documents/chat/chat-message.dto.d.ts +0 -41
- package/dist/cosmos-db/documents/chat/chat-message.dto.js +1 -128
- package/dist/cosmos-db/documents/chat/user-conversation.doc.d.ts +2 -2
- package/dist/cosmos-db/documents/staking/staking-pool-doc.d.ts +2 -2
- package/dist/cosmos-db/documents/staking/staking-pool-doc.js +1 -1
- package/dist/cosmos-db/documents/ticketing/event-ticket-qr-type.enum.d.ts +2 -2
- package/dist/cosmos-db/documents/ticketing/event-ticket-qr-type.enum.js +1 -1
- package/dist/cosmos-db/documents/token/nft-details.doc.d.ts +1 -6
- package/dist/cosmos-db/documents/token/nft-details.doc.js +13 -32
- package/dist/cosmos-db/documents/token/nft-offer.doc.d.ts +2 -2
- package/dist/cosmos-db/documents/token/nft-offer.doc.js +1 -1
- package/dist/cosmos-db/paginated-responses.d.ts +40 -0
- package/dist/cosmos-db/paginated-responses.js +43 -0
- package/dist/entities/search-data/search.dto.d.ts +1 -6
- package/dist/entities/search-data/search.dto.js +2 -19
- package/dist/index.d.ts +1 -10
- package/dist/index.js +1 -10
- package/dist/requests/collection/collections.d.ts +1 -8
- package/dist/requests/collection/collections.js +2 -34
- package/dist/requests/nft-activity-data/nft-activity.filter.d.ts +4 -4
- package/dist/requests/nft-data/nft-doc.filter.d.ts +4 -4
- package/dist/utils/order.d.ts +8 -8
- package/package.json +1 -1
- package/dist/cosmos-db/documents/chat/blocked-user.dto.d.ts +0 -14
- package/dist/cosmos-db/documents/chat/blocked-user.dto.js +0 -57
- package/dist/cosmos-db/documents/chat/chat-conversation.d.ts +0 -39
- package/dist/cosmos-db/documents/chat/chat-conversation.js +0 -112
- package/dist/cosmos-db/documents/ticketing/event-referral-config-query.doc.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/event-referral-config-query.doc.js +0 -38
- package/dist/cosmos-db/documents/ticketing/event-referral-query.doc.d.ts +0 -6
- package/dist/cosmos-db/documents/ticketing/event-referral-query.doc.js +0 -41
- package/dist/requests/collection/drops-query.d.ts +0 -27
- package/dist/requests/collection/drops-query.js +0 -102
- package/dist/requests/collection/query-activity.d.ts +0 -23
- package/dist/requests/collection/query-activity.js +0 -110
- package/dist/requests/collection/query-global-offers.d.ts +0 -15
- package/dist/requests/collection/query-global-offers.js +0 -61
- package/dist/requests/collection/stats-query.d.ts +0 -5
- package/dist/requests/collection/stats-query.js +0 -29
- package/dist/requests/nft-data/nft-offers.d.ts +0 -26
- package/dist/requests/nft-data/nft-offers.js +0 -99
- package/dist/requests/nft-data/user-offers.d.ts +0 -26
- package/dist/requests/nft-data/user-offers.js +0 -110
|
@@ -1,11 +1,35 @@
|
|
|
1
1
|
import { ChatDataType } from './chat-data-type.enum';
|
|
2
2
|
import { ChatMessageContentType } from './chat-message-content-type.enum';
|
|
3
3
|
import { OwnerDto } from '../../../common/owner.dto';
|
|
4
|
+
declare class MessageContentReplyToDto {
|
|
5
|
+
type: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
declare class ReplyToDto {
|
|
9
|
+
sender: OwnerDto;
|
|
10
|
+
content: MessageContentReplyToDto;
|
|
11
|
+
timestamp: number;
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
declare class MessageContentDto {
|
|
15
|
+
type: string;
|
|
16
|
+
value: string;
|
|
17
|
+
replyTo?: ReplyToDto;
|
|
18
|
+
}
|
|
19
|
+
export declare class MessageDto {
|
|
20
|
+
content: MessageContentDto;
|
|
21
|
+
isRead: boolean;
|
|
22
|
+
timestamp: number;
|
|
23
|
+
}
|
|
24
|
+
export interface ChatMessageContent {
|
|
25
|
+
type: ChatMessageContentType;
|
|
26
|
+
value: string;
|
|
27
|
+
}
|
|
4
28
|
declare class ChatMessageDocBase {
|
|
5
29
|
dataType: ChatDataType;
|
|
6
30
|
chatId: string;
|
|
7
31
|
isGroupChat: boolean;
|
|
8
|
-
message:
|
|
32
|
+
message: MessageDto;
|
|
9
33
|
pk: string;
|
|
10
34
|
id: string;
|
|
11
35
|
ttl?: number;
|
|
@@ -16,38 +40,8 @@ export declare class ChatMessageDoc extends ChatMessageDocBase {
|
|
|
16
40
|
sender: string;
|
|
17
41
|
receiver: string;
|
|
18
42
|
}
|
|
19
|
-
export declare class
|
|
43
|
+
export declare class ChatMessageDocHydrated extends ChatMessageDocBase {
|
|
20
44
|
sender: OwnerDto;
|
|
21
45
|
receiver: OwnerDto;
|
|
22
46
|
}
|
|
23
|
-
export interface ChatMessage {
|
|
24
|
-
content: ChatMessageContent;
|
|
25
|
-
timestamp: number;
|
|
26
|
-
sender?: string;
|
|
27
|
-
isRead?: boolean;
|
|
28
|
-
replyTo?: string;
|
|
29
|
-
isDeletedFor?: string[];
|
|
30
|
-
}
|
|
31
|
-
export interface ChatMessageContent {
|
|
32
|
-
type: ChatMessageContentType;
|
|
33
|
-
value: string;
|
|
34
|
-
}
|
|
35
|
-
export interface ChatMessageDetails {
|
|
36
|
-
dataType: string;
|
|
37
|
-
chatId: string;
|
|
38
|
-
isGroupChat: boolean;
|
|
39
|
-
message: ChatMessage;
|
|
40
|
-
sender: {
|
|
41
|
-
address: string;
|
|
42
|
-
username: string;
|
|
43
|
-
profile: string;
|
|
44
|
-
};
|
|
45
|
-
receiver: {
|
|
46
|
-
address: string;
|
|
47
|
-
username: string;
|
|
48
|
-
profile: string;
|
|
49
|
-
};
|
|
50
|
-
chatName: string;
|
|
51
|
-
id: string;
|
|
52
|
-
}
|
|
53
47
|
export {};
|
|
@@ -1,8 +1,76 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
12
|
+
exports.ChatMessageDocHydrated = exports.ChatMessageDoc = exports.MessageDto = void 0;
|
|
4
13
|
const uuid_1 = require("uuid");
|
|
5
14
|
const chat_data_type_enum_1 = require("./chat-data-type.enum");
|
|
15
|
+
const owner_dto_1 = require("../../../common/owner.dto");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
+
class MessageContentReplyToDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({ example: 'message' }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], MessageContentReplyToDto.prototype, "type", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({ example: 'Hello world' }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], MessageContentReplyToDto.prototype, "value", void 0);
|
|
27
|
+
class ReplyToDto {
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({ type: owner_dto_1.OwnerDto }),
|
|
31
|
+
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
32
|
+
], ReplyToDto.prototype, "sender", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ type: MessageContentReplyToDto }),
|
|
35
|
+
__metadata("design:type", MessageContentReplyToDto)
|
|
36
|
+
], ReplyToDto.prototype, "content", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ example: 1720468991 }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], ReplyToDto.prototype, "timestamp", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({ example: 'b02f639a-abcf-4db8-9397-bdb3b60cef6a' }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], ReplyToDto.prototype, "id", void 0);
|
|
45
|
+
class MessageContentDto {
|
|
46
|
+
}
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({ example: 'message' }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], MessageContentDto.prototype, "type", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiProperty)({ example: 'Vv' }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], MessageContentDto.prototype, "value", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, swagger_1.ApiProperty)({ required: false, type: ReplyToDto }),
|
|
57
|
+
__metadata("design:type", ReplyToDto)
|
|
58
|
+
], MessageContentDto.prototype, "replyTo", void 0);
|
|
59
|
+
class MessageDto {
|
|
60
|
+
}
|
|
61
|
+
exports.MessageDto = MessageDto;
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({ type: MessageContentDto }),
|
|
64
|
+
__metadata("design:type", MessageContentDto)
|
|
65
|
+
], MessageDto.prototype, "content", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiProperty)({ example: true }),
|
|
68
|
+
__metadata("design:type", Boolean)
|
|
69
|
+
], MessageDto.prototype, "isRead", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, swagger_1.ApiProperty)({ example: 1720468991 }),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], MessageDto.prototype, "timestamp", void 0);
|
|
6
74
|
class ChatMessageDocBase {
|
|
7
75
|
constructor(props) {
|
|
8
76
|
this.dataType = chat_data_type_enum_1.ChatDataType.MESSAGE;
|
|
@@ -17,6 +85,6 @@ class ChatMessageDocBase {
|
|
|
17
85
|
class ChatMessageDoc extends ChatMessageDocBase {
|
|
18
86
|
}
|
|
19
87
|
exports.ChatMessageDoc = ChatMessageDoc;
|
|
20
|
-
class
|
|
88
|
+
class ChatMessageDocHydrated extends ChatMessageDocBase {
|
|
21
89
|
}
|
|
22
|
-
exports.
|
|
90
|
+
exports.ChatMessageDocHydrated = ChatMessageDocHydrated;
|
|
@@ -4,44 +4,3 @@ export declare class SendChatMessageDto {
|
|
|
4
4
|
content: ChatMessageContentDto;
|
|
5
5
|
receiver: string;
|
|
6
6
|
}
|
|
7
|
-
declare class ProfileDto {
|
|
8
|
-
address: string;
|
|
9
|
-
username: string;
|
|
10
|
-
profile: string;
|
|
11
|
-
}
|
|
12
|
-
declare class MessageContentReplyToDto {
|
|
13
|
-
type: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}
|
|
16
|
-
declare class ReplyToDto {
|
|
17
|
-
sender: ProfileDto;
|
|
18
|
-
content: MessageContentReplyToDto;
|
|
19
|
-
timestamp: number;
|
|
20
|
-
id: string;
|
|
21
|
-
}
|
|
22
|
-
declare class MessageContentDto {
|
|
23
|
-
type: string;
|
|
24
|
-
value: string;
|
|
25
|
-
replyTo?: ReplyToDto;
|
|
26
|
-
}
|
|
27
|
-
declare class MessageDto {
|
|
28
|
-
content: MessageContentDto;
|
|
29
|
-
isRead: boolean;
|
|
30
|
-
timestamp: number;
|
|
31
|
-
}
|
|
32
|
-
export declare class ChatMessageDto {
|
|
33
|
-
dataType: string;
|
|
34
|
-
chatId: string;
|
|
35
|
-
receiver: ProfileDto;
|
|
36
|
-
sender: ProfileDto;
|
|
37
|
-
isGroupChat: boolean;
|
|
38
|
-
message: MessageDto;
|
|
39
|
-
id: string;
|
|
40
|
-
chatName: string;
|
|
41
|
-
}
|
|
42
|
-
export declare class FetchChatMessagesDto {
|
|
43
|
-
hasMoreResults: boolean;
|
|
44
|
-
receiver: ProfileDto;
|
|
45
|
-
resources: ChatMessageDto[];
|
|
46
|
-
}
|
|
47
|
-
export {};
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.SendChatMessageDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
@@ -34,130 +34,3 @@ __decorate([
|
|
|
34
34
|
(0, swagger_1.ApiProperty)({ required: true, type: 'string' }),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], SendChatMessageDto.prototype, "receiver", void 0);
|
|
37
|
-
class ProfileDto {
|
|
38
|
-
}
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, swagger_1.ApiProperty)({
|
|
41
|
-
example: 'erd1fmd662htrgt07xxd8me09newa9s0euzvpz3wp0c4pz78f83grt9qm6pn57',
|
|
42
|
-
}),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], ProfileDto.prototype, "address", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, swagger_1.ApiProperty)({ example: '@mihaieremia' }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], ProfileDto.prototype, "username", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, swagger_1.ApiProperty)({
|
|
51
|
-
example: 'https://media.xoxno.com/collectionprofile/erd1fmd662htrgt07xxd8me09newa9s0euzvpz3wp0c4pz78f83grt9qm6pn57/profilePicture.webp?ts=1718876966',
|
|
52
|
-
}),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], ProfileDto.prototype, "profile", void 0);
|
|
55
|
-
class MessageContentReplyToDto {
|
|
56
|
-
}
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, swagger_1.ApiProperty)({ example: 'message' }),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], MessageContentReplyToDto.prototype, "type", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, swagger_1.ApiProperty)({ example: 'Hello world' }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], MessageContentReplyToDto.prototype, "value", void 0);
|
|
65
|
-
class ReplyToDto {
|
|
66
|
-
}
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, swagger_1.ApiProperty)({ type: ProfileDto }),
|
|
69
|
-
__metadata("design:type", ProfileDto)
|
|
70
|
-
], ReplyToDto.prototype, "sender", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, swagger_1.ApiProperty)({ type: MessageContentReplyToDto }),
|
|
73
|
-
__metadata("design:type", MessageContentReplyToDto)
|
|
74
|
-
], ReplyToDto.prototype, "content", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, swagger_1.ApiProperty)({ example: 1720468991 }),
|
|
77
|
-
__metadata("design:type", Number)
|
|
78
|
-
], ReplyToDto.prototype, "timestamp", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, swagger_1.ApiProperty)({ example: 'b02f639a-abcf-4db8-9397-bdb3b60cef6a' }),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], ReplyToDto.prototype, "id", void 0);
|
|
83
|
-
class MessageContentDto {
|
|
84
|
-
}
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, swagger_1.ApiProperty)({ example: 'message' }),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], MessageContentDto.prototype, "type", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, swagger_1.ApiProperty)({ example: 'Vv' }),
|
|
91
|
-
__metadata("design:type", String)
|
|
92
|
-
], MessageContentDto.prototype, "value", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, swagger_1.ApiProperty)({ required: false, type: ReplyToDto }),
|
|
95
|
-
__metadata("design:type", ReplyToDto)
|
|
96
|
-
], MessageContentDto.prototype, "replyTo", void 0);
|
|
97
|
-
class MessageDto {
|
|
98
|
-
}
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, swagger_1.ApiProperty)({ type: MessageContentDto }),
|
|
101
|
-
__metadata("design:type", MessageContentDto)
|
|
102
|
-
], MessageDto.prototype, "content", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, swagger_1.ApiProperty)({ example: true }),
|
|
105
|
-
__metadata("design:type", Boolean)
|
|
106
|
-
], MessageDto.prototype, "isRead", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, swagger_1.ApiProperty)({ example: 1720468991 }),
|
|
109
|
-
__metadata("design:type", Number)
|
|
110
|
-
], MessageDto.prototype, "timestamp", void 0);
|
|
111
|
-
class ChatMessageDto {
|
|
112
|
-
}
|
|
113
|
-
exports.ChatMessageDto = ChatMessageDto;
|
|
114
|
-
__decorate([
|
|
115
|
-
(0, swagger_1.ApiProperty)({ example: 'message' }),
|
|
116
|
-
__metadata("design:type", String)
|
|
117
|
-
], ChatMessageDto.prototype, "dataType", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
(0, swagger_1.ApiProperty)({ example: 'a0vzrplk37ls7swz5ypz78f83grt9qm6pn57' }),
|
|
120
|
-
__metadata("design:type", String)
|
|
121
|
-
], ChatMessageDto.prototype, "chatId", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
(0, swagger_1.ApiProperty)({ type: ProfileDto }),
|
|
124
|
-
__metadata("design:type", ProfileDto)
|
|
125
|
-
], ChatMessageDto.prototype, "receiver", void 0);
|
|
126
|
-
__decorate([
|
|
127
|
-
(0, swagger_1.ApiProperty)({ type: ProfileDto }),
|
|
128
|
-
__metadata("design:type", ProfileDto)
|
|
129
|
-
], ChatMessageDto.prototype, "sender", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
(0, swagger_1.ApiProperty)({ example: false }),
|
|
132
|
-
__metadata("design:type", Boolean)
|
|
133
|
-
], ChatMessageDto.prototype, "isGroupChat", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
(0, swagger_1.ApiProperty)({ type: MessageDto }),
|
|
136
|
-
__metadata("design:type", MessageDto)
|
|
137
|
-
], ChatMessageDto.prototype, "message", void 0);
|
|
138
|
-
__decorate([
|
|
139
|
-
(0, swagger_1.ApiProperty)({ example: 'b02f639a-abcf-4db8-9397-bdb3b60cef6a' }),
|
|
140
|
-
__metadata("design:type", String)
|
|
141
|
-
], ChatMessageDto.prototype, "id", void 0);
|
|
142
|
-
__decorate([
|
|
143
|
-
(0, swagger_1.ApiProperty)({ example: '@mihaieremia' }),
|
|
144
|
-
__metadata("design:type", String)
|
|
145
|
-
], ChatMessageDto.prototype, "chatName", void 0);
|
|
146
|
-
class FetchChatMessagesDto {
|
|
147
|
-
constructor() {
|
|
148
|
-
this.hasMoreResults = false;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
exports.FetchChatMessagesDto = FetchChatMessagesDto;
|
|
152
|
-
__decorate([
|
|
153
|
-
(0, swagger_1.ApiProperty)({ example: false }),
|
|
154
|
-
__metadata("design:type", Boolean)
|
|
155
|
-
], FetchChatMessagesDto.prototype, "hasMoreResults", void 0);
|
|
156
|
-
__decorate([
|
|
157
|
-
(0, swagger_1.ApiProperty)({ type: ProfileDto }),
|
|
158
|
-
__metadata("design:type", ProfileDto)
|
|
159
|
-
], FetchChatMessagesDto.prototype, "receiver", void 0);
|
|
160
|
-
__decorate([
|
|
161
|
-
(0, swagger_1.ApiProperty)({ type: ChatMessageDto, isArray: true }),
|
|
162
|
-
__metadata("design:type", Array)
|
|
163
|
-
], FetchChatMessagesDto.prototype, "resources", void 0);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { OwnerDto } from '../../../common/owner.dto';
|
|
2
2
|
import { ChatDataType } from './chat-data-type.enum';
|
|
3
|
-
import {
|
|
3
|
+
import { MessageDto } from './chat-message.doc';
|
|
4
4
|
declare class UserConversationDocBase {
|
|
5
5
|
dataType: ChatDataType;
|
|
6
6
|
chatName?: string | undefined;
|
|
7
7
|
isGroupChat: boolean;
|
|
8
8
|
chatId: string;
|
|
9
|
-
message:
|
|
9
|
+
message: MessageDto;
|
|
10
10
|
deleteTimestamp?: number | undefined;
|
|
11
11
|
unreadCount?: number | undefined;
|
|
12
12
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NftHydrated } from '../token/nft-details.doc';
|
|
2
2
|
import { StakingDataType } from '../../../entities/staking-data/staking-data-type.enum';
|
|
3
3
|
import { StakingIssuingTypeString } from '../../../entities/staking-data/staking-issuing-type-string.enum';
|
|
4
4
|
import { StakingPoolTypeString } from '../../../entities/staking-data/staking-pool-type-string.enum';
|
|
@@ -88,6 +88,6 @@ export declare class StakingSummary {
|
|
|
88
88
|
}
|
|
89
89
|
export declare class StakingUserPoolNfts {
|
|
90
90
|
poolInfo: StakingSummary;
|
|
91
|
-
nftDocs:
|
|
91
|
+
nftDocs: NftHydrated[];
|
|
92
92
|
count: number;
|
|
93
93
|
}
|
|
@@ -256,7 +256,7 @@ __decorate([
|
|
|
256
256
|
__metadata("design:type", StakingSummary)
|
|
257
257
|
], StakingUserPoolNfts.prototype, "poolInfo", void 0);
|
|
258
258
|
__decorate([
|
|
259
|
-
(0, swagger_1.ApiProperty)({ type: nft_details_doc_1.
|
|
259
|
+
(0, swagger_1.ApiProperty)({ type: nft_details_doc_1.NftHydrated, isArray: true }),
|
|
260
260
|
__metadata("design:type", Array)
|
|
261
261
|
], StakingUserPoolNfts.prototype, "nftDocs", void 0);
|
|
262
262
|
__decorate([
|
|
@@ -2,7 +2,7 @@ import { EventGuestProfile } from './event-guest.doc';
|
|
|
2
2
|
import { EventInvitation } from './event-invitation.doc';
|
|
3
3
|
import { EventScanStatus, EventScanMessage } from './event-scan-status.enum';
|
|
4
4
|
import { TicketProfileSummary } from './event-ticket-profile.doc';
|
|
5
|
-
import {
|
|
5
|
+
import { NftHydrated } from '../token/nft-details.doc';
|
|
6
6
|
export declare enum EventTicketQrType {
|
|
7
7
|
BADGE = "badge",
|
|
8
8
|
OFFLINE = "offline",
|
|
@@ -21,7 +21,7 @@ export declare class TicketValidationResult {
|
|
|
21
21
|
message: EventScanMessage;
|
|
22
22
|
guest?: EventGuestProfile;
|
|
23
23
|
invitation?: EventInvitation;
|
|
24
|
-
nfts?:
|
|
24
|
+
nfts?: NftHydrated[];
|
|
25
25
|
availableTickets?: TicketSelection[];
|
|
26
26
|
}
|
|
27
27
|
export declare class QRBody {
|
|
@@ -105,7 +105,7 @@ __decorate([
|
|
|
105
105
|
__decorate([
|
|
106
106
|
(0, swagger_1.ApiProperty)({
|
|
107
107
|
description: 'NFTs used for check in, if any',
|
|
108
|
-
type: [nft_details_doc_1.
|
|
108
|
+
type: [nft_details_doc_1.NftHydrated],
|
|
109
109
|
required: false,
|
|
110
110
|
}),
|
|
111
111
|
__metadata("design:type", Array)
|
|
@@ -62,7 +62,7 @@ export declare class ExtraProperties {
|
|
|
62
62
|
currentEpoch?: number;
|
|
63
63
|
level?: number;
|
|
64
64
|
}
|
|
65
|
-
export declare class
|
|
65
|
+
export declare class NftHydrated extends NftDocBase {
|
|
66
66
|
creator?: OwnerDto;
|
|
67
67
|
currentOwner?: OwnerDto;
|
|
68
68
|
owner?: OwnerDto;
|
|
@@ -74,9 +74,4 @@ export declare class NftProps extends NftDocBase {
|
|
|
74
74
|
collectionInfo?: Partial<CollectionProfileDoc>;
|
|
75
75
|
extraProperties?: ExtraProperties;
|
|
76
76
|
}
|
|
77
|
-
export declare class NftCosmosResponse {
|
|
78
|
-
resources: NftProps[];
|
|
79
|
-
hasMoreResults: boolean;
|
|
80
|
-
count?: number;
|
|
81
|
-
}
|
|
82
77
|
export {};
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.NftHydrated = exports.ExtraProperties = exports.NftDoc = exports.NftMedia = exports.NFTEventData = void 0;
|
|
13
13
|
const token_data_enum_1 = require("./token-data.enum");
|
|
14
14
|
const nft_metadata_1 = require("./nft-metadata");
|
|
15
15
|
const nft_sale_info_1 = require("./nft-sale-info");
|
|
@@ -359,9 +359,9 @@ __decorate([
|
|
|
359
359
|
}),
|
|
360
360
|
__metadata("design:type", Number)
|
|
361
361
|
], ExtraProperties.prototype, "level", void 0);
|
|
362
|
-
class
|
|
362
|
+
class NftHydrated extends NftDocBase {
|
|
363
363
|
}
|
|
364
|
-
exports.
|
|
364
|
+
exports.NftHydrated = NftHydrated;
|
|
365
365
|
__decorate([
|
|
366
366
|
(0, swagger_1.ApiProperty)({
|
|
367
367
|
type: owner_dto_1.OwnerDto,
|
|
@@ -369,7 +369,7 @@ __decorate([
|
|
|
369
369
|
description: 'The creator of the NFT',
|
|
370
370
|
}),
|
|
371
371
|
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
372
|
-
],
|
|
372
|
+
], NftHydrated.prototype, "creator", void 0);
|
|
373
373
|
__decorate([
|
|
374
374
|
(0, swagger_1.ApiProperty)({
|
|
375
375
|
type: owner_dto_1.OwnerDto,
|
|
@@ -377,7 +377,7 @@ __decorate([
|
|
|
377
377
|
description: 'The current owner of the NFT',
|
|
378
378
|
}),
|
|
379
379
|
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
380
|
-
],
|
|
380
|
+
], NftHydrated.prototype, "currentOwner", void 0);
|
|
381
381
|
__decorate([
|
|
382
382
|
(0, swagger_1.ApiProperty)({
|
|
383
383
|
type: owner_dto_1.OwnerDto,
|
|
@@ -385,7 +385,7 @@ __decorate([
|
|
|
385
385
|
description: 'The owner of the NFT',
|
|
386
386
|
}),
|
|
387
387
|
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
388
|
-
],
|
|
388
|
+
], NftHydrated.prototype, "owner", void 0);
|
|
389
389
|
__decorate([
|
|
390
390
|
(0, swagger_1.ApiProperty)({
|
|
391
391
|
type: nft_sale_info_1.NftSaleInfoHydrated,
|
|
@@ -393,7 +393,7 @@ __decorate([
|
|
|
393
393
|
description: 'The sale info of the NFT',
|
|
394
394
|
}),
|
|
395
395
|
__metadata("design:type", nft_sale_info_1.NftSaleInfoHydrated)
|
|
396
|
-
],
|
|
396
|
+
], NftHydrated.prototype, "saleInfo", void 0);
|
|
397
397
|
__decorate([
|
|
398
398
|
(0, swagger_1.ApiProperty)({
|
|
399
399
|
type: Number,
|
|
@@ -401,7 +401,7 @@ __decorate([
|
|
|
401
401
|
description: 'Balance owned by the user',
|
|
402
402
|
}),
|
|
403
403
|
__metadata("design:type", Number)
|
|
404
|
-
],
|
|
404
|
+
], NftHydrated.prototype, "balance", void 0);
|
|
405
405
|
__decorate([
|
|
406
406
|
(0, swagger_1.ApiProperty)({
|
|
407
407
|
type: String,
|
|
@@ -409,7 +409,7 @@ __decorate([
|
|
|
409
409
|
description: 'Balance owned by the user as long string',
|
|
410
410
|
}),
|
|
411
411
|
__metadata("design:type", String)
|
|
412
|
-
],
|
|
412
|
+
], NftHydrated.prototype, "balanceLong", void 0);
|
|
413
413
|
__decorate([
|
|
414
414
|
(0, swagger_1.ApiProperty)({
|
|
415
415
|
type: Number,
|
|
@@ -417,7 +417,7 @@ __decorate([
|
|
|
417
417
|
description: 'Left days until the staked NFT can be claimed back',
|
|
418
418
|
}),
|
|
419
419
|
__metadata("design:type", Number)
|
|
420
|
-
],
|
|
420
|
+
], NftHydrated.prototype, "unboundDaysLeft", void 0);
|
|
421
421
|
__decorate([
|
|
422
422
|
(0, swagger_1.ApiProperty)({
|
|
423
423
|
type: Number,
|
|
@@ -425,7 +425,7 @@ __decorate([
|
|
|
425
425
|
description: 'The epoch day when the NFT will be available for claiming',
|
|
426
426
|
}),
|
|
427
427
|
__metadata("design:type", Number)
|
|
428
|
-
],
|
|
428
|
+
], NftHydrated.prototype, "unboundEpoch", void 0);
|
|
429
429
|
__decorate([
|
|
430
430
|
(0, swagger_1.ApiProperty)({
|
|
431
431
|
type: (swagger_1.PartialType),
|
|
@@ -433,7 +433,7 @@ __decorate([
|
|
|
433
433
|
description: 'The extra information about the collection of this specific NFT',
|
|
434
434
|
}),
|
|
435
435
|
__metadata("design:type", Object)
|
|
436
|
-
],
|
|
436
|
+
], NftHydrated.prototype, "collectionInfo", void 0);
|
|
437
437
|
__decorate([
|
|
438
438
|
(0, swagger_1.ApiProperty)({
|
|
439
439
|
type: ExtraProperties,
|
|
@@ -441,23 +441,4 @@ __decorate([
|
|
|
441
441
|
description: 'Extra props for the specific NFT',
|
|
442
442
|
}),
|
|
443
443
|
__metadata("design:type", ExtraProperties)
|
|
444
|
-
],
|
|
445
|
-
class NftCosmosResponse {
|
|
446
|
-
constructor() {
|
|
447
|
-
this.resources = [];
|
|
448
|
-
this.hasMoreResults = false;
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
exports.NftCosmosResponse = NftCosmosResponse;
|
|
452
|
-
__decorate([
|
|
453
|
-
(0, swagger_1.ApiProperty)({ type: NftProps, isArray: true }),
|
|
454
|
-
__metadata("design:type", Array)
|
|
455
|
-
], NftCosmosResponse.prototype, "resources", void 0);
|
|
456
|
-
__decorate([
|
|
457
|
-
(0, swagger_1.ApiProperty)({ example: true, type: Boolean }),
|
|
458
|
-
__metadata("design:type", Boolean)
|
|
459
|
-
], NftCosmosResponse.prototype, "hasMoreResults", void 0);
|
|
460
|
-
__decorate([
|
|
461
|
-
(0, swagger_1.ApiProperty)({ example: 12, type: Number, required: false }),
|
|
462
|
-
__metadata("design:type", Number)
|
|
463
|
-
], NftCosmosResponse.prototype, "count", void 0);
|
|
444
|
+
], NftHydrated.prototype, "extraProperties", void 0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActivityChain } from '../../../common/enums';
|
|
2
|
-
import {
|
|
2
|
+
import { NftHydrated } from './nft-details.doc';
|
|
3
3
|
import { TokenDataType } from './token-data.enum';
|
|
4
4
|
import { OwnerDto } from '../../../common/owner.dto';
|
|
5
5
|
declare class NftOfferDocBase {
|
|
@@ -33,6 +33,6 @@ export declare class NftOfferDocHydrated extends NftOfferDocBase {
|
|
|
33
33
|
usdValue: number;
|
|
34
34
|
floorPriceMargin: number;
|
|
35
35
|
floorPrice: number;
|
|
36
|
-
nftInfo: Partial<
|
|
36
|
+
nftInfo: Partial<NftHydrated>;
|
|
37
37
|
}
|
|
38
38
|
export {};
|
|
@@ -216,7 +216,7 @@ __decorate([
|
|
|
216
216
|
], NftOfferDocHydrated.prototype, "floorPrice", void 0);
|
|
217
217
|
__decorate([
|
|
218
218
|
(0, swagger_1.ApiProperty)({
|
|
219
|
-
type: () => nft_details_doc_1.
|
|
219
|
+
type: () => nft_details_doc_1.NftHydrated,
|
|
220
220
|
description: 'NFT information related to the offer',
|
|
221
221
|
}),
|
|
222
222
|
__metadata("design:type", Object)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { GlobalSearchResourcesDto } from '../entities/search-data/search.dto';
|
|
2
|
+
import { CosmosPaginatedResponse } from './cosmos-db-paginated-response.dto';
|
|
3
|
+
import { NftActivityDocHydrated } from './documents/activity/nft-activity.doc';
|
|
4
|
+
import { ChatMessageDocHydrated } from './documents/chat/chat-message.doc';
|
|
5
|
+
import { UserBlockDocHydrated } from './documents/chat/user-block.doc';
|
|
6
|
+
import { UserConversationDocHydrated } from './documents/chat/user-conversation.doc';
|
|
7
|
+
import { GlobalOfferDocHydrated } from './documents/collection/globalOffer';
|
|
8
|
+
import { CollectionMintProfileDocHydrated } from './documents/collection/mintProfile';
|
|
9
|
+
import { CollectionProfileDoc } from './documents/collection/profile';
|
|
10
|
+
import { CollectionStatsDocHydrated } from './documents/collection/stats';
|
|
11
|
+
import { EventReferralConfigDoc } from './documents/ticketing/event-referral-config.doc';
|
|
12
|
+
import { EventReferralDoc } from './documents/ticketing/event-referral.doc';
|
|
13
|
+
import { NftHydrated } from './documents/token/nft-details.doc';
|
|
14
|
+
import { NftOfferDocHydrated } from './documents/token/nft-offer.doc';
|
|
15
|
+
export declare class EventReferralConfigPaginated extends CosmosPaginatedResponse<EventReferralConfigDoc> {
|
|
16
|
+
}
|
|
17
|
+
export declare class EventReferralPaginated extends CosmosPaginatedResponse<EventReferralDoc> {
|
|
18
|
+
}
|
|
19
|
+
export declare class GlobalSearchResourcesPaginated extends CosmosPaginatedResponse<GlobalSearchResourcesDto> {
|
|
20
|
+
}
|
|
21
|
+
export declare class UserBlockPaginated extends CosmosPaginatedResponse<UserBlockDocHydrated> {
|
|
22
|
+
}
|
|
23
|
+
export declare class UserConversationPaginated extends CosmosPaginatedResponse<UserConversationDocHydrated> {
|
|
24
|
+
}
|
|
25
|
+
export declare class NftActivityPagined extends CosmosPaginatedResponse<NftActivityDocHydrated> {
|
|
26
|
+
}
|
|
27
|
+
export declare class ChatMessagePaginated extends CosmosPaginatedResponse<ChatMessageDocHydrated> {
|
|
28
|
+
}
|
|
29
|
+
export declare class NftPaginated extends CosmosPaginatedResponse<NftHydrated> {
|
|
30
|
+
}
|
|
31
|
+
export declare class CollectionProfilePaginated extends CosmosPaginatedResponse<CollectionProfileDoc> {
|
|
32
|
+
}
|
|
33
|
+
export declare class CollectionMintProfilePaginated extends CosmosPaginatedResponse<CollectionMintProfileDocHydrated> {
|
|
34
|
+
}
|
|
35
|
+
export declare class GlobalOfferPaginated extends CosmosPaginatedResponse<GlobalOfferDocHydrated> {
|
|
36
|
+
}
|
|
37
|
+
export declare class CollectionStatsPaginated extends CosmosPaginatedResponse<CollectionStatsDocHydrated> {
|
|
38
|
+
}
|
|
39
|
+
export declare class NftOfferPaginated extends CosmosPaginatedResponse<NftOfferDocHydrated> {
|
|
40
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NftOfferPaginated = exports.CollectionStatsPaginated = exports.GlobalOfferPaginated = exports.CollectionMintProfilePaginated = exports.CollectionProfilePaginated = exports.NftPaginated = exports.ChatMessagePaginated = exports.NftActivityPagined = exports.UserConversationPaginated = exports.UserBlockPaginated = exports.GlobalSearchResourcesPaginated = exports.EventReferralPaginated = exports.EventReferralConfigPaginated = void 0;
|
|
4
|
+
const cosmos_db_paginated_response_dto_1 = require("./cosmos-db-paginated-response.dto");
|
|
5
|
+
class EventReferralConfigPaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
6
|
+
}
|
|
7
|
+
exports.EventReferralConfigPaginated = EventReferralConfigPaginated;
|
|
8
|
+
class EventReferralPaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
9
|
+
}
|
|
10
|
+
exports.EventReferralPaginated = EventReferralPaginated;
|
|
11
|
+
class GlobalSearchResourcesPaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
12
|
+
}
|
|
13
|
+
exports.GlobalSearchResourcesPaginated = GlobalSearchResourcesPaginated;
|
|
14
|
+
class UserBlockPaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
15
|
+
}
|
|
16
|
+
exports.UserBlockPaginated = UserBlockPaginated;
|
|
17
|
+
class UserConversationPaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
18
|
+
}
|
|
19
|
+
exports.UserConversationPaginated = UserConversationPaginated;
|
|
20
|
+
class NftActivityPagined extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
21
|
+
}
|
|
22
|
+
exports.NftActivityPagined = NftActivityPagined;
|
|
23
|
+
class ChatMessagePaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
24
|
+
}
|
|
25
|
+
exports.ChatMessagePaginated = ChatMessagePaginated;
|
|
26
|
+
class NftPaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
27
|
+
}
|
|
28
|
+
exports.NftPaginated = NftPaginated;
|
|
29
|
+
class CollectionProfilePaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
30
|
+
}
|
|
31
|
+
exports.CollectionProfilePaginated = CollectionProfilePaginated;
|
|
32
|
+
class CollectionMintProfilePaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
33
|
+
}
|
|
34
|
+
exports.CollectionMintProfilePaginated = CollectionMintProfilePaginated;
|
|
35
|
+
class GlobalOfferPaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
36
|
+
}
|
|
37
|
+
exports.GlobalOfferPaginated = GlobalOfferPaginated;
|
|
38
|
+
class CollectionStatsPaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
39
|
+
}
|
|
40
|
+
exports.CollectionStatsPaginated = CollectionStatsPaginated;
|
|
41
|
+
class NftOfferPaginated extends cosmos_db_paginated_response_dto_1.CosmosPaginatedResponse {
|
|
42
|
+
}
|
|
43
|
+
exports.NftOfferPaginated = NftOfferPaginated;
|