@xoxno/types 1.0.1
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/cache/keys.d.ts +642 -0
- package/dist/cache/keys.js +654 -0
- package/dist/cache/ttl.d.ts +13 -0
- package/dist/cache/ttl.js +16 -0
- package/dist/common/enums.d.ts +52 -0
- package/dist/common/enums.js +61 -0
- package/dist/common/kusto/kusto-db.enum.d.ts +7 -0
- package/dist/common/kusto/kusto-db.enum.js +12 -0
- package/dist/common/kusto/lending-market-analytics.d.ts +19 -0
- package/dist/common/kusto/lending-market-analytics.js +171 -0
- package/dist/common/kusto/lending-overall-stats.d.ts +11 -0
- package/dist/common/kusto/lending-overall-stats.js +72 -0
- package/dist/common/kusto/lending-position-status.d.ts +10 -0
- package/dist/common/kusto/lending-position-status.js +63 -0
- package/dist/common/kusto/order-by-column.enum.d.ts +8 -0
- package/dist/common/kusto/order-by-column.enum.js +13 -0
- package/dist/common/kusto/order-direction.enum.d.ts +4 -0
- package/dist/common/kusto/order-direction.enum.js +8 -0
- package/dist/common/kusto/trading-stats.d.ts +28 -0
- package/dist/common/kusto/trading-stats.js +35 -0
- package/dist/common/kusto/user-trading-summary.d.ts +20 -0
- package/dist/common/kusto/user-trading-summary.js +6 -0
- package/dist/common/kusto/volume-graph.d.ts +16 -0
- package/dist/common/kusto/volume-graph.js +57 -0
- package/dist/common/kusto/wallet-stats.d.ts +36 -0
- package/dist/common/kusto/wallet-stats.js +66 -0
- package/dist/common/owner.dto.d.ts +14 -0
- package/dist/common/owner.dto.js +37 -0
- package/dist/common/socials.d.ts +11 -0
- package/dist/common/socials.js +53 -0
- package/dist/common/statistics.d.ts +11 -0
- package/dist/common/statistics.js +49 -0
- package/dist/common/tokenPayent.d.ts +9 -0
- package/dist/common/tokenPayent.js +50 -0
- package/dist/cosmos-db/cosmos-db-container.enum.d.ts +13 -0
- package/dist/cosmos-db/cosmos-db-container.enum.js +17 -0
- package/dist/cosmos-db/cosmos-db-generic-filter.d.ts +16 -0
- package/dist/cosmos-db/cosmos-db-generic-filter.js +72 -0
- package/dist/cosmos-db/cosmos-db-paginated-response.dto.d.ts +13 -0
- package/dist/cosmos-db/cosmos-db-paginated-response.dto.js +62 -0
- package/dist/cosmos-db/cosmos-db-query.d.ts +81 -0
- package/dist/cosmos-db/cosmos-db-query.js +435 -0
- package/dist/cosmos-db/documents/activity/chain-activity.enum.d.ts +4 -0
- package/dist/cosmos-db/documents/activity/chain-activity.enum.js +5 -0
- package/dist/cosmos-db/documents/activity/event-source.enum.d.ts +15 -0
- package/dist/cosmos-db/documents/activity/event-source.enum.js +19 -0
- package/dist/cosmos-db/documents/activity/nft-activity-data.d.ts +22 -0
- package/dist/cosmos-db/documents/activity/nft-activity-data.js +2 -0
- package/dist/cosmos-db/documents/activity/nft-activity-type.enum.d.ts +28 -0
- package/dist/cosmos-db/documents/activity/nft-activity-type.enum.js +36 -0
- package/dist/cosmos-db/documents/activity/nft-activity.doc.d.ts +20 -0
- package/dist/cosmos-db/documents/activity/nft-activity.doc.js +121 -0
- package/dist/cosmos-db/documents/chat/block-user.dto.d.ts +3 -0
- package/dist/cosmos-db/documents/chat/block-user.dto.js +20 -0
- package/dist/cosmos-db/documents/chat/blocked-user.dto.d.ts +14 -0
- package/dist/cosmos-db/documents/chat/blocked-user.dto.js +57 -0
- package/dist/cosmos-db/documents/chat/chat-conversation.d.ts +39 -0
- package/dist/cosmos-db/documents/chat/chat-conversation.js +109 -0
- package/dist/cosmos-db/documents/chat/chat-data-type.enum.d.ts +6 -0
- package/dist/cosmos-db/documents/chat/chat-data-type.enum.js +10 -0
- package/dist/cosmos-db/documents/chat/chat-message-content-type.enum.d.ts +6 -0
- package/dist/cosmos-db/documents/chat/chat-message-content-type.enum.js +10 -0
- package/dist/cosmos-db/documents/chat/chat-message-content.dto.d.ts +6 -0
- package/dist/cosmos-db/documents/chat/chat-message-content.dto.js +42 -0
- package/dist/cosmos-db/documents/chat/chat-message-reply.dto.d.ts +7 -0
- package/dist/cosmos-db/documents/chat/chat-message-reply.dto.js +41 -0
- package/dist/cosmos-db/documents/chat/chat-message.doc.d.ts +44 -0
- package/dist/cosmos-db/documents/chat/chat-message.doc.js +17 -0
- package/dist/cosmos-db/documents/chat/chat-message.dto.d.ts +47 -0
- package/dist/cosmos-db/documents/chat/chat-message.dto.js +160 -0
- package/dist/cosmos-db/documents/chat/global-conversation-summary.dto.d.ts +10 -0
- package/dist/cosmos-db/documents/chat/global-conversation-summary.dto.js +38 -0
- package/dist/cosmos-db/documents/chat/group-chat-profile.doc.d.ts +13 -0
- package/dist/cosmos-db/documents/chat/group-chat-profile.doc.js +14 -0
- package/dist/cosmos-db/documents/chat/user-block.doc.d.ts +10 -0
- package/dist/cosmos-db/documents/chat/user-block.doc.js +14 -0
- package/dist/cosmos-db/documents/chat/user-conversation.doc.d.ts +16 -0
- package/dist/cosmos-db/documents/chat/user-conversation.doc.js +13 -0
- package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +15 -0
- package/dist/cosmos-db/documents/collection/collectionConfig.js +19 -0
- package/dist/cosmos-db/documents/collection/dataTypes.d.ts +8 -0
- package/dist/cosmos-db/documents/collection/dataTypes.js +12 -0
- package/dist/cosmos-db/documents/collection/globalOffer.d.ts +27 -0
- package/dist/cosmos-db/documents/collection/globalOffer.js +174 -0
- package/dist/cosmos-db/documents/collection/mintProfile.d.ts +36 -0
- package/dist/cosmos-db/documents/collection/mintProfile.js +241 -0
- package/dist/cosmos-db/documents/collection/mintStage.d.ts +20 -0
- package/dist/cosmos-db/documents/collection/mintStage.js +13 -0
- package/dist/cosmos-db/documents/collection/profile.d.ts +52 -0
- package/dist/cosmos-db/documents/collection/profile.js +330 -0
- package/dist/cosmos-db/documents/collection/stats.d.ts +45 -0
- package/dist/cosmos-db/documents/collection/stats.js +286 -0
- package/dist/cosmos-db/documents/collection/verification.d.ts +11 -0
- package/dist/cosmos-db/documents/collection/verification.js +72 -0
- package/dist/cosmos-db/documents/external-payment/binance-hook.d.ts +46 -0
- package/dist/cosmos-db/documents/external-payment/binance-hook.js +16 -0
- package/dist/cosmos-db/documents/external-payment/binance-request.d.ts +30 -0
- package/dist/cosmos-db/documents/external-payment/binance-request.js +36 -0
- package/dist/cosmos-db/documents/external-payment/external-payment-request.d.ts +52 -0
- package/dist/cosmos-db/documents/external-payment/external-payment-request.js +236 -0
- package/dist/cosmos-db/documents/external-payment/external-payment-status.enum.d.ts +18 -0
- package/dist/cosmos-db/documents/external-payment/external-payment-status.enum.js +22 -0
- package/dist/cosmos-db/documents/external-payment/external-payment.doc.d.ts +42 -0
- package/dist/cosmos-db/documents/external-payment/external-payment.doc.js +10 -0
- package/dist/cosmos-db/documents/external-payment/payment-provider.enum.d.ts +6 -0
- package/dist/cosmos-db/documents/external-payment/payment-provider.enum.js +10 -0
- package/dist/cosmos-db/documents/external-payment/purchase-type.enum.d.ts +14 -0
- package/dist/cosmos-db/documents/external-payment/purchase-type.enum.js +18 -0
- package/dist/cosmos-db/documents/external-payment/stripe-charge-event.d.ts +126 -0
- package/dist/cosmos-db/documents/external-payment/stripe-charge-event.js +2 -0
- package/dist/cosmos-db/documents/external-payment/twispay-cart.d.ts +13 -0
- package/dist/cosmos-db/documents/external-payment/twispay-cart.js +8 -0
- package/dist/cosmos-db/documents/external-payment/twispay-customer.d.ts +14 -0
- package/dist/cosmos-db/documents/external-payment/twispay-customer.js +2 -0
- package/dist/cosmos-db/documents/external-payment/twispay-payment-form.d.ts +15 -0
- package/dist/cosmos-db/documents/external-payment/twispay-payment-form.js +2 -0
- package/dist/cosmos-db/documents/external-payment/twispay-transaction.d.ts +50 -0
- package/dist/cosmos-db/documents/external-payment/twispay-transaction.js +48 -0
- package/dist/cosmos-db/documents/lending/lending-account-profile.d.ts +35 -0
- package/dist/cosmos-db/documents/lending/lending-account-profile.js +258 -0
- package/dist/cosmos-db/documents/lending/lending-data-type.enum.d.ts +6 -0
- package/dist/cosmos-db/documents/lending/lending-data-type.enum.js +10 -0
- package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.d.ts +20 -0
- package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +66 -0
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.d.ts +82 -0
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +372 -0
- package/dist/cosmos-db/documents/lending/lending-nft-attributes.d.ts +16 -0
- package/dist/cosmos-db/documents/lending/lending-nft-attributes.js +17 -0
- package/dist/cosmos-db/documents/lending/lending-position-type.enum.d.ts +5 -0
- package/dist/cosmos-db/documents/lending/lending-position-type.enum.js +9 -0
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.d.ts +13 -0
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +59 -0
- package/dist/cosmos-db/documents/notification/notification-asset-type.enum.d.ts +4 -0
- package/dist/cosmos-db/documents/notification/notification-asset-type.enum.js +8 -0
- package/dist/cosmos-db/documents/notification/notification-data-type.enum.d.ts +3 -0
- package/dist/cosmos-db/documents/notification/notification-data-type.enum.js +7 -0
- package/dist/cosmos-db/documents/notification/notification.doc.d.ts +35 -0
- package/dist/cosmos-db/documents/notification/notification.doc.js +13 -0
- package/dist/cosmos-db/documents/staking/staking-creator.d.ts +11 -0
- package/dist/cosmos-db/documents/staking/staking-creator.js +13 -0
- package/dist/cosmos-db/documents/staking/staking-data-type.enum.d.ts +5 -0
- package/dist/cosmos-db/documents/staking/staking-data-type.enum.js +9 -0
- package/dist/cosmos-db/documents/staking/staking-delegator-doc.d.ts +15 -0
- package/dist/cosmos-db/documents/staking/staking-delegator-doc.js +15 -0
- package/dist/cosmos-db/documents/staking/staking-issuing-type-string.enum.d.ts +5 -0
- package/dist/cosmos-db/documents/staking/staking-issuing-type-string.enum.js +9 -0
- package/dist/cosmos-db/documents/staking/staking-pool-doc.d.ts +93 -0
- package/dist/cosmos-db/documents/staking/staking-pool-doc.js +265 -0
- package/dist/cosmos-db/documents/staking/staking-pool-type-string.enum.d.ts +6 -0
- package/dist/cosmos-db/documents/staking/staking-pool-type-string.enum.js +10 -0
- package/dist/cosmos-db/documents/ticketing/discount-code-validation-response.d.ts +6 -0
- package/dist/cosmos-db/documents/ticketing/discount-code-validation-response.js +38 -0
- package/dist/cosmos-db/documents/ticketing/entities/discount-code-validation-response.d.ts +6 -0
- package/dist/cosmos-db/documents/ticketing/entities/discount-code-validation-response.js +38 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-category.enum.d.ts +90 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-category.enum.js +99 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-approve.dto.d.ts +4 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-approve.dto.js +32 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-doc.filter.d.ts +25 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-doc.filter.js +91 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-registration.dto.d.ts +23 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-registration.dto.js +196 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-status.enum.d.ts +10 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-guest-status.enum.js +14 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-guest.doc.d.ts +64 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-guest.doc.js +387 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-create.dto.d.ts +12 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-create.dto.js +74 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-doc.filter.d.ts +31 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-doc.filter.js +99 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-status.enum.d.ts +6 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation-status.enum.js +10 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation.doc.d.ts +32 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-invitation.doc.js +206 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-location.d.ts +14 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-location.js +68 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-create.dto.d.ts +47 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-create.dto.js +269 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-doc.filter.d.ts +41 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-doc.filter.js +129 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-edit.dto.d.ts +14 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-profile-edit.dto.js +108 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-profile.doc.d.ts +93 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-profile.doc.js +544 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer-type.enum.d.ts +9 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer-type.enum.js +13 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer.doc.d.ts +23 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question-answer.doc.js +127 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question-create.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question-create.dto.js +61 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question-edit.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question-edit.dto.js +65 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question-validator.d.ts +4 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question-validator.js +32 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question.doc.d.ts +15 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-question.doc.js +87 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-create.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-create.dto.js +58 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-edit.dto.d.ts +5 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-edit.dto.js +8 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-filter.doc.d.ts +23 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-filter.doc.js +116 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-query.doc.d.ts +6 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-query.doc.js +38 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config.doc.d.ts +27 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-config.doc.js +148 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-create.dto.d.ts +4 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-create.dto.js +31 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-edit.dto.d.ts +4 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-edit.dto.js +36 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-filter.doc.d.ts +31 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-filter.doc.js +161 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-query.doc.d.ts +6 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-query.doc.js +38 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-usage.doc.d.ts +16 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral-usage.doc.js +100 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral.doc.d.ts +14 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-referral.doc.js +92 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-scan-status.enum.d.ts +24 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-scan-status.enum.js +46 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-create.dto.d.ts +13 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-create.dto.js +109 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-edit.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-edit.dto.js +48 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile.doc.d.ts +21 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile.doc.js +168 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-create.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-create.dto.js +74 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-edit.dto.d.ts +7 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-edit.dto.js +31 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile.doc.d.ts +25 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile.doc.js +166 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-qr-type.enum.d.ts +43 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-ticket-qr-type.enum.js +201 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role-create.dto.d.ts +9 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role-create.dto.js +69 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role.doc.d.ts +25 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-user-role.doc.js +130 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-user-roles.enum.d.ts +15 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-user-roles.enum.js +20 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-create.dto.d.ts +15 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-create.dto.js +116 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-edit.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-edit.dto.js +48 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-filter.doc.d.ts +33 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher-filter.doc.js +173 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher.doc.d.ts +33 -0
- package/dist/cosmos-db/documents/ticketing/entities/event-voucher.doc.js +189 -0
- package/dist/cosmos-db/documents/ticketing/entities/manual-check-in.dto.d.ts +5 -0
- package/dist/cosmos-db/documents/ticketing/entities/manual-check-in.dto.js +38 -0
- package/dist/cosmos-db/documents/ticketing/entities/ticket-calculation-request.dto.d.ts +6 -0
- package/dist/cosmos-db/documents/ticketing/entities/ticket-calculation-request.dto.js +38 -0
- package/dist/cosmos-db/documents/ticketing/entities/ticket-prices-response.d.ts +14 -0
- package/dist/cosmos-db/documents/ticketing/entities/ticket-prices-response.js +74 -0
- package/dist/cosmos-db/documents/ticketing/entities/ticketing-data-type.enum.d.ts +14 -0
- package/dist/cosmos-db/documents/ticketing/entities/ticketing-data-type.enum.js +18 -0
- package/dist/cosmos-db/documents/ticketing/event-category.enum.d.ts +90 -0
- package/dist/cosmos-db/documents/ticketing/event-category.enum.js +99 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-approve.dto.d.ts +4 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-approve.dto.js +33 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.d.ts +25 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.js +91 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.d.ts +28 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.js +217 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-status.enum.d.ts +10 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-status.enum.js +14 -0
- package/dist/cosmos-db/documents/ticketing/event-guest.doc.d.ts +71 -0
- package/dist/cosmos-db/documents/ticketing/event-guest.doc.js +395 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation-create.dto.d.ts +12 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation-create.dto.js +74 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.d.ts +31 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.js +99 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation-status.enum.d.ts +6 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation-status.enum.js +10 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation.doc.d.ts +38 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +206 -0
- package/dist/cosmos-db/documents/ticketing/event-location.d.ts +14 -0
- package/dist/cosmos-db/documents/ticketing/event-location.js +68 -0
- package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.d.ts +47 -0
- package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.js +269 -0
- package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.d.ts +42 -0
- package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.js +130 -0
- package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.d.ts +14 -0
- package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.js +108 -0
- package/dist/cosmos-db/documents/ticketing/event-profile.doc.d.ts +104 -0
- package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +541 -0
- package/dist/cosmos-db/documents/ticketing/event-question-answer-type.enum.d.ts +9 -0
- package/dist/cosmos-db/documents/ticketing/event-question-answer-type.enum.js +13 -0
- package/dist/cosmos-db/documents/ticketing/event-question-answer.doc.d.ts +23 -0
- package/dist/cosmos-db/documents/ticketing/event-question-answer.doc.js +127 -0
- package/dist/cosmos-db/documents/ticketing/event-question-create.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/event-question-create.dto.js +61 -0
- package/dist/cosmos-db/documents/ticketing/event-question-edit.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/event-question-edit.dto.js +66 -0
- package/dist/cosmos-db/documents/ticketing/event-question-validator.d.ts +4 -0
- package/dist/cosmos-db/documents/ticketing/event-question-validator.js +33 -0
- package/dist/cosmos-db/documents/ticketing/event-question.doc.d.ts +15 -0
- package/dist/cosmos-db/documents/ticketing/event-question.doc.js +88 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.js +58 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config-edit.dto.d.ts +5 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config-edit.dto.js +8 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.d.ts +23 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.js +116 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config-query.doc.d.ts +6 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config-query.doc.js +38 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.d.ts +27 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +149 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-create.dto.d.ts +4 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-create.dto.js +31 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-edit.dto.d.ts +4 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-edit.dto.js +36 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.d.ts +31 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.js +162 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-query.doc.d.ts +6 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-query.doc.js +41 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-usage.doc.d.ts +16 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-usage.doc.js +100 -0
- package/dist/cosmos-db/documents/ticketing/event-referral.doc.d.ts +14 -0
- package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +92 -0
- package/dist/cosmos-db/documents/ticketing/event-scan-status.enum.d.ts +24 -0
- package/dist/cosmos-db/documents/ticketing/event-scan-status.enum.js +46 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile-create.dto.d.ts +13 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile-create.dto.js +109 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile-edit.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile-edit.dto.js +48 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.d.ts +21 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +168 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile-create.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile-create.dto.js +74 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile-edit.dto.d.ts +7 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile-edit.dto.js +31 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.d.ts +25 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +164 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-qr-type.enum.d.ts +43 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-qr-type.enum.js +202 -0
- package/dist/cosmos-db/documents/ticketing/event-user-role-create.dto.d.ts +9 -0
- package/dist/cosmos-db/documents/ticketing/event-user-role-create.dto.js +69 -0
- package/dist/cosmos-db/documents/ticketing/event-user-role.doc.d.ts +25 -0
- package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +131 -0
- package/dist/cosmos-db/documents/ticketing/event-user-roles.enum.d.ts +15 -0
- package/dist/cosmos-db/documents/ticketing/event-user-roles.enum.js +20 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher-create.dto.d.ts +15 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher-create.dto.js +117 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher-edit.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher-edit.dto.js +48 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher-filter.doc.d.ts +33 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher-filter.doc.js +167 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher.doc.d.ts +39 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +191 -0
- package/dist/cosmos-db/documents/ticketing/manual-check-in.dto.d.ts +5 -0
- package/dist/cosmos-db/documents/ticketing/manual-check-in.dto.js +38 -0
- package/dist/cosmos-db/documents/ticketing/ticket-calculation-request.dto.d.ts +6 -0
- package/dist/cosmos-db/documents/ticketing/ticket-calculation-request.dto.js +41 -0
- package/dist/cosmos-db/documents/ticketing/ticket-prices-response.d.ts +14 -0
- package/dist/cosmos-db/documents/ticketing/ticket-prices-response.js +74 -0
- package/dist/cosmos-db/documents/ticketing/ticketing-data-type.enum.d.ts +14 -0
- package/dist/cosmos-db/documents/ticketing/ticketing-data-type.enum.js +18 -0
- package/dist/cosmos-db/documents/token/nft-details.doc.d.ts +79 -0
- package/dist/cosmos-db/documents/token/nft-details.doc.js +436 -0
- package/dist/cosmos-db/documents/token/nft-extra-attributes.type.d.ts +3 -0
- package/dist/cosmos-db/documents/token/nft-extra-attributes.type.js +7 -0
- package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.d.ts +11 -0
- package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.js +12 -0
- package/dist/cosmos-db/documents/token/nft-metadata-attributes.d.ts +6 -0
- package/dist/cosmos-db/documents/token/nft-metadata-attributes.js +28 -0
- package/dist/cosmos-db/documents/token/nft-metadata.d.ts +13 -0
- package/dist/cosmos-db/documents/token/nft-metadata.js +62 -0
- package/dist/cosmos-db/documents/token/nft-offer.doc.d.ts +34 -0
- package/dist/cosmos-db/documents/token/nft-offer.doc.js +220 -0
- package/dist/cosmos-db/documents/token/nft-sale-info.d.ts +23 -0
- package/dist/cosmos-db/documents/token/nft-sale-info.js +109 -0
- package/dist/cosmos-db/documents/token/sft-owner-doc.d.ts +13 -0
- package/dist/cosmos-db/documents/token/sft-owner-doc.js +18 -0
- package/dist/cosmos-db/documents/token/token-data.enum.d.ts +8 -0
- package/dist/cosmos-db/documents/token/token-data.enum.js +12 -0
- package/dist/cosmos-db/documents/token-data/nft-details.doc.d.ts +56 -0
- package/dist/cosmos-db/documents/token-data/nft-details.doc.js +31 -0
- package/dist/cosmos-db/documents/user/account-on-network.d.ts +21 -0
- package/dist/cosmos-db/documents/user/account-on-network.js +36 -0
- package/dist/cosmos-db/documents/user/notification-preferences.dto.d.ts +8 -0
- package/dist/cosmos-db/documents/user/notification-preferences.dto.js +73 -0
- package/dist/cosmos-db/documents/user/user-creator-profile.doc.d.ts +18 -0
- package/dist/cosmos-db/documents/user/user-creator-profile.doc.js +105 -0
- package/dist/cosmos-db/documents/user/user-data.type.d.ts +6 -0
- package/dist/cosmos-db/documents/user/user-data.type.js +10 -0
- package/dist/cosmos-db/documents/user/user-deposit.d.ts +9 -0
- package/dist/cosmos-db/documents/user/user-deposit.js +54 -0
- package/dist/cosmos-db/documents/user/user-favorite-type.enum.d.ts +5 -0
- package/dist/cosmos-db/documents/user/user-favorite-type.enum.js +9 -0
- package/dist/cosmos-db/documents/user/user-favorite.doc.d.ts +18 -0
- package/dist/cosmos-db/documents/user/user-favorite.doc.js +56 -0
- package/dist/cosmos-db/documents/user/user-profile.doc.d.ts +25 -0
- package/dist/cosmos-db/documents/user/user-profile.doc.js +133 -0
- package/dist/cosmos-db/documents/user/user-settings.doc.d.ts +63 -0
- package/dist/cosmos-db/documents/user/user-settings.doc.js +267 -0
- package/dist/index.d.ts +273 -0
- package/dist/index.js +300 -0
- package/dist/redis/keys.d.ts +11 -0
- package/dist/redis/keys.js +12 -0
- package/dist/redis/ttl.d.ts +10 -0
- package/dist/redis/ttl.js +11 -0
- package/dist/requests/aggregator/ar-da-swap-result.dto.d.ts +9 -0
- package/dist/requests/aggregator/ar-da-swap-result.dto.js +80 -0
- package/dist/requests/aggregator/swap.d.ts +65 -0
- package/dist/requests/aggregator/swap.js +240 -0
- package/dist/requests/chat/azure-ws-event-name.enum.d.ts +5 -0
- package/dist/requests/chat/azure-ws-event-name.enum.js +9 -0
- package/dist/requests/chat/azure-ws-hub-name.enum.d.ts +4 -0
- package/dist/requests/chat/azure-ws-hub-name.enum.js +8 -0
- package/dist/requests/chat/chat-token.d.ts +3 -0
- package/dist/requests/chat/chat-token.js +22 -0
- package/dist/requests/collection/attributes.d.ts +22 -0
- package/dist/requests/collection/attributes.js +80 -0
- package/dist/requests/collection/collection-attributes-fp.d.ts +12 -0
- package/dist/requests/collection/collection-attributes-fp.js +2 -0
- package/dist/requests/collection/collection-attributes-map.d.ts +24 -0
- package/dist/requests/collection/collection-attributes-map.js +6 -0
- package/dist/requests/collection/collection-holders.d.ts +25 -0
- package/dist/requests/collection/collection-holders.js +35 -0
- package/dist/requests/collection/collection-info.dto.d.ts +6 -0
- package/dist/requests/collection/collection-info.dto.js +33 -0
- package/dist/requests/collection/collection-mint-profile.filter.d.ts +19 -0
- package/dist/requests/collection/collection-mint-profile.filter.js +40 -0
- package/dist/requests/collection/collection-mint-stage.doc.d.ts +19 -0
- package/dist/requests/collection/collection-mint-stage.doc.js +12 -0
- package/dist/requests/collection/collection-offers.filter.d.ts +28 -0
- package/dist/requests/collection/collection-offers.filter.js +99 -0
- package/dist/requests/collection/collection-owner.dto.d.ts +3 -0
- package/dist/requests/collection/collection-owner.dto.js +24 -0
- package/dist/requests/collection/collection-pinned-status.dto.d.ts +4 -0
- package/dist/requests/collection/collection-pinned-status.dto.js +30 -0
- package/dist/requests/collection/collection-profile.filter.d.ts +18 -0
- package/dist/requests/collection/collection-profile.filter.js +28 -0
- package/dist/requests/collection/collection-stats.d.ts +3 -0
- package/dist/requests/collection/collection-stats.filter.d.ts +22 -0
- package/dist/requests/collection/collection-stats.filter.js +98 -0
- package/dist/requests/collection/collection-stats.js +8 -0
- package/dist/requests/collection/collections.d.ts +7 -0
- package/dist/requests/collection/collections.js +16 -0
- package/dist/requests/collection/creator-details.dto.d.ts +12 -0
- package/dist/requests/collection/creator-details.dto.js +34 -0
- package/dist/requests/collection/creator-drop-info.d.ts +48 -0
- package/dist/requests/collection/creator-drop-info.js +189 -0
- package/dist/requests/collection/drops-query.d.ts +27 -0
- package/dist/requests/collection/drops-query.js +98 -0
- package/dist/requests/collection/floor.d.ts +5 -0
- package/dist/requests/collection/floor.js +28 -0
- package/dist/requests/collection/globalOfferSign.d.ts +4 -0
- package/dist/requests/collection/globalOfferSign.js +38 -0
- package/dist/requests/collection/holders.dto.d.ts +36 -0
- package/dist/requests/collection/holders.dto.js +96 -0
- package/dist/requests/collection/listings.d.ts +32 -0
- package/dist/requests/collection/listings.js +101 -0
- package/dist/requests/collection/pinned-collections.d.ts +10 -0
- package/dist/requests/collection/pinned-collections.js +56 -0
- package/dist/requests/collection/query-activity.d.ts +41 -0
- package/dist/requests/collection/query-activity.js +140 -0
- package/dist/requests/collection/query-global-offers.d.ts +15 -0
- package/dist/requests/collection/query-global-offers.js +57 -0
- package/dist/requests/collection/ranks.d.ts +5 -0
- package/dist/requests/collection/ranks.js +28 -0
- package/dist/requests/collection/stats-query.d.ts +5 -0
- package/dist/requests/collection/stats-query.js +26 -0
- package/dist/requests/lending/lending-market-profile.filter.d.ts +43 -0
- package/dist/requests/lending/lending-market-profile.filter.js +156 -0
- package/dist/requests/nft-activity-data/analytics-overview.d.ts +24 -0
- package/dist/requests/nft-activity-data/analytics-overview.js +151 -0
- package/dist/requests/nft-activity-data/analytics-volume.d.ts +13 -0
- package/dist/requests/nft-activity-data/analytics-volume.js +58 -0
- package/dist/requests/nft-activity-data/bober-battle-activity.enum.d.ts +69 -0
- package/dist/requests/nft-activity-data/bober-battle-activity.enum.js +16 -0
- package/dist/requests/nft-activity-data/event-source.enum.d.ts +15 -0
- package/dist/requests/nft-activity-data/event-source.enum.js +19 -0
- package/dist/requests/nft-activity-data/marketplace-activity.enum.d.ts +20 -0
- package/dist/requests/nft-activity-data/marketplace-activity.enum.js +24 -0
- package/dist/requests/nft-activity-data/nft-activity-data.d.ts +21 -0
- package/dist/requests/nft-activity-data/nft-activity-data.js +2 -0
- package/dist/requests/nft-activity-data/nft-activity-type.enum.d.ts +28 -0
- package/dist/requests/nft-activity-data/nft-activity-type.enum.js +36 -0
- package/dist/requests/nft-activity-data/nft-activity.filter.d.ts +39 -0
- package/dist/requests/nft-activity-data/nft-activity.filter.js +143 -0
- package/dist/requests/nft-activity-data/user-analytics.dto.d.ts +21 -0
- package/dist/requests/nft-activity-data/user-analytics.dto.js +72 -0
- package/dist/requests/nft-activity-data/user-stats.d.ts +53 -0
- package/dist/requests/nft-activity-data/user-stats.js +247 -0
- package/dist/requests/nft-activity-data/xoxno-egld-ls-activity.enum.d.ts +10 -0
- package/dist/requests/nft-activity-data/xoxno-egld-ls-activity.enum.js +14 -0
- package/dist/requests/nft-activity-data/xoxno-ls-activity.enum.d.ts +5 -0
- package/dist/requests/nft-activity-data/xoxno-ls-activity.enum.js +9 -0
- package/dist/requests/nft-data/inventory-summary.d.ts +12 -0
- package/dist/requests/nft-data/inventory-summary.js +67 -0
- package/dist/requests/nft-data/like-nft.dto.d.ts +5 -0
- package/dist/requests/nft-data/like-nft.dto.js +32 -0
- package/dist/requests/nft-data/nft-doc.filter.d.ts +65 -0
- package/dist/requests/nft-data/nft-doc.filter.js +211 -0
- package/dist/requests/nft-data/nft-extra-attributes.type.d.ts +3 -0
- package/dist/requests/nft-data/nft-extra-attributes.type.js +7 -0
- package/dist/requests/nft-data/nft-offer-doc.filter.d.ts +24 -0
- package/dist/requests/nft-data/nft-offer-doc.filter.js +97 -0
- package/dist/requests/nft-data/nft-offers.d.ts +26 -0
- package/dist/requests/nft-data/nft-offers.js +96 -0
- package/dist/requests/nft-data/sign-data.dto.d.ts +4 -0
- package/dist/requests/nft-data/sign-data.dto.js +24 -0
- package/dist/requests/nft-data/sign-mintdto.d.ts +4 -0
- package/dist/requests/nft-data/sign-mintdto.js +33 -0
- package/dist/requests/nft-data/sign-withdraw.dto.d.ts +3 -0
- package/dist/requests/nft-data/sign-withdraw.dto.js +29 -0
- package/dist/requests/nft-data/user-offers.d.ts +40 -0
- package/dist/requests/nft-data/user-offers.js +186 -0
- package/dist/requests/user-data/creator-profile.dto.d.ts +8 -0
- package/dist/requests/user-data/creator-profile.dto.js +28 -0
- package/dist/requests/user-data/edit-creator-profile.dto.d.ts +6 -0
- package/dist/requests/user-data/edit-creator-profile.dto.js +46 -0
- package/dist/requests/user-data/edit-user-profile.dto.d.ts +6 -0
- package/dist/requests/user-data/edit-user-profile.dto.js +44 -0
- package/dist/requests/user-data/follow-collection.dto.d.ts +4 -0
- package/dist/requests/user-data/follow-collection.dto.js +31 -0
- package/dist/requests/user-data/follow-user.dto.d.ts +4 -0
- package/dist/requests/user-data/follow-user.dto.js +30 -0
- package/dist/requests/user-data/is-favorite.d.ts +3 -0
- package/dist/requests/user-data/is-favorite.js +20 -0
- package/dist/requests/user-data/login-access.dto.d.ts +4 -0
- package/dist/requests/user-data/login-access.dto.js +30 -0
- package/dist/requests/user-data/me-profile.d.ts +16 -0
- package/dist/requests/user-data/me-profile.js +55 -0
- package/dist/requests/user-data/set-email.dto.d.ts +4 -0
- package/dist/requests/user-data/set-email.dto.js +34 -0
- package/dist/requests/user-data/set-phone.dto.d.ts +4 -0
- package/dist/requests/user-data/set-phone.dto.js +34 -0
- package/dist/requests/user-data/token-inventory.d.ts +43 -0
- package/dist/requests/user-data/token-inventory.js +143 -0
- package/dist/requests/user-data/tradesilvania.dto.d.ts +3 -0
- package/dist/requests/user-data/tradesilvania.dto.js +23 -0
- package/dist/requests/user-data/user-network.d.ts +22 -0
- package/dist/requests/user-data/user-network.js +98 -0
- package/dist/requests/user-data/verify-email.dto.d.ts +3 -0
- package/dist/requests/user-data/verify-email.dto.js +28 -0
- package/dist/types/common.d.ts +12 -0
- package/dist/types/common.js +12 -0
- package/dist/utils/generic.d.ts +1 -0
- package/dist/utils/generic.js +6 -0
- package/package.json +54 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NftOfferProps = exports.NftOfferDoc = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const enums_1 = require("../../../common/enums");
|
|
15
|
+
const nft_details_doc_1 = require("./nft-details.doc");
|
|
16
|
+
const token_data_enum_1 = require("./token-data.enum");
|
|
17
|
+
class NftOfferDoc {
|
|
18
|
+
constructor(props) {
|
|
19
|
+
this.dataType = token_data_enum_1.TokenDataType.Offer;
|
|
20
|
+
this.isActive = true;
|
|
21
|
+
this.chain = enums_1.ActivityChain.MULTIVERSX;
|
|
22
|
+
Object.assign(this, props);
|
|
23
|
+
this.id = `${this.identifier}-${this.offerId}-${this.marketplace}-${this.dataType}`;
|
|
24
|
+
if (!this.timestamp) {
|
|
25
|
+
this.timestamp = Math.floor(Date.now() / 1000);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.NftOfferDoc = NftOfferDoc;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({
|
|
32
|
+
example: token_data_enum_1.TokenDataType.Offer,
|
|
33
|
+
enum: token_data_enum_1.TokenDataType,
|
|
34
|
+
description: 'Type of token data document',
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], NftOfferDoc.prototype, "dataType", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
|
+
example: 'COLLECTION-1234-5678',
|
|
41
|
+
description: 'Unique identifier of the NFT',
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], NftOfferDoc.prototype, "identifier", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({
|
|
47
|
+
example: 'COLLECTION-1234',
|
|
48
|
+
description: 'Collection identifier',
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], NftOfferDoc.prototype, "collection", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({
|
|
54
|
+
example: 1,
|
|
55
|
+
description: 'Unique offer identifier',
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], NftOfferDoc.prototype, "offerId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiProperty)({
|
|
61
|
+
example: 'EGLD',
|
|
62
|
+
description: 'Token identifier used for payment',
|
|
63
|
+
}),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], NftOfferDoc.prototype, "paymentToken", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiProperty)({
|
|
68
|
+
example: 0,
|
|
69
|
+
description: 'Nonce of the payment token (0 for EGLD)',
|
|
70
|
+
}),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], NftOfferDoc.prototype, "paymentTokenNonce", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, swagger_1.ApiProperty)({
|
|
75
|
+
example: '1000000000000000000',
|
|
76
|
+
description: 'Offer price in smallest token units as string',
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], NftOfferDoc.prototype, "price", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, swagger_1.ApiProperty)({
|
|
82
|
+
example: 1.5,
|
|
83
|
+
description: 'Offer price as a decimal number',
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], NftOfferDoc.prototype, "priceShort", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, swagger_1.ApiProperty)({
|
|
89
|
+
example: 150.75,
|
|
90
|
+
description: 'Offer price in USD',
|
|
91
|
+
required: false,
|
|
92
|
+
}),
|
|
93
|
+
__metadata("design:type", Number)
|
|
94
|
+
], NftOfferDoc.prototype, "priceUsd", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, swagger_1.ApiProperty)({
|
|
97
|
+
example: 0.15,
|
|
98
|
+
description: 'Margin compared to floor price as percentage',
|
|
99
|
+
required: false,
|
|
100
|
+
}),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], NftOfferDoc.prototype, "floorPriceMargin", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, swagger_1.ApiProperty)({
|
|
105
|
+
example: 1640995200,
|
|
106
|
+
description: 'Unix timestamp when the offer expires',
|
|
107
|
+
}),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], NftOfferDoc.prototype, "deadline", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, swagger_1.ApiProperty)({
|
|
112
|
+
example: 1640995200,
|
|
113
|
+
description: 'Unix timestamp when the offer was created',
|
|
114
|
+
}),
|
|
115
|
+
__metadata("design:type", Number)
|
|
116
|
+
], NftOfferDoc.prototype, "timestamp", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, swagger_1.ApiProperty)({
|
|
119
|
+
example: 'erd1qqqqqqqqqqqqqpgqw0t0ef0jdpeva2v7qy7q7qjjfq6yq0wq0w0qjjfq6yq',
|
|
120
|
+
description: 'Address of the offer creator',
|
|
121
|
+
}),
|
|
122
|
+
__metadata("design:type", String)
|
|
123
|
+
], NftOfferDoc.prototype, "owner", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, swagger_1.ApiProperty)({
|
|
126
|
+
example: 'erd1qqqqqqqqqqqqqpgqw0t0ef0jdpeva2v7qy7q7qjjfq6yq0wq0w0qjjfq6yq',
|
|
127
|
+
description: 'Address of the NFT owner',
|
|
128
|
+
required: false,
|
|
129
|
+
}),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], NftOfferDoc.prototype, "nftOwner", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, swagger_1.ApiProperty)({
|
|
134
|
+
example: 1,
|
|
135
|
+
description: 'Quantity of NFTs being offered for',
|
|
136
|
+
}),
|
|
137
|
+
__metadata("design:type", Number)
|
|
138
|
+
], NftOfferDoc.prototype, "quantity", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, swagger_1.ApiProperty)({
|
|
141
|
+
example: 'xoxno',
|
|
142
|
+
description: 'Marketplace where the offer was created',
|
|
143
|
+
}),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], NftOfferDoc.prototype, "marketplace", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, swagger_1.ApiProperty)({
|
|
148
|
+
example: 123,
|
|
149
|
+
description: 'Auction identifier if related to an auction',
|
|
150
|
+
required: false,
|
|
151
|
+
}),
|
|
152
|
+
__metadata("design:type", Number)
|
|
153
|
+
], NftOfferDoc.prototype, "auctionId", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, swagger_1.ApiProperty)({
|
|
156
|
+
example: true,
|
|
157
|
+
description: 'Whether the offer is currently active',
|
|
158
|
+
}),
|
|
159
|
+
__metadata("design:type", Boolean)
|
|
160
|
+
], NftOfferDoc.prototype, "isActive", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, swagger_1.ApiProperty)({
|
|
163
|
+
example: enums_1.ActivityChain.MULTIVERSX,
|
|
164
|
+
enum: enums_1.ActivityChain,
|
|
165
|
+
description: 'Blockchain network of the offer',
|
|
166
|
+
}),
|
|
167
|
+
__metadata("design:type", String)
|
|
168
|
+
], NftOfferDoc.prototype, "chain", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, swagger_1.ApiProperty)({
|
|
171
|
+
example: 'COLLECTION-1234-5678-1-xoxno-offer',
|
|
172
|
+
description: 'Unique document identifier',
|
|
173
|
+
}),
|
|
174
|
+
__metadata("design:type", String)
|
|
175
|
+
], NftOfferDoc.prototype, "id", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, swagger_1.ApiProperty)({
|
|
178
|
+
example: 1640995200,
|
|
179
|
+
description: 'Cosmos DB timestamp for document versioning',
|
|
180
|
+
}),
|
|
181
|
+
__metadata("design:type", Number)
|
|
182
|
+
], NftOfferDoc.prototype, "_ts", void 0);
|
|
183
|
+
class NftOfferProps extends NftOfferDoc {
|
|
184
|
+
constructor(props) {
|
|
185
|
+
super(props);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
exports.NftOfferProps = NftOfferProps;
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, swagger_1.ApiProperty)({
|
|
191
|
+
example: 150.75,
|
|
192
|
+
description: 'USD value of the offer',
|
|
193
|
+
required: false,
|
|
194
|
+
}),
|
|
195
|
+
__metadata("design:type", Number)
|
|
196
|
+
], NftOfferProps.prototype, "usdValue", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, swagger_1.ApiProperty)({
|
|
199
|
+
example: 0.15,
|
|
200
|
+
description: 'Margin compared to floor price as percentage',
|
|
201
|
+
required: false,
|
|
202
|
+
}),
|
|
203
|
+
__metadata("design:type", Number)
|
|
204
|
+
], NftOfferProps.prototype, "floorPriceMargin", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
(0, swagger_1.ApiProperty)({
|
|
207
|
+
example: 1.25,
|
|
208
|
+
description: 'Current floor price of the collection',
|
|
209
|
+
required: false,
|
|
210
|
+
}),
|
|
211
|
+
__metadata("design:type", Number)
|
|
212
|
+
], NftOfferProps.prototype, "floorPrice", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, swagger_1.ApiProperty)({
|
|
215
|
+
type: () => nft_details_doc_1.NftProps,
|
|
216
|
+
description: 'NFT information related to the offer',
|
|
217
|
+
required: false,
|
|
218
|
+
}),
|
|
219
|
+
__metadata("design:type", Object)
|
|
220
|
+
], NftOfferProps.prototype, "nftInfo", void 0);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OwnerDto } from '../../../common/owner.dto';
|
|
2
|
+
export declare class NftSaleInfo {
|
|
3
|
+
auctionId: number;
|
|
4
|
+
seller: string;
|
|
5
|
+
currentWinner?: string | OwnerDto;
|
|
6
|
+
minBid: string;
|
|
7
|
+
maxBid: string;
|
|
8
|
+
currentBid?: string;
|
|
9
|
+
startTime: number;
|
|
10
|
+
deadline: number;
|
|
11
|
+
paymentToken: string;
|
|
12
|
+
paymentTokenNonce: number;
|
|
13
|
+
auctionType: string;
|
|
14
|
+
timestamp: number;
|
|
15
|
+
minBidShort: number;
|
|
16
|
+
minBidUsdValue?: number;
|
|
17
|
+
maxBidShort: number;
|
|
18
|
+
maxBidUsdValue?: number;
|
|
19
|
+
currentBidShort?: number;
|
|
20
|
+
quantity: number;
|
|
21
|
+
marketplace: string;
|
|
22
|
+
royalties?: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NftSaleInfo = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const owner_dto_1 = require("../../../common/owner.dto");
|
|
15
|
+
const enums_1 = require("../../../common/enums");
|
|
16
|
+
class NftSaleInfo {
|
|
17
|
+
}
|
|
18
|
+
exports.NftSaleInfo = NftSaleInfo;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], NftSaleInfo.prototype, "auctionId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], NftSaleInfo.prototype, "seller", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({
|
|
29
|
+
required: false,
|
|
30
|
+
type: owner_dto_1.OwnerDto,
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], NftSaleInfo.prototype, "currentWinner", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], NftSaleInfo.prototype, "minBid", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], NftSaleInfo.prototype, "maxBid", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], NftSaleInfo.prototype, "currentBid", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], NftSaleInfo.prototype, "startTime", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)(),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], NftSaleInfo.prototype, "deadline", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, swagger_1.ApiProperty)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], NftSaleInfo.prototype, "paymentToken", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)(),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], NftSaleInfo.prototype, "paymentTokenNonce", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], NftSaleInfo.prototype, "auctionType", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiProperty)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], NftSaleInfo.prototype, "timestamp", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, swagger_1.ApiProperty)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], NftSaleInfo.prototype, "minBidShort", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], NftSaleInfo.prototype, "minBidUsdValue", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, swagger_1.ApiProperty)(),
|
|
80
|
+
__metadata("design:type", Number)
|
|
81
|
+
], NftSaleInfo.prototype, "maxBidShort", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], NftSaleInfo.prototype, "maxBidUsdValue", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
88
|
+
__metadata("design:type", Number)
|
|
89
|
+
], NftSaleInfo.prototype, "currentBidShort", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, swagger_1.ApiProperty)(),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], NftSaleInfo.prototype, "quantity", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, swagger_1.ApiProperty)({
|
|
96
|
+
enum: enums_1.MarketplacesOnSaleNames,
|
|
97
|
+
example: enums_1.MarketplacesOnSaleNames.XOXNO_MARKETPLACE,
|
|
98
|
+
enumName: 'MarketplacesOnSaleNames',
|
|
99
|
+
}),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], NftSaleInfo.prototype, "marketplace", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, swagger_1.ApiProperty)({
|
|
104
|
+
example: 10,
|
|
105
|
+
description: 'This value is the one set by the owner at listing time',
|
|
106
|
+
required: false,
|
|
107
|
+
}),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], NftSaleInfo.prototype, "royalties", void 0);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class SftOwnerDoc {
|
|
2
|
+
dataType: string;
|
|
3
|
+
identifier: string;
|
|
4
|
+
collection: string;
|
|
5
|
+
type: string;
|
|
6
|
+
owner: string;
|
|
7
|
+
balance: number;
|
|
8
|
+
balanceLong?: string;
|
|
9
|
+
onSale: boolean;
|
|
10
|
+
id?: string;
|
|
11
|
+
_ts?: number;
|
|
12
|
+
constructor(props?: Partial<SftOwnerDoc>);
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SftOwnerDoc = void 0;
|
|
4
|
+
const enums_1 = require("../../../common/enums");
|
|
5
|
+
const token_data_enum_1 = require("./token-data.enum");
|
|
6
|
+
class SftOwnerDoc {
|
|
7
|
+
constructor(props) {
|
|
8
|
+
this.dataType = token_data_enum_1.TokenDataType.SftOwner;
|
|
9
|
+
this.onSale = false;
|
|
10
|
+
if (props?.type != enums_1.EsdtTokenType.SemiFungibleESDT &&
|
|
11
|
+
props?.type != enums_1.EsdtTokenType.MetaESDT) {
|
|
12
|
+
throw new Error(`invalid type [${props?.type}] for sft owner doc`);
|
|
13
|
+
}
|
|
14
|
+
Object.assign(this, props);
|
|
15
|
+
this.id = `${this.identifier}-${this.owner}`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.SftOwnerDoc = SftOwnerDoc;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TokenDataType = void 0;
|
|
4
|
+
var TokenDataType;
|
|
5
|
+
(function (TokenDataType) {
|
|
6
|
+
TokenDataType["Nft"] = "nft";
|
|
7
|
+
TokenDataType["SftOwner"] = "sftOwner";
|
|
8
|
+
TokenDataType["Offer"] = "offer";
|
|
9
|
+
TokenDataType["SyntheticNft"] = "syntheticNft";
|
|
10
|
+
TokenDataType["FungibleTokenInfo"] = "fungibleTokenInfo";
|
|
11
|
+
TokenDataType["NftExtraMetadata"] = "nftExtraMetadata";
|
|
12
|
+
})(TokenDataType || (exports.TokenDataType = TokenDataType = {}));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EsdtTokenSubType, EsdtTokenType } from '../../../common/enums';
|
|
2
|
+
import { NftMetadata } from '../token/nft-metadata';
|
|
3
|
+
import { NftSaleInfo } from '../token/nft-sale-info';
|
|
4
|
+
import { TokenDataType } from '../token/token-data.enum';
|
|
5
|
+
export declare class NFTEventData {
|
|
6
|
+
eventId: string;
|
|
7
|
+
ticketId: string;
|
|
8
|
+
checkInStatus: boolean;
|
|
9
|
+
constructor(props?: Partial<NFTEventData>);
|
|
10
|
+
}
|
|
11
|
+
export type NftMedia = {
|
|
12
|
+
avifUrl: string;
|
|
13
|
+
webpUrl: string;
|
|
14
|
+
retries: number;
|
|
15
|
+
originalMedia: {
|
|
16
|
+
contentType: string;
|
|
17
|
+
contentLength: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export interface NftOwner {
|
|
21
|
+
address: string;
|
|
22
|
+
username?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class NftDoc {
|
|
25
|
+
dataType: TokenDataType;
|
|
26
|
+
identifier: string;
|
|
27
|
+
collection: string;
|
|
28
|
+
originalCollection?: string;
|
|
29
|
+
attributes: string;
|
|
30
|
+
nonce: number;
|
|
31
|
+
type: EsdtTokenType;
|
|
32
|
+
subType?: EsdtTokenSubType;
|
|
33
|
+
supply: number;
|
|
34
|
+
supplyLong?: string;
|
|
35
|
+
name: string;
|
|
36
|
+
royalties: number;
|
|
37
|
+
url: string;
|
|
38
|
+
uris?: string[];
|
|
39
|
+
creator?: string;
|
|
40
|
+
wasProcessed: boolean;
|
|
41
|
+
media?: NftMedia;
|
|
42
|
+
currentOwner?: string;
|
|
43
|
+
owner?: string;
|
|
44
|
+
onSale: boolean;
|
|
45
|
+
saleInfo?: NftSaleInfo;
|
|
46
|
+
statistics: {
|
|
47
|
+
likeCount: number;
|
|
48
|
+
};
|
|
49
|
+
metadata?: NftMetadata;
|
|
50
|
+
isTicket?: boolean;
|
|
51
|
+
eventData?: NFTEventData;
|
|
52
|
+
tags?: string[];
|
|
53
|
+
id?: string;
|
|
54
|
+
_ts?: number;
|
|
55
|
+
constructor(props?: Partial<NftDoc>);
|
|
56
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EsdtTokenType } from '../../../common/enums';
|
|
2
|
+
import { TokenDataType } from '../token/token-data.enum';
|
|
3
|
+
export class NFTEventData {
|
|
4
|
+
constructor(props) {
|
|
5
|
+
this.checkInStatus = false;
|
|
6
|
+
Object.assign(this, props);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export class NftDoc {
|
|
10
|
+
constructor(props) {
|
|
11
|
+
this.dataType = TokenDataType.Nft;
|
|
12
|
+
this.wasProcessed = false;
|
|
13
|
+
this.onSale = false;
|
|
14
|
+
this.statistics = {
|
|
15
|
+
likeCount: 0,
|
|
16
|
+
};
|
|
17
|
+
this.metadata = { attributes: [] };
|
|
18
|
+
// Encapsulate event-specific data in a separate key
|
|
19
|
+
this.isTicket = false;
|
|
20
|
+
Object.assign(this, props);
|
|
21
|
+
this.id = this.identifier;
|
|
22
|
+
if (this.type === EsdtTokenType.NonFungibleESDT) {
|
|
23
|
+
this.supply = 1;
|
|
24
|
+
this.supplyLong = '1';
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
this.supply = props?.supply ?? 1;
|
|
28
|
+
this.supplyLong = props?.supplyLong;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class MvxAccountDetails {
|
|
2
|
+
address: string;
|
|
3
|
+
nonce: number;
|
|
4
|
+
balance: string;
|
|
5
|
+
balanceShort: number;
|
|
6
|
+
username: string;
|
|
7
|
+
ownerAddress?: string;
|
|
8
|
+
isUpgradeable?: boolean;
|
|
9
|
+
isReadable?: boolean;
|
|
10
|
+
isGuarded?: boolean;
|
|
11
|
+
isPayable?: boolean;
|
|
12
|
+
isPayableBySmartContract?: boolean;
|
|
13
|
+
shard?: number;
|
|
14
|
+
usdValue?: number;
|
|
15
|
+
code?: string;
|
|
16
|
+
codeHash?: string;
|
|
17
|
+
rootHash?: string;
|
|
18
|
+
developerReward?: string;
|
|
19
|
+
codeMetadata?: string;
|
|
20
|
+
constructor(init?: Partial<MvxAccountDetails>);
|
|
21
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MvxAccountDetails = void 0;
|
|
4
|
+
class MvxAccountDetails {
|
|
5
|
+
constructor(init) {
|
|
6
|
+
this.address = '';
|
|
7
|
+
this.nonce = 0;
|
|
8
|
+
this.balanceShort = 0;
|
|
9
|
+
this.username = '';
|
|
10
|
+
delete init?.['code'];
|
|
11
|
+
delete init?.['codeHash'];
|
|
12
|
+
delete init?.['rootHash'];
|
|
13
|
+
delete init?.['developerReward'];
|
|
14
|
+
if (init?.['codeMetadata']) {
|
|
15
|
+
delete init['codeMetadata'];
|
|
16
|
+
// const codeMetadata = AddressUtils.decodeCodeMetadata(
|
|
17
|
+
// init['codeMetadata'],
|
|
18
|
+
// );
|
|
19
|
+
// this.isUpgradeable = codeMetadata.isUpgradeable;
|
|
20
|
+
// this.isReadable = codeMetadata.isReadable;
|
|
21
|
+
// this.isGuarded = codeMetadata.isGuarded;
|
|
22
|
+
// this.isPayable = codeMetadata.isPayable;
|
|
23
|
+
// this.isPayableBySmartContract = codeMetadata.isPayableBySmartContract;
|
|
24
|
+
}
|
|
25
|
+
Object.assign(this, init);
|
|
26
|
+
if (this.ownerAddress === '') {
|
|
27
|
+
delete this.ownerAddress;
|
|
28
|
+
}
|
|
29
|
+
// TODO: Add sahrd number
|
|
30
|
+
// this.shard = AddressUtils.computeShard(
|
|
31
|
+
// AddressUtils.bech32Decode(this.address),
|
|
32
|
+
// 3,
|
|
33
|
+
// );
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.MvxAccountDetails = MvxAccountDetails;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NotificationPreferencesPostDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class NotificationPreferencesPostDto {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.sales = false;
|
|
18
|
+
this.bids = false;
|
|
19
|
+
this.offersReceived = false;
|
|
20
|
+
this.offersAccepted = false;
|
|
21
|
+
this.offersRejected = false;
|
|
22
|
+
this.deposits = false;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.NotificationPreferencesPostDto = NotificationPreferencesPostDto;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
description: 'Notification preference for sales',
|
|
29
|
+
example: true,
|
|
30
|
+
}),
|
|
31
|
+
(0, class_validator_1.IsBoolean)(),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], NotificationPreferencesPostDto.prototype, "sales", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({
|
|
36
|
+
description: 'Notification preference for bids',
|
|
37
|
+
example: true,
|
|
38
|
+
}),
|
|
39
|
+
(0, class_validator_1.IsBoolean)(),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], NotificationPreferencesPostDto.prototype, "bids", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({
|
|
44
|
+
description: 'Notification preference for offers received',
|
|
45
|
+
example: true,
|
|
46
|
+
}),
|
|
47
|
+
(0, class_validator_1.IsBoolean)(),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], NotificationPreferencesPostDto.prototype, "offersReceived", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)({
|
|
52
|
+
description: 'Notification preference for offers accepted',
|
|
53
|
+
example: true,
|
|
54
|
+
}),
|
|
55
|
+
(0, class_validator_1.IsBoolean)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], NotificationPreferencesPostDto.prototype, "offersAccepted", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)({
|
|
60
|
+
description: 'Notification preference for offers rejected',
|
|
61
|
+
example: true,
|
|
62
|
+
}),
|
|
63
|
+
(0, class_validator_1.IsBoolean)(),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], NotificationPreferencesPostDto.prototype, "offersRejected", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiProperty)({
|
|
68
|
+
description: 'Notification preference for deposits',
|
|
69
|
+
example: true,
|
|
70
|
+
}),
|
|
71
|
+
(0, class_validator_1.IsBoolean)(),
|
|
72
|
+
__metadata("design:type", Boolean)
|
|
73
|
+
], NotificationPreferencesPostDto.prototype, "deposits", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Socials } from '../../../common/socials';
|
|
2
|
+
import { UserDataType } from './user-data.type';
|
|
3
|
+
export declare class CreatorProfileDoc {
|
|
4
|
+
dataType: UserDataType;
|
|
5
|
+
address: string;
|
|
6
|
+
name: string;
|
|
7
|
+
creatorTag: string;
|
|
8
|
+
contractAddress: string;
|
|
9
|
+
ticketingContractAddress: string;
|
|
10
|
+
profile: string;
|
|
11
|
+
banner: string;
|
|
12
|
+
joinedDate: number;
|
|
13
|
+
description?: string;
|
|
14
|
+
socials?: Socials;
|
|
15
|
+
id: string;
|
|
16
|
+
_ts: number;
|
|
17
|
+
constructor(props?: Partial<CreatorProfileDoc>);
|
|
18
|
+
}
|