@xoxno/types 1.0.217 → 1.0.218

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.
@@ -17,6 +17,9 @@ const class_validator_1 = require("class-validator");
17
17
  * Used by NestJS for validation and by the frontend as a lightweight type.
18
18
  */
19
19
  class OwnerDto {
20
+ constructor() {
21
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
22
+ }
20
23
  }
21
24
  exports.OwnerDto = OwnerDto;
22
25
  __decorate([
@@ -15,6 +15,7 @@ const chat_data_type_enum_1 = require("../../../enums/chat-data-type.enum");
15
15
  class GroupChatProfileDoc {
16
16
  constructor(props) {
17
17
  this.dataType = chat_data_type_enum_1.ChatDataType.GROUP_CHAT_PROFILE;
18
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
18
19
  this.collection = [];
19
20
  Object.assign(this, props);
20
21
  this.pk = this.chatId;
@@ -380,6 +380,7 @@ __decorate([
380
380
  ], XoxnoStakingIssuingReward.prototype, "rewardPerEpoch", void 0);
381
381
  class StakingSummary {
382
382
  constructor(props) {
383
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
383
384
  Object.assign(this, props);
384
385
  }
385
386
  }
@@ -362,6 +362,10 @@ __decorate([
362
362
  __metadata("design:type", Number)
363
363
  ], EventGuestDoc.prototype, "ttl", void 0);
364
364
  class EventGuestProfile extends EventGuestDoc {
365
+ constructor() {
366
+ super(...arguments);
367
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
368
+ }
365
369
  }
366
370
  exports.EventGuestProfile = EventGuestProfile;
367
371
  __decorate([
@@ -37,6 +37,9 @@ __decorate([
37
37
  __metadata("design:type", Boolean)
38
38
  ], PremiumType.prototype, "searchable", void 0);
39
39
  class EventGuestProfileSummary {
40
+ constructor() {
41
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
42
+ }
40
43
  }
41
44
  exports.EventGuestProfileSummary = EventGuestProfileSummary;
42
45
  __decorate([
@@ -93,6 +96,7 @@ class EventProfileDoc {
93
96
  constructor(props) {
94
97
  this.dataType = ticketing_data_type_enum_1.TicketingDataType.EVENT_PROFILE;
95
98
  this.createdAt = Math.floor(Date.now() / 1000);
99
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
96
100
  this.premium = {
97
101
  searchable: false,
98
102
  };
@@ -210,7 +214,6 @@ __decorate([
210
214
  __decorate([
211
215
  (0, swagger_1.ApiProperty)({
212
216
  description: 'URL to the profile image in Azure storage.',
213
- // default: StaticConfig.getDefaultProfilePicture(),
214
217
  }),
215
218
  (0, class_validator_1.IsString)(),
216
219
  __metadata("design:type", String)
@@ -17,6 +17,7 @@ const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.e
17
17
  class EventTicketProfileDoc {
18
18
  constructor(props) {
19
19
  this.dataType = ticketing_data_type_enum_1.TicketingDataType.EVENT_TICKET_PROFILE;
20
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
20
21
  this.royalties = 0;
21
22
  this.maxLimit = 0; // Maximum tickets that can be sold for this ticket type - 0 means unlimited
22
23
  this.userLimit = 0;
@@ -137,6 +137,10 @@ __decorate([
137
137
  __metadata("design:type", Number)
138
138
  ], EventUserRoleDoc.prototype, "_ts", void 0);
139
139
  class EventUserRole extends EventUserRoleDoc {
140
+ constructor() {
141
+ super(...arguments);
142
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
143
+ }
140
144
  }
141
145
  exports.EventUserRole = EventUserRole;
142
146
  __decorate([
@@ -16,6 +16,8 @@ const socials_1 = require("../../../common/socials");
16
16
  class CreatorProfileDoc {
17
17
  constructor(props) {
18
18
  this.dataType = user_data_type_enum_1.UserDataType.CreatorProfile;
19
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
20
+ this.banner = 'https://media.xoxno.com/utils/defaultBanner.webp';
19
21
  this.joinedDate = Math.floor(Date.now() / 1000);
20
22
  Object.assign(this, props);
21
23
  this.id = `${this.address}-${this.dataType}`;
@@ -26,6 +26,8 @@ class UserProfileDoc {
26
26
  this.socials = new socials_1.SocialsDto();
27
27
  this.followCount = 0;
28
28
  this.joinedDate = Math.floor(Date.now() / 1000);
29
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
30
+ this.banner = 'https://media.xoxno.com/utils/defaultBanner.webp';
29
31
  this.description = '';
30
32
  this.herotag = '';
31
33
  this.isCreator = false;
@@ -18,6 +18,9 @@ const nft_details_doc_1 = require("../../cosmos-db/documents/token/nft-details.d
18
18
  const statistics_1 = require("../../common/statistics");
19
19
  const common_enum_1 = require("../../enums/common.enum");
20
20
  class CollectionDto {
21
+ constructor() {
22
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
23
+ }
21
24
  }
22
25
  exports.CollectionDto = CollectionDto;
23
26
  __decorate([
@@ -59,6 +62,9 @@ __decorate([
59
62
  __metadata("design:type", String)
60
63
  ], CollectionDto.prototype, "chain", void 0);
61
64
  class UserDto {
65
+ constructor() {
66
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
67
+ }
62
68
  }
63
69
  exports.UserDto = UserDto;
64
70
  __decorate([
@@ -95,6 +101,9 @@ __decorate([
95
101
  __metadata("design:type", String)
96
102
  ], UserDto.prototype, "chain", void 0);
97
103
  class CreatorDto {
104
+ constructor() {
105
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
106
+ }
98
107
  }
99
108
  exports.CreatorDto = CreatorDto;
100
109
  __decorate([
@@ -13,6 +13,10 @@ exports.UserStakingSummaryDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const staking_pool_doc_1 = require("../../cosmos-db/documents/staking/staking-pool-doc");
15
15
  class UserStakingSummaryDto {
16
+ constructor() {
17
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
18
+ this.banner = 'https://media.xoxno.com/utils/defaultBanner.webp';
19
+ }
16
20
  }
17
21
  exports.UserStakingSummaryDto = UserStakingSummaryDto;
18
22
  __decorate([
@@ -98,6 +98,10 @@ __decorate([
98
98
  __metadata("design:type", Number)
99
99
  ], MintStageDto.prototype, "userMintsPerStage", void 0);
100
100
  class CreatorInfoDto {
101
+ constructor() {
102
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
103
+ this.banner = 'https://media.xoxno.com/utils/defaultBanner.webp';
104
+ }
101
105
  }
102
106
  exports.CreatorInfoDto = CreatorInfoDto;
103
107
  __decorate([
@@ -16,6 +16,9 @@ const class_validator_1 = require("class-validator");
16
16
  const short_nft_doc_1 = require("../../cosmos-db/documents/short/short-nft.doc");
17
17
  const common_enum_1 = require("../../enums/common.enum");
18
18
  class WalletDto {
19
+ constructor() {
20
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
21
+ }
19
22
  }
20
23
  __decorate([
21
24
  (0, swagger_1.ApiProperty)({ description: 'User wallet address' }),
@@ -37,6 +37,11 @@ __decorate([
37
37
  __metadata("design:type", Number)
38
38
  ], InventorySummaryDto.prototype, "stakedCount", void 0);
39
39
  class InventorySummaryDtoHydrated extends InventorySummaryDto {
40
+ constructor() {
41
+ super(...arguments);
42
+ this.profile = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
43
+ this.banner = 'https://media.xoxno.com/utils/defaultBanner.webp';
44
+ }
40
45
  }
41
46
  exports.InventorySummaryDtoHydrated = InventorySummaryDtoHydrated;
42
47
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.217",
3
+ "version": "1.0.218",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {