@xoxno/types 1.0.226 → 1.0.227

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.
@@ -4,7 +4,7 @@ export declare class EventTicketProfileDoc {
4
4
  eventId: string;
5
5
  name?: string;
6
6
  description?: string;
7
- profile: string;
7
+ profile?: string;
8
8
  royalties: number;
9
9
  badgeColor?: string;
10
10
  characteristics?: Record<string, string | number>;
@@ -17,7 +17,6 @@ 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';
21
20
  this.royalties = 0;
22
21
  this.maxLimit = 0; // Maximum tickets that can be sold for this ticket type - 0 means unlimited
23
22
  this.userLimit = 0;
@@ -25,6 +24,8 @@ class EventTicketProfileDoc {
25
24
  this.createdAt = Math.floor(Date.now() / 1000);
26
25
  this.id = (0, uuid_1.v4)();
27
26
  Object.assign(this, props);
27
+ this.profile =
28
+ this.profile || 'https://media.xoxno.com/utils/defaultProfilePic.webp';
28
29
  this.pk = this.eventId;
29
30
  }
30
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.226",
3
+ "version": "1.0.227",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {