@xoxno/types 1.0.31 → 1.0.33

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.
@@ -1,7 +1,7 @@
1
1
  import { ChatDataType } from './chat-data-type.enum';
2
2
  import { ChatMessageContentType } from './chat-message-content-type.enum';
3
3
  import { OwnerDto } from '../../../common/owner.dto';
4
- interface IType {
4
+ declare class ChatMessageDocBase {
5
5
  dataType: ChatDataType;
6
6
  chatId: string;
7
7
  isGroupChat: boolean;
@@ -10,32 +10,17 @@ interface IType {
10
10
  id: string;
11
11
  ttl?: number;
12
12
  _ts?: number;
13
+ constructor(props: Partial<ChatMessageDoc>);
13
14
  }
14
- export declare class ChatMessageDoc implements IType {
15
+ export declare class ChatMessageDoc extends ChatMessageDocBase {
15
16
  sender: string;
16
17
  receiver: string;
17
- dataType: ChatDataType;
18
- chatId: string;
19
- isGroupChat: boolean;
20
- message: ChatMessage;
21
- pk: string;
22
- id: string;
23
- ttl?: number;
24
- _ts?: number;
25
- constructor(props: Partial<ChatMessageDoc>);
18
+ constructor(props: Partial<ChatMessageDocBase>);
26
19
  }
27
- export declare class ChatMessageDocHyrated implements IType {
20
+ export declare class ChatMessageDocHyrated extends ChatMessageDocBase {
28
21
  sender: OwnerDto;
29
22
  receiver: OwnerDto;
30
- dataType: ChatDataType;
31
- chatId: string;
32
- isGroupChat: boolean;
33
- message: ChatMessage;
34
- pk: string;
35
- id: string;
36
- ttl?: number;
37
- _ts?: number;
38
- constructor(props: Partial<ChatMessageDoc>);
23
+ constructor(props: Partial<ChatMessageDocBase>);
39
24
  }
40
25
  export interface ChatMessage {
41
26
  content: ChatMessageContent;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChatMessageDocHyrated = exports.ChatMessageDoc = void 0;
4
4
  const uuid_1 = require("uuid");
5
5
  const chat_data_type_enum_1 = require("./chat-data-type.enum");
6
- class ChatMessageDoc {
6
+ class ChatMessageDocBase {
7
7
  constructor(props) {
8
8
  this.dataType = chat_data_type_enum_1.ChatDataType.MESSAGE;
9
9
  Object.assign(this, props);
@@ -14,16 +14,15 @@ class ChatMessageDoc {
14
14
  }
15
15
  }
16
16
  }
17
+ class ChatMessageDoc extends ChatMessageDocBase {
18
+ constructor(props) {
19
+ super(props);
20
+ }
21
+ }
17
22
  exports.ChatMessageDoc = ChatMessageDoc;
18
- class ChatMessageDocHyrated {
23
+ class ChatMessageDocHyrated extends ChatMessageDocBase {
19
24
  constructor(props) {
20
- this.dataType = chat_data_type_enum_1.ChatDataType.MESSAGE;
21
- Object.assign(this, props);
22
- this.id = (0, uuid_1.v4)();
23
- this.pk = props.chatId;
24
- if (this.isGroupChat) {
25
- this.ttl = Math.floor(Date.now() / 1000) + 60 * 60 * 24 * 7; // 7 days
26
- }
25
+ super(props);
27
26
  }
28
27
  }
29
28
  exports.ChatMessageDocHyrated = ChatMessageDocHyrated;
@@ -1,30 +1,21 @@
1
1
  import { OwnerDto } from '../../../common/owner.dto';
2
2
  import { ChatDataType } from './chat-data-type.enum';
3
- interface IType {
3
+ declare class UserBlockDocBase {
4
4
  dataType: ChatDataType;
5
5
  timestamp: number;
6
6
  id: string;
7
7
  pk: string;
8
8
  _ts: number;
9
+ constructor(props: Partial<UserBlockDoc>);
9
10
  }
10
- export declare class UserBlockDoc implements IType {
11
+ export declare class UserBlockDoc extends UserBlockDocBase {
11
12
  sender: string;
12
13
  receiver: string;
13
- dataType: ChatDataType;
14
- timestamp: number;
15
- id: string;
16
- pk: string;
17
- _ts: number;
18
- constructor(props: Partial<UserBlockDoc>);
14
+ constructor(props: Partial<UserBlockDocBase>);
19
15
  }
20
- export declare class UserBlockDocHydrated implements IType {
16
+ export declare class UserBlockDocHydrated extends UserBlockDocBase {
21
17
  sender: OwnerDto;
22
18
  receiver: OwnerDto;
23
- dataType: ChatDataType;
24
- timestamp: number;
25
- id: string;
26
- pk: string;
27
- _ts: number;
28
- constructor(props: Partial<UserBlockDoc>);
19
+ constructor(props: Partial<UserBlockDocBase>);
29
20
  }
30
21
  export {};
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserBlockDocHydrated = exports.UserBlockDoc = void 0;
4
4
  const chat_data_type_enum_1 = require("./chat-data-type.enum");
5
- class UserBlockDoc {
5
+ class UserBlockDocBase {
6
6
  constructor(props) {
7
7
  this.dataType = chat_data_type_enum_1.ChatDataType.BLOCKED_USER;
8
8
  this.timestamp = Math.floor(Date.now() / 1000);
@@ -11,14 +11,15 @@ class UserBlockDoc {
11
11
  this.pk = props.receiver;
12
12
  }
13
13
  }
14
+ class UserBlockDoc extends UserBlockDocBase {
15
+ constructor(props) {
16
+ super(props);
17
+ }
18
+ }
14
19
  exports.UserBlockDoc = UserBlockDoc;
15
- class UserBlockDocHydrated {
20
+ class UserBlockDocHydrated extends UserBlockDocBase {
16
21
  constructor(props) {
17
- this.dataType = chat_data_type_enum_1.ChatDataType.BLOCKED_USER;
18
- this.timestamp = Math.floor(Date.now() / 1000);
19
- Object.assign(this, props);
20
- this.id = props.sender;
21
- this.pk = props.receiver;
22
+ super(props);
22
23
  }
23
24
  }
24
25
  exports.UserBlockDocHydrated = UserBlockDocHydrated;
@@ -1,21 +1,7 @@
1
1
  import { OwnerDto } from '../../../common/owner.dto';
2
2
  import { ChatDataType } from './chat-data-type.enum';
3
3
  import { ChatMessage } from './chat-message.doc';
4
- interface IType {
5
- dataType: ChatDataType;
6
- chatName?: string;
7
- isGroupChat: boolean;
8
- chatId: string;
9
- message: ChatMessage;
10
- deleteTimestamp?: number;
11
- unreadCount?: number;
12
- id: string;
13
- pk: string;
14
- _ts: number;
15
- }
16
- export declare class UserConversationDoc implements IType {
17
- sender: string;
18
- receiver: string;
4
+ declare class UserConversationDocBase {
19
5
  dataType: ChatDataType;
20
6
  chatName?: string | undefined;
21
7
  isGroupChat: boolean;
@@ -28,19 +14,14 @@ export declare class UserConversationDoc implements IType {
28
14
  _ts: number;
29
15
  constructor(props: Partial<UserConversationDoc>);
30
16
  }
31
- export declare class UserConversationDocHydrated implements IType {
17
+ export declare class UserConversationDoc extends UserConversationDocBase {
18
+ sender: string;
19
+ receiver: string;
20
+ constructor(props: Partial<UserConversationDocBase>);
21
+ }
22
+ export declare class UserConversationDocHydrated extends UserConversationDocBase {
32
23
  sender: OwnerDto;
33
24
  receiver: OwnerDto;
34
- dataType: ChatDataType;
35
- chatName?: string | undefined;
36
- isGroupChat: boolean;
37
- chatId: string;
38
- message: ChatMessage;
39
- deleteTimestamp?: number | undefined;
40
- unreadCount?: number | undefined;
41
- id: string;
42
- pk: string;
43
- _ts: number;
44
- constructor(props: Partial<UserConversationDocHydrated>);
25
+ constructor(props: Partial<UserConversationDocBase>);
45
26
  }
46
27
  export {};
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserConversationDocHydrated = exports.UserConversationDoc = void 0;
4
4
  const chat_data_type_enum_1 = require("./chat-data-type.enum");
5
- class UserConversationDoc {
5
+ class UserConversationDocBase {
6
6
  constructor(props) {
7
7
  this.dataType = chat_data_type_enum_1.ChatDataType.CONVERSATION;
8
8
  Object.assign(this, props);
@@ -10,11 +10,15 @@ class UserConversationDoc {
10
10
  this.pk = props.sender;
11
11
  }
12
12
  }
13
+ class UserConversationDoc extends UserConversationDocBase {
14
+ constructor(props) {
15
+ super(props);
16
+ }
17
+ }
13
18
  exports.UserConversationDoc = UserConversationDoc;
14
- class UserConversationDocHydrated {
19
+ class UserConversationDocHydrated extends UserConversationDocBase {
15
20
  constructor(props) {
16
- this.dataType = chat_data_type_enum_1.ChatDataType.CONVERSATION;
17
- Object.assign(this, props);
21
+ super(props);
18
22
  }
19
23
  }
20
24
  exports.UserConversationDocHydrated = UserConversationDocHydrated;
@@ -2,11 +2,11 @@ import { ActivityChain } from '../../../common/enums';
2
2
  import { NftMetadataAttributes } from '../token/nft-metadata-attributes';
3
3
  import { CollectionDataType } from './dataTypes';
4
4
  import { CollectionProfileDoc } from './profile';
5
- export declare class GlobalOfferDoc {
5
+ import { OwnerDto } from '../../../common/owner.dto';
6
+ declare class GlobalOfferDocBase {
6
7
  dataType: CollectionDataType;
7
8
  offerId: number;
8
9
  collection: string;
9
- owner: string;
10
10
  price: string;
11
11
  paymentToken: string;
12
12
  paymentTokenNonce: number;
@@ -25,3 +25,16 @@ export declare class GlobalOfferDoc {
25
25
  _ts: number;
26
26
  constructor(props?: Partial<GlobalOfferDoc>);
27
27
  }
28
+ export declare class GlobalOfferDoc extends GlobalOfferDocBase {
29
+ owner: string;
30
+ constructor(props: Partial<GlobalOfferDocBase>);
31
+ }
32
+ export declare class GlobalOfferDocHydrated extends GlobalOfferDocBase {
33
+ usdValue: number;
34
+ owner: OwnerDto;
35
+ floorPrice: number;
36
+ floorPriceMargin: number;
37
+ collectionInfo: Partial<CollectionProfileDoc>;
38
+ constructor(props: Partial<GlobalOfferDocBase>);
39
+ }
40
+ export {};
@@ -9,13 +9,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GlobalOfferDoc = void 0;
12
+ exports.GlobalOfferDocHydrated = exports.GlobalOfferDoc = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const enums_1 = require("../../../common/enums");
15
15
  const nft_metadata_attributes_1 = require("../token/nft-metadata-attributes");
16
16
  const dataTypes_1 = require("./dataTypes");
17
17
  const profile_1 = require("./profile");
18
- class GlobalOfferDoc {
18
+ class GlobalOfferDocBase {
19
19
  constructor(props) {
20
20
  this.dataType = dataTypes_1.CollectionDataType.GlobalOffer;
21
21
  this.attributes = [];
@@ -25,7 +25,6 @@ class GlobalOfferDoc {
25
25
  this.id = `${this.collection}-${this.offerId}-${this.marketplace}-${this.dataType}`;
26
26
  }
27
27
  }
28
- exports.GlobalOfferDoc = GlobalOfferDoc;
29
28
  __decorate([
30
29
  (0, swagger_1.ApiProperty)({
31
30
  description: 'Data type identifier for the global offer',
@@ -33,84 +32,77 @@ __decorate([
33
32
  example: dataTypes_1.CollectionDataType.GlobalOffer,
34
33
  }),
35
34
  __metadata("design:type", String)
36
- ], GlobalOfferDoc.prototype, "dataType", void 0);
35
+ ], GlobalOfferDocBase.prototype, "dataType", void 0);
37
36
  __decorate([
38
37
  (0, swagger_1.ApiProperty)({
39
38
  description: 'Unique identifier for the offer',
40
39
  example: 12345,
41
40
  }),
42
41
  __metadata("design:type", Number)
43
- ], GlobalOfferDoc.prototype, "offerId", void 0);
42
+ ], GlobalOfferDocBase.prototype, "offerId", void 0);
44
43
  __decorate([
45
44
  (0, swagger_1.ApiProperty)({
46
45
  description: 'Collection identifier',
47
46
  example: 'COLLECTION-123456',
48
47
  }),
49
48
  __metadata("design:type", String)
50
- ], GlobalOfferDoc.prototype, "collection", void 0);
51
- __decorate([
52
- (0, swagger_1.ApiProperty)({
53
- description: 'Owner/creator of the offer',
54
- example: 'erd1qqqqqqqqqqqqqpgqw0t0ef0jdpeva2v7qy7q7qjjfq6yq0wq0w0qjjfq6yq',
55
- }),
56
- __metadata("design:type", String)
57
- ], GlobalOfferDoc.prototype, "owner", void 0);
49
+ ], GlobalOfferDocBase.prototype, "collection", void 0);
58
50
  __decorate([
59
51
  (0, swagger_1.ApiProperty)({
60
52
  description: 'Offer price in atomic units',
61
53
  example: '1000000000000000000',
62
54
  }),
63
55
  __metadata("design:type", String)
64
- ], GlobalOfferDoc.prototype, "price", void 0);
56
+ ], GlobalOfferDocBase.prototype, "price", void 0);
65
57
  __decorate([
66
58
  (0, swagger_1.ApiProperty)({
67
59
  description: 'Payment token identifier',
68
60
  example: 'EGLD',
69
61
  }),
70
62
  __metadata("design:type", String)
71
- ], GlobalOfferDoc.prototype, "paymentToken", void 0);
63
+ ], GlobalOfferDocBase.prototype, "paymentToken", void 0);
72
64
  __decorate([
73
65
  (0, swagger_1.ApiProperty)({
74
66
  description: 'Payment token nonce',
75
67
  example: 0,
76
68
  }),
77
69
  __metadata("design:type", Number)
78
- ], GlobalOfferDoc.prototype, "paymentTokenNonce", void 0);
70
+ ], GlobalOfferDocBase.prototype, "paymentTokenNonce", void 0);
79
71
  __decorate([
80
72
  (0, swagger_1.ApiProperty)({
81
73
  description: 'Quantity of items in the offer',
82
74
  example: 1,
83
75
  }),
84
76
  __metadata("design:type", Number)
85
- ], GlobalOfferDoc.prototype, "quantity", void 0);
77
+ ], GlobalOfferDocBase.prototype, "quantity", void 0);
86
78
  __decorate([
87
79
  (0, swagger_1.ApiProperty)({
88
80
  description: 'Marketplace where the offer was created',
89
81
  example: 'xoxno',
90
82
  }),
91
83
  __metadata("design:type", String)
92
- ], GlobalOfferDoc.prototype, "marketplace", void 0);
84
+ ], GlobalOfferDocBase.prototype, "marketplace", void 0);
93
85
  __decorate([
94
86
  (0, swagger_1.ApiProperty)({
95
87
  description: 'Timestamp when the offer was created (Unix timestamp)',
96
88
  example: 1640995200,
97
89
  }),
98
90
  __metadata("design:type", Number)
99
- ], GlobalOfferDoc.prototype, "timestamp", void 0);
91
+ ], GlobalOfferDocBase.prototype, "timestamp", void 0);
100
92
  __decorate([
101
93
  (0, swagger_1.ApiProperty)({
102
94
  description: 'Required attributes/traits for the NFT',
103
95
  type: [nft_metadata_attributes_1.NftMetadataAttributes],
104
96
  }),
105
97
  __metadata("design:type", Array)
106
- ], GlobalOfferDoc.prototype, "attributes", void 0);
98
+ ], GlobalOfferDocBase.prototype, "attributes", void 0);
107
99
  __decorate([
108
100
  (0, swagger_1.ApiProperty)({
109
101
  description: 'Price in decimal format for display',
110
102
  example: 1.5,
111
103
  }),
112
104
  __metadata("design:type", Number)
113
- ], GlobalOfferDoc.prototype, "priceShort", void 0);
105
+ ], GlobalOfferDocBase.prototype, "priceShort", void 0);
114
106
  __decorate([
115
107
  (0, swagger_1.ApiProperty)({
116
108
  description: 'Floor price margin percentage (used on user profile offers)',
@@ -118,7 +110,7 @@ __decorate([
118
110
  required: false,
119
111
  }),
120
112
  __metadata("design:type", Number)
121
- ], GlobalOfferDoc.prototype, "floorPriceMargin", void 0);
113
+ ], GlobalOfferDocBase.prototype, "floorPriceMargin", void 0);
122
114
  __decorate([
123
115
  (0, swagger_1.ApiProperty)({
124
116
  description: 'Floor price of the collection (used on user profile offers)',
@@ -126,14 +118,14 @@ __decorate([
126
118
  required: false,
127
119
  }),
128
120
  __metadata("design:type", Number)
129
- ], GlobalOfferDoc.prototype, "floorPrice", void 0);
121
+ ], GlobalOfferDocBase.prototype, "floorPrice", void 0);
130
122
  __decorate([
131
123
  (0, swagger_1.ApiProperty)({
132
124
  description: 'Whether the offer is active',
133
125
  example: true,
134
126
  }),
135
127
  __metadata("design:type", Boolean)
136
- ], GlobalOfferDoc.prototype, "isActive", void 0);
128
+ ], GlobalOfferDocBase.prototype, "isActive", void 0);
137
129
  __decorate([
138
130
  (0, swagger_1.ApiProperty)({
139
131
  description: 'Collection information (used on user profile offers)',
@@ -141,7 +133,7 @@ __decorate([
141
133
  required: false,
142
134
  }),
143
135
  __metadata("design:type", Object)
144
- ], GlobalOfferDoc.prototype, "collectionInfo", void 0);
136
+ ], GlobalOfferDocBase.prototype, "collectionInfo", void 0);
145
137
  __decorate([
146
138
  (0, swagger_1.ApiProperty)({
147
139
  description: 'Blockchain chain',
@@ -149,7 +141,7 @@ __decorate([
149
141
  example: enums_1.ActivityChain.MVX,
150
142
  }),
151
143
  __metadata("design:type", String)
152
- ], GlobalOfferDoc.prototype, "chain", void 0);
144
+ ], GlobalOfferDocBase.prototype, "chain", void 0);
153
145
  __decorate([
154
146
  (0, swagger_1.ApiProperty)({
155
147
  description: 'USD value of the offer',
@@ -157,18 +149,37 @@ __decorate([
157
149
  required: false,
158
150
  }),
159
151
  __metadata("design:type", Number)
160
- ], GlobalOfferDoc.prototype, "usdValue", void 0);
152
+ ], GlobalOfferDocBase.prototype, "usdValue", void 0);
161
153
  __decorate([
162
154
  (0, swagger_1.ApiProperty)({
163
155
  description: 'Unique identifier for the document',
164
156
  example: 'COLLECTION-123456-12345-xoxno-globalOffer',
165
157
  }),
166
158
  __metadata("design:type", String)
167
- ], GlobalOfferDoc.prototype, "id", void 0);
159
+ ], GlobalOfferDocBase.prototype, "id", void 0);
168
160
  __decorate([
169
161
  (0, swagger_1.ApiProperty)({
170
162
  description: 'Cosmos DB timestamp',
171
163
  example: 1640995200,
172
164
  }),
173
165
  __metadata("design:type", Number)
174
- ], GlobalOfferDoc.prototype, "_ts", void 0);
166
+ ], GlobalOfferDocBase.prototype, "_ts", void 0);
167
+ class GlobalOfferDoc extends GlobalOfferDocBase {
168
+ constructor(props) {
169
+ super(props);
170
+ }
171
+ }
172
+ exports.GlobalOfferDoc = GlobalOfferDoc;
173
+ __decorate([
174
+ (0, swagger_1.ApiProperty)({
175
+ description: 'Owner/creator of the offer',
176
+ example: 'erd1qqqqqqqqqqqqqpgqw0t0ef0jdpeva2v7qy7q7qjjfq6yq0wq0w0qjjfq6yq',
177
+ }),
178
+ __metadata("design:type", String)
179
+ ], GlobalOfferDoc.prototype, "owner", void 0);
180
+ class GlobalOfferDocHydrated extends GlobalOfferDocBase {
181
+ constructor(props) {
182
+ super(props);
183
+ }
184
+ }
185
+ exports.GlobalOfferDocHydrated = GlobalOfferDocHydrated;
@@ -38,7 +38,10 @@ export declare class CollectionStatsDoc {
38
38
  chain: ActivityChain;
39
39
  _ts: number;
40
40
  id: string;
41
- collectionInfo?: Partial<CollectionProfileDoc>;
42
41
  constructor(props?: Partial<CollectionStatsDoc>);
43
42
  }
43
+ export declare class CollectionStatsDocHydrated extends CollectionStatsDoc {
44
+ collectionInfo: Partial<CollectionProfileDoc>;
45
+ constructor(props: Partial<CollectionStatsDocHydrated>);
46
+ }
44
47
  export {};
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CollectionStatsDoc = exports.TradingStatistics = exports.AllTimeHigh = void 0;
12
+ exports.CollectionStatsDocHydrated = exports.CollectionStatsDoc = exports.TradingStatistics = exports.AllTimeHigh = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const enums_1 = require("../../../common/enums");
15
15
  const dataTypes_1 = require("./dataTypes");
@@ -276,6 +276,12 @@ __decorate([
276
276
  }),
277
277
  __metadata("design:type", String)
278
278
  ], CollectionStatsDoc.prototype, "id", void 0);
279
+ class CollectionStatsDocHydrated extends CollectionStatsDoc {
280
+ constructor(props) {
281
+ super(props);
282
+ }
283
+ }
284
+ exports.CollectionStatsDocHydrated = CollectionStatsDocHydrated;
279
285
  __decorate([
280
286
  (0, swagger_1.ApiProperty)({
281
287
  description: 'Collection profile information',
@@ -283,4 +289,4 @@ __decorate([
283
289
  type: (0, swagger_1.PartialType)(profile_1.CollectionProfileDoc),
284
290
  }),
285
291
  __metadata("design:type", Object)
286
- ], CollectionStatsDoc.prototype, "collectionInfo", void 0);
292
+ ], CollectionStatsDocHydrated.prototype, "collectionInfo", void 0);
@@ -1,29 +1,22 @@
1
1
  import { Wallet } from '../../utils/types';
2
- interface IType {
2
+ declare class AirdropDtoBase {
3
3
  tokenAllocation: number;
4
4
  totalScore: number;
5
5
  rank: number;
6
- isClaimed?: boolean;
7
- signature: {
8
- signature: string;
9
- data: string;
10
- };
11
- amount?: string;
6
+ constructor(props: Partial<AirdropDtoBase>);
12
7
  }
13
- export type AirdropDto = IType & {
8
+ export declare class AirdropDto extends AirdropDtoBase {
14
9
  wallet: string;
15
- };
16
- export declare class AirdropDtoHydrated implements IType {
10
+ constructor(props: Partial<AirdropDtoBase>);
11
+ }
12
+ export declare class AirdropDtoHydrated extends AirdropDtoBase {
17
13
  wallet: Wallet;
18
- tokenAllocation: number;
19
- totalScore: number;
20
- rank: number;
21
- isClaimed?: boolean | undefined;
22
14
  signature: {
23
15
  signature: string;
24
16
  data: string;
25
17
  };
26
- amount?: string | undefined;
27
- constructor(args: Partial<AirdropDtoHydrated>);
18
+ isClaimed: boolean;
19
+ amount: string;
20
+ constructor(props: Partial<AirdropDtoBase>);
28
21
  }
29
22
  export {};
@@ -1,9 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AirdropDtoHydrated = void 0;
4
- class AirdropDtoHydrated {
5
- constructor(args) {
6
- Object.assign(this, args);
3
+ exports.AirdropDtoHydrated = exports.AirdropDto = void 0;
4
+ class AirdropDtoBase {
5
+ constructor(props) {
6
+ Object.assign(this, props);
7
+ }
8
+ }
9
+ class AirdropDto extends AirdropDtoBase {
10
+ constructor(props) {
11
+ super(props);
12
+ }
13
+ }
14
+ exports.AirdropDto = AirdropDto;
15
+ class AirdropDtoHydrated extends AirdropDtoBase {
16
+ constructor(props) {
17
+ super(props);
7
18
  }
8
19
  }
9
20
  exports.AirdropDtoHydrated = AirdropDtoHydrated;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",