@xoxno/types 1.0.89 → 1.0.91

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 (95) hide show
  1. package/dist/common/kusto/lending-overall-stats.d.ts +1 -1
  2. package/dist/common/kusto/lending-overall-stats.js +2 -2
  3. package/dist/common/tokenPayent.d.ts +1 -1
  4. package/dist/common/tokenPayent.js +2 -2
  5. package/dist/cosmos-db/documents/activity/nft-activity.doc.d.ts +3 -3
  6. package/dist/cosmos-db/documents/activity/nft-activity.doc.js +6 -6
  7. package/dist/cosmos-db/documents/chat/chat-message.doc.d.ts +1 -1
  8. package/dist/cosmos-db/documents/chat/user-block.doc.d.ts +1 -1
  9. package/dist/cosmos-db/documents/chat/user-conversation.doc.d.ts +1 -1
  10. package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +1 -1
  11. package/dist/cosmos-db/documents/collection/collectionConfig.js +2 -2
  12. package/dist/cosmos-db/documents/collection/globalOffer.d.ts +4 -4
  13. package/dist/cosmos-db/documents/collection/globalOffer.js +1 -1
  14. package/dist/cosmos-db/documents/collection/mintProfile.d.ts +4 -4
  15. package/dist/cosmos-db/documents/collection/stats.d.ts +3 -3
  16. package/dist/cosmos-db/documents/collection/stats.js +4 -4
  17. package/dist/cosmos-db/documents/external-payment/external-payment.doc.d.ts +1 -1
  18. package/dist/cosmos-db/documents/external-payment/external-payment.doc.js +2 -2
  19. package/dist/cosmos-db/documents/lending/lending-account-profile.d.ts +1 -1
  20. package/dist/cosmos-db/documents/lending/lending-account-profile.js +2 -2
  21. package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.d.ts +1 -1
  22. package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +2 -2
  23. package/dist/cosmos-db/documents/lending/lending-market-profile.doc.d.ts +1 -1
  24. package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +2 -2
  25. package/dist/cosmos-db/documents/lending/lending-nft-attributes.d.ts +1 -1
  26. package/dist/cosmos-db/documents/lending/lending-nft-attributes.js +2 -2
  27. package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.d.ts +1 -1
  28. package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +2 -2
  29. package/dist/cosmos-db/documents/notification/notification.doc.d.ts +1 -1
  30. package/dist/cosmos-db/documents/notification/notification.doc.js +2 -2
  31. package/dist/cosmos-db/documents/short/short-collection.doc.d.ts +7 -0
  32. package/dist/cosmos-db/documents/short/short-collection.doc.js +22 -0
  33. package/dist/cosmos-db/documents/short/short-creator.doc.d.ts +7 -0
  34. package/dist/cosmos-db/documents/short/short-creator.doc.js +14 -0
  35. package/dist/cosmos-db/documents/short/short-nft.doc.d.ts +7 -0
  36. package/dist/cosmos-db/documents/short/short-nft.doc.js +18 -0
  37. package/dist/cosmos-db/documents/short/short-voucher.doc.d.ts +7 -0
  38. package/dist/cosmos-db/documents/short/short-voucher.doc.js +14 -0
  39. package/dist/cosmos-db/documents/staking/staking-pool-doc.d.ts +4 -4
  40. package/dist/cosmos-db/documents/staking/staking-pool-doc.js +8 -8
  41. package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.d.ts +1 -1
  42. package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.d.ts +1 -1
  43. package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.d.ts +1 -1
  44. package/dist/cosmos-db/documents/ticketing/event-question-answer.doc.d.ts +1 -1
  45. package/dist/cosmos-db/documents/ticketing/event-question-answer.doc.js +2 -2
  46. package/dist/cosmos-db/documents/ticketing/event-question-validator.d.ts +1 -1
  47. package/dist/cosmos-db/documents/ticketing/event-question-validator.js +9 -10
  48. package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.d.ts +2 -2
  49. package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.js +3 -2
  50. package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.d.ts +1 -1
  51. package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.d.ts +3 -3
  52. package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +5 -5
  53. package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.d.ts +1 -1
  54. package/dist/cosmos-db/documents/ticketing/event-ticket-qr-type.enum.d.ts +3 -3
  55. package/dist/cosmos-db/documents/ticketing/event-ticket-qr-type.enum.js +3 -3
  56. package/dist/cosmos-db/documents/ticketing/event-voucher-create.dto.d.ts +2 -2
  57. package/dist/cosmos-db/documents/ticketing/event-voucher-filter.doc.d.ts +1 -1
  58. package/dist/cosmos-db/documents/token/nft-details.doc.d.ts +3 -3
  59. package/dist/cosmos-db/documents/token/nft-details.doc.js +4 -4
  60. package/dist/cosmos-db/documents/token/nft-metadata-attributes.d.ts +1 -1
  61. package/dist/cosmos-db/documents/token/nft-metadata-attributes.js +3 -3
  62. package/dist/cosmos-db/documents/user/user-deposit.d.ts +1 -1
  63. package/dist/cosmos-db/documents/user/user-favorite.doc.d.ts +1 -1
  64. package/dist/cosmos-db/documents/user/user-favorite.doc.js +2 -2
  65. package/dist/cosmos-db/documents/user/user-settings.doc.d.ts +1 -1
  66. package/dist/entities/airdrop/airdrop.dto.d.ts +1 -1
  67. package/dist/entities/notification-data/device-tag-storage.doc.d.ts +1 -1
  68. package/dist/entities/notification-data/mobile-device.doc.d.ts +1 -1
  69. package/dist/entities/notification-data/push-notification.doc.d.ts +1 -1
  70. package/dist/entities/staking-data/staking-explore.d.ts +2 -2
  71. package/dist/entities/staking-data/staking-explore.js +3 -2
  72. package/dist/entities/transactions/transaction-create.d.ts +1 -1
  73. package/dist/entities/transactions/transaction-create.js +2 -2
  74. package/dist/entities/transactions/transaction-process-status.d.ts +1 -1
  75. package/dist/entities/transactions/transaction-process-status.js +2 -2
  76. package/dist/entities/transactions/transaction-send-result.d.ts +1 -1
  77. package/dist/entities/transactions/transaction-send-result.js +2 -2
  78. package/dist/entities/web2user-data/web2user-wallet.d.ts +1 -1
  79. package/dist/index.d.ts +4 -0
  80. package/dist/index.js +4 -0
  81. package/dist/requests/bober-battle/analytics.d.ts +2 -2
  82. package/dist/requests/bober-battle/analytics.js +5 -5
  83. package/dist/requests/collection/collection-mint-profile.filter.d.ts +1 -1
  84. package/dist/requests/collection/collection-mint-profile.filter.js +1 -1
  85. package/dist/requests/collection/collection-offers.filter.d.ts +1 -1
  86. package/dist/requests/collection/collection-profile.filter.d.ts +1 -1
  87. package/dist/requests/collection/collection-profile.filter.js +11 -9
  88. package/dist/requests/lending/lending-market-profile.filter.d.ts +1 -1
  89. package/dist/requests/nft-activity-data/nft-activity-data.d.ts +5 -5
  90. package/dist/requests/nft-activity-data/user-stats.d.ts +2 -2
  91. package/dist/requests/nft-activity-data/user-stats.js +4 -3
  92. package/dist/requests/nft-data/nft-doc.filter.d.ts +1 -1
  93. package/dist/requests/nft-data/nft-doc.filter.js +11 -9
  94. package/dist/requests/nft-data/nft-offer-doc.filter.d.ts +1 -1
  95. package/package.json +1 -1
@@ -10,7 +10,7 @@ export declare class EventGuestAnswerDoc {
10
10
  createdAt: number;
11
11
  ttl?: number;
12
12
  pk: string;
13
- constructor(partial: Partial<EventGuestAnswerDoc>);
13
+ constructor(props?: Partial<EventGuestAnswerDoc>);
14
14
  static create(data: Omit<EventGuestAnswerDoc, 'id' | 'dataType' | 'createdAt' | 'pk'>): EventGuestAnswerDoc;
15
15
  }
16
16
  declare type EventQuestionAnswerDto_base = Pick<EventGuestAnswerDoc, "questionId" | "answer">;
@@ -16,11 +16,11 @@ const uuid_1 = require("uuid");
16
16
  const event_question_doc_1 = require("./event-question.doc");
17
17
  const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
18
18
  class EventGuestAnswerDoc {
19
- constructor(partial) {
19
+ constructor(props) {
20
20
  this.dataType = ticketing_data_type_enum_1.TicketingDataType.EVENT_QUESTION_ANSWER;
21
21
  this.id = (0, uuid_1.v4)();
22
22
  this.createdAt = Math.floor(Date.now() / 1000);
23
- Object.assign(this, partial);
23
+ Object.assign(this, props);
24
24
  this.id = `${this.eventId}-${this.questionId}-${this.wallet}`;
25
25
  this.pk = this.eventId;
26
26
  }
@@ -1,4 +1,4 @@
1
1
  import { EventQuestionDoc } from './event-question.doc';
2
2
  export declare class EventQuestionValidator {
3
- static validate(question: Partial<EventQuestionDoc>): void;
3
+ static validate(props?: Partial<EventQuestionDoc>): void;
4
4
  }
@@ -4,27 +4,26 @@ exports.EventQuestionValidator = void 0;
4
4
  const common_1 = require("@nestjs/common");
5
5
  const event_question_answer_type_enum_1 = require("../../../enums/event-question-answer-type.enum");
6
6
  class EventQuestionValidator {
7
- static validate(question) {
7
+ static validate(props) {
8
8
  const multipleChoiceTypes = [
9
9
  event_question_answer_type_enum_1.EventQuestionAnswerType.RADIO,
10
10
  event_question_answer_type_enum_1.EventQuestionAnswerType.DROPDOWN,
11
11
  event_question_answer_type_enum_1.EventQuestionAnswerType.CHECKBOX,
12
12
  ];
13
13
  // Check for minimum answers for certain types
14
- if (question.answerType &&
15
- multipleChoiceTypes.includes(question.answerType)) {
16
- if (!question.answers || question.answers.length < 2) {
17
- throw new common_1.BadRequestException(`[${question.answerType}] questions require at least 2 answer options`);
14
+ if (props?.answerType && multipleChoiceTypes.includes(props.answerType)) {
15
+ if (!props.answers || props.answers.length < 2) {
16
+ throw new common_1.BadRequestException(`[${props.answerType}] questions require at least 2 answer options`);
18
17
  }
19
18
  }
20
19
  // Ensure answers array is empty for non-multiple choice questions
21
- else if (question.answers && question.answers.length > 0) {
22
- throw new common_1.BadRequestException(`[${question.answerType}] questions should not have predefined answers`);
20
+ else if (props?.answers && props.answers.length > 0) {
21
+ throw new common_1.BadRequestException(`[${props.answerType}] questions should not have predefined answers`);
23
22
  }
24
23
  // Check for duplicate answers
25
- if (question.answers) {
26
- const uniqueAnswers = new Set(question.answers);
27
- if (uniqueAnswers.size !== question.answers.length) {
24
+ if (props?.answers) {
25
+ const uniqueAnswers = new Set(props.answers);
26
+ if (uniqueAnswers.size !== props.answers.length) {
28
27
  throw new common_1.BadRequestException('Duplicate answers are not allowed');
29
28
  }
30
29
  }
@@ -1,7 +1,7 @@
1
- import { EventVoucherDoc } from './event-voucher.doc';
2
1
  import { RewardDetails } from './event-referral-config.doc';
2
+ import { ShortVoucherDoc } from '../short/short-voucher.doc';
3
3
  export declare class EventReferralConfigCreateDto {
4
- appliedVoucher?: Partial<EventVoucherDoc>;
4
+ appliedVoucher?: ShortVoucherDoc;
5
5
  rewardDetails?: RewardDetails;
6
6
  isSelfService: boolean;
7
7
  isActive: boolean;
@@ -15,6 +15,7 @@ const class_transformer_1 = require("class-transformer");
15
15
  const class_validator_1 = require("class-validator");
16
16
  const event_voucher_doc_1 = require("./event-voucher.doc");
17
17
  const event_referral_config_doc_1 = require("./event-referral-config.doc");
18
+ const short_voucher_doc_1 = require("../short/short-voucher.doc");
18
19
  class EventReferralConfigCreateDto {
19
20
  }
20
21
  exports.EventReferralConfigCreateDto = EventReferralConfigCreateDto;
@@ -26,8 +27,8 @@ __decorate([
26
27
  }),
27
28
  (0, class_validator_1.IsOptional)(),
28
29
  (0, class_validator_1.ValidateNested)(),
29
- (0, class_transformer_1.Type)(() => event_voucher_doc_1.EventVoucherDoc),
30
- __metadata("design:type", Object)
30
+ (0, class_transformer_1.Type)(() => short_voucher_doc_1.ShortVoucherDoc),
31
+ __metadata("design:type", short_voucher_doc_1.ShortVoucherDoc)
31
32
  ], EventReferralConfigCreateDto.prototype, "appliedVoucher", void 0);
32
33
  __decorate([
33
34
  (0, swagger_1.ApiProperty)({
@@ -19,6 +19,6 @@ export declare class EventReferralConfigFilter extends CosmosDbGenericFilter<Eve
19
19
  eventId?: string[];
20
20
  };
21
21
  includeCount?: boolean;
22
- constructor(props: Partial<EventReferralConfigFilter>);
22
+ constructor(props?: Partial<EventReferralConfigFilter>);
23
23
  private setPk;
24
24
  }
@@ -1,18 +1,18 @@
1
- import { EventVoucherDoc } from './event-voucher.doc';
2
1
  import { TicketingDataType } from '../../../enums/ticketing-data-type.enum';
2
+ import { ShortVoucherDoc } from '../short/short-voucher.doc';
3
3
  export declare class RewardDetails {
4
4
  rewardType: 'voucher' | 'invitation' | 'other';
5
5
  conditionType: 'ticketsSoldCount' | 'revenueCount';
6
6
  condition: number;
7
7
  currency?: string;
8
- voucherInfo?: Partial<EventVoucherDoc>;
8
+ voucherInfo?: ShortVoucherDoc;
9
9
  constructor(props?: Partial<RewardDetails>);
10
10
  }
11
11
  export declare class EventReferralConfigDoc {
12
12
  dataType: TicketingDataType;
13
13
  id: string;
14
14
  eventId: string;
15
- appliedVoucher?: Partial<EventVoucherDoc>;
15
+ appliedVoucher?: ShortVoucherDoc;
16
16
  rewardDetails?: RewardDetails;
17
17
  isSelfService: boolean;
18
18
  isActive: boolean;
@@ -13,9 +13,9 @@ exports.EventReferralConfigDoc = exports.RewardDetails = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const uuid_1 = require("uuid");
16
- const event_voucher_doc_1 = require("./event-voucher.doc"); // Assume VoucherDoc is in the relevant module
17
16
  const event_referral_config_doc_1 = require("../../../enums/event-referral-config.doc");
18
17
  const ticketing_data_type_enum_1 = require("../../../enums/ticketing-data-type.enum");
18
+ const short_voucher_doc_1 = require("../short/short-voucher.doc");
19
19
  class RewardDetails {
20
20
  constructor(props) {
21
21
  Object.assign(this, props);
@@ -57,9 +57,9 @@ __decorate([
57
57
  (0, swagger_1.ApiProperty)({
58
58
  required: false,
59
59
  description: 'Voucher details that will be issued when the condition is met.',
60
- type: event_voucher_doc_1.EventVoucherDoc,
60
+ type: short_voucher_doc_1.ShortVoucherDoc,
61
61
  }),
62
- __metadata("design:type", Object)
62
+ __metadata("design:type", short_voucher_doc_1.ShortVoucherDoc)
63
63
  ], RewardDetails.prototype, "voucherInfo", void 0);
64
64
  class EventReferralConfigDoc {
65
65
  constructor(props) {
@@ -99,10 +99,10 @@ __decorate([
99
99
  __decorate([
100
100
  (0, swagger_1.ApiProperty)({
101
101
  description: 'Indicates if a voucher should be automatically applied as a discount when this referral code is used.',
102
- type: event_voucher_doc_1.EventVoucherDoc,
102
+ type: short_voucher_doc_1.ShortVoucherDoc,
103
103
  required: false,
104
104
  }),
105
- __metadata("design:type", Object)
105
+ __metadata("design:type", short_voucher_doc_1.ShortVoucherDoc)
106
106
  ], EventReferralConfigDoc.prototype, "appliedVoucher", void 0);
107
107
  __decorate([
108
108
  (0, swagger_1.ApiProperty)({
@@ -27,6 +27,6 @@ export declare class EventReferralFilter extends CosmosDbGenericFilter<EventRefe
27
27
  referralConfigId?: string;
28
28
  };
29
29
  includeCount?: boolean;
30
- constructor(props: Partial<EventReferralFilter>);
30
+ constructor(props?: Partial<EventReferralFilter>);
31
31
  private setPk;
32
32
  }
@@ -1,9 +1,9 @@
1
+ import { EventScanMessage, EventScanStatus } from '../../../enums/event-scan-status.enum';
2
+ import { EventTicketQrType } from '../../../enums/ticketing-visibility.enum';
3
+ import { NftDocHydrated } from '../token/nft-details.doc';
1
4
  import { EventGuestProfile } from './event-guest.doc';
2
5
  import { EventInvitation } from './event-invitation.doc';
3
- import { EventScanStatus, EventScanMessage } from '../../../enums/event-scan-status.enum';
4
6
  import { TicketProfileSummary } from './event-ticket-profile.doc';
5
- import { NftDocHydrated } from '../token/nft-details.doc';
6
- import { EventTicketQrType } from '../../../enums/ticketing-visibility.enum';
7
7
  export declare class TicketSelection {
8
8
  identifier: string;
9
9
  ticketId: string;
@@ -12,12 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.BadgeDecryptedData = exports.EventCheckInQR = exports.TicketsType = exports.QRBody = exports.TicketValidationResult = exports.TicketSelection = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
+ const event_scan_status_enum_1 = require("../../../enums/event-scan-status.enum");
16
+ const ticketing_visibility_enum_1 = require("../../../enums/ticketing-visibility.enum");
17
+ const nft_details_doc_1 = require("../token/nft-details.doc");
15
18
  const event_guest_doc_1 = require("./event-guest.doc");
16
19
  const event_invitation_doc_1 = require("./event-invitation.doc");
17
- const event_scan_status_enum_1 = require("../../../enums/event-scan-status.enum");
18
20
  const event_ticket_profile_doc_1 = require("./event-ticket-profile.doc");
19
- const nft_details_doc_1 = require("../token/nft-details.doc");
20
- const ticketing_visibility_enum_1 = require("../../../enums/ticketing-visibility.enum");
21
21
  class TicketSelection {
22
22
  }
23
23
  exports.TicketSelection = TicketSelection;
@@ -1,6 +1,6 @@
1
1
  import { EventVoucherDoc } from './event-voucher.doc';
2
2
  import { VoucherType } from '../../../enums/voucher-type.enum';
3
- declare type EventVoucherCreateDto_base = Partial<Omit<EventVoucherDoc, "id" | "dataType" | "createdAt" | "usedCount" | "createdBy">>;
3
+ declare type EventVoucherCreateDto_base = Partial<Omit<EventVoucherDoc, "id" | "dataType" | "usedCount" | "createdAt" | "createdBy">>;
4
4
  export declare type EventVoucherCreateDto = EventVoucherCreateDto_base & {
5
5
  code?: string;
6
6
  type: VoucherType;
@@ -13,7 +13,7 @@ export declare type EventVoucherCreateDto = EventVoucherCreateDto_base & {
13
13
  endDate?: number;
14
14
  isActive?: boolean;
15
15
  };
16
- declare const EventVoucherCreateDtoNest_base: import("@nestjs/common").Type<Partial<Omit<EventVoucherDoc, "id" | "dataType" | "createdAt" | "usedCount" | "createdBy">>>;
16
+ declare const EventVoucherCreateDtoNest_base: import("@nestjs/common").Type<Partial<Omit<EventVoucherDoc, "id" | "dataType" | "usedCount" | "createdAt" | "createdBy">>>;
17
17
  export declare class EventVoucherCreateDtoNest extends EventVoucherCreateDtoNest_base {
18
18
  code?: string;
19
19
  type: VoucherType;
@@ -29,6 +29,6 @@ export declare class EventVoucherFilter extends CosmosDbGenericFilter<EventVouch
29
29
  eventId?: string[];
30
30
  };
31
31
  includeCount?: boolean;
32
- constructor(props: Partial<EventVoucherFilter>);
32
+ constructor(props?: Partial<EventVoucherFilter>);
33
33
  private setPk;
34
34
  }
@@ -1,9 +1,9 @@
1
+ import { OwnerDto } from '../../../common/owner.dto';
2
+ import { ActivityChain, EsdtTokenSubType, EsdtTokenType } from '../../../enums/common.enum';
1
3
  import { TokenDataType } from '../../../enums/token-data.enum';
4
+ import { CollectionProfileDoc } from '../collection/profile';
2
5
  import { NftMetadata } from './nft-metadata';
3
6
  import { NftSaleInfo, NftSaleInfoHydrated } from './nft-sale-info';
4
- import { ActivityChain, EsdtTokenSubType, EsdtTokenType } from '../../../enums/common.enum';
5
- import { CollectionProfileDoc } from '../collection/profile';
6
- import { OwnerDto } from '../../../common/owner.dto';
7
7
  export declare class NFTEventData {
8
8
  eventId: string;
9
9
  ticketId: string;
@@ -10,13 +10,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.NftDocHydrated = exports.ExtraProperties = exports.NftDoc = exports.NftMedia = exports.NFTEventData = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const owner_dto_1 = require("../../../common/owner.dto");
15
+ const common_enum_1 = require("../../../enums/common.enum");
13
16
  const token_data_enum_1 = require("../../../enums/token-data.enum");
17
+ const profile_1 = require("../collection/profile");
14
18
  const nft_metadata_1 = require("./nft-metadata");
15
19
  const nft_sale_info_1 = require("./nft-sale-info");
16
- const common_enum_1 = require("../../../enums/common.enum");
17
- const swagger_1 = require("@nestjs/swagger");
18
- const profile_1 = require("../collection/profile");
19
- const owner_dto_1 = require("../../../common/owner.dto");
20
20
  // Sale: Check Last Owner nfts from GuestDoc [1,2,3] -> 0 -> Delete GuestDoc > 0: Edit GuestDoc nftIds [1,2]
21
21
  // New Owner: Get GuestDoc -> YES -> nfts insert new ID [0,3] -> NO -> Empty Guest Doc with nfts insert [3]
22
22
  class NFTEventData {
@@ -1,5 +1,5 @@
1
1
  export declare class NftMetadataAttributes {
2
2
  trait_type: string;
3
3
  value: string;
4
- constructor(json: Partial<NftMetadataAttributes>);
4
+ constructor(props?: Partial<NftMetadataAttributes>);
5
5
  }
@@ -12,9 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.NftMetadataAttributes = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  class NftMetadataAttributes {
15
- constructor(json) {
16
- this.trait_type = json?.trait_type?.toString().trim() ?? '';
17
- this.value = json?.value?.toString().trim() ?? '';
15
+ constructor(props) {
16
+ this.trait_type = props?.trait_type?.toString().trim() ?? '';
17
+ this.value = props?.value?.toString().trim() ?? '';
18
18
  }
19
19
  }
20
20
  exports.NftMetadataAttributes = NftMetadataAttributes;
@@ -4,5 +4,5 @@ export declare class UserDeposit {
4
4
  paymentToken: string;
5
5
  paymentTokenNonce: number;
6
6
  usdPrice: number;
7
- constructor(props: Partial<UserDeposit>);
7
+ constructor(props?: Partial<UserDeposit>);
8
8
  }
@@ -10,7 +10,7 @@ export declare class UserFavorite {
10
10
  timestamp: number;
11
11
  id: string;
12
12
  _ts: number;
13
- constructor(init: Partial<UserFavorite>);
13
+ constructor(props?: Partial<UserFavorite>);
14
14
  }
15
15
  export declare class UserFavoriteResponseDto {
16
16
  isFollowed: boolean;
@@ -14,9 +14,9 @@ const swagger_1 = require("@nestjs/swagger");
14
14
  const user_data_type_enum_1 = require("../../../enums/user-data-type.enum");
15
15
  const user_favorite_type_enum_1 = require("../../../enums/user-favorite-type.enum");
16
16
  class UserFavorite {
17
- constructor(init) {
17
+ constructor(props) {
18
18
  this.dataType = user_data_type_enum_1.UserDataType.UserFavorite;
19
- Object.assign(this, init);
19
+ Object.assign(this, props);
20
20
  this.timestamp = Math.floor(Date.now() / 1000);
21
21
  this.id = `${this.address}-${this.type}`;
22
22
  switch (this.type) {
@@ -51,5 +51,5 @@ export declare class UserSettingsDoc {
51
51
  notificationPreferences: UserNotificationPreferences;
52
52
  id: string;
53
53
  _ts?: number;
54
- constructor(props: Partial<UserSettingsDoc>);
54
+ constructor(props?: Partial<UserSettingsDoc>);
55
55
  }
@@ -3,7 +3,7 @@ declare class AirdropDtoBase {
3
3
  tokenAllocation: number;
4
4
  totalScore: number;
5
5
  rank: number;
6
- constructor(props: Partial<AirdropDtoBase>);
6
+ constructor(props?: Partial<AirdropDtoBase>);
7
7
  }
8
8
  export declare class AirdropDto extends AirdropDtoBase {
9
9
  wallet: string;
@@ -11,5 +11,5 @@ export declare class DeviceTagStorageDoc {
11
11
  id?: string;
12
12
  pk?: string;
13
13
  _ts?: number;
14
- constructor(props: Partial<DeviceTagStorageDoc>);
14
+ constructor(props?: Partial<DeviceTagStorageDoc>);
15
15
  }
@@ -16,5 +16,5 @@ export declare class MobileDeviceDoc {
16
16
  id?: string;
17
17
  pk?: string;
18
18
  _ts?: number;
19
- constructor(props: Partial<MobileDeviceDoc>);
19
+ constructor(props?: Partial<MobileDeviceDoc>);
20
20
  }
@@ -36,7 +36,7 @@ export declare class PushNotificationDoc {
36
36
  id?: string;
37
37
  pk?: string;
38
38
  _ts?: number;
39
- constructor(props: Partial<PushNotificationDoc>);
39
+ constructor(props?: Partial<PushNotificationDoc>);
40
40
  }
41
41
  export declare class PushNotificationResponse {
42
42
  resources: PushNotificationDoc[];
@@ -1,4 +1,4 @@
1
- import { CollectionProfileDoc } from '../../cosmos-db/documents/collection/profile';
1
+ import { ShortCollectionDoc } from '../../cosmos-db/documents/short/short-collection.doc';
2
2
  export declare class StakingExploreDto {
3
3
  collection: string;
4
4
  activePools: number;
@@ -7,5 +7,5 @@ export declare class StakingExploreDto {
7
7
  rewardTickers: string[];
8
8
  }
9
9
  export declare class StakingExploreDtoHydrated extends StakingExploreDto {
10
- collectionInfo: Partial<CollectionProfileDoc>;
10
+ collectionInfo: ShortCollectionDoc;
11
11
  }
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.StakingExploreDtoHydrated = exports.StakingExploreDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
+ const short_collection_doc_1 = require("../../cosmos-db/documents/short/short-collection.doc");
14
15
  class StakingExploreDto {
15
16
  }
16
17
  exports.StakingExploreDto = StakingExploreDto;
@@ -38,6 +39,6 @@ class StakingExploreDtoHydrated extends StakingExploreDto {
38
39
  }
39
40
  exports.StakingExploreDtoHydrated = StakingExploreDtoHydrated;
40
41
  __decorate([
41
- (0, swagger_1.ApiProperty)({ type: () => swagger_1.PartialType }),
42
- __metadata("design:type", Object)
42
+ (0, swagger_1.ApiProperty)({ type: () => short_collection_doc_1.ShortCollectionDoc }),
43
+ __metadata("design:type", short_collection_doc_1.ShortCollectionDoc)
43
44
  ], StakingExploreDtoHydrated.prototype, "collectionInfo", void 0);
@@ -1,5 +1,5 @@
1
1
  export declare class TransactionCreate {
2
- constructor(init?: Partial<TransactionCreate>);
2
+ constructor(props?: Partial<TransactionCreate>);
3
3
  chainId: string;
4
4
  data: string;
5
5
  gasLimit: number;
@@ -13,7 +13,7 @@ exports.TransactionCreate = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  class TransactionCreate {
16
- constructor(init) {
16
+ constructor(props) {
17
17
  this.data = '';
18
18
  this.gasLimit = 0;
19
19
  this.receiverUsername = undefined;
@@ -22,7 +22,7 @@ class TransactionCreate {
22
22
  this.options = undefined;
23
23
  this.guardian = undefined;
24
24
  this.guardianSignature = undefined;
25
- Object.assign(this, init);
25
+ Object.assign(this, props);
26
26
  }
27
27
  }
28
28
  exports.TransactionCreate = TransactionCreate;
@@ -1,6 +1,6 @@
1
1
  import { TransactionStatus } from '../../enums/transaction-status.enum';
2
2
  export declare class TransactionProcessStatus {
3
- constructor(init?: Partial<TransactionProcessStatus>);
3
+ constructor(props?: Partial<TransactionProcessStatus>);
4
4
  reason: string;
5
5
  status: TransactionStatus;
6
6
  }
@@ -14,9 +14,9 @@ const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const transaction_status_enum_1 = require("../../enums/transaction-status.enum");
16
16
  class TransactionProcessStatus {
17
- constructor(init) {
17
+ constructor(props) {
18
18
  this.reason = '';
19
- Object.assign(this, init);
19
+ Object.assign(this, props);
20
20
  }
21
21
  }
22
22
  exports.TransactionProcessStatus = TransactionProcessStatus;
@@ -1,6 +1,6 @@
1
1
  import { TransactionStatus } from '../../enums/transaction-status.enum';
2
2
  export declare class TransactionSendResult {
3
- constructor(init?: Partial<TransactionSendResult>);
3
+ constructor(props?: Partial<TransactionSendResult>);
4
4
  receiver: string;
5
5
  receiverShard: number;
6
6
  sender: string;
@@ -14,12 +14,12 @@ const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const transaction_status_enum_1 = require("../../enums/transaction-status.enum");
16
16
  class TransactionSendResult {
17
- constructor(init) {
17
+ constructor(props) {
18
18
  this.receiver = '';
19
19
  this.receiverShard = 0;
20
20
  this.sender = '';
21
21
  this.senderShard = 0;
22
- Object.assign(this, init);
22
+ Object.assign(this, props);
23
23
  }
24
24
  }
25
25
  exports.TransactionSendResult = TransactionSendResult;
@@ -9,5 +9,5 @@ export declare class Web2UserWallet {
9
9
  walletClientType: WalletClientType;
10
10
  recoveryMethod?: string;
11
11
  id?: string;
12
- constructor(props: Partial<Web2UserWallet>);
12
+ constructor(props?: Partial<Web2UserWallet>);
13
13
  }
package/dist/index.d.ts CHANGED
@@ -42,6 +42,10 @@ export * from './cosmos-db/documents/lending/lending-market-profile.doc';
42
42
  export * from './cosmos-db/documents/lending/lending-nft-attributes';
43
43
  export * from './cosmos-db/documents/lending/lending-token-emode-profile.doc';
44
44
  export * from './cosmos-db/documents/notification/notification.doc';
45
+ export * from './cosmos-db/documents/short/short-collection.doc';
46
+ export * from './cosmos-db/documents/short/short-creator.doc';
47
+ export * from './cosmos-db/documents/short/short-nft.doc';
48
+ export * from './cosmos-db/documents/short/short-voucher.doc';
45
49
  export * from './cosmos-db/documents/staking/staking-delegator-doc';
46
50
  export * from './cosmos-db/documents/staking/staking-pool-doc';
47
51
  export * from './cosmos-db/documents/ticketing/discount-code-validation-response';
package/dist/index.js CHANGED
@@ -58,6 +58,10 @@ __exportStar(require("./cosmos-db/documents/lending/lending-market-profile.doc")
58
58
  __exportStar(require("./cosmos-db/documents/lending/lending-nft-attributes"), exports);
59
59
  __exportStar(require("./cosmos-db/documents/lending/lending-token-emode-profile.doc"), exports);
60
60
  __exportStar(require("./cosmos-db/documents/notification/notification.doc"), exports);
61
+ __exportStar(require("./cosmos-db/documents/short/short-collection.doc"), exports);
62
+ __exportStar(require("./cosmos-db/documents/short/short-creator.doc"), exports);
63
+ __exportStar(require("./cosmos-db/documents/short/short-nft.doc"), exports);
64
+ __exportStar(require("./cosmos-db/documents/short/short-voucher.doc"), exports);
61
65
  __exportStar(require("./cosmos-db/documents/staking/staking-delegator-doc"), exports);
62
66
  __exportStar(require("./cosmos-db/documents/staking/staking-pool-doc"), exports);
63
67
  __exportStar(require("./cosmos-db/documents/ticketing/discount-code-validation-response"), exports);
@@ -9,7 +9,7 @@ export declare class BoberBattleLeaderboardDto {
9
9
  TotalGames: number;
10
10
  TotalVolume: number;
11
11
  TotalVolumeUSD: number;
12
- constructor(data: Partial<BoberBattleLeaderboardDto>);
12
+ constructor(props?: Partial<BoberBattleLeaderboardDto>);
13
13
  }
14
14
  export declare class BoberBattleUserDto extends BoberBattleLeaderboardDto {
15
15
  Address: string;
@@ -24,7 +24,7 @@ export declare class BoberBattleUserDto extends BoberBattleLeaderboardDto {
24
24
  GamesWon: number;
25
25
  GamesLost: number;
26
26
  WinRate: number;
27
- constructor(data: Partial<BoberBattleUserDto>);
27
+ constructor(props?: Partial<BoberBattleUserDto>);
28
28
  }
29
29
  export declare class BoberBattleUserDtoHydrated extends BoberBattleUserDto {
30
30
  wallet: Wallet;
@@ -2,15 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BoberBattleUserDtoHydrated = exports.BoberBattleUserDto = exports.BoberBattleLeaderboardDto = void 0;
4
4
  class BoberBattleLeaderboardDto {
5
- constructor(data) {
6
- Object.assign(this, data);
5
+ constructor(props) {
6
+ Object.assign(this, props);
7
7
  }
8
8
  }
9
9
  exports.BoberBattleLeaderboardDto = BoberBattleLeaderboardDto;
10
10
  class BoberBattleUserDto extends BoberBattleLeaderboardDto {
11
- constructor(data) {
12
- super(data);
13
- Object.assign(this, data);
11
+ constructor(props) {
12
+ super(props);
13
+ Object.assign(this, props);
14
14
  }
15
15
  }
16
16
  exports.BoberBattleUserDto = BoberBattleUserDto;
@@ -16,5 +16,5 @@ export declare class CollectionMintProfileFilter extends CosmosDbGenericFilter<C
16
16
  };
17
17
  orderBy: "startTime desc"[];
18
18
  strictSelect?: boolean;
19
- constructor(props: Partial<CollectionMintProfileFilter>);
19
+ constructor(props?: Partial<CollectionMintProfileFilter>);
20
20
  }
@@ -6,7 +6,7 @@ const cosmos_db_generic_filter_1 = require("../../cosmos-db/cosmos-db-generic-fi
6
6
  const collection_enum_1 = require("../../enums/collection.enum");
7
7
  class CollectionMintProfileFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter {
8
8
  constructor(props) {
9
- if (!props?.filters?.range) {
9
+ if (props && !props?.filters?.range) {
10
10
  // default range filter to get only active mints
11
11
  props.filters = {
12
12
  ...props.filters,
@@ -25,5 +25,5 @@ export declare class CollectionOffersFilter extends CosmosDbGenericFilter<Global
25
25
  isActive?: boolean;
26
26
  withAttributes?: boolean;
27
27
  };
28
- constructor(props: Partial<CollectionOffersFilter>);
28
+ constructor(props?: Partial<CollectionOffersFilter>);
29
29
  }
@@ -16,5 +16,5 @@ export declare class CollectionProfileFilter extends CosmosDbGenericFilter<Colle
16
16
  range?: RangeFilter<CollectionProfileDoc>[];
17
17
  };
18
18
  strictSelect?: boolean;
19
- constructor(props: Partial<CollectionProfileFilter>);
19
+ constructor(props?: Partial<CollectionProfileFilter>);
20
20
  }
@@ -11,15 +11,17 @@ class CollectionProfileFilter extends cosmos_db_generic_filter_1.CosmosDbGeneric
11
11
  dataType: collection_enum_1.CollectionDataType.CollectionProfile,
12
12
  };
13
13
  this.strictSelect = false;
14
- this.filters = {
15
- ...this.filters,
16
- ...props?.filters,
17
- chain: props.filters?.chain &&
18
- props.filters.chain.length === 1 &&
19
- props.filters.chain[0] === common_enum_1.ActivityChain.MVX
20
- ? undefined
21
- : props.filters?.chain,
22
- };
14
+ if (props) {
15
+ this.filters = {
16
+ ...this.filters,
17
+ ...props?.filters,
18
+ chain: props.filters?.chain &&
19
+ props.filters.chain.length === 1 &&
20
+ props.filters.chain[0] === common_enum_1.ActivityChain.MVX
21
+ ? undefined
22
+ : props.filters?.chain,
23
+ };
24
+ }
23
25
  // Assign other properties
24
26
  const { filters: _, ...otherProps } = props;
25
27
  Object.assign(this, otherProps);
@@ -38,7 +38,7 @@ export declare class LendingMarketProfileFilter extends CosmosDbGenericFilter<Le
38
38
  oraclePrice: boolean;
39
39
  participants: boolean;
40
40
  };
41
- constructor(props: Partial<LendingMarketProfileFilter>);
41
+ constructor(props?: Partial<LendingMarketProfileFilter>);
42
42
  private applySelectPropertyLogic;
43
43
  private getDefaultProperties;
44
44
  }