@xoxno/types 1.0.62 → 1.0.64

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.
@@ -46,6 +46,6 @@ export declare class CollectionProfileDoc {
46
46
  followCount?: number;
47
47
  minSalePrice?: string;
48
48
  id: string;
49
- _ts: number;
49
+ _ts?: number;
50
50
  constructor(props?: Partial<CollectionProfileDoc>);
51
51
  }
@@ -77,8 +77,6 @@ class CollectionProfileDoc {
77
77
  this.collectionSize = 0;
78
78
  this.holdersCount = 0;
79
79
  this.followCount = 0;
80
- this.id = '';
81
- this._ts = 0;
82
80
  Object.assign(this, props);
83
81
  this.collection = this.collection.replace('::', '-');
84
82
  this.id = `${this.collection}-${this.dataType}`;
@@ -318,6 +316,7 @@ __decorate([
318
316
  (0, swagger_1.ApiProperty)({
319
317
  description: 'Unique identifier for the document',
320
318
  example: 'COLLECTION-123456-CollectionProfile',
319
+ required: false,
321
320
  }),
322
321
  __metadata("design:type", String)
323
322
  ], CollectionProfileDoc.prototype, "id", void 0);
@@ -325,6 +324,7 @@ __decorate([
325
324
  (0, swagger_1.ApiProperty)({
326
325
  description: 'Timestamp of the document',
327
326
  example: 1640995200,
327
+ required: false,
328
328
  }),
329
329
  __metadata("design:type", Number)
330
330
  ], CollectionProfileDoc.prototype, "_ts", void 0);
@@ -152,13 +152,13 @@ __decorate([
152
152
  __metadata("design:type", String)
153
153
  ], ExternalPaymentRequest.prototype, "name", void 0);
154
154
  __decorate([
155
- (0, swagger_1.ApiPropertyOptional)({ type: String, isArray: true }),
155
+ (0, swagger_1.ApiProperty)({ type: String, isArray: true, required: false }),
156
156
  (0, class_validator_1.IsArray)(),
157
157
  (0, class_validator_1.IsOptional)(),
158
158
  __metadata("design:type", Array)
159
159
  ], ExternalPaymentRequest.prototype, "images", void 0);
160
160
  __decorate([
161
- (0, swagger_1.ApiPropertyOptional)({ enum: ['embedded', 'custom'] }),
161
+ (0, swagger_1.ApiProperty)({ enum: ['embedded', 'custom'], required: false }),
162
162
  (0, class_validator_1.IsEnum)(['embedded', 'custom']),
163
163
  (0, class_validator_1.IsOptional)(),
164
164
  __metadata("design:type", String)
@@ -182,54 +182,54 @@ __decorate([
182
182
  __metadata("design:type", Object)
183
183
  ], ExternalPaymentRequest.prototype, "customData", void 0);
184
184
  __decorate([
185
- (0, swagger_1.ApiPropertyOptional)(),
185
+ (0, swagger_1.ApiProperty)({ required: false }),
186
186
  (0, class_validator_1.IsString)(),
187
187
  (0, class_validator_1.IsOptional)(),
188
188
  __metadata("design:type", String)
189
189
  ], ExternalPaymentRequest.prototype, "description", void 0);
190
190
  __decorate([
191
- (0, swagger_1.ApiPropertyOptional)(),
191
+ (0, swagger_1.ApiProperty)({ required: false }),
192
192
  (0, class_validator_1.IsNumber)(),
193
193
  (0, class_validator_1.IsOptional)(),
194
194
  __metadata("design:type", Number)
195
195
  ], ExternalPaymentRequest.prototype, "amount", void 0);
196
196
  __decorate([
197
- (0, swagger_1.ApiPropertyOptional)(),
197
+ (0, swagger_1.ApiProperty)({ required: false }),
198
198
  (0, class_validator_1.IsNumber)(),
199
199
  (0, class_validator_1.IsOptional)(),
200
200
  __metadata("design:type", Number)
201
201
  ], ExternalPaymentRequest.prototype, "egldPrice", void 0);
202
202
  __decorate([
203
- (0, swagger_1.ApiPropertyOptional)(),
203
+ (0, swagger_1.ApiProperty)({ required: false }),
204
204
  (0, class_validator_1.IsNumber)(),
205
205
  (0, class_validator_1.IsOptional)(),
206
206
  __metadata("design:type", Number)
207
207
  ], ExternalPaymentRequest.prototype, "egldFiatPrice", void 0);
208
208
  __decorate([
209
- (0, swagger_1.ApiPropertyOptional)(),
209
+ (0, swagger_1.ApiProperty)({ required: false }),
210
210
  (0, class_validator_1.IsOptional)(),
211
211
  __metadata("design:type", String)
212
212
  ], ExternalPaymentRequest.prototype, "collection", void 0);
213
213
  __decorate([
214
- (0, swagger_1.ApiPropertyOptional)(),
214
+ (0, swagger_1.ApiProperty)({ required: false }),
215
215
  (0, class_validator_1.IsNumber)(),
216
216
  (0, class_validator_1.IsOptional)(),
217
217
  __metadata("design:type", Number)
218
218
  ], ExternalPaymentRequest.prototype, "nftNonce", void 0);
219
219
  __decorate([
220
- (0, swagger_1.ApiPropertyOptional)(),
220
+ (0, swagger_1.ApiProperty)({ required: false }),
221
221
  (0, class_validator_1.IsString)(),
222
222
  (0, class_validator_1.IsOptional)(),
223
223
  __metadata("design:type", String)
224
224
  ], ExternalPaymentRequest.prototype, "identifier", void 0);
225
225
  __decorate([
226
- (0, swagger_1.ApiPropertyOptional)(),
226
+ (0, swagger_1.ApiProperty)({ required: false }),
227
227
  (0, class_validator_1.IsString)(),
228
228
  (0, class_validator_1.IsOptional)(),
229
229
  __metadata("design:type", String)
230
230
  ], ExternalPaymentRequest.prototype, "paymentProviderId", void 0);
231
231
  __decorate([
232
- (0, swagger_1.ApiPropertyOptional)(),
232
+ (0, swagger_1.ApiProperty)({ required: false }),
233
233
  (0, class_validator_1.IsString)(),
234
234
  (0, class_validator_1.IsOptional)(),
235
235
  __metadata("design:type", String)
@@ -5,8 +5,8 @@ export declare class CreatorProfileDoc {
5
5
  address: string;
6
6
  name: string;
7
7
  creatorTag: string;
8
- contractAddress: string;
9
- ticketingContractAddress: string;
8
+ contractAddress?: string;
9
+ ticketingContractAddress?: string;
10
10
  profile: string;
11
11
  banner: string;
12
12
  joinedDate: number;
@@ -51,6 +51,7 @@ __decorate([
51
51
  (0, swagger_1.ApiProperty)({
52
52
  example: 'erd1qqqqqqqqqqqqqpgqcollection123456789abcdef',
53
53
  description: 'Contract address for regular NFT creators',
54
+ required: false,
54
55
  }),
55
56
  __metadata("design:type", String)
56
57
  ], CreatorProfileDoc.prototype, "contractAddress", void 0);
@@ -58,6 +59,7 @@ __decorate([
58
59
  (0, swagger_1.ApiProperty)({
59
60
  example: 'erd1qqqqqqqqqqqqqpgqticket123456789abcdef',
60
61
  description: 'Contract address for ticketing creators',
62
+ required: false,
61
63
  }),
62
64
  __metadata("design:type", String)
63
65
  ], CreatorProfileDoc.prototype, "ticketingContractAddress", void 0);
@@ -83,14 +85,15 @@ __decorate([
83
85
  __metadata("design:type", Number)
84
86
  ], CreatorProfileDoc.prototype, "joinedDate", void 0);
85
87
  __decorate([
86
- (0, swagger_1.ApiPropertyOptional)({
88
+ (0, swagger_1.ApiProperty)({
87
89
  example: 'Leading NFT creator and artist',
88
90
  description: 'Creator description',
91
+ required: false,
89
92
  }),
90
93
  __metadata("design:type", String)
91
94
  ], CreatorProfileDoc.prototype, "description", void 0);
92
95
  __decorate([
93
- (0, swagger_1.ApiPropertyOptional)({ description: 'Creator social media links' }),
96
+ (0, swagger_1.ApiProperty)({ description: 'Creator social media links', required: false }),
94
97
  __metadata("design:type", socials_1.SocialsDto)
95
98
  ], CreatorProfileDoc.prototype, "socials", void 0);
96
99
  __decorate([
@@ -104,7 +104,7 @@ class UserNotificationPreferences {
104
104
  this.offersAccepted = false;
105
105
  this.offersRejected = false;
106
106
  this.deposits = false;
107
- this.eventUpdates = true;
107
+ this.eventUpdates = false;
108
108
  this.eventReminders = true;
109
109
  this.eventCheckIn = true;
110
110
  this.eventMarketing = false;
@@ -113,44 +113,66 @@ class UserNotificationPreferences {
113
113
  }
114
114
  exports.UserNotificationPreferences = UserNotificationPreferences;
115
115
  __decorate([
116
- (0, swagger_1.ApiProperty)({ description: 'Sales notifications' }),
116
+ (0, swagger_1.ApiProperty)({ description: 'Sales notifications', required: false }),
117
117
  __metadata("design:type", Object)
118
118
  ], UserNotificationPreferences.prototype, "sales", void 0);
119
119
  __decorate([
120
- (0, swagger_1.ApiProperty)({ description: 'Bids notifications' }),
120
+ (0, swagger_1.ApiProperty)({ description: 'Bids notifications', required: false }),
121
121
  __metadata("design:type", Object)
122
122
  ], UserNotificationPreferences.prototype, "bids", void 0);
123
123
  __decorate([
124
- (0, swagger_1.ApiProperty)({ description: 'Offers received notifications' }),
124
+ (0, swagger_1.ApiProperty)({
125
+ description: 'Offers received notifications',
126
+ required: false,
127
+ }),
125
128
  __metadata("design:type", Object)
126
129
  ], UserNotificationPreferences.prototype, "offersReceived", void 0);
127
130
  __decorate([
128
- (0, swagger_1.ApiProperty)({ description: 'Offers accepted notifications' }),
131
+ (0, swagger_1.ApiProperty)({
132
+ description: 'Offers accepted notifications',
133
+ required: false,
134
+ }),
129
135
  __metadata("design:type", Object)
130
136
  ], UserNotificationPreferences.prototype, "offersAccepted", void 0);
131
137
  __decorate([
132
- (0, swagger_1.ApiProperty)({ description: 'Offers rejected notifications' }),
138
+ (0, swagger_1.ApiProperty)({
139
+ description: 'Offers rejected notifications',
140
+ required: false,
141
+ }),
133
142
  __metadata("design:type", Object)
134
143
  ], UserNotificationPreferences.prototype, "offersRejected", void 0);
135
144
  __decorate([
136
- (0, swagger_1.ApiProperty)({ description: 'Deposits notifications' }),
145
+ (0, swagger_1.ApiProperty)({
146
+ description: 'Deposits notifications',
147
+ required: false,
148
+ }),
137
149
  __metadata("design:type", Object)
138
150
  ], UserNotificationPreferences.prototype, "deposits", void 0);
139
151
  __decorate([
140
- (0, swagger_1.ApiProperty)({ description: 'Event updates from organizers' }),
152
+ (0, swagger_1.ApiProperty)({
153
+ description: 'Event updates from organizers',
154
+ required: false,
155
+ }),
141
156
  __metadata("design:type", Object)
142
157
  ], UserNotificationPreferences.prototype, "eventUpdates", void 0);
143
158
  __decorate([
144
- (0, swagger_1.ApiProperty)({ description: 'Event reminders before start time' }),
159
+ (0, swagger_1.ApiProperty)({
160
+ description: 'Event reminders before start time',
161
+ required: false,
162
+ }),
145
163
  __metadata("design:type", Object)
146
164
  ], UserNotificationPreferences.prototype, "eventReminders", void 0);
147
165
  __decorate([
148
- (0, swagger_1.ApiProperty)({ description: 'Event check-in notifications' }),
166
+ (0, swagger_1.ApiProperty)({
167
+ description: 'Event check-in notifications',
168
+ required: false,
169
+ }),
149
170
  __metadata("design:type", Object)
150
171
  ], UserNotificationPreferences.prototype, "eventCheckIn", void 0);
151
172
  __decorate([
152
173
  (0, swagger_1.ApiProperty)({
153
174
  description: 'Marketing notifications from past event creators',
175
+ required: false,
154
176
  }),
155
177
  __metadata("design:type", Object)
156
178
  ], UserNotificationPreferences.prototype, "eventMarketing", void 0);
@@ -31,19 +31,22 @@ __decorate([
31
31
  __metadata("design:type", String)
32
32
  ], Web2UserAccountDto.prototype, "subject", void 0);
33
33
  __decorate([
34
- (0, swagger_1.ApiPropertyOptional)({ description: "URL of the user's profile picture" }),
34
+ (0, swagger_1.ApiProperty)({
35
+ description: "URL of the user's profile picture",
36
+ required: false,
37
+ }),
35
38
  (0, class_validator_1.IsOptional)(),
36
39
  (0, class_validator_1.IsString)(),
37
40
  __metadata("design:type", String)
38
41
  ], Web2UserAccountDto.prototype, "profilePicture", void 0);
39
42
  __decorate([
40
- (0, swagger_1.ApiPropertyOptional)({ description: "User's email address" }),
43
+ (0, swagger_1.ApiProperty)({ description: "User's email address", required: false }),
41
44
  (0, class_validator_1.IsOptional)(),
42
45
  (0, class_validator_1.IsString)(),
43
46
  __metadata("design:type", String)
44
47
  ], Web2UserAccountDto.prototype, "email", void 0);
45
48
  __decorate([
46
- (0, swagger_1.ApiPropertyOptional)({ description: "User's username" }),
49
+ (0, swagger_1.ApiProperty)({ description: "User's username", required: false }),
47
50
  (0, class_validator_1.IsOptional)(),
48
51
  (0, class_validator_1.IsString)(),
49
52
  __metadata("design:type", String)
@@ -36,34 +36,38 @@ __decorate([
36
36
  __metadata("design:type", String)
37
37
  ], Web2UserAccount.prototype, "subject", void 0);
38
38
  __decorate([
39
- (0, swagger_1.ApiPropertyOptional)({
39
+ (0, swagger_1.ApiProperty)({
40
40
  type: String,
41
41
  description: "User's name",
42
42
  example: 'John Doe',
43
+ required: false,
43
44
  }),
44
45
  __metadata("design:type", String)
45
46
  ], Web2UserAccount.prototype, "name", void 0);
46
47
  __decorate([
47
- (0, swagger_1.ApiPropertyOptional)({
48
+ (0, swagger_1.ApiProperty)({
48
49
  type: String,
49
50
  description: "URL of the user's profile picture",
50
51
  example: 'https://example.com/profile.jpg',
52
+ required: false,
51
53
  }),
52
54
  __metadata("design:type", String)
53
55
  ], Web2UserAccount.prototype, "profilePicture", void 0);
54
56
  __decorate([
55
- (0, swagger_1.ApiPropertyOptional)({
57
+ (0, swagger_1.ApiProperty)({
56
58
  type: String,
57
59
  description: "User's email address",
58
60
  example: 'john.doe@example.com',
61
+ required: false,
59
62
  }),
60
63
  __metadata("design:type", String)
61
64
  ], Web2UserAccount.prototype, "email", void 0);
62
65
  __decorate([
63
- (0, swagger_1.ApiPropertyOptional)({
66
+ (0, swagger_1.ApiProperty)({
64
67
  type: String,
65
68
  description: "User's username",
66
69
  example: 'johndoe123',
70
+ required: false,
67
71
  }),
68
72
  __metadata("design:type", String)
69
73
  ], Web2UserAccount.prototype, "username", void 0);
@@ -37,13 +37,13 @@ __decorate([
37
37
  __metadata("design:type", String)
38
38
  ], Web2WalletDto.prototype, "chain", void 0);
39
39
  __decorate([
40
- (0, swagger_1.ApiPropertyOptional)({ description: 'Signature for authentication' }),
40
+ (0, swagger_1.ApiProperty)({ description: 'Signature for authentication', required: false }),
41
41
  (0, class_validator_1.IsOptional)(),
42
42
  (0, class_validator_1.IsString)(),
43
43
  __metadata("design:type", String)
44
44
  ], Web2WalletDto.prototype, "signature", void 0);
45
45
  __decorate([
46
- (0, swagger_1.ApiPropertyOptional)({ description: 'Authentication token' }),
46
+ (0, swagger_1.ApiProperty)({ description: 'Authentication token', required: false }),
47
47
  (0, class_validator_1.IsOptional)(),
48
48
  (0, class_validator_1.IsString)(),
49
49
  __metadata("design:type", String)
@@ -58,13 +58,20 @@ __decorate([
58
58
  __metadata("design:type", String)
59
59
  ], Web2WalletDto.prototype, "walletClientType", void 0);
60
60
  __decorate([
61
- (0, swagger_1.ApiPropertyOptional)({ description: 'Index of the wallet', type: Number }),
61
+ (0, swagger_1.ApiProperty)({
62
+ description: 'Index of the wallet',
63
+ type: Number,
64
+ required: false,
65
+ }),
62
66
  (0, class_validator_1.IsOptional)(),
63
67
  (0, class_validator_1.IsNumber)(),
64
68
  __metadata("design:type", Number)
65
69
  ], Web2WalletDto.prototype, "index", void 0);
66
70
  __decorate([
67
- (0, swagger_1.ApiPropertyOptional)({ description: 'Method used for wallet recovery' }),
71
+ (0, swagger_1.ApiProperty)({
72
+ description: 'Method used for wallet recovery',
73
+ required: false,
74
+ }),
68
75
  (0, class_validator_1.IsOptional)(),
69
76
  (0, class_validator_1.IsString)(),
70
77
  __metadata("design:type", String)
@@ -36,13 +36,13 @@ __decorate([
36
36
  __metadata("design:type", String)
37
37
  ], Web2UserWallet.prototype, "address", void 0);
38
38
  __decorate([
39
- (0, swagger_1.ApiPropertyOptional)({ description: 'Wallet index' }),
39
+ (0, swagger_1.ApiProperty)({ description: 'Wallet index', required: false }),
40
40
  (0, class_validator_1.IsOptional)(),
41
41
  (0, class_validator_1.IsNumber)(),
42
42
  __metadata("design:type", Number)
43
43
  ], Web2UserWallet.prototype, "index", void 0);
44
44
  __decorate([
45
- (0, swagger_1.ApiPropertyOptional)({ description: 'Signature for the wallet' }),
45
+ (0, swagger_1.ApiProperty)({ description: 'Signature for the wallet', required: false }),
46
46
  (0, class_validator_1.IsOptional)(),
47
47
  (0, class_validator_1.IsString)(),
48
48
  __metadata("design:type", String)
@@ -62,14 +62,18 @@ __decorate([
62
62
  __metadata("design:type", String)
63
63
  ], Web2UserWallet.prototype, "walletClientType", void 0);
64
64
  __decorate([
65
- (0, swagger_1.ApiPropertyOptional)({ description: 'Method used for wallet recovery' }),
65
+ (0, swagger_1.ApiProperty)({
66
+ description: 'Method used for wallet recovery',
67
+ required: false,
68
+ }),
66
69
  (0, class_validator_1.IsOptional)(),
67
70
  (0, class_validator_1.IsString)(),
68
71
  __metadata("design:type", String)
69
72
  ], Web2UserWallet.prototype, "recoveryMethod", void 0);
70
73
  __decorate([
71
- (0, swagger_1.ApiPropertyOptional)({
74
+ (0, swagger_1.ApiProperty)({
72
75
  description: 'Unique identifier for the wallet',
76
+ required: false,
73
77
  }),
74
78
  (0, class_validator_1.IsOptional)(),
75
79
  (0, class_validator_1.IsString)(),
@@ -56,9 +56,10 @@ __decorate([
56
56
  __metadata("design:type", Object)
57
57
  ], Web2UserDoc.prototype, "hasNativeWallet", void 0);
58
58
  __decorate([
59
- (0, swagger_1.ApiPropertyOptional)({
59
+ (0, swagger_1.ApiProperty)({
60
60
  type: () => web2user_wallet_1.Web2UserWallet,
61
61
  description: "User's wallet information",
62
+ required: false,
62
63
  }),
63
64
  (0, class_validator_1.IsOptional)(),
64
65
  (0, class_transformer_1.Type)(() => web2user_wallet_1.Web2UserWallet),
@@ -70,18 +71,20 @@ __decorate([
70
71
  __metadata("design:type", String)
71
72
  ], Web2UserDoc.prototype, "salt", void 0);
72
73
  __decorate([
73
- (0, swagger_1.ApiPropertyOptional)({
74
+ (0, swagger_1.ApiProperty)({
74
75
  type: () => web2user_account_1.Web2UserAccount,
75
76
  description: "User's Google account information",
77
+ required: false,
76
78
  }),
77
79
  (0, class_validator_1.IsOptional)(),
78
80
  (0, class_transformer_1.Type)(() => web2user_account_1.Web2UserAccount),
79
81
  __metadata("design:type", web2user_account_1.Web2UserAccount)
80
82
  ], Web2UserDoc.prototype, "google", void 0);
81
83
  __decorate([
82
- (0, swagger_1.ApiPropertyOptional)({
84
+ (0, swagger_1.ApiProperty)({
83
85
  type: () => web2user_account_1.Web2UserAccount,
84
86
  description: "User's Apple account information",
87
+ required: false,
85
88
  }),
86
89
  (0, class_validator_1.IsOptional)(),
87
90
  (0, class_transformer_1.Type)(() => web2user_account_1.Web2UserAccount),
@@ -93,7 +96,7 @@ __decorate([
93
96
  __metadata("design:type", String)
94
97
  ], Web2UserDoc.prototype, "pk", void 0);
95
98
  __decorate([
96
- (0, swagger_1.ApiPropertyOptional)({ description: 'Timestamp of the last update' }),
99
+ (0, swagger_1.ApiProperty)({ description: 'Timestamp of the last update', required: false }),
97
100
  (0, class_validator_1.IsOptional)(),
98
101
  (0, class_validator_1.IsNumber)(),
99
102
  __metadata("design:type", Number)
@@ -17,10 +17,11 @@ class EditUserCreatorProfileDto {
17
17
  }
18
18
  exports.EditUserCreatorProfileDto = EditUserCreatorProfileDto;
19
19
  __decorate([
20
- (0, swagger_1.ApiPropertyOptional)({
20
+ (0, swagger_1.ApiProperty)({
21
21
  description: 'User description',
22
22
  maxLength: 300,
23
23
  example: 'I am a creator',
24
+ required: false,
24
25
  }),
25
26
  (0, class_validator_1.IsString)(),
26
27
  (0, class_validator_1.Length)(1, 300),
@@ -28,16 +29,20 @@ __decorate([
28
29
  __metadata("design:type", String)
29
30
  ], EditUserCreatorProfileDto.prototype, "description", void 0);
30
31
  __decorate([
31
- (0, swagger_1.ApiPropertyOptional)({ description: 'Social media profiles' }),
32
- (0, class_validator_1.IsObject)(),
32
+ (0, swagger_1.ApiProperty)({
33
+ description: 'Social media profiles',
34
+ required: false,
35
+ }),
36
+ (0, class_validator_1.IsObject)({ each: true }),
33
37
  (0, class_validator_1.IsOptional)(),
34
38
  __metadata("design:type", socials_1.SocialsDto)
35
39
  ], EditUserCreatorProfileDto.prototype, "socials", void 0);
36
40
  __decorate([
37
- (0, swagger_1.ApiPropertyOptional)({
41
+ (0, swagger_1.ApiProperty)({
38
42
  description: 'Creator name',
39
43
  maxLength: 30,
40
44
  example: 'Creator Name',
45
+ required: false,
41
46
  }),
42
47
  (0, class_validator_1.IsString)(),
43
48
  (0, class_validator_1.IsOptional)(),
@@ -17,10 +17,11 @@ class EditUserProfileDto {
17
17
  }
18
18
  exports.EditUserProfileDto = EditUserProfileDto;
19
19
  __decorate([
20
- (0, swagger_1.ApiPropertyOptional)({
20
+ (0, swagger_1.ApiProperty)({
21
21
  description: 'User description',
22
22
  maxLength: 300,
23
23
  example: 'I am a user',
24
+ required: false,
24
25
  }),
25
26
  (0, class_validator_1.IsString)(),
26
27
  (0, class_validator_1.Length)(1, 300),
@@ -28,16 +29,17 @@ __decorate([
28
29
  __metadata("design:type", String)
29
30
  ], EditUserProfileDto.prototype, "description", void 0);
30
31
  __decorate([
31
- (0, swagger_1.ApiPropertyOptional)({
32
+ (0, swagger_1.ApiProperty)({
32
33
  description: 'Profile picture URL',
33
34
  example: 'https://media.xoxno.com/example-01',
35
+ required: false,
34
36
  }),
35
37
  (0, class_validator_1.IsString)(),
36
38
  (0, class_validator_1.IsOptional)(),
37
39
  __metadata("design:type", String)
38
40
  ], EditUserProfileDto.prototype, "profile", void 0);
39
41
  __decorate([
40
- (0, swagger_1.ApiPropertyOptional)({ description: 'Social media profiles' }),
42
+ (0, swagger_1.ApiProperty)({ description: 'Social media profiles', required: false }),
41
43
  (0, class_validator_1.IsObject)(),
42
44
  (0, class_validator_1.IsOptional)(),
43
45
  __metadata("design:type", socials_1.SocialsDto)
@@ -24,9 +24,10 @@ __decorate([
24
24
  __metadata("design:type", Boolean)
25
25
  ], SetEmailDto.prototype, "enabled", void 0);
26
26
  __decorate([
27
- (0, swagger_1.ApiPropertyOptional)({
27
+ (0, swagger_1.ApiProperty)({
28
28
  description: 'The email address to be set',
29
29
  example: 'example@example.com',
30
+ required: false,
30
31
  }),
31
32
  (0, class_validator_1.IsOptional)(),
32
33
  (0, class_validator_1.IsEmail)(),
@@ -24,9 +24,10 @@ __decorate([
24
24
  __metadata("design:type", Boolean)
25
25
  ], SetPhoneDto.prototype, "enabled", void 0);
26
26
  __decorate([
27
- (0, swagger_1.ApiPropertyOptional)({
27
+ (0, swagger_1.ApiProperty)({
28
28
  description: 'The phone number to be set',
29
29
  example: '+1234567890',
30
+ required: false,
30
31
  }),
31
32
  (0, class_validator_1.IsOptional)(),
32
33
  (0, class_validator_1.IsPhoneNumber)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",