@xoxno/types 1.0.166 → 1.0.168

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.
Files changed (43) hide show
  1. package/dist/cosmos-db/documents/chat/chat-message-content.dto.js +1 -1
  2. package/dist/cosmos-db/documents/chat/chat-message-reply.dto.js +4 -1
  3. package/dist/cosmos-db/documents/chat/chat-message.dto.js +1 -1
  4. package/dist/cosmos-db/documents/collection/profile.js +1 -1
  5. package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.js +2 -2
  6. package/dist/cosmos-db/documents/ticketing/event-invitation-create.dto.js +1 -1
  7. package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +1 -1
  8. package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +4 -7
  9. package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.js +1 -1
  10. package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +2 -2
  11. package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.js +1 -1
  12. package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +1 -1
  13. package/dist/cosmos-db/documents/ticketing/event-voucher-filter.doc.js +1 -1
  14. package/dist/cosmos-db/documents/ticketing/manual-check-in.dto.js +1 -1
  15. package/dist/cosmos-db/documents/ticketing/ticket-calculation-request.dto.js +1 -1
  16. package/dist/cosmos-db/documents/ticketing/ticket-prices-response.js +1 -1
  17. package/dist/entities/transactions/smart-contract-result.d.ts +19 -0
  18. package/dist/entities/transactions/smart-contract-result.js +24 -0
  19. package/dist/entities/transactions/transaction-detailed.d.ts +10 -0
  20. package/dist/entities/transactions/transaction-detailed.js +15 -0
  21. package/dist/entities/transactions/transaction-log-event.d.ts +6 -0
  22. package/dist/entities/transactions/transaction-log-event.js +12 -0
  23. package/dist/entities/transactions/transaction-log.d.ts +8 -0
  24. package/dist/entities/transactions/transaction-log.js +12 -0
  25. package/dist/entities/transactions/transaction-operation.d.ts +17 -0
  26. package/dist/entities/transactions/transaction-operation.js +19 -0
  27. package/dist/entities/transactions/transaction-receipt.d.ts +6 -0
  28. package/dist/entities/transactions/transaction-receipt.js +12 -0
  29. package/dist/entities/transactions/transaction.d.ts +27 -0
  30. package/dist/entities/transactions/transaction.js +37 -0
  31. package/dist/entities/web2user-data/web2user.doc.js +1 -1
  32. package/dist/enums/index.d.ts +3 -0
  33. package/dist/enums/index.js +3 -0
  34. package/dist/enums/transaction-operation-type.enum.d.ts +8 -0
  35. package/dist/enums/transaction-operation-type.enum.js +12 -0
  36. package/dist/enums/transaction-type.enum.d.ts +4 -0
  37. package/dist/enums/transaction-type.enum.js +8 -0
  38. package/dist/enums/transaction.operation.action.d.ts +25 -0
  39. package/dist/enums/transaction.operation.action.js +29 -0
  40. package/dist/index.d.ts +7 -0
  41. package/dist/index.js +10 -0
  42. package/dist/requests/nft-activity-data/user-stats.js +21 -6
  43. package/package.json +1 -1
@@ -35,7 +35,7 @@ __decorate([
35
35
  (0, class_validator_1.IsNotEmptyObject)(),
36
36
  (0, swagger_1.ApiProperty)({
37
37
  description: 'Message reply to user',
38
- type: chat_message_reply_dto_1.ChatMessageReplyDto,
38
+ type: () => chat_message_reply_dto_1.ChatMessageReplyDto,
39
39
  required: false,
40
40
  }),
41
41
  __metadata("design:type", chat_message_reply_dto_1.ChatMessageReplyDto)
@@ -26,7 +26,10 @@ __decorate([
26
26
  (0, class_validator_1.ValidateNested)(),
27
27
  (0, class_transformer_1.Type)(() => chat_message_content_dto_1.ChatMessageContentDto),
28
28
  (0, class_validator_1.IsNotEmptyObject)(),
29
- (0, swagger_1.ApiProperty)({ description: 'Message value', type: ChatMessageReplyDto }),
29
+ (0, swagger_1.ApiProperty)({
30
+ description: 'Message value',
31
+ type: () => ChatMessageReplyDto,
32
+ }),
30
33
  __metadata("design:type", chat_message_content_dto_1.ChatMessageContentDto)
31
34
  ], ChatMessageReplyDto.prototype, "content", void 0);
32
35
  __decorate([
@@ -26,7 +26,7 @@ __decorate([
26
26
  (0, class_validator_1.ValidateNested)(),
27
27
  (0, class_transformer_1.Type)(() => chat_message_content_dto_1.ChatMessageContentDto),
28
28
  (0, class_validator_1.IsNotEmptyObject)(),
29
- (0, swagger_1.ApiProperty)({ required: true, type: chat_message_content_dto_1.ChatMessageContentDto }),
29
+ (0, swagger_1.ApiProperty)({ required: true, type: () => chat_message_content_dto_1.ChatMessageContentDto }),
30
30
  __metadata("design:type", chat_message_content_dto_1.ChatMessageContentDto)
31
31
  ], SendChatMessageDto.prototype, "content", void 0);
32
32
  __decorate([
@@ -151,7 +151,7 @@ __decorate([
151
151
  __decorate([
152
152
  (0, swagger_1.ApiProperty)({
153
153
  description: 'Social media links for the collection',
154
- type: socials_1.SocialsDto,
154
+ type: () => socials_1.SocialsDto,
155
155
  }),
156
156
  (0, class_validator_1.ValidateNested)(),
157
157
  (0, class_transformer_1.Type)(() => socials_1.SocialsDto),
@@ -126,7 +126,7 @@ __decorate([
126
126
  __decorate([
127
127
  (0, swagger_1.ApiProperty)({
128
128
  description: 'Selected tickets',
129
- type: [TicketSelectionDto],
129
+ type: () => [TicketSelectionDto],
130
130
  required: false,
131
131
  }),
132
132
  (0, class_validator_1.IsArray)(),
@@ -174,7 +174,7 @@ __decorate([
174
174
  (0, swagger_1.ApiProperty)({
175
175
  description: 'Answers to custom questions',
176
176
  required: false,
177
- type: event_question_answer_doc_1.EventQuestionAnswerDto,
177
+ type: () => event_question_answer_doc_1.EventQuestionAnswerDto,
178
178
  isArray: true,
179
179
  }),
180
180
  (0, class_validator_1.IsOptional)(),
@@ -39,7 +39,7 @@ class EventInvitationCreateDto extends (0, swagger_1.PickType)(event_invitation_
39
39
  }
40
40
  exports.EventInvitationCreateDto = EventInvitationCreateDto;
41
41
  __decorate([
42
- (0, swagger_1.ApiProperty)({ type: Ticket, isArray: true }),
42
+ (0, swagger_1.ApiProperty)({ type: () => Ticket, isArray: true }),
43
43
  (0, class_validator_1.IsArray)(),
44
44
  (0, class_validator_1.ArrayMaxSize)(100),
45
45
  (0, class_validator_1.ValidateNested)({ each: true }),
@@ -84,7 +84,7 @@ __decorate([
84
84
  __decorate([
85
85
  (0, swagger_1.ApiProperty)({
86
86
  description: 'List of ticket types with their IDs and quantities.',
87
- type: event_ticket_profile_doc_1.TicketProfileSummary,
87
+ type: () => event_ticket_profile_doc_1.TicketProfileSummary,
88
88
  isArray: true,
89
89
  example: [{ ticketId: 'VIP123', quantity: 2 }],
90
90
  }),
@@ -14,6 +14,7 @@ const crypto_1 = require("crypto");
14
14
  const swagger_1 = require("@nestjs/swagger");
15
15
  const class_validator_1 = require("class-validator");
16
16
  const uuid_1 = require("uuid");
17
+ const class_transformer_1 = require("class-transformer");
17
18
  const event_category_enum_1 = require("../../../enums/event-category.enum");
18
19
  const event_guest_status_enum_1 = require("../../../enums/event-guest-status.enum");
19
20
  const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
@@ -23,10 +24,6 @@ const user_creator_profile_doc_1 = require("../user/user-creator-profile.doc");
23
24
  const event_guest_doc_1 = require("./event-guest.doc");
24
25
  const event_profile_create_dto_1 = require("./event-profile-create.dto");
25
26
  const event_user_role_doc_1 = require("./event-user-role.doc");
26
- const class_transformer_1 = require("class-transformer");
27
- /* export class RegistrationType {
28
-
29
- } */
30
27
  class PremiumType {
31
28
  }
32
29
  exports.PremiumType = PremiumType;
@@ -177,7 +174,7 @@ __decorate([
177
174
  ], EventProfileDoc.prototype, "descriptionUrl", void 0);
178
175
  __decorate([
179
176
  (0, swagger_1.ApiProperty)({
180
- type: event_profile_create_dto_1.EventLocationDto,
177
+ type: () => event_profile_create_dto_1.EventLocationDto,
181
178
  description: 'Location details including geo points, address, and optional instructions.',
182
179
  }),
183
180
  (0, class_validator_1.IsObject)(),
@@ -237,7 +234,7 @@ __decorate([
237
234
  }),
238
235
  (0, class_validator_1.IsObject)(),
239
236
  (0, class_validator_1.ValidateNested)(),
240
- (0, class_transformer_1.Type)(() => event_profile_create_dto_1.RegistrationDetailsCreateDto),
237
+ (0, class_transformer_1.Type)(() => event_profile_create_dto_1.RegistrationDetailsDto),
241
238
  __metadata("design:type", event_profile_create_dto_1.RegistrationDetailsDto)
242
239
  ], EventProfileDoc.prototype, "registration", void 0);
243
240
  __decorate([
@@ -263,7 +260,7 @@ __decorate([
263
260
  ], EventProfileDoc.prototype, "collection", void 0);
264
261
  __decorate([
265
262
  (0, swagger_1.ApiProperty)({
266
- type: event_profile_create_dto_1.EventSeoDto,
263
+ type: () => event_profile_create_dto_1.EventSeoDto,
267
264
  example: {},
268
265
  required: false,
269
266
  description: 'SEO-related information such as short description, tags, and alternative title.',
@@ -61,7 +61,7 @@ __decorate([
61
61
  __decorate([
62
62
  (0, swagger_1.ApiProperty)({
63
63
  required: false,
64
- type: cosmos_db_generic_filter_1.RangeFilter,
64
+ type: () => cosmos_db_generic_filter_1.RangeFilter,
65
65
  isArray: true,
66
66
  description: 'Filter referrals within a range of dates.',
67
67
  }),
@@ -102,7 +102,7 @@ __decorate([
102
102
  __decorate([
103
103
  (0, swagger_1.ApiProperty)({
104
104
  description: 'Indicates if a voucher should be automatically applied as a discount when this referral code is used.',
105
- type: short_voucher_doc_1.ShortVoucherDoc,
105
+ type: () => short_voucher_doc_1.ShortVoucherDoc,
106
106
  required: false,
107
107
  }),
108
108
  (0, class_validator_1.IsOptional)(),
@@ -114,7 +114,7 @@ __decorate([
114
114
  (0, swagger_1.ApiProperty)({
115
115
  required: false,
116
116
  description: 'Details about the reward issued to the referral owner after a certain number of successful referrals or revenue thresholds.',
117
- type: RewardDetails,
117
+ type: () => RewardDetails,
118
118
  }),
119
119
  (0, class_validator_1.IsOptional)(),
120
120
  (0, class_validator_1.ValidateNested)(),
@@ -107,7 +107,7 @@ __decorate([
107
107
  __decorate([
108
108
  (0, swagger_1.ApiProperty)({
109
109
  required: false,
110
- type: cosmos_db_generic_filter_1.RangeFilter,
110
+ type: () => cosmos_db_generic_filter_1.RangeFilter,
111
111
  isArray: true,
112
112
  description: 'Filter referrals within a range of dates.',
113
113
  }),
@@ -145,7 +145,7 @@ __decorate([
145
145
  (0, swagger_1.ApiProperty)({
146
146
  description: 'Price of the ticket during this stage, can override base price.',
147
147
  required: true,
148
- type: [tokenPayent_1.EgldOrEsdtTokenPayment],
148
+ type: () => [tokenPayent_1.EgldOrEsdtTokenPayment],
149
149
  }),
150
150
  (0, class_validator_1.IsArray)(),
151
151
  (0, class_validator_1.ValidateNested)({ each: true }),
@@ -118,7 +118,7 @@ __decorate([
118
118
  __decorate([
119
119
  (0, swagger_1.ApiProperty)({
120
120
  required: false,
121
- type: cosmos_db_generic_filter_1.RangeFilter,
121
+ type: () => cosmos_db_generic_filter_1.RangeFilter,
122
122
  isArray: true,
123
123
  description: 'Filter vouchers within a range of dates.',
124
124
  }),
@@ -27,7 +27,7 @@ __decorate([
27
27
  __decorate([
28
28
  (0, swagger_1.ApiProperty)({
29
29
  description: 'Selected tickets for check-in (optional)',
30
- type: [event_ticket_qr_type_enum_1.TicketsType],
30
+ type: () => [event_ticket_qr_type_enum_1.TicketsType],
31
31
  required: false,
32
32
  }),
33
33
  (0, class_validator_1.IsOptional)(),
@@ -33,7 +33,7 @@ __decorate([
33
33
  __metadata("design:type", Object)
34
34
  ], TicketCalculationRequestDto.prototype, "discountCode", void 0);
35
35
  __decorate([
36
- (0, swagger_1.ApiProperty)({ type: [event_guest_registration_dto_1.TicketSelectionDto] }),
36
+ (0, swagger_1.ApiProperty)({ type: () => [event_guest_registration_dto_1.TicketSelectionDto] }),
37
37
  (0, class_validator_1.IsArray)(),
38
38
  (0, class_validator_1.ValidateNested)({ each: true }),
39
39
  (0, class_transformer_1.Type)(() => event_guest_registration_dto_1.TicketSelectionDto),
@@ -65,7 +65,7 @@ __decorate([
65
65
  __metadata("design:type", String)
66
66
  ], TicketPricesResponse.prototype, "currency", void 0);
67
67
  __decorate([
68
- (0, swagger_1.ApiProperty)({ type: [StagePrice] }),
68
+ (0, swagger_1.ApiProperty)({ type: () => [StagePrice] }),
69
69
  (0, class_validator_1.IsArray)(),
70
70
  (0, class_validator_1.ValidateNested)({ each: true }),
71
71
  (0, class_transformer_1.Type)(() => StagePrice),
@@ -0,0 +1,19 @@
1
+ import { TransactionLog } from './transaction-log';
2
+ export declare class SmartContractResult {
3
+ hash: string;
4
+ timestamp: number;
5
+ nonce: number;
6
+ gasLimit: number;
7
+ gasPrice: number;
8
+ value: string;
9
+ sender: string;
10
+ receiver: string;
11
+ relayedValue: string;
12
+ data: string;
13
+ prevTxHash: string;
14
+ originalTxHash: string;
15
+ callType: string;
16
+ miniBlockHash: string | undefined;
17
+ logs: TransactionLog | undefined;
18
+ returnMessage: string | undefined;
19
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SmartContractResult = void 0;
4
+ class SmartContractResult {
5
+ constructor() {
6
+ this.hash = '';
7
+ this.timestamp = 0;
8
+ this.nonce = 0;
9
+ this.gasLimit = 0;
10
+ this.gasPrice = 0;
11
+ this.value = '';
12
+ this.sender = '';
13
+ this.receiver = '';
14
+ this.relayedValue = '';
15
+ this.data = '';
16
+ this.prevTxHash = '';
17
+ this.originalTxHash = '';
18
+ this.callType = '';
19
+ this.miniBlockHash = undefined;
20
+ this.logs = undefined;
21
+ this.returnMessage = undefined;
22
+ }
23
+ }
24
+ exports.SmartContractResult = SmartContractResult;
@@ -0,0 +1,10 @@
1
+ import { SmartContractResult } from './smart-contract-result';
2
+ import { Transaction } from './transaction';
3
+ import { TransactionLog } from './transaction-log';
4
+ import { TransactionOperation } from './transaction-operation';
5
+ export declare class TransactionDetailed extends Transaction {
6
+ results: SmartContractResult[];
7
+ price: number | undefined;
8
+ logs: TransactionLog | undefined;
9
+ operations: TransactionOperation[];
10
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionDetailed = void 0;
4
+ const transaction_1 = require("./transaction");
5
+ class TransactionDetailed extends transaction_1.Transaction {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.results = [];
9
+ // receipt: TransactionReceipt | undefined = undefined;
10
+ this.price = undefined;
11
+ this.logs = undefined;
12
+ this.operations = [];
13
+ }
14
+ }
15
+ exports.TransactionDetailed = TransactionDetailed;
@@ -0,0 +1,6 @@
1
+ export declare class TransactionLogEvent {
2
+ address: string;
3
+ identifier: string;
4
+ topics: string[];
5
+ data: string;
6
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionLogEvent = void 0;
4
+ class TransactionLogEvent {
5
+ constructor() {
6
+ this.address = '';
7
+ this.identifier = '';
8
+ this.topics = [];
9
+ this.data = '';
10
+ }
11
+ }
12
+ exports.TransactionLogEvent = TransactionLogEvent;
@@ -0,0 +1,8 @@
1
+ import { TransactionLogEvent } from './transaction-log-event';
2
+ export declare class TransactionLog {
3
+ id?: string;
4
+ address: string;
5
+ events: TransactionLogEvent[];
6
+ timestamp: number;
7
+ txHash: string;
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionLog = void 0;
4
+ class TransactionLog {
5
+ constructor() {
6
+ this.address = '';
7
+ this.events = [];
8
+ this.timestamp = 0;
9
+ this.txHash = '';
10
+ }
11
+ }
12
+ exports.TransactionLog = TransactionLog;
@@ -0,0 +1,17 @@
1
+ import { TransactionOperationType } from '../../enums/transaction-operation-type.enum';
2
+ import { TransactionOperationAction } from '../../enums/transaction.operation.action';
3
+ export declare class TransactionOperation {
4
+ id?: string;
5
+ action: TransactionOperationAction;
6
+ type: TransactionOperationType;
7
+ esdtType?: any;
8
+ identifier: string;
9
+ collection?: string;
10
+ name?: string;
11
+ value?: string;
12
+ sender: string;
13
+ receiver: string;
14
+ decimals?: number;
15
+ data?: string;
16
+ message?: string;
17
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionOperation = void 0;
4
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
+ const transaction_operation_type_enum_1 = require("../../enums/transaction-operation-type.enum");
6
+ const transaction_operation_action_1 = require("../../enums/transaction.operation.action");
7
+ class TransactionOperation {
8
+ constructor() {
9
+ this.id = '';
10
+ this.action = transaction_operation_action_1.TransactionOperationAction.none;
11
+ this.type = transaction_operation_type_enum_1.TransactionOperationType.none;
12
+ this.identifier = '';
13
+ this.sender = '';
14
+ this.receiver = '';
15
+ this.data = '';
16
+ this.message = '';
17
+ }
18
+ }
19
+ exports.TransactionOperation = TransactionOperation;
@@ -0,0 +1,6 @@
1
+ export declare class TransactionReceipt {
2
+ constructor(init?: Partial<TransactionReceipt>);
3
+ value: string;
4
+ sender: string;
5
+ data: string;
6
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionReceipt = void 0;
4
+ class TransactionReceipt {
5
+ constructor(init) {
6
+ this.value = '';
7
+ this.sender = '';
8
+ this.data = '';
9
+ Object.assign(this, init);
10
+ }
11
+ }
12
+ exports.TransactionReceipt = TransactionReceipt;
@@ -0,0 +1,27 @@
1
+ import { TransactionType } from '../../enums/transaction-type.enum';
2
+ export declare class Transaction {
3
+ txHash: string;
4
+ gasLimit: number | undefined;
5
+ gasPrice: number | undefined;
6
+ gasUsed: number | undefined;
7
+ miniBlockHash: string | undefined;
8
+ nonce: number | undefined;
9
+ receiver: string;
10
+ receiverShard: number;
11
+ round: number | undefined;
12
+ sender: string;
13
+ senderShard: number;
14
+ signature: string | undefined;
15
+ status: string;
16
+ value: string;
17
+ fee: string | undefined;
18
+ timestamp: number;
19
+ data: string | undefined;
20
+ function: string | undefined;
21
+ action: any | undefined;
22
+ scamInfo: any | undefined;
23
+ type: TransactionType | undefined;
24
+ originalTxHash: string | undefined;
25
+ pendingResults: boolean | undefined;
26
+ getDate(): Date | undefined;
27
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Transaction = void 0;
4
+ class Transaction {
5
+ constructor() {
6
+ this.txHash = '';
7
+ this.gasLimit = undefined;
8
+ this.gasPrice = undefined;
9
+ this.gasUsed = undefined;
10
+ this.miniBlockHash = undefined;
11
+ this.nonce = undefined;
12
+ this.receiver = '';
13
+ this.receiverShard = 0;
14
+ this.round = undefined;
15
+ this.sender = '';
16
+ this.senderShard = 0;
17
+ this.signature = undefined;
18
+ this.status = '';
19
+ this.value = '';
20
+ this.fee = undefined;
21
+ this.timestamp = 0;
22
+ this.data = undefined;
23
+ this.function = undefined;
24
+ this.action = undefined;
25
+ this.scamInfo = undefined;
26
+ this.type = undefined;
27
+ this.originalTxHash = undefined;
28
+ this.pendingResults = undefined;
29
+ }
30
+ getDate() {
31
+ if (this.timestamp) {
32
+ return new Date(this.timestamp * 1000);
33
+ }
34
+ return undefined;
35
+ }
36
+ }
37
+ exports.Transaction = Transaction;
@@ -35,7 +35,7 @@ __decorate([
35
35
  ], Web2UserDoc.prototype, "id", void 0);
36
36
  __decorate([
37
37
  (0, swagger_1.ApiProperty)({
38
- type: [Object],
38
+ type: () => [Object],
39
39
  description: 'Array of linked accounts (Web2UserWallet or Web2UserAccount)',
40
40
  }),
41
41
  (0, class_validator_1.IsArray)(),
@@ -50,7 +50,10 @@ export * from "./ticketing-data-type.enum";
50
50
  export * from "./ticketing-visibility.enum";
51
51
  export * from "./token-category.enum";
52
52
  export * from "./token-data.enum";
53
+ export * from "./transaction-operation-type.enum";
53
54
  export * from "./transaction-status.enum";
55
+ export * from "./transaction-type.enum";
56
+ export * from "./transaction.operation.action";
54
57
  export * from "./twispay.enum";
55
58
  export * from "./user-data-type.enum";
56
59
  export * from "./user-favorite-type.enum";
@@ -66,7 +66,10 @@ __exportStar(require("./ticketing-data-type.enum"), exports);
66
66
  __exportStar(require("./ticketing-visibility.enum"), exports);
67
67
  __exportStar(require("./token-category.enum"), exports);
68
68
  __exportStar(require("./token-data.enum"), exports);
69
+ __exportStar(require("./transaction-operation-type.enum"), exports);
69
70
  __exportStar(require("./transaction-status.enum"), exports);
71
+ __exportStar(require("./transaction-type.enum"), exports);
72
+ __exportStar(require("./transaction.operation.action"), exports);
70
73
  __exportStar(require("./twispay.enum"), exports);
71
74
  __exportStar(require("./user-data-type.enum"), exports);
72
75
  __exportStar(require("./user-favorite-type.enum"), exports);
@@ -0,0 +1,8 @@
1
+ export declare enum TransactionOperationType {
2
+ none = "none",
3
+ nft = "nft",
4
+ esdt = "esdt",
5
+ log = "log",
6
+ error = "error",
7
+ egld = "egld"
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionOperationType = void 0;
4
+ var TransactionOperationType;
5
+ (function (TransactionOperationType) {
6
+ TransactionOperationType["none"] = "none";
7
+ TransactionOperationType["nft"] = "nft";
8
+ TransactionOperationType["esdt"] = "esdt";
9
+ TransactionOperationType["log"] = "log";
10
+ TransactionOperationType["error"] = "error";
11
+ TransactionOperationType["egld"] = "egld";
12
+ })(TransactionOperationType || (exports.TransactionOperationType = TransactionOperationType = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum TransactionType {
2
+ Transaction = "Transaction",
3
+ SmartContractResult = "SmartContractResult"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionType = void 0;
4
+ var TransactionType;
5
+ (function (TransactionType) {
6
+ TransactionType["Transaction"] = "Transaction";
7
+ TransactionType["SmartContractResult"] = "SmartContractResult";
8
+ })(TransactionType || (exports.TransactionType = TransactionType = {}));
@@ -0,0 +1,25 @@
1
+ export declare enum TransactionOperationAction {
2
+ none = "none",
3
+ transfer = "transfer",
4
+ burn = "burn",
5
+ addQuantity = "addQuantity",
6
+ create = "create",
7
+ multiTransfer = "multiTransfer",
8
+ localMint = "localMint",
9
+ localBurn = "localBurn",
10
+ wipe = "wipe",
11
+ freeze = "freeze",
12
+ writeLog = "writeLog",
13
+ signalError = "signalError",
14
+ buy = "buy",
15
+ buySft = "buySft",
16
+ bulkBuy = "bulkBuy",
17
+ acceptOffer = "acceptOffer",
18
+ endAuction = "endAuction",
19
+ listing = "listing",
20
+ withdraw = "withdraw",
21
+ changePrice = "changePrice",
22
+ bid = "bid",
23
+ sendOffer = "sendOffer",
24
+ withdrawOffer = "withdrawOffer"
25
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionOperationAction = void 0;
4
+ var TransactionOperationAction;
5
+ (function (TransactionOperationAction) {
6
+ TransactionOperationAction["none"] = "none";
7
+ TransactionOperationAction["transfer"] = "transfer";
8
+ TransactionOperationAction["burn"] = "burn";
9
+ TransactionOperationAction["addQuantity"] = "addQuantity";
10
+ TransactionOperationAction["create"] = "create";
11
+ TransactionOperationAction["multiTransfer"] = "multiTransfer";
12
+ TransactionOperationAction["localMint"] = "localMint";
13
+ TransactionOperationAction["localBurn"] = "localBurn";
14
+ TransactionOperationAction["wipe"] = "wipe";
15
+ TransactionOperationAction["freeze"] = "freeze";
16
+ TransactionOperationAction["writeLog"] = "writeLog";
17
+ TransactionOperationAction["signalError"] = "signalError";
18
+ TransactionOperationAction["buy"] = "buy";
19
+ TransactionOperationAction["buySft"] = "buySft";
20
+ TransactionOperationAction["bulkBuy"] = "bulkBuy";
21
+ TransactionOperationAction["acceptOffer"] = "acceptOffer";
22
+ TransactionOperationAction["endAuction"] = "endAuction";
23
+ TransactionOperationAction["listing"] = "listing";
24
+ TransactionOperationAction["withdraw"] = "withdraw";
25
+ TransactionOperationAction["changePrice"] = "changePrice";
26
+ TransactionOperationAction["bid"] = "bid";
27
+ TransactionOperationAction["sendOffer"] = "sendOffer";
28
+ TransactionOperationAction["withdrawOffer"] = "withdrawOffer";
29
+ })(TransactionOperationAction || (exports.TransactionOperationAction = TransactionOperationAction = {}));
package/dist/index.d.ts CHANGED
@@ -142,9 +142,16 @@ export * from './entities/staking-data/user-staking-summary.dto';
142
142
  export * from './entities/token-data/metrics';
143
143
  export * from './entities/token-data/token-data.doc';
144
144
  export * from './entities/token-data/xoxno-liquid-stats.dto';
145
+ export * from './entities/transactions/smart-contract-result';
145
146
  export * from './entities/transactions/transaction-create';
147
+ export * from './entities/transactions/transaction-detailed';
148
+ export * from './entities/transactions/transaction-log-event';
149
+ export * from './entities/transactions/transaction-log';
150
+ export * from './entities/transactions/transaction-operation';
146
151
  export * from './entities/transactions/transaction-process-status';
152
+ export * from './entities/transactions/transaction-receipt';
147
153
  export * from './entities/transactions/transaction-send-result';
154
+ export * from './entities/transactions/transaction';
148
155
  export * from './entities/web2user-data/native-wallet.dto';
149
156
  export * from './entities/web2user-data/success.dto';
150
157
  export * from './entities/web2user-data/switch-wallet-dto';
package/dist/index.js CHANGED
@@ -158,9 +158,16 @@ __exportStar(require("./entities/staking-data/user-staking-summary.dto"), export
158
158
  __exportStar(require("./entities/token-data/metrics"), exports);
159
159
  __exportStar(require("./entities/token-data/token-data.doc"), exports);
160
160
  __exportStar(require("./entities/token-data/xoxno-liquid-stats.dto"), exports);
161
+ __exportStar(require("./entities/transactions/smart-contract-result"), exports);
161
162
  __exportStar(require("./entities/transactions/transaction-create"), exports);
163
+ __exportStar(require("./entities/transactions/transaction-detailed"), exports);
164
+ __exportStar(require("./entities/transactions/transaction-log-event"), exports);
165
+ __exportStar(require("./entities/transactions/transaction-log"), exports);
166
+ __exportStar(require("./entities/transactions/transaction-operation"), exports);
162
167
  __exportStar(require("./entities/transactions/transaction-process-status"), exports);
168
+ __exportStar(require("./entities/transactions/transaction-receipt"), exports);
163
169
  __exportStar(require("./entities/transactions/transaction-send-result"), exports);
170
+ __exportStar(require("./entities/transactions/transaction"), exports);
164
171
  __exportStar(require("./entities/web2user-data/native-wallet.dto"), exports);
165
172
  __exportStar(require("./entities/web2user-data/success.dto"), exports);
166
173
  __exportStar(require("./entities/web2user-data/switch-wallet-dto"), exports);
@@ -223,7 +230,10 @@ __exportStar(require("./enums/ticketing-data-type.enum"), exports);
223
230
  __exportStar(require("./enums/ticketing-visibility.enum"), exports);
224
231
  __exportStar(require("./enums/token-category.enum"), exports);
225
232
  __exportStar(require("./enums/token-data.enum"), exports);
233
+ __exportStar(require("./enums/transaction-operation-type.enum"), exports);
226
234
  __exportStar(require("./enums/transaction-status.enum"), exports);
235
+ __exportStar(require("./enums/transaction-type.enum"), exports);
236
+ __exportStar(require("./enums/transaction.operation.action"), exports);
227
237
  __exportStar(require("./enums/twispay.enum"), exports);
228
238
  __exportStar(require("./enums/user-data-type.enum"), exports);
229
239
  __exportStar(require("./enums/user-favorite-type.enum"), exports);
@@ -90,7 +90,7 @@ __decorate([
90
90
  ], PriceDataDto.prototype, "usdValue", void 0);
91
91
  __decorate([
92
92
  (0, swagger_1.ApiProperty)({
93
- type: short_nft_doc_1.ShortNftDoc,
93
+ type: () => short_nft_doc_1.ShortNftDoc,
94
94
  description: 'NFT information',
95
95
  required: false,
96
96
  }),
@@ -102,7 +102,10 @@ class UserStatsDto {
102
102
  }
103
103
  exports.UserStatsDto = UserStatsDto;
104
104
  __decorate([
105
- (0, swagger_1.ApiProperty)({ type: WalletDto, description: 'User wallet information' }),
105
+ (0, swagger_1.ApiProperty)({
106
+ type: () => WalletDto,
107
+ description: 'User wallet information',
108
+ }),
106
109
  (0, class_validator_1.ValidateNested)(),
107
110
  (0, class_transformer_1.Type)(() => WalletDto),
108
111
  __metadata("design:type", WalletDto)
@@ -158,13 +161,19 @@ __decorate([
158
161
  __metadata("design:type", Number)
159
162
  ], UserStatsDto.prototype, "buyerPartners", void 0);
160
163
  __decorate([
161
- (0, swagger_1.ApiProperty)({ type: PriceDataDto, description: 'Buyer maximum price data' }),
164
+ (0, swagger_1.ApiProperty)({
165
+ type: () => PriceDataDto,
166
+ description: 'Buyer maximum price data',
167
+ }),
162
168
  (0, class_validator_1.ValidateNested)(),
163
169
  (0, class_transformer_1.Type)(() => PriceDataDto),
164
170
  __metadata("design:type", PriceDataDto)
165
171
  ], UserStatsDto.prototype, "buyerMaxPriceData", void 0);
166
172
  __decorate([
167
- (0, swagger_1.ApiProperty)({ type: PriceDataDto, description: 'Buyer minimum price data' }),
173
+ (0, swagger_1.ApiProperty)({
174
+ type: () => PriceDataDto,
175
+ description: 'Buyer minimum price data',
176
+ }),
168
177
  (0, class_validator_1.ValidateNested)(),
169
178
  (0, class_transformer_1.Type)(() => PriceDataDto),
170
179
  __metadata("design:type", PriceDataDto)
@@ -195,13 +204,19 @@ __decorate([
195
204
  __metadata("design:type", Number)
196
205
  ], UserStatsDto.prototype, "sellerPartners", void 0);
197
206
  __decorate([
198
- (0, swagger_1.ApiProperty)({ type: PriceDataDto, description: 'Seller maximum price data' }),
207
+ (0, swagger_1.ApiProperty)({
208
+ type: () => PriceDataDto,
209
+ description: 'Seller maximum price data',
210
+ }),
199
211
  (0, class_validator_1.ValidateNested)(),
200
212
  (0, class_transformer_1.Type)(() => PriceDataDto),
201
213
  __metadata("design:type", PriceDataDto)
202
214
  ], UserStatsDto.prototype, "sellerMaxPriceData", void 0);
203
215
  __decorate([
204
- (0, swagger_1.ApiProperty)({ type: PriceDataDto, description: 'Seller minimum price data' }),
216
+ (0, swagger_1.ApiProperty)({
217
+ type: () => PriceDataDto,
218
+ description: 'Seller minimum price data',
219
+ }),
205
220
  (0, class_validator_1.ValidateNested)(),
206
221
  (0, class_transformer_1.Type)(() => PriceDataDto),
207
222
  __metadata("design:type", PriceDataDto)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.166",
3
+ "version": "1.0.168",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {