@xoxno/types 1.0.179 → 1.0.180
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/common/socials.js +8 -0
- package/dist/cosmos-db/documents/chat/chat-message-content.dto.js +1 -1
- package/dist/cosmos-db/documents/chat/chat-message-reply.dto.js +1 -1
- package/dist/cosmos-db/documents/chat/chat-message.dto.js +1 -1
- package/dist/cosmos-db/documents/collection/profile.js +1 -2
- package/dist/cosmos-db/documents/external-payment/external-payment-request.js +2 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.js +2 -1
- package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +1 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +2 -0
- package/dist/cosmos-db/documents/user/user-profile.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/user/user-profile.doc.js +1 -1
- package/dist/entities/web2user-data/native-wallet.dto.js +1 -1
- package/dist/entities/web2user-data/web2user.doc.js +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/requests/aggregator/{ar-da-swap-result.dto.js → arda-swap-result.dto.js} +0 -8
- package/dist/requests/nft-activity-data/user-stats.js +6 -0
- package/package.json +1 -1
- /package/dist/requests/aggregator/{ar-da-swap-result.dto.d.ts → arda-swap-result.dto.d.ts} +0 -0
package/dist/common/socials.js
CHANGED
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SocialsDto = void 0;
|
|
13
13
|
const decorators_1 = require("@nestjs/swagger/dist/decorators");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
14
15
|
class SocialsDto {
|
|
15
16
|
constructor(props) {
|
|
16
17
|
Object.assign(this, props);
|
|
@@ -19,6 +20,7 @@ class SocialsDto {
|
|
|
19
20
|
exports.SocialsDto = SocialsDto;
|
|
20
21
|
__decorate([
|
|
21
22
|
(0, decorators_1.ApiProperty)({ example: 'https://twitter.com/example', required: false }),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
22
24
|
__metadata("design:type", String)
|
|
23
25
|
], SocialsDto.prototype, "twitter", void 0);
|
|
24
26
|
__decorate([
|
|
@@ -26,14 +28,17 @@ __decorate([
|
|
|
26
28
|
example: 'https://instagram.com/example',
|
|
27
29
|
required: false,
|
|
28
30
|
}),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
29
32
|
__metadata("design:type", String)
|
|
30
33
|
], SocialsDto.prototype, "instagram", void 0);
|
|
31
34
|
__decorate([
|
|
32
35
|
(0, decorators_1.ApiProperty)({ example: 'https://example.com', required: false }),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
33
37
|
__metadata("design:type", String)
|
|
34
38
|
], SocialsDto.prototype, "website", void 0);
|
|
35
39
|
__decorate([
|
|
36
40
|
(0, decorators_1.ApiProperty)({ example: 'https://t.me/example', required: false }),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
37
42
|
__metadata("design:type", String)
|
|
38
43
|
], SocialsDto.prototype, "telegram", void 0);
|
|
39
44
|
__decorate([
|
|
@@ -41,13 +46,16 @@ __decorate([
|
|
|
41
46
|
example: 'https://discord.com/invite/example',
|
|
42
47
|
required: false,
|
|
43
48
|
}),
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
44
50
|
__metadata("design:type", String)
|
|
45
51
|
], SocialsDto.prototype, "discord", void 0);
|
|
46
52
|
__decorate([
|
|
47
53
|
(0, decorators_1.ApiProperty)({ example: '', required: false }),
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
48
55
|
__metadata("design:type", String)
|
|
49
56
|
], SocialsDto.prototype, "facebook", void 0);
|
|
50
57
|
__decorate([
|
|
51
58
|
(0, decorators_1.ApiProperty)({ example: '', required: false }),
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
52
60
|
__metadata("design:type", String)
|
|
53
61
|
], SocialsDto.prototype, "youtube", void 0);
|
|
@@ -32,7 +32,7 @@ __decorate([
|
|
|
32
32
|
(0, class_validator_1.IsOptional)(),
|
|
33
33
|
(0, class_validator_1.ValidateNested)(),
|
|
34
34
|
(0, class_transformer_1.Type)(() => chat_message_reply_dto_1.ChatMessageReplyDto),
|
|
35
|
-
(0, class_validator_1.
|
|
35
|
+
(0, class_validator_1.IsObject)(),
|
|
36
36
|
(0, swagger_1.ApiProperty)({
|
|
37
37
|
description: 'Message reply to user',
|
|
38
38
|
type: () => chat_message_reply_dto_1.ChatMessageReplyDto,
|
|
@@ -25,7 +25,7 @@ __decorate([
|
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.ValidateNested)(),
|
|
27
27
|
(0, class_transformer_1.Type)(() => chat_message_content_dto_1.ChatMessageContentDto),
|
|
28
|
-
(0, class_validator_1.
|
|
28
|
+
(0, class_validator_1.IsObject)(),
|
|
29
29
|
(0, swagger_1.ApiProperty)({
|
|
30
30
|
description: 'Message value',
|
|
31
31
|
type: () => ChatMessageReplyDto,
|
|
@@ -25,7 +25,7 @@ __decorate([
|
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.ValidateNested)(),
|
|
27
27
|
(0, class_transformer_1.Type)(() => chat_message_content_dto_1.ChatMessageContentDto),
|
|
28
|
-
(0, class_validator_1.
|
|
28
|
+
(0, class_validator_1.IsObject)(),
|
|
29
29
|
(0, swagger_1.ApiProperty)({ required: true, type: () => chat_message_content_dto_1.ChatMessageContentDto }),
|
|
30
30
|
__metadata("design:type", chat_message_content_dto_1.ChatMessageContentDto)
|
|
31
31
|
], SendChatMessageDto.prototype, "content", void 0);
|
|
@@ -57,8 +57,6 @@ class CollectionProfileDoc {
|
|
|
57
57
|
this.dataType = collection_enum_1.CollectionDataType.CollectionProfile;
|
|
58
58
|
this.collection = '';
|
|
59
59
|
this.originalCollection = '';
|
|
60
|
-
this.name = '';
|
|
61
|
-
this.description = '';
|
|
62
60
|
this.isVisible = true;
|
|
63
61
|
this.isVerified = false;
|
|
64
62
|
this.statistics = new statistics_1.StatisticsDto({
|
|
@@ -157,6 +155,7 @@ __decorate([
|
|
|
157
155
|
}),
|
|
158
156
|
(0, class_validator_1.ValidateNested)(),
|
|
159
157
|
(0, class_transformer_1.Type)(() => socials_1.SocialsDto),
|
|
158
|
+
(0, class_validator_1.IsObject)(),
|
|
160
159
|
(0, class_validator_1.IsOptional)(),
|
|
161
160
|
__metadata("design:type", socials_1.SocialsDto)
|
|
162
161
|
], CollectionProfileDoc.prototype, "socials", void 0);
|
|
@@ -166,6 +166,7 @@ __decorate([
|
|
|
166
166
|
__decorate([
|
|
167
167
|
(0, swagger_1.ApiProperty)(),
|
|
168
168
|
(0, class_validator_1.ValidateNested)(),
|
|
169
|
+
(0, class_validator_1.IsObject)(),
|
|
169
170
|
(0, class_transformer_1.Type)(() => CallbackUrl),
|
|
170
171
|
__metadata("design:type", CallbackUrl)
|
|
171
172
|
], ExternalPaymentRequest.prototype, "callbackUrl", void 0);
|
|
@@ -179,6 +180,7 @@ __decorate([
|
|
|
179
180
|
}),
|
|
180
181
|
(0, class_validator_1.ValidateNested)(),
|
|
181
182
|
(0, class_transformer_1.Type)(() => Object),
|
|
183
|
+
(0, class_validator_1.IsObject)(),
|
|
182
184
|
__metadata("design:type", Object)
|
|
183
185
|
], ExternalPaymentRequest.prototype, "customData", void 0);
|
|
184
186
|
__decorate([
|
|
@@ -187,9 +187,10 @@ __decorate([
|
|
|
187
187
|
(0, swagger_1.ApiProperty)({
|
|
188
188
|
description: 'Callback URL',
|
|
189
189
|
required: false,
|
|
190
|
-
type: external_payment_request_1.CallbackUrl,
|
|
190
|
+
type: () => external_payment_request_1.CallbackUrl,
|
|
191
191
|
}),
|
|
192
192
|
(0, class_validator_1.IsOptional)(),
|
|
193
193
|
(0, class_validator_1.IsObject)(),
|
|
194
|
+
(0, class_transformer_1.Type)(() => external_payment_request_1.CallbackUrl),
|
|
194
195
|
__metadata("design:type", external_payment_request_1.CallbackUrl)
|
|
195
196
|
], EventGuestRegistrationDto.prototype, "callbackUrl", void 0);
|
|
@@ -90,6 +90,7 @@ __decorate([
|
|
|
90
90
|
example: [{ ticketId: 'VIP123', quantity: 2 }],
|
|
91
91
|
}),
|
|
92
92
|
(0, class_transformer_1.Type)(() => event_ticket_profile_doc_1.TicketProfileSummary),
|
|
93
|
+
(0, class_validator_1.IsArray)(),
|
|
93
94
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
94
95
|
__metadata("design:type", Array)
|
|
95
96
|
], EventInvitationDoc.prototype, "tickets", void 0);
|
|
@@ -107,6 +107,7 @@ __decorate([
|
|
|
107
107
|
}),
|
|
108
108
|
(0, class_validator_1.IsOptional)(),
|
|
109
109
|
(0, class_validator_1.ValidateNested)(),
|
|
110
|
+
(0, class_validator_1.IsObject)(),
|
|
110
111
|
(0, class_transformer_1.Type)(() => short_voucher_doc_1.ShortVoucherDoc),
|
|
111
112
|
__metadata("design:type", short_voucher_doc_1.ShortVoucherDoc)
|
|
112
113
|
], EventReferralConfigDoc.prototype, "appliedVoucher", void 0);
|
|
@@ -118,6 +119,7 @@ __decorate([
|
|
|
118
119
|
}),
|
|
119
120
|
(0, class_validator_1.IsOptional)(),
|
|
120
121
|
(0, class_validator_1.ValidateNested)(),
|
|
122
|
+
(0, class_validator_1.IsObject)(),
|
|
121
123
|
(0, class_transformer_1.Type)(() => RewardDetails),
|
|
122
124
|
__metadata("design:type", RewardDetails)
|
|
123
125
|
], EventReferralConfigDoc.prototype, "rewardDetails", void 0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ActivityChain } from '../../../enums/common.enum';
|
|
2
1
|
import { SocialsDto } from '../../../common/socials';
|
|
2
|
+
import { ActivityChain } from '../../../enums/common.enum';
|
|
3
3
|
import { UserDataType } from '../../../enums/user-data-type.enum';
|
|
4
4
|
import { UserDeposit } from './user-deposit';
|
|
5
5
|
export declare class UserProfileDoc {
|
|
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UserProfileDoc = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const common_enum_1 = require("../../../enums/common.enum");
|
|
15
14
|
const socials_1 = require("../../../common/socials");
|
|
15
|
+
const common_enum_1 = require("../../../enums/common.enum");
|
|
16
16
|
const user_data_type_enum_1 = require("../../../enums/user-data-type.enum");
|
|
17
17
|
const user_deposit_1 = require("./user-deposit");
|
|
18
18
|
class UserProfileDoc {
|
|
@@ -38,7 +38,7 @@ __decorate([
|
|
|
38
38
|
}),
|
|
39
39
|
(0, class_validator_1.ValidateNested)(),
|
|
40
40
|
(0, class_transformer_1.Type)(() => web2user_wallet_dto_1.Web2WalletDto),
|
|
41
|
-
(0, class_validator_1.
|
|
41
|
+
(0, class_validator_1.IsObject)(),
|
|
42
42
|
__metadata("design:type", web2user_wallet_dto_1.Web2WalletDto)
|
|
43
43
|
], NativeWalletDto.prototype, "wallet", void 0);
|
|
44
44
|
__decorate([
|
|
@@ -64,6 +64,7 @@ __decorate([
|
|
|
64
64
|
}),
|
|
65
65
|
(0, class_validator_1.IsOptional)(),
|
|
66
66
|
(0, class_transformer_1.Type)(() => web2user_wallet_1.Web2UserWallet),
|
|
67
|
+
(0, class_validator_1.IsObject)(),
|
|
67
68
|
(0, class_validator_1.ValidateNested)(),
|
|
68
69
|
__metadata("design:type", web2user_wallet_1.Web2UserWallet)
|
|
69
70
|
], Web2UserDoc.prototype, "wallet", void 0);
|
|
@@ -80,6 +81,7 @@ __decorate([
|
|
|
80
81
|
}),
|
|
81
82
|
(0, class_validator_1.IsOptional)(),
|
|
82
83
|
(0, class_validator_1.ValidateNested)(),
|
|
84
|
+
(0, class_validator_1.IsObject)(),
|
|
83
85
|
(0, class_transformer_1.Type)(() => web2user_account_1.Web2UserAccount),
|
|
84
86
|
__metadata("design:type", web2user_account_1.Web2UserAccount)
|
|
85
87
|
], Web2UserDoc.prototype, "google", void 0);
|
|
@@ -91,6 +93,7 @@ __decorate([
|
|
|
91
93
|
}),
|
|
92
94
|
(0, class_validator_1.IsOptional)(),
|
|
93
95
|
(0, class_validator_1.ValidateNested)(),
|
|
96
|
+
(0, class_validator_1.IsObject)(),
|
|
94
97
|
(0, class_transformer_1.Type)(() => web2user_account_1.Web2UserAccount),
|
|
95
98
|
__metadata("design:type", web2user_account_1.Web2UserAccount)
|
|
96
99
|
], Web2UserDoc.prototype, "apple", void 0);
|
package/dist/index.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ export * from './entities/web2user-data/web2user-wallet.dto';
|
|
|
162
162
|
export * from './entities/web2user-data/web2user-wallet';
|
|
163
163
|
export * from './entities/web2user-data/web2user.doc';
|
|
164
164
|
export * from './entities/xoxno-liquid-egld-sc/provider.dto';
|
|
165
|
-
export * from './requests/aggregator/
|
|
165
|
+
export * from './requests/aggregator/arda-swap-result.dto';
|
|
166
166
|
export * from './requests/aggregator/swap';
|
|
167
167
|
export * from './requests/bober-battle/analytics';
|
|
168
168
|
export * from './requests/chat/chat-token';
|
package/dist/index.js
CHANGED
|
@@ -244,7 +244,7 @@ __exportStar(require("./enums/xoxno-auction-type.enum"), exports);
|
|
|
244
244
|
__exportStar(require("./enums/xoxno-egld-liquid-sc.enum"), exports);
|
|
245
245
|
__exportStar(require("./enums/xoxno-egld-ls-activity.enum"), exports);
|
|
246
246
|
__exportStar(require("./enums/xoxno-ls-activity.enum"), exports);
|
|
247
|
-
__exportStar(require("./requests/aggregator/
|
|
247
|
+
__exportStar(require("./requests/aggregator/arda-swap-result.dto"), exports);
|
|
248
248
|
__exportStar(require("./requests/aggregator/swap"), exports);
|
|
249
249
|
__exportStar(require("./requests/bober-battle/analytics"), exports);
|
|
250
250
|
__exportStar(require("./requests/chat/chat-token"), exports);
|
|
@@ -20,7 +20,6 @@ __decorate([
|
|
|
20
20
|
description: 'The input token identifier',
|
|
21
21
|
example: 'WEGLD-d7c6b3',
|
|
22
22
|
}),
|
|
23
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
24
23
|
(0, class_validator_1.IsString)(),
|
|
25
24
|
__metadata("design:type", String)
|
|
26
25
|
], ArdaSwapResultDto.prototype, "tokenIn", void 0);
|
|
@@ -29,7 +28,6 @@ __decorate([
|
|
|
29
28
|
description: 'The amount of input token in its raw form (with decimals)',
|
|
30
29
|
example: '1000000000000000000',
|
|
31
30
|
}),
|
|
32
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
33
31
|
(0, class_validator_1.IsString)(),
|
|
34
32
|
__metadata("design:type", String)
|
|
35
33
|
], ArdaSwapResultDto.prototype, "amountIn", void 0);
|
|
@@ -38,7 +36,6 @@ __decorate([
|
|
|
38
36
|
description: 'The amount of input token in human-readable form (without decimals)',
|
|
39
37
|
example: '1.0',
|
|
40
38
|
}),
|
|
41
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
42
39
|
(0, class_validator_1.IsString)(),
|
|
43
40
|
__metadata("design:type", String)
|
|
44
41
|
], ArdaSwapResultDto.prototype, "amountInShort", void 0);
|
|
@@ -47,7 +44,6 @@ __decorate([
|
|
|
47
44
|
description: 'The output token identifier',
|
|
48
45
|
example: 'USDC-c76f1f',
|
|
49
46
|
}),
|
|
50
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
51
47
|
(0, class_validator_1.IsString)(),
|
|
52
48
|
__metadata("design:type", String)
|
|
53
49
|
], ArdaSwapResultDto.prototype, "tokenOut", void 0);
|
|
@@ -56,7 +52,6 @@ __decorate([
|
|
|
56
52
|
description: 'The amount of output token in its raw form (with decimals)',
|
|
57
53
|
example: '1000000000',
|
|
58
54
|
}),
|
|
59
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
60
55
|
(0, class_validator_1.IsString)(),
|
|
61
56
|
__metadata("design:type", String)
|
|
62
57
|
], ArdaSwapResultDto.prototype, "amountOut", void 0);
|
|
@@ -65,7 +60,6 @@ __decorate([
|
|
|
65
60
|
description: 'The amount of output token in human-readable form (without decimals)',
|
|
66
61
|
example: '1.0',
|
|
67
62
|
}),
|
|
68
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
69
63
|
(0, class_validator_1.IsString)(),
|
|
70
64
|
__metadata("design:type", String)
|
|
71
65
|
], ArdaSwapResultDto.prototype, "amountOutShort", void 0);
|
|
@@ -74,7 +68,6 @@ __decorate([
|
|
|
74
68
|
description: 'The encoded arguments for the smart contract call',
|
|
75
69
|
example: '0x1234567890abcdef',
|
|
76
70
|
}),
|
|
77
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
78
71
|
(0, class_validator_1.IsString)(),
|
|
79
72
|
__metadata("design:type", String)
|
|
80
73
|
], ArdaSwapResultDto.prototype, "argument", void 0);
|
|
@@ -83,7 +76,6 @@ __decorate([
|
|
|
83
76
|
description: 'The gas limit required for the transaction',
|
|
84
77
|
example: 10000000,
|
|
85
78
|
}),
|
|
86
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
87
79
|
(0, class_validator_1.IsNumber)(),
|
|
88
80
|
__metadata("design:type", Number)
|
|
89
81
|
], ArdaSwapResultDto.prototype, "gasLimit", void 0);
|
|
@@ -95,6 +95,7 @@ __decorate([
|
|
|
95
95
|
required: false,
|
|
96
96
|
}),
|
|
97
97
|
(0, class_validator_1.ValidateNested)(),
|
|
98
|
+
(0, class_validator_1.IsObject)(),
|
|
98
99
|
(0, class_transformer_1.Type)(() => short_nft_doc_1.ShortNftDoc),
|
|
99
100
|
__metadata("design:type", short_nft_doc_1.ShortNftDoc)
|
|
100
101
|
], PriceDataDto.prototype, "nftInfo", void 0);
|
|
@@ -107,6 +108,7 @@ __decorate([
|
|
|
107
108
|
description: 'User wallet information',
|
|
108
109
|
}),
|
|
109
110
|
(0, class_validator_1.ValidateNested)(),
|
|
111
|
+
(0, class_validator_1.IsObject)(),
|
|
110
112
|
(0, class_transformer_1.Type)(() => WalletDto),
|
|
111
113
|
__metadata("design:type", WalletDto)
|
|
112
114
|
], UserStatsDto.prototype, "wallet", void 0);
|
|
@@ -166,6 +168,7 @@ __decorate([
|
|
|
166
168
|
description: 'Buyer maximum price data',
|
|
167
169
|
}),
|
|
168
170
|
(0, class_validator_1.ValidateNested)(),
|
|
171
|
+
(0, class_validator_1.IsObject)(),
|
|
169
172
|
(0, class_transformer_1.Type)(() => PriceDataDto),
|
|
170
173
|
__metadata("design:type", PriceDataDto)
|
|
171
174
|
], UserStatsDto.prototype, "buyerMaxPriceData", void 0);
|
|
@@ -175,6 +178,7 @@ __decorate([
|
|
|
175
178
|
description: 'Buyer minimum price data',
|
|
176
179
|
}),
|
|
177
180
|
(0, class_validator_1.ValidateNested)(),
|
|
181
|
+
(0, class_validator_1.IsObject)(),
|
|
178
182
|
(0, class_transformer_1.Type)(() => PriceDataDto),
|
|
179
183
|
__metadata("design:type", PriceDataDto)
|
|
180
184
|
], UserStatsDto.prototype, "buyerMinPriceData", void 0);
|
|
@@ -209,6 +213,7 @@ __decorate([
|
|
|
209
213
|
description: 'Seller maximum price data',
|
|
210
214
|
}),
|
|
211
215
|
(0, class_validator_1.ValidateNested)(),
|
|
216
|
+
(0, class_validator_1.IsObject)(),
|
|
212
217
|
(0, class_transformer_1.Type)(() => PriceDataDto),
|
|
213
218
|
__metadata("design:type", PriceDataDto)
|
|
214
219
|
], UserStatsDto.prototype, "sellerMaxPriceData", void 0);
|
|
@@ -218,6 +223,7 @@ __decorate([
|
|
|
218
223
|
description: 'Seller minimum price data',
|
|
219
224
|
}),
|
|
220
225
|
(0, class_validator_1.ValidateNested)(),
|
|
226
|
+
(0, class_validator_1.IsObject)(),
|
|
221
227
|
(0, class_transformer_1.Type)(() => PriceDataDto),
|
|
222
228
|
__metadata("design:type", PriceDataDto)
|
|
223
229
|
], UserStatsDto.prototype, "sellerMinPriceData", void 0);
|
package/package.json
CHANGED
|
File without changes
|