@xoxno/types 1.0.178 → 1.0.179

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.
@@ -123,6 +123,7 @@ __decorate([
123
123
  }),
124
124
  (0, class_validator_1.IsString)(),
125
125
  (0, class_validator_1.Length)(3, 30),
126
+ (0, class_validator_1.IsOptional)(),
126
127
  __metadata("design:type", String)
127
128
  ], CollectionProfileDoc.prototype, "name", void 0);
128
129
  __decorate([
@@ -132,6 +133,7 @@ __decorate([
132
133
  }),
133
134
  (0, class_validator_1.IsString)(),
134
135
  (0, class_validator_1.Length)(3, 300),
136
+ (0, class_validator_1.IsOptional)(),
135
137
  __metadata("design:type", String)
136
138
  ], CollectionProfileDoc.prototype, "description", void 0);
137
139
  __decorate([
@@ -155,6 +157,7 @@ __decorate([
155
157
  }),
156
158
  (0, class_validator_1.ValidateNested)(),
157
159
  (0, class_transformer_1.Type)(() => socials_1.SocialsDto),
160
+ (0, class_validator_1.IsOptional)(),
158
161
  __metadata("design:type", socials_1.SocialsDto)
159
162
  ], CollectionProfileDoc.prototype, "socials", void 0);
160
163
  __decorate([
@@ -22,6 +22,7 @@ __decorate([
22
22
  }),
23
23
  (0, class_validator_1.IsString)(),
24
24
  (0, class_validator_1.Length)(62, 62),
25
+ (0, class_validator_1.IsOptional)(),
25
26
  __metadata("design:type", String)
26
27
  ], EventGuestApproveDto.prototype, "address", void 0);
27
28
  __decorate([
@@ -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([
@@ -100,6 +101,7 @@ __decorate([
100
101
  }),
101
102
  (0, class_validator_1.IsInt)(),
102
103
  (0, class_validator_1.Min)(1),
104
+ (0, class_validator_1.IsOptional)(),
103
105
  __metadata("design:type", Number)
104
106
  ], EventInvitationDoc.prototype, "startTime", void 0);
105
107
  __decorate([
@@ -110,6 +112,7 @@ __decorate([
110
112
  }),
111
113
  (0, class_validator_1.IsInt)(),
112
114
  (0, class_validator_1.Min)(Math.floor(Date.now() / 1000) + 86400),
115
+ (0, class_validator_1.IsOptional)(),
113
116
  __metadata("design:type", Number)
114
117
  ], EventInvitationDoc.prototype, "endTime", void 0);
115
118
  __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([
@@ -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([
@@ -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
  }),
@@ -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);
@@ -24,5 +24,6 @@ __decorate([
24
24
  }),
25
25
  (0, class_validator_1.IsNumberString)(),
26
26
  (0, class_validator_1.Length)(6, 6),
27
+ (0, class_validator_1.IsOptional)(),
27
28
  __metadata("design:type", String)
28
29
  ], VerifyEmailDto.prototype, "verificationCode", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.178",
3
+ "version": "1.0.179",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {