@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.
- package/dist/common/kusto/lending-overall-stats.d.ts +1 -1
- package/dist/common/kusto/lending-overall-stats.js +2 -2
- package/dist/common/tokenPayent.d.ts +1 -1
- package/dist/common/tokenPayent.js +2 -2
- package/dist/cosmos-db/documents/activity/nft-activity.doc.d.ts +3 -3
- package/dist/cosmos-db/documents/activity/nft-activity.doc.js +6 -6
- package/dist/cosmos-db/documents/chat/chat-message.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/chat/user-block.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/chat/user-conversation.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +1 -1
- package/dist/cosmos-db/documents/collection/collectionConfig.js +2 -2
- package/dist/cosmos-db/documents/collection/globalOffer.d.ts +4 -4
- package/dist/cosmos-db/documents/collection/globalOffer.js +1 -1
- package/dist/cosmos-db/documents/collection/mintProfile.d.ts +4 -4
- package/dist/cosmos-db/documents/collection/stats.d.ts +3 -3
- package/dist/cosmos-db/documents/collection/stats.js +4 -4
- package/dist/cosmos-db/documents/external-payment/external-payment.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/external-payment/external-payment.doc.js +2 -2
- package/dist/cosmos-db/documents/lending/lending-account-profile.d.ts +1 -1
- package/dist/cosmos-db/documents/lending/lending-account-profile.js +2 -2
- package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +2 -2
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +2 -2
- package/dist/cosmos-db/documents/lending/lending-nft-attributes.d.ts +1 -1
- package/dist/cosmos-db/documents/lending/lending-nft-attributes.js +2 -2
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +2 -2
- package/dist/cosmos-db/documents/notification/notification.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/notification/notification.doc.js +2 -2
- package/dist/cosmos-db/documents/short/short-collection.doc.d.ts +7 -0
- package/dist/cosmos-db/documents/short/short-collection.doc.js +22 -0
- package/dist/cosmos-db/documents/short/short-creator.doc.d.ts +7 -0
- package/dist/cosmos-db/documents/short/short-creator.doc.js +14 -0
- package/dist/cosmos-db/documents/short/short-nft.doc.d.ts +7 -0
- package/dist/cosmos-db/documents/short/short-nft.doc.js +18 -0
- package/dist/cosmos-db/documents/short/short-voucher.doc.d.ts +7 -0
- package/dist/cosmos-db/documents/short/short-voucher.doc.js +14 -0
- package/dist/cosmos-db/documents/staking/staking-pool-doc.d.ts +4 -4
- package/dist/cosmos-db/documents/staking/staking-pool-doc.js +8 -8
- package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-question-answer.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-question-answer.doc.js +2 -2
- package/dist/cosmos-db/documents/ticketing/event-question-validator.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-question-validator.js +9 -10
- package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.d.ts +2 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.js +3 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.d.ts +3 -3
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +5 -5
- package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/ticketing/event-ticket-qr-type.enum.d.ts +3 -3
- package/dist/cosmos-db/documents/ticketing/event-ticket-qr-type.enum.js +3 -3
- package/dist/cosmos-db/documents/ticketing/event-voucher-create.dto.d.ts +2 -2
- package/dist/cosmos-db/documents/ticketing/event-voucher-filter.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/token/nft-details.doc.d.ts +3 -3
- package/dist/cosmos-db/documents/token/nft-details.doc.js +4 -4
- package/dist/cosmos-db/documents/token/nft-metadata-attributes.d.ts +1 -1
- package/dist/cosmos-db/documents/token/nft-metadata-attributes.js +3 -3
- package/dist/cosmos-db/documents/user/user-deposit.d.ts +1 -1
- package/dist/cosmos-db/documents/user/user-favorite.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/user/user-favorite.doc.js +2 -2
- package/dist/cosmos-db/documents/user/user-settings.doc.d.ts +1 -1
- package/dist/entities/airdrop/airdrop.dto.d.ts +1 -1
- package/dist/entities/notification-data/device-tag-storage.doc.d.ts +1 -1
- package/dist/entities/notification-data/mobile-device.doc.d.ts +1 -1
- package/dist/entities/notification-data/push-notification.doc.d.ts +1 -1
- package/dist/entities/staking-data/staking-explore.d.ts +2 -2
- package/dist/entities/staking-data/staking-explore.js +3 -2
- package/dist/entities/transactions/transaction-create.d.ts +1 -1
- package/dist/entities/transactions/transaction-create.js +2 -2
- package/dist/entities/transactions/transaction-process-status.d.ts +1 -1
- package/dist/entities/transactions/transaction-process-status.js +2 -2
- package/dist/entities/transactions/transaction-send-result.d.ts +1 -1
- package/dist/entities/transactions/transaction-send-result.js +2 -2
- package/dist/entities/web2user-data/web2user-wallet.d.ts +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/requests/bober-battle/analytics.d.ts +2 -2
- package/dist/requests/bober-battle/analytics.js +5 -5
- package/dist/requests/collection/collection-mint-profile.filter.d.ts +1 -1
- package/dist/requests/collection/collection-mint-profile.filter.js +1 -1
- package/dist/requests/collection/collection-offers.filter.d.ts +1 -1
- package/dist/requests/collection/collection-profile.filter.d.ts +1 -1
- package/dist/requests/collection/collection-profile.filter.js +11 -9
- package/dist/requests/lending/lending-market-profile.filter.d.ts +1 -1
- package/dist/requests/nft-activity-data/nft-activity-data.d.ts +5 -5
- package/dist/requests/nft-activity-data/user-stats.d.ts +2 -2
- package/dist/requests/nft-activity-data/user-stats.js +4 -3
- package/dist/requests/nft-data/nft-doc.filter.d.ts +1 -1
- package/dist/requests/nft-data/nft-doc.filter.js +11 -9
- package/dist/requests/nft-data/nft-offer-doc.filter.d.ts +1 -1
- 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(
|
|
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(
|
|
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,
|
|
23
|
+
Object.assign(this, props);
|
|
24
24
|
this.id = `${this.eventId}-${this.questionId}-${this.wallet}`;
|
|
25
25
|
this.pk = this.eventId;
|
|
26
26
|
}
|
|
@@ -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(
|
|
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 (
|
|
15
|
-
|
|
16
|
-
|
|
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 (
|
|
22
|
-
throw new common_1.BadRequestException(`[${
|
|
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 (
|
|
26
|
-
const uniqueAnswers = new Set(
|
|
27
|
-
if (uniqueAnswers.size !==
|
|
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?:
|
|
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)(() =>
|
|
30
|
-
__metadata("design:type",
|
|
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
|
|
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?:
|
|
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?:
|
|
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:
|
|
60
|
+
type: short_voucher_doc_1.ShortVoucherDoc,
|
|
61
61
|
}),
|
|
62
|
-
__metadata("design:type",
|
|
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:
|
|
102
|
+
type: short_voucher_doc_1.ShortVoucherDoc,
|
|
103
103
|
required: false,
|
|
104
104
|
}),
|
|
105
|
-
__metadata("design:type",
|
|
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
|
|
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" | "
|
|
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" | "
|
|
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
|
|
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 {
|
|
@@ -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(
|
|
16
|
-
this.trait_type =
|
|
17
|
-
this.value =
|
|
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;
|
|
@@ -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(
|
|
17
|
+
constructor(props) {
|
|
18
18
|
this.dataType = user_data_type_enum_1.UserDataType.UserFavorite;
|
|
19
|
-
Object.assign(this,
|
|
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) {
|
|
@@ -3,7 +3,7 @@ declare class AirdropDtoBase {
|
|
|
3
3
|
tokenAllocation: number;
|
|
4
4
|
totalScore: number;
|
|
5
5
|
rank: number;
|
|
6
|
-
constructor(props
|
|
6
|
+
constructor(props?: Partial<AirdropDtoBase>);
|
|
7
7
|
}
|
|
8
8
|
export declare class AirdropDto extends AirdropDtoBase {
|
|
9
9
|
wallet: string;
|
|
@@ -36,7 +36,7 @@ export declare class PushNotificationDoc {
|
|
|
36
36
|
id?: string;
|
|
37
37
|
pk?: string;
|
|
38
38
|
_ts?: number;
|
|
39
|
-
constructor(props
|
|
39
|
+
constructor(props?: Partial<PushNotificationDoc>);
|
|
40
40
|
}
|
|
41
41
|
export declare class PushNotificationResponse {
|
|
42
42
|
resources: PushNotificationDoc[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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: () =>
|
|
42
|
-
__metadata("design:type",
|
|
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);
|
|
@@ -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(
|
|
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,
|
|
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(
|
|
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(
|
|
17
|
+
constructor(props) {
|
|
18
18
|
this.reason = '';
|
|
19
|
-
Object.assign(this,
|
|
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(
|
|
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(
|
|
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,
|
|
22
|
+
Object.assign(this, props);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
exports.TransactionSendResult = TransactionSendResult;
|
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(
|
|
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(
|
|
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(
|
|
6
|
-
Object.assign(this,
|
|
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(
|
|
12
|
-
super(
|
|
13
|
-
Object.assign(this,
|
|
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
|
|
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,
|
|
@@ -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
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
props.filters
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
41
|
+
constructor(props?: Partial<LendingMarketProfileFilter>);
|
|
42
42
|
private applySelectPropertyLogic;
|
|
43
43
|
private getDefaultProperties;
|
|
44
44
|
}
|