@xoxno/types 1.0.63 → 1.0.65

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);
@@ -12,7 +12,7 @@ export declare class CreatorProfileDoc {
12
12
  joinedDate: number;
13
13
  description?: string;
14
14
  socials?: SocialsDto;
15
- id: string;
16
- _ts: number;
15
+ id?: string;
16
+ _ts?: number;
17
17
  constructor(props?: Partial<CreatorProfileDoc>);
18
18
  }
@@ -100,10 +100,15 @@ __decorate([
100
100
  (0, swagger_1.ApiProperty)({
101
101
  example: 'erd1qqqqqqqqqqqqqpgqw0t0ef0jdpeva2v7qy7q7qjjfq6yq0wq0w0qjjfq6yq-creatorProfile',
102
102
  description: 'Document ID',
103
+ required: false,
103
104
  }),
104
105
  __metadata("design:type", String)
105
106
  ], CreatorProfileDoc.prototype, "id", void 0);
106
107
  __decorate([
107
- (0, swagger_1.ApiProperty)({ example: 1640995200, description: 'Cosmos DB timestamp' }),
108
+ (0, swagger_1.ApiProperty)({
109
+ example: 1640995200,
110
+ description: 'Cosmos DB timestamp',
111
+ required: false,
112
+ }),
108
113
  __metadata("design:type", Number)
109
114
  ], CreatorProfileDoc.prototype, "_ts", void 0);
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",