@xoxno/types 1.0.178 → 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 +4 -2
- package/dist/cosmos-db/documents/external-payment/external-payment-request.js +2 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-approve.dto.js +1 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.js +2 -1
- package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +4 -0
- package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.js +9 -7
- package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +4 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +2 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +4 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +6 -0
- package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +1 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +6 -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/cosmos-db/documents/user/user-settings.doc.js +5 -0
- 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/dist/requests/user-data/edit-creator-profile.dto.js +1 -1
- package/dist/requests/user-data/verify-email.dto.js +1 -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({
|
|
@@ -123,6 +121,7 @@ __decorate([
|
|
|
123
121
|
}),
|
|
124
122
|
(0, class_validator_1.IsString)(),
|
|
125
123
|
(0, class_validator_1.Length)(3, 30),
|
|
124
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
125
|
__metadata("design:type", String)
|
|
127
126
|
], CollectionProfileDoc.prototype, "name", void 0);
|
|
128
127
|
__decorate([
|
|
@@ -132,6 +131,7 @@ __decorate([
|
|
|
132
131
|
}),
|
|
133
132
|
(0, class_validator_1.IsString)(),
|
|
134
133
|
(0, class_validator_1.Length)(3, 300),
|
|
134
|
+
(0, class_validator_1.IsOptional)(),
|
|
135
135
|
__metadata("design:type", String)
|
|
136
136
|
], CollectionProfileDoc.prototype, "description", void 0);
|
|
137
137
|
__decorate([
|
|
@@ -155,6 +155,8 @@ __decorate([
|
|
|
155
155
|
}),
|
|
156
156
|
(0, class_validator_1.ValidateNested)(),
|
|
157
157
|
(0, class_transformer_1.Type)(() => socials_1.SocialsDto),
|
|
158
|
+
(0, class_validator_1.IsObject)(),
|
|
159
|
+
(0, class_validator_1.IsOptional)(),
|
|
158
160
|
__metadata("design:type", socials_1.SocialsDto)
|
|
159
161
|
], CollectionProfileDoc.prototype, "socials", void 0);
|
|
160
162
|
__decorate([
|
|
@@ -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);
|
|
@@ -61,6 +61,7 @@ __decorate([
|
|
|
61
61
|
required: false,
|
|
62
62
|
}),
|
|
63
63
|
(0, class_validator_1.Length)(1, 30),
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
65
|
__metadata("design:type", String)
|
|
65
66
|
], EventInvitationDoc.prototype, "name", void 0);
|
|
66
67
|
__decorate([
|
|
@@ -89,6 +90,7 @@ __decorate([
|
|
|
89
90
|
example: [{ ticketId: 'VIP123', quantity: 2 }],
|
|
90
91
|
}),
|
|
91
92
|
(0, class_transformer_1.Type)(() => event_ticket_profile_doc_1.TicketProfileSummary),
|
|
93
|
+
(0, class_validator_1.IsArray)(),
|
|
92
94
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
93
95
|
__metadata("design:type", Array)
|
|
94
96
|
], EventInvitationDoc.prototype, "tickets", void 0);
|
|
@@ -100,6 +102,7 @@ __decorate([
|
|
|
100
102
|
}),
|
|
101
103
|
(0, class_validator_1.IsInt)(),
|
|
102
104
|
(0, class_validator_1.Min)(1),
|
|
105
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
106
|
__metadata("design:type", Number)
|
|
104
107
|
], EventInvitationDoc.prototype, "startTime", void 0);
|
|
105
108
|
__decorate([
|
|
@@ -110,6 +113,7 @@ __decorate([
|
|
|
110
113
|
}),
|
|
111
114
|
(0, class_validator_1.IsInt)(),
|
|
112
115
|
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000) + 86400),
|
|
116
|
+
(0, class_validator_1.IsOptional)(),
|
|
113
117
|
__metadata("design:type", Number)
|
|
114
118
|
], EventInvitationDoc.prototype, "endTime", void 0);
|
|
115
119
|
__decorate([
|
|
@@ -63,6 +63,7 @@ __decorate([
|
|
|
63
63
|
}),
|
|
64
64
|
(0, class_validator_1.IsInt)(),
|
|
65
65
|
(0, class_validator_1.Min)(0),
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
67
|
__metadata("design:type", Object)
|
|
67
68
|
], RegistrationDetailsDto.prototype, "maxLimit", void 0);
|
|
68
69
|
__decorate([
|
|
@@ -72,6 +73,7 @@ __decorate([
|
|
|
72
73
|
}),
|
|
73
74
|
(0, class_validator_1.IsInt)(),
|
|
74
75
|
(0, class_validator_1.Min)(0),
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
77
|
__metadata("design:type", Object)
|
|
76
78
|
], RegistrationDetailsDto.prototype, "userLimit", void 0);
|
|
77
79
|
__decorate([
|
|
@@ -171,8 +173,8 @@ exports.EventLocationDto = EventLocationDto;
|
|
|
171
173
|
__decorate([
|
|
172
174
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
173
175
|
(0, class_validator_1.IsString)(),
|
|
174
|
-
(0, class_validator_1.IsOptional)(),
|
|
175
176
|
(0, class_validator_1.Length)(3, 300),
|
|
177
|
+
(0, class_validator_1.IsOptional)(),
|
|
176
178
|
__metadata("design:type", String)
|
|
177
179
|
], EventLocationDto.prototype, "address", void 0);
|
|
178
180
|
__decorate([
|
|
@@ -188,10 +190,10 @@ __decorate([
|
|
|
188
190
|
required: false,
|
|
189
191
|
description: 'Latitude must be between -90 and 90',
|
|
190
192
|
}),
|
|
191
|
-
(0, class_validator_1.IsOptional)(),
|
|
192
193
|
(0, class_validator_1.IsNumber)(),
|
|
193
194
|
(0, class_validator_1.Min)(-90, { message: 'Latitude must be at least -90' }),
|
|
194
195
|
(0, class_validator_1.Max)(90, { message: 'Latitude must be at most 90' }),
|
|
196
|
+
(0, class_validator_1.IsOptional)(),
|
|
195
197
|
__metadata("design:type", Number)
|
|
196
198
|
], EventLocationDto.prototype, "lat", void 0);
|
|
197
199
|
__decorate([
|
|
@@ -201,38 +203,38 @@ __decorate([
|
|
|
201
203
|
required: false,
|
|
202
204
|
description: 'Longitude must be between -180 and 180',
|
|
203
205
|
}),
|
|
204
|
-
(0, class_validator_1.IsOptional)(),
|
|
205
206
|
(0, class_validator_1.IsNumber)(),
|
|
206
207
|
(0, class_validator_1.Min)(-180, { message: 'Longitude must be at least -180' }),
|
|
207
208
|
(0, class_validator_1.Max)(180, { message: 'Longitude must be at most 180' }),
|
|
209
|
+
(0, class_validator_1.IsOptional)(),
|
|
208
210
|
__metadata("design:type", Number)
|
|
209
211
|
], EventLocationDto.prototype, "long", void 0);
|
|
210
212
|
__decorate([
|
|
211
213
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
212
214
|
(0, class_validator_1.IsString)(),
|
|
213
|
-
(0, class_validator_1.IsOptional)(),
|
|
214
215
|
(0, class_validator_1.Length)(3, 100),
|
|
216
|
+
(0, class_validator_1.IsOptional)(),
|
|
215
217
|
__metadata("design:type", String)
|
|
216
218
|
], EventLocationDto.prototype, "instructions", void 0);
|
|
217
219
|
__decorate([
|
|
218
220
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
219
221
|
(0, class_validator_1.IsString)(),
|
|
220
|
-
(0, class_validator_1.IsOptional)(),
|
|
221
222
|
(0, class_validator_1.Length)(3, 100),
|
|
223
|
+
(0, class_validator_1.IsOptional)(),
|
|
222
224
|
__metadata("design:type", String)
|
|
223
225
|
], EventLocationDto.prototype, "onlineLink", void 0);
|
|
224
226
|
__decorate([
|
|
225
227
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
226
228
|
(0, class_validator_1.IsString)(),
|
|
227
|
-
(0, class_validator_1.IsOptional)(),
|
|
228
229
|
(0, class_validator_1.Length)(3, 100),
|
|
230
|
+
(0, class_validator_1.IsOptional)(),
|
|
229
231
|
__metadata("design:type", String)
|
|
230
232
|
], EventLocationDto.prototype, "city", void 0);
|
|
231
233
|
__decorate([
|
|
232
234
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
233
235
|
(0, class_validator_1.IsString)(),
|
|
234
|
-
(0, class_validator_1.IsOptional)(),
|
|
235
236
|
(0, class_validator_1.Length)(3, 100),
|
|
237
|
+
(0, class_validator_1.IsOptional)(),
|
|
236
238
|
__metadata("design:type", String)
|
|
237
239
|
], EventLocationDto.prototype, "country", void 0);
|
|
238
240
|
class RegistrationDetailsCreateDto extends (0, swagger_1.PickType)(RegistrationDetailsDto, [
|
|
@@ -144,6 +144,7 @@ __decorate([
|
|
|
144
144
|
(0, swagger_1.ApiProperty)({ description: 'Title of the event.' }),
|
|
145
145
|
(0, class_validator_1.IsString)(),
|
|
146
146
|
(0, class_validator_1.Length)(3, 30),
|
|
147
|
+
(0, class_validator_1.IsOptional)(),
|
|
147
148
|
__metadata("design:type", String)
|
|
148
149
|
], EventProfileDoc.prototype, "title", void 0);
|
|
149
150
|
__decorate([
|
|
@@ -153,6 +154,7 @@ __decorate([
|
|
|
153
154
|
}),
|
|
154
155
|
(0, class_validator_1.IsInt)(),
|
|
155
156
|
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
157
|
+
(0, class_validator_1.IsOptional)(),
|
|
156
158
|
__metadata("design:type", Number)
|
|
157
159
|
], EventProfileDoc.prototype, "startTime", void 0);
|
|
158
160
|
__decorate([
|
|
@@ -162,6 +164,8 @@ __decorate([
|
|
|
162
164
|
type: 'integer',
|
|
163
165
|
}),
|
|
164
166
|
(0, class_validator_1.IsInt)(),
|
|
167
|
+
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
168
|
+
(0, class_validator_1.IsOptional)(),
|
|
165
169
|
__metadata("design:type", Number)
|
|
166
170
|
], EventProfileDoc.prototype, "endTime", void 0);
|
|
167
171
|
__decorate([
|
|
@@ -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);
|
|
@@ -81,6 +81,7 @@ __decorate([
|
|
|
81
81
|
}),
|
|
82
82
|
(0, class_validator_1.IsInt)(),
|
|
83
83
|
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
85
|
__metadata("design:type", Number)
|
|
85
86
|
], EventStageProfileDoc.prototype, "startTime", void 0);
|
|
86
87
|
__decorate([
|
|
@@ -92,6 +93,7 @@ __decorate([
|
|
|
92
93
|
}),
|
|
93
94
|
(0, class_validator_1.IsInt)(),
|
|
94
95
|
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000) + 86400),
|
|
96
|
+
(0, class_validator_1.IsOptional)(),
|
|
95
97
|
__metadata("design:type", Number)
|
|
96
98
|
], EventStageProfileDoc.prototype, "endTime", void 0);
|
|
97
99
|
__decorate([
|
|
@@ -102,6 +104,7 @@ __decorate([
|
|
|
102
104
|
}),
|
|
103
105
|
(0, class_validator_1.IsInt)(),
|
|
104
106
|
(0, class_validator_1.Min)(0),
|
|
107
|
+
(0, class_validator_1.IsOptional)(),
|
|
105
108
|
__metadata("design:type", Object)
|
|
106
109
|
], EventStageProfileDoc.prototype, "maxLimit", void 0);
|
|
107
110
|
__decorate([
|
|
@@ -112,6 +115,7 @@ __decorate([
|
|
|
112
115
|
}),
|
|
113
116
|
(0, class_validator_1.IsInt)(),
|
|
114
117
|
(0, class_validator_1.Min)(0),
|
|
118
|
+
(0, class_validator_1.IsOptional)(),
|
|
115
119
|
__metadata("design:type", Object)
|
|
116
120
|
], EventStageProfileDoc.prototype, "userLimit", void 0);
|
|
117
121
|
__decorate([
|
|
@@ -47,6 +47,7 @@ __decorate([
|
|
|
47
47
|
description: 'Name of the ticket type (e.g., General, VIP).',
|
|
48
48
|
}),
|
|
49
49
|
(0, class_validator_1.Length)(3, 30),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
51
|
__metadata("design:type", String)
|
|
51
52
|
], EventTicketProfileDoc.prototype, "name", void 0);
|
|
52
53
|
__decorate([
|
|
@@ -54,6 +55,7 @@ __decorate([
|
|
|
54
55
|
description: 'Description of the ticket type.',
|
|
55
56
|
}),
|
|
56
57
|
(0, class_validator_1.Length)(3, 300),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
59
|
__metadata("design:type", String)
|
|
58
60
|
], EventTicketProfileDoc.prototype, "description", void 0);
|
|
59
61
|
__decorate([
|
|
@@ -72,6 +74,7 @@ __decorate([
|
|
|
72
74
|
(0, class_validator_1.IsNumber)(),
|
|
73
75
|
(0, class_validator_1.Min)(0),
|
|
74
76
|
(0, class_validator_1.Max)(90),
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
78
|
__metadata("design:type", Object)
|
|
76
79
|
], EventTicketProfileDoc.prototype, "royalties", void 0);
|
|
77
80
|
__decorate([
|
|
@@ -81,6 +84,7 @@ __decorate([
|
|
|
81
84
|
}),
|
|
82
85
|
(0, class_validator_1.IsString)(),
|
|
83
86
|
(0, class_validator_1.Length)(3, 30),
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
88
|
(0, class_validator_1.Matches)(/^#([0-9A-F]{3}){1,2}$/i, {
|
|
85
89
|
message: 'badgeColor must be a valid hex color',
|
|
86
90
|
}),
|
|
@@ -102,6 +106,7 @@ __decorate([
|
|
|
102
106
|
}),
|
|
103
107
|
(0, class_validator_1.IsInt)(),
|
|
104
108
|
(0, class_validator_1.Min)(0),
|
|
109
|
+
(0, class_validator_1.IsOptional)(),
|
|
105
110
|
__metadata("design:type", Object)
|
|
106
111
|
], EventTicketProfileDoc.prototype, "maxLimit", void 0);
|
|
107
112
|
__decorate([
|
|
@@ -111,6 +116,7 @@ __decorate([
|
|
|
111
116
|
}),
|
|
112
117
|
(0, class_validator_1.IsInt)(),
|
|
113
118
|
(0, class_validator_1.Min)(0),
|
|
119
|
+
(0, class_validator_1.IsOptional)(),
|
|
114
120
|
__metadata("design:type", Object)
|
|
115
121
|
], EventTicketProfileDoc.prototype, "userLimit", void 0);
|
|
116
122
|
__decorate([
|
|
@@ -97,6 +97,7 @@ __decorate([
|
|
|
97
97
|
}),
|
|
98
98
|
(0, class_validator_1.IsInt)(),
|
|
99
99
|
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
100
101
|
__metadata("design:type", Number)
|
|
101
102
|
], EventUserRoleDoc.prototype, "endTime", void 0);
|
|
102
103
|
__decorate([
|
|
@@ -65,6 +65,7 @@ __decorate([
|
|
|
65
65
|
(0, class_validator_1.IsNumber)(),
|
|
66
66
|
(0, class_validator_1.Min)(0),
|
|
67
67
|
(0, class_validator_1.Max)(100),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
69
|
__metadata("design:type", Number)
|
|
69
70
|
], EventVoucherDoc.prototype, "amount", void 0);
|
|
70
71
|
__decorate([
|
|
@@ -75,6 +76,7 @@ __decorate([
|
|
|
75
76
|
}),
|
|
76
77
|
(0, class_validator_1.IsNumber)(),
|
|
77
78
|
(0, class_validator_1.Min)(0),
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
80
|
__metadata("design:type", Number)
|
|
79
81
|
], EventVoucherDoc.prototype, "maxDiscountAmount", void 0);
|
|
80
82
|
__decorate([
|
|
@@ -84,6 +86,7 @@ __decorate([
|
|
|
84
86
|
}),
|
|
85
87
|
(0, class_validator_1.IsInt)(),
|
|
86
88
|
(0, class_validator_1.Min)(1),
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
87
90
|
__metadata("design:type", Number)
|
|
88
91
|
], EventVoucherDoc.prototype, "maxUses", void 0);
|
|
89
92
|
__decorate([
|
|
@@ -93,6 +96,7 @@ __decorate([
|
|
|
93
96
|
}),
|
|
94
97
|
(0, class_validator_1.IsInt)(),
|
|
95
98
|
(0, class_validator_1.Min)(1),
|
|
99
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
100
|
__metadata("design:type", Number)
|
|
97
101
|
], EventVoucherDoc.prototype, "maxUsesPerUser", void 0);
|
|
98
102
|
__decorate([
|
|
@@ -149,6 +153,7 @@ __decorate([
|
|
|
149
153
|
}),
|
|
150
154
|
(0, class_validator_1.IsInt)(),
|
|
151
155
|
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
156
|
+
(0, class_validator_1.IsOptional)(),
|
|
152
157
|
__metadata("design:type", Number)
|
|
153
158
|
], EventVoucherDoc.prototype, "startDate", void 0);
|
|
154
159
|
__decorate([
|
|
@@ -159,6 +164,7 @@ __decorate([
|
|
|
159
164
|
}),
|
|
160
165
|
(0, class_validator_1.IsInt)(),
|
|
161
166
|
(0, class_validator_1.Min)(Math.floor(Date.now() / 1000)),
|
|
167
|
+
(0, class_validator_1.IsOptional)(),
|
|
162
168
|
__metadata("design:type", Number)
|
|
163
169
|
], EventVoucherDoc.prototype, "endDate", void 0);
|
|
164
170
|
__decorate([
|
|
@@ -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 {
|
|
@@ -24,6 +24,7 @@ __decorate([
|
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsString)(),
|
|
26
26
|
(0, class_validator_1.Length)(5, 50),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
28
|
(0, swagger_1.ApiProperty)({ description: 'Name of the company or user.' }),
|
|
28
29
|
__metadata("design:type", String)
|
|
29
30
|
], UserBillingDetails.prototype, "name", void 0);
|
|
@@ -44,24 +45,28 @@ __decorate([
|
|
|
44
45
|
__decorate([
|
|
45
46
|
(0, class_validator_1.IsEmail)(),
|
|
46
47
|
(0, class_validator_1.Length)(1, 50),
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
49
|
(0, swagger_1.ApiProperty)({ description: 'Email address.' }),
|
|
48
50
|
__metadata("design:type", String)
|
|
49
51
|
], UserBillingDetails.prototype, "email", void 0);
|
|
50
52
|
__decorate([
|
|
51
53
|
(0, class_validator_1.IsString)(),
|
|
52
54
|
(0, class_validator_1.Length)(1, 50),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
56
|
(0, swagger_1.ApiProperty)({ description: 'Country' }),
|
|
54
57
|
__metadata("design:type", String)
|
|
55
58
|
], UserBillingDetails.prototype, "country", void 0);
|
|
56
59
|
__decorate([
|
|
57
60
|
(0, class_validator_1.IsString)(),
|
|
58
61
|
(0, class_validator_1.Length)(1, 100),
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
63
|
(0, swagger_1.ApiProperty)({ description: 'City' }),
|
|
60
64
|
__metadata("design:type", String)
|
|
61
65
|
], UserBillingDetails.prototype, "city", void 0);
|
|
62
66
|
__decorate([
|
|
63
67
|
(0, class_validator_1.IsString)(),
|
|
64
68
|
(0, class_validator_1.Length)(1, 100),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
70
|
(0, swagger_1.ApiProperty)({
|
|
66
71
|
description: 'Address line 1',
|
|
67
72
|
}),
|
|
@@ -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);
|
|
@@ -45,7 +45,7 @@ __decorate([
|
|
|
45
45
|
required: false,
|
|
46
46
|
}),
|
|
47
47
|
(0, class_validator_1.IsString)(),
|
|
48
|
-
(0, class_validator_1.IsOptional)(),
|
|
49
48
|
(0, class_validator_1.Length)(1, 300),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], EditUserCreatorProfileDto.prototype, "name", void 0);
|
package/package.json
CHANGED
|
File without changes
|