@xoxno/types 1.0.146 → 1.0.149
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/cosmos-db/documents/collection/mintProfile.d.ts +2 -2
- package/dist/cosmos-db/documents/lending/lending-account-profile.d.ts +1 -1
- package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.d.ts +2 -2
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.d.ts +2 -0
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +8 -0
- package/dist/cosmos-db/documents/lending/lending-oracle.d.ts +21 -0
- package/dist/cosmos-db/documents/lending/lending-oracle.js +127 -0
- package/dist/cosmos-db/documents/short/short-collection-info.doc.d.ts +2 -3
- package/dist/cosmos-db/documents/short/short-collection.doc.d.ts +2 -3
- package/dist/cosmos-db/documents/short/short-creator.doc.d.ts +2 -3
- package/dist/cosmos-db/documents/short/short-nft-collection-info.doc.d.ts +2 -3
- package/dist/cosmos-db/documents/short/short-nft.doc.d.ts +2 -3
- package/dist/cosmos-db/documents/short/short-voucher.doc.d.ts +2 -3
- package/dist/cosmos-db/documents/ticketing/event-question-answer.doc.d.ts +2 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-config-edit.dto.d.ts +2 -3
- package/dist/cosmos-db/documents/ticketing/event-stage-profile-edit.dto.d.ts +2 -3
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile-edit.dto.d.ts +2 -3
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.d.ts +2 -2
- package/dist/cosmos-db/documents/ticketing/event-voucher-create.dto.d.ts +2 -3
- package/dist/cosmos-db/documents/ticketing/event-voucher-edit.dto.d.ts +2 -3
- package/dist/entities/staking-data/staking-summary.dto.d.ts +2 -3
- package/dist/entities/transactions/transaction-send-result.d.ts +2 -2
- package/dist/enums/lending.enum.d.ts +21 -0
- package/dist/enums/lending.enum.js +25 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/requests/collection/collections.d.ts +2 -3
- package/dist/requests/user-data/creator-profile.dto.d.ts +2 -2
- package/dist/requests/user-data/me-profile.d.ts +2 -2
- package/package.json +10 -10
- package/dist/cosmos-db/documents/ticketing/event-question-validator.d.ts +0 -4
- package/dist/cosmos-db/documents/ticketing/event-question-validator.js +0 -32
|
@@ -41,7 +41,7 @@ export declare class CollectionMintProfileDocHydrated extends CollectionMintProf
|
|
|
41
41
|
collectionInfo: ShortCollectionInfoDoc;
|
|
42
42
|
creatorInfo: ShortCreatorDoc;
|
|
43
43
|
}
|
|
44
|
-
declare type CollectionMintProfileDocWithStages_base = Pick<
|
|
44
|
+
declare type CollectionMintProfileDocWithStages_base = Type<Pick<T, K>>;
|
|
45
45
|
export declare type CollectionMintProfileDocWithStages = CollectionMintProfileDocWithStages_base & {
|
|
46
46
|
collection: string;
|
|
47
47
|
isExcludedFromMint: boolean;
|
|
@@ -49,7 +49,7 @@ export declare type CollectionMintProfileDocWithStages = CollectionMintProfileDo
|
|
|
49
49
|
mintStages: MintStageDto[];
|
|
50
50
|
creatorInfo: CreatorProfileDoc;
|
|
51
51
|
};
|
|
52
|
-
declare const CollectionMintProfileDocWithStagesNest_base:
|
|
52
|
+
declare const CollectionMintProfileDocWithStagesNest_base: Type<Pick<T, K>>;
|
|
53
53
|
export declare class CollectionMintProfileDocWithStagesNest extends CollectionMintProfileDocWithStagesNest_base {
|
|
54
54
|
collection: string;
|
|
55
55
|
isExcludedFromMint: boolean;
|
|
@@ -28,7 +28,7 @@ export declare class LendingAccountProfileDoc {
|
|
|
28
28
|
_ts: number;
|
|
29
29
|
constructor(props?: Partial<LendingAccountProfileDoc>);
|
|
30
30
|
}
|
|
31
|
-
declare const selectFields:
|
|
31
|
+
declare const selectFields: never;
|
|
32
32
|
export declare class LendingAccountProfile extends LendingAccountProfileDoc {
|
|
33
33
|
supplyAmount: string;
|
|
34
34
|
borrowAmount: string;
|
|
@@ -12,9 +12,9 @@ export declare class LendingEModeCategoryProfileDoc {
|
|
|
12
12
|
_ts?: number;
|
|
13
13
|
constructor(props?: Partial<LendingEModeCategoryProfileDoc>);
|
|
14
14
|
}
|
|
15
|
-
declare type ShortLendingTokenEModeProfileDoc_base = Pick<
|
|
15
|
+
declare type ShortLendingTokenEModeProfileDoc_base = Type<Pick<T, K>>;
|
|
16
16
|
export declare type ShortLendingTokenEModeProfileDoc = ShortLendingTokenEModeProfileDoc_base ;
|
|
17
|
-
declare const ShortLendingTokenEModeProfileDocNest_base:
|
|
17
|
+
declare const ShortLendingTokenEModeProfileDocNest_base: Type<Pick<T, K>>;
|
|
18
18
|
export declare class ShortLendingTokenEModeProfileDocNest extends ShortLendingTokenEModeProfileDocNest_base {
|
|
19
19
|
}
|
|
20
20
|
export declare class LendingEModeCategoryProfile extends LendingEModeCategoryProfileDoc {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LendingDataType } from '../../../enums/lending-data-type.enum';
|
|
2
2
|
import { OwnerDto } from '../../../common/owner.dto';
|
|
3
3
|
import { LendingEModeCategoryProfileDoc } from './lending-emode-category-profile.doc';
|
|
4
|
+
import { LendingOracleUpdateStruct } from './lending-oracle';
|
|
4
5
|
export declare class LendingMarketProfileDoc {
|
|
5
6
|
dataType: LendingDataType;
|
|
6
7
|
token: string;
|
|
@@ -52,6 +53,7 @@ export declare class LendingMarketProfileDoc {
|
|
|
52
53
|
flashLoan: boolean;
|
|
53
54
|
flashLoanFee: string;
|
|
54
55
|
canBorrowInIsolation: boolean;
|
|
56
|
+
oracleProvider: LendingOracleUpdateStruct;
|
|
55
57
|
id: string;
|
|
56
58
|
pk: string;
|
|
57
59
|
_ts: number;
|
|
@@ -15,6 +15,7 @@ const lending_data_type_enum_1 = require("../../../enums/lending-data-type.enum"
|
|
|
15
15
|
const owner_dto_1 = require("../../../common/owner.dto");
|
|
16
16
|
const lending_emode_category_profile_doc_1 = require("./lending-emode-category-profile.doc");
|
|
17
17
|
const cosmos_db_paginated_response_dto_1 = require("../../cosmos-db-paginated-response.dto");
|
|
18
|
+
const lending_oracle_1 = require("./lending-oracle");
|
|
18
19
|
class LendingMarketProfileDoc {
|
|
19
20
|
constructor(props) {
|
|
20
21
|
this.dataType = lending_data_type_enum_1.LendingDataType.MARKET_PROFILE;
|
|
@@ -297,6 +298,13 @@ __decorate([
|
|
|
297
298
|
}),
|
|
298
299
|
__metadata("design:type", Boolean)
|
|
299
300
|
], LendingMarketProfileDoc.prototype, "canBorrowInIsolation", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
(0, swagger_1.ApiProperty)({
|
|
303
|
+
description: 'Oracle provider data',
|
|
304
|
+
type: lending_oracle_1.LendingOracleUpdateStruct,
|
|
305
|
+
}),
|
|
306
|
+
__metadata("design:type", lending_oracle_1.LendingOracleUpdateStruct)
|
|
307
|
+
], LendingMarketProfileDoc.prototype, "oracleProvider", void 0);
|
|
300
308
|
class LendingMarketParticipants {
|
|
301
309
|
}
|
|
302
310
|
exports.LendingMarketParticipants = LendingMarketParticipants;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ExchangeSource, OracleType, PricingMethod } from '../../../enums/lending.enum';
|
|
2
|
+
export declare class OraclePriceFluctuation {
|
|
3
|
+
firstUpperRatio: number;
|
|
4
|
+
firstLowerRatio: number;
|
|
5
|
+
lastUpperRatio: number;
|
|
6
|
+
lastLowerRatio: number;
|
|
7
|
+
constructor(init?: Partial<OraclePriceFluctuation>);
|
|
8
|
+
}
|
|
9
|
+
export declare class LendingOracleUpdateStruct {
|
|
10
|
+
baseTokenId: string;
|
|
11
|
+
quoteTokenId: string;
|
|
12
|
+
tolerance: OraclePriceFluctuation;
|
|
13
|
+
oracleContractAddress: string;
|
|
14
|
+
pricingMethod: PricingMethod;
|
|
15
|
+
oracleType: OracleType;
|
|
16
|
+
exchangeSource: ExchangeSource;
|
|
17
|
+
assetDecimals: number;
|
|
18
|
+
onedexPairId: number;
|
|
19
|
+
maxPriceStaleSeconds: number;
|
|
20
|
+
constructor(init?: Partial<LendingOracleUpdateStruct>);
|
|
21
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
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.LendingOracleUpdateStruct = exports.OraclePriceFluctuation = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const lending_enum_1 = require("../../../enums/lending.enum");
|
|
15
|
+
class OraclePriceFluctuation {
|
|
16
|
+
constructor(init) {
|
|
17
|
+
Object.assign(this, init);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.OraclePriceFluctuation = OraclePriceFluctuation;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)({
|
|
23
|
+
type: 'integer',
|
|
24
|
+
description: 'First upper ratio threshold for price fluctuation',
|
|
25
|
+
}),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], OraclePriceFluctuation.prototype, "firstUpperRatio", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({
|
|
30
|
+
type: 'integer',
|
|
31
|
+
description: 'First lower ratio threshold for price fluctuation',
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], OraclePriceFluctuation.prototype, "firstLowerRatio", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
type: 'integer',
|
|
38
|
+
description: 'Last upper ratio threshold for price fluctuation',
|
|
39
|
+
}),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], OraclePriceFluctuation.prototype, "lastUpperRatio", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({
|
|
44
|
+
type: 'integer',
|
|
45
|
+
description: 'Last lower ratio threshold for price fluctuation',
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], OraclePriceFluctuation.prototype, "lastLowerRatio", void 0);
|
|
49
|
+
class LendingOracleUpdateStruct {
|
|
50
|
+
constructor(init) {
|
|
51
|
+
Object.assign(this, init);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.LendingOracleUpdateStruct = LendingOracleUpdateStruct;
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, swagger_1.ApiProperty)({
|
|
57
|
+
type: String,
|
|
58
|
+
description: 'Base token identifier',
|
|
59
|
+
}),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], LendingOracleUpdateStruct.prototype, "baseTokenId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
type: String,
|
|
65
|
+
description: 'Quote token identifier',
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], LendingOracleUpdateStruct.prototype, "quoteTokenId", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, swagger_1.ApiProperty)({
|
|
71
|
+
type: OraclePriceFluctuation,
|
|
72
|
+
description: 'Price fluctuation tolerance thresholds',
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", OraclePriceFluctuation)
|
|
75
|
+
], LendingOracleUpdateStruct.prototype, "tolerance", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
type: String,
|
|
79
|
+
description: 'Oracle contract address',
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], LendingOracleUpdateStruct.prototype, "oracleContractAddress", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, swagger_1.ApiProperty)({
|
|
85
|
+
enum: lending_enum_1.PricingMethod,
|
|
86
|
+
enumName: 'PricingMethod',
|
|
87
|
+
description: 'Method used for pricing',
|
|
88
|
+
}),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], LendingOracleUpdateStruct.prototype, "pricingMethod", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, swagger_1.ApiProperty)({
|
|
93
|
+
enum: lending_enum_1.OracleType,
|
|
94
|
+
enumName: 'OracleType',
|
|
95
|
+
description: 'Type of oracle',
|
|
96
|
+
}),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], LendingOracleUpdateStruct.prototype, "oracleType", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, swagger_1.ApiProperty)({
|
|
101
|
+
enum: lending_enum_1.ExchangeSource,
|
|
102
|
+
enumName: 'ExchangeSource',
|
|
103
|
+
description: 'Source exchange for price data',
|
|
104
|
+
}),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], LendingOracleUpdateStruct.prototype, "exchangeSource", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, swagger_1.ApiProperty)({
|
|
109
|
+
type: Number,
|
|
110
|
+
description: 'Number of decimals for the asset',
|
|
111
|
+
}),
|
|
112
|
+
__metadata("design:type", Number)
|
|
113
|
+
], LendingOracleUpdateStruct.prototype, "assetDecimals", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, swagger_1.ApiProperty)({
|
|
116
|
+
type: Number,
|
|
117
|
+
description: 'OneDex pair identifier',
|
|
118
|
+
}),
|
|
119
|
+
__metadata("design:type", Number)
|
|
120
|
+
], LendingOracleUpdateStruct.prototype, "onedexPairId", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, swagger_1.ApiProperty)({
|
|
123
|
+
type: Number,
|
|
124
|
+
description: 'Maximum seconds before price is considered stale',
|
|
125
|
+
}),
|
|
126
|
+
__metadata("design:type", Number)
|
|
127
|
+
], LendingOracleUpdateStruct.prototype, "maxPriceStaleSeconds", void 0);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
declare type ShortCollectionInfoDoc_base = Pick<CollectionProfileDoc, "description" | "name" | "profile" | "followCount" | "holdersCount" | "isVisible" | "isVerified" | "socials" | "banner" | "chain" | "owner" | "collectionSize">;
|
|
1
|
+
declare type ShortCollectionInfoDoc_base = Type<Pick<T, K>>;
|
|
3
2
|
export declare type ShortCollectionInfoDoc = ShortCollectionInfoDoc_base & {
|
|
4
3
|
volume: number;
|
|
5
4
|
};
|
|
6
|
-
declare const ShortCollectionInfoDocNest_base:
|
|
5
|
+
declare const ShortCollectionInfoDocNest_base: Type<Pick<T, K>>;
|
|
7
6
|
export declare class ShortCollectionInfoDocNest extends ShortCollectionInfoDocNest_base {
|
|
8
7
|
volume: number;
|
|
9
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare type ShortCollectionDoc_base = Pick<CollectionProfileDoc, "description" | "name" | "profile" | "followCount" | "holdersCount" | "isVisible" | "isVerified" | "chain" | "collectionSize">;
|
|
1
|
+
declare type ShortCollectionDoc_base = Type<Pick<T, K>>;
|
|
3
2
|
export declare type ShortCollectionDoc = ShortCollectionDoc_base ;
|
|
4
|
-
declare const ShortCollectionDocNest_base:
|
|
3
|
+
declare const ShortCollectionDocNest_base: Type<Pick<T, K>>;
|
|
5
4
|
export declare class ShortCollectionDocNest extends ShortCollectionDocNest_base {
|
|
6
5
|
}
|
|
7
6
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare type ShortCreatorDoc_base = Pick<CreatorProfileDoc, "name" | "profile" | "contractAddress">;
|
|
1
|
+
declare type ShortCreatorDoc_base = Type<Pick<T, K>>;
|
|
3
2
|
export declare type ShortCreatorDoc = ShortCreatorDoc_base ;
|
|
4
|
-
declare const ShortCreatorDocNest_base:
|
|
3
|
+
declare const ShortCreatorDocNest_base: Type<Pick<T, K>>;
|
|
5
4
|
export declare class ShortCreatorDocNest extends ShortCreatorDocNest_base {
|
|
6
5
|
}
|
|
7
6
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare type ShortNftCollectionInfoDoc_base = Pick<CollectionProfileDoc, "description" | "name" | "profile" | "followCount" | "holdersCount" | "isVisible" | "isVerified" | "banner" | "chain" | "roles" | "customConfig" | "collectionSize">;
|
|
1
|
+
declare type ShortNftCollectionInfoDoc_base = Type<Pick<T, K>>;
|
|
3
2
|
export declare type ShortNftCollectionInfoDoc = ShortNftCollectionInfoDoc_base ;
|
|
4
|
-
declare const ShortNftCollectionInfoDocNest_base:
|
|
3
|
+
declare const ShortNftCollectionInfoDocNest_base: Type<Pick<T, K>>;
|
|
5
4
|
export declare class ShortNftCollectionInfoDocNest extends ShortNftCollectionInfoDocNest_base {
|
|
6
5
|
}
|
|
7
6
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare type ShortNftDoc_base = Pick<NftDoc, "name" | "identifier" | "collection" | "url" | "wasProcessed" | "media" | "metadata">;
|
|
1
|
+
declare type ShortNftDoc_base = Type<Pick<T, K>>;
|
|
3
2
|
export declare type ShortNftDoc = ShortNftDoc_base ;
|
|
4
|
-
declare const ShortNftDocNest_base:
|
|
3
|
+
declare const ShortNftDocNest_base: Type<Pick<T, K>>;
|
|
5
4
|
export declare class ShortNftDocNest extends ShortNftDocNest_base {
|
|
6
5
|
}
|
|
7
6
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare type ShortVoucherDoc_base = Pick<EventVoucherDoc, "type" | "amount" | "maxDiscountAmount">;
|
|
1
|
+
declare type ShortVoucherDoc_base = Type<Pick<T, K>>;
|
|
3
2
|
export declare type ShortVoucherDoc = ShortVoucherDoc_base ;
|
|
4
|
-
declare const ShortVoucherDocNest_base:
|
|
3
|
+
declare const ShortVoucherDocNest_base: Type<Pick<T, K>>;
|
|
5
4
|
export declare class ShortVoucherDocNest extends ShortVoucherDocNest_base {
|
|
6
5
|
}
|
|
7
6
|
export {};
|
|
@@ -13,9 +13,9 @@ export declare class EventGuestAnswerDoc {
|
|
|
13
13
|
constructor(props?: Partial<EventGuestAnswerDoc>);
|
|
14
14
|
static create(data: Omit<EventGuestAnswerDoc, 'id' | 'dataType' | 'createdAt' | 'pk'>): EventGuestAnswerDoc;
|
|
15
15
|
}
|
|
16
|
-
declare type EventQuestionAnswerDto_base = Pick<
|
|
16
|
+
declare type EventQuestionAnswerDto_base = Type<Pick<T, K>>;
|
|
17
17
|
export declare type EventQuestionAnswerDto = EventQuestionAnswerDto_base ;
|
|
18
|
-
declare const EventQuestionAnswerDtoNest_base:
|
|
18
|
+
declare const EventQuestionAnswerDtoNest_base: Type<Pick<T, K>>;
|
|
19
19
|
export declare class EventQuestionAnswerDtoNest extends EventQuestionAnswerDtoNest_base {
|
|
20
20
|
}
|
|
21
21
|
export declare class AnsweredQuestionWithDetails {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare type EventReferralConfigEditDto_base = Partial<EventReferralConfigCreateDto>;
|
|
1
|
+
declare type EventReferralConfigEditDto_base = Type<Partial<T>>;
|
|
3
2
|
export declare type EventReferralConfigEditDto = EventReferralConfigEditDto_base ;
|
|
4
|
-
declare const EventReferralConfigEditDtoNest_base:
|
|
3
|
+
declare const EventReferralConfigEditDtoNest_base: Type<Partial<T>>;
|
|
5
4
|
export declare class EventReferralConfigEditDtoNest extends EventReferralConfigEditDtoNest_base {
|
|
6
5
|
}
|
|
7
6
|
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
declare type EventStageProfileEditDto_base = Pick<EventStageProfileCreateDto, "isWhitelist" | "prices" | "maxLimit" | "userLimit" | "isEnabled" | "requiredApproval">;
|
|
1
|
+
declare type EventStageProfileEditDto_base = Type<Pick<T, K>>;
|
|
3
2
|
export declare type EventStageProfileEditDto = EventStageProfileEditDto_base & {
|
|
4
3
|
name: string;
|
|
5
4
|
startTime: number;
|
|
6
5
|
endTime: number;
|
|
7
6
|
};
|
|
8
|
-
declare const EventStageProfileEditDtoNest_base:
|
|
7
|
+
declare const EventStageProfileEditDtoNest_base: Type<Pick<T, K>>;
|
|
9
8
|
export declare class EventStageProfileEditDtoNest extends EventStageProfileEditDtoNest_base {
|
|
10
9
|
name: string;
|
|
11
10
|
startTime: number;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
declare type EventTicketProfileEditDto_base = Pick<EventTicketProfileCreateDto, "description" | "royalties" | "badgeColor" | "maxLimit" | "userLimit">;
|
|
1
|
+
declare type EventTicketProfileEditDto_base = Type<Pick<T, K>>;
|
|
3
2
|
export declare type EventTicketProfileEditDto = EventTicketProfileEditDto_base & {
|
|
4
3
|
name: string;
|
|
5
4
|
characteristics: Record<string, string | number>;
|
|
6
5
|
};
|
|
7
|
-
declare const EventTicketProfileEditDtoNest_base:
|
|
6
|
+
declare const EventTicketProfileEditDtoNest_base: Type<Pick<T, K>>;
|
|
8
7
|
export declare class EventTicketProfileEditDtoNest extends EventTicketProfileEditDtoNest_base {
|
|
9
8
|
name: string;
|
|
10
9
|
characteristics: Record<string, string | number>;
|
|
@@ -17,12 +17,12 @@ export declare class EventTicketProfileDoc {
|
|
|
17
17
|
_ts: number;
|
|
18
18
|
constructor(props?: Partial<EventTicketProfileDoc>);
|
|
19
19
|
}
|
|
20
|
-
declare type TicketProfileSummary_base = Pick<
|
|
20
|
+
declare type TicketProfileSummary_base = Type<Pick<T, K>>;
|
|
21
21
|
export declare type TicketProfileSummary = TicketProfileSummary_base & {
|
|
22
22
|
ticketId?: string;
|
|
23
23
|
quantity?: number;
|
|
24
24
|
};
|
|
25
|
-
declare const TicketProfileSummaryNest_base:
|
|
25
|
+
declare const TicketProfileSummaryNest_base: Type<Pick<T, K>>;
|
|
26
26
|
export declare class TicketProfileSummaryNest extends TicketProfileSummaryNest_base {
|
|
27
27
|
ticketId?: string;
|
|
28
28
|
quantity?: number;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EventVoucherDoc } from './event-voucher.doc';
|
|
2
1
|
import { VoucherType } from '../../../enums/voucher-type.enum';
|
|
3
|
-
declare type EventVoucherCreateDto_base = Partial<
|
|
2
|
+
declare type EventVoucherCreateDto_base = Type<Partial<T>>;
|
|
4
3
|
export declare type EventVoucherCreateDto = EventVoucherCreateDto_base & {
|
|
5
4
|
code?: string;
|
|
6
5
|
type: VoucherType;
|
|
@@ -13,7 +12,7 @@ export declare type EventVoucherCreateDto = EventVoucherCreateDto_base & {
|
|
|
13
12
|
endDate?: number;
|
|
14
13
|
isActive?: boolean;
|
|
15
14
|
};
|
|
16
|
-
declare const EventVoucherCreateDtoNest_base:
|
|
15
|
+
declare const EventVoucherCreateDtoNest_base: Type<Partial<T>>;
|
|
17
16
|
export declare class EventVoucherCreateDtoNest extends EventVoucherCreateDtoNest_base {
|
|
18
17
|
code?: string;
|
|
19
18
|
type: VoucherType;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
declare type EventVoucherEditDto_base = Partial<Omit<EventVoucherCreateDto, "eventId" | "code">>;
|
|
1
|
+
declare type EventVoucherEditDto_base = Type<Partial<T>>;
|
|
3
2
|
export declare type EventVoucherEditDto = EventVoucherEditDto_base & {
|
|
4
3
|
isActive?: boolean;
|
|
5
4
|
startDate?: number;
|
|
6
5
|
endDate?: number;
|
|
7
6
|
};
|
|
8
|
-
declare const EventVoucherEditDtoNest_base:
|
|
7
|
+
declare const EventVoucherEditDtoNest_base: Type<Partial<T>>;
|
|
9
8
|
export declare class EventVoucherEditDtoNest extends EventVoucherEditDtoNest_base {
|
|
10
9
|
isActive?: boolean;
|
|
11
10
|
startDate?: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare type StakingPostDTO_base = Pick<StakingSummary, "description" | "name">;
|
|
1
|
+
declare type StakingPostDTO_base = Type<Pick<T, K>>;
|
|
3
2
|
export declare type StakingPostDTO = StakingPostDTO_base ;
|
|
4
|
-
declare const StakingPostDTONest_base:
|
|
3
|
+
declare const StakingPostDTONest_base: Type<Pick<T, K>>;
|
|
5
4
|
export declare class StakingPostDTONest extends StakingPostDTONest_base {
|
|
6
5
|
}
|
|
7
6
|
export {};
|
|
@@ -8,9 +8,9 @@ export declare class TransactionSendResult {
|
|
|
8
8
|
status: TransactionStatus;
|
|
9
9
|
txHash: string;
|
|
10
10
|
}
|
|
11
|
-
declare type BatchTransactionResponse_base = Pick<
|
|
11
|
+
declare type BatchTransactionResponse_base = Type<Pick<T, K>>;
|
|
12
12
|
export declare type BatchTransactionResponse = BatchTransactionResponse_base ;
|
|
13
|
-
declare const BatchTransactionResponseNest_base:
|
|
13
|
+
declare const BatchTransactionResponseNest_base: Type<Pick<T, K>>;
|
|
14
14
|
export declare class BatchTransactionResponseNest extends BatchTransactionResponseNest_base {
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
@@ -5,3 +5,24 @@ export declare enum PositionMode {
|
|
|
5
5
|
Long = "Long",
|
|
6
6
|
Short = "Short"
|
|
7
7
|
}
|
|
8
|
+
export declare enum PricingMethod {
|
|
9
|
+
None = "None",
|
|
10
|
+
Safe = "Safe",
|
|
11
|
+
Instant = "Instant",
|
|
12
|
+
Aggregator = "Aggregator",
|
|
13
|
+
Mix = "Mix"
|
|
14
|
+
}
|
|
15
|
+
export declare enum OracleType {
|
|
16
|
+
None = "None",
|
|
17
|
+
Normal = "Normal",
|
|
18
|
+
Derived = "Derived",
|
|
19
|
+
Lp = "Lp"
|
|
20
|
+
}
|
|
21
|
+
export declare enum ExchangeSource {
|
|
22
|
+
None = "None",
|
|
23
|
+
XExchange = "XExchange",
|
|
24
|
+
LXOXNO = "LXOXNO",
|
|
25
|
+
XEGLD = "XEGLD",
|
|
26
|
+
LEGLD = "LEGLD",
|
|
27
|
+
Onedex = "Onedex"
|
|
28
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PositionMode = void 0;
|
|
3
|
+
exports.ExchangeSource = exports.OracleType = exports.PricingMethod = exports.PositionMode = void 0;
|
|
4
4
|
var PositionMode;
|
|
5
5
|
(function (PositionMode) {
|
|
6
6
|
PositionMode["None"] = "None";
|
|
@@ -9,3 +9,27 @@ var PositionMode;
|
|
|
9
9
|
PositionMode["Long"] = "Long";
|
|
10
10
|
PositionMode["Short"] = "Short";
|
|
11
11
|
})(PositionMode || (exports.PositionMode = PositionMode = {}));
|
|
12
|
+
var PricingMethod;
|
|
13
|
+
(function (PricingMethod) {
|
|
14
|
+
PricingMethod["None"] = "None";
|
|
15
|
+
PricingMethod["Safe"] = "Safe";
|
|
16
|
+
PricingMethod["Instant"] = "Instant";
|
|
17
|
+
PricingMethod["Aggregator"] = "Aggregator";
|
|
18
|
+
PricingMethod["Mix"] = "Mix";
|
|
19
|
+
})(PricingMethod || (exports.PricingMethod = PricingMethod = {}));
|
|
20
|
+
var OracleType;
|
|
21
|
+
(function (OracleType) {
|
|
22
|
+
OracleType["None"] = "None";
|
|
23
|
+
OracleType["Normal"] = "Normal";
|
|
24
|
+
OracleType["Derived"] = "Derived";
|
|
25
|
+
OracleType["Lp"] = "Lp";
|
|
26
|
+
})(OracleType || (exports.OracleType = OracleType = {}));
|
|
27
|
+
var ExchangeSource;
|
|
28
|
+
(function (ExchangeSource) {
|
|
29
|
+
ExchangeSource["None"] = "None";
|
|
30
|
+
ExchangeSource["XExchange"] = "XExchange";
|
|
31
|
+
ExchangeSource["LXOXNO"] = "LXOXNO";
|
|
32
|
+
ExchangeSource["XEGLD"] = "XEGLD";
|
|
33
|
+
ExchangeSource["LEGLD"] = "LEGLD";
|
|
34
|
+
ExchangeSource["Onedex"] = "Onedex";
|
|
35
|
+
})(ExchangeSource || (exports.ExchangeSource = ExchangeSource = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export * from './cosmos-db/documents/lending/lending-account-profile';
|
|
|
41
41
|
export * from './cosmos-db/documents/lending/lending-emode-category-profile.doc';
|
|
42
42
|
export * from './cosmos-db/documents/lending/lending-market-profile.doc';
|
|
43
43
|
export * from './cosmos-db/documents/lending/lending-nft-attributes';
|
|
44
|
+
export * from './cosmos-db/documents/lending/lending-oracle';
|
|
44
45
|
export * from './cosmos-db/documents/lending/lending-token-emode-profile.doc';
|
|
45
46
|
export * from './cosmos-db/documents/notification/notification.doc';
|
|
46
47
|
export * from './cosmos-db/documents/short/short-collection-info.doc';
|
|
@@ -67,7 +68,6 @@ export * from './cosmos-db/documents/ticketing/event-profile.doc';
|
|
|
67
68
|
export * from './cosmos-db/documents/ticketing/event-question-answer.doc';
|
|
68
69
|
export * from './cosmos-db/documents/ticketing/event-question-create.dto';
|
|
69
70
|
export * from './cosmos-db/documents/ticketing/event-question-edit.dto';
|
|
70
|
-
export * from './cosmos-db/documents/ticketing/event-question-validator';
|
|
71
71
|
export * from './cosmos-db/documents/ticketing/event-question.doc';
|
|
72
72
|
export * from './cosmos-db/documents/ticketing/event-referral-config-create.dto';
|
|
73
73
|
export * from './cosmos-db/documents/ticketing/event-referral-config-edit.dto';
|
package/dist/index.js
CHANGED
|
@@ -57,6 +57,7 @@ __exportStar(require("./cosmos-db/documents/lending/lending-account-profile"), e
|
|
|
57
57
|
__exportStar(require("./cosmos-db/documents/lending/lending-emode-category-profile.doc"), exports);
|
|
58
58
|
__exportStar(require("./cosmos-db/documents/lending/lending-market-profile.doc"), exports);
|
|
59
59
|
__exportStar(require("./cosmos-db/documents/lending/lending-nft-attributes"), exports);
|
|
60
|
+
__exportStar(require("./cosmos-db/documents/lending/lending-oracle"), exports);
|
|
60
61
|
__exportStar(require("./cosmos-db/documents/lending/lending-token-emode-profile.doc"), exports);
|
|
61
62
|
__exportStar(require("./cosmos-db/documents/notification/notification.doc"), exports);
|
|
62
63
|
__exportStar(require("./cosmos-db/documents/short/short-collection-info.doc"), exports);
|
|
@@ -83,7 +84,6 @@ __exportStar(require("./cosmos-db/documents/ticketing/event-profile.doc"), expor
|
|
|
83
84
|
__exportStar(require("./cosmos-db/documents/ticketing/event-question-answer.doc"), exports);
|
|
84
85
|
__exportStar(require("./cosmos-db/documents/ticketing/event-question-create.dto"), exports);
|
|
85
86
|
__exportStar(require("./cosmos-db/documents/ticketing/event-question-edit.dto"), exports);
|
|
86
|
-
__exportStar(require("./cosmos-db/documents/ticketing/event-question-validator"), exports);
|
|
87
87
|
__exportStar(require("./cosmos-db/documents/ticketing/event-question.doc"), exports);
|
|
88
88
|
__exportStar(require("./cosmos-db/documents/ticketing/event-referral-config-create.dto"), exports);
|
|
89
89
|
__exportStar(require("./cosmos-db/documents/ticketing/event-referral-config-edit.dto"), exports);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare type CollectionProfileUpdateDto_base = Pick<CollectionProfileDoc, "description" | "profile" | "socials">;
|
|
1
|
+
declare type CollectionProfileUpdateDto_base = Type<Pick<T, K>>;
|
|
3
2
|
export declare type CollectionProfileUpdateDto = CollectionProfileUpdateDto_base ;
|
|
4
|
-
declare const CollectionProfileUpdateDtoNest_base:
|
|
3
|
+
declare const CollectionProfileUpdateDtoNest_base: Type<Pick<T, K>>;
|
|
5
4
|
export declare class CollectionProfileUpdateDtoNest extends CollectionProfileUpdateDtoNest_base {
|
|
6
5
|
}
|
|
7
6
|
export {};
|
|
@@ -2,9 +2,9 @@ import { CreatorProfileDoc } from '../../cosmos-db/documents/user/user-creator-p
|
|
|
2
2
|
export declare class CreatorProfileDto extends CreatorProfileDoc {
|
|
3
3
|
followCount: number;
|
|
4
4
|
}
|
|
5
|
-
declare type CreatorUpdateProfileDTO_base = Pick<
|
|
5
|
+
declare type CreatorUpdateProfileDTO_base = Type<Pick<T, K>>;
|
|
6
6
|
export declare type CreatorUpdateProfileDTO = CreatorUpdateProfileDTO_base ;
|
|
7
|
-
declare const CreatorUpdateProfileDTONest_base:
|
|
7
|
+
declare const CreatorUpdateProfileDTONest_base: Type<Pick<T, K>>;
|
|
8
8
|
export declare class CreatorUpdateProfileDTONest extends CreatorUpdateProfileDTONest_base {
|
|
9
9
|
}
|
|
10
10
|
export {};
|
|
@@ -10,9 +10,9 @@ declare class UserSettingsDto {
|
|
|
10
10
|
export declare class UserProfileDto extends UserProfileDoc {
|
|
11
11
|
userSettings: UserSettingsDto;
|
|
12
12
|
}
|
|
13
|
-
declare type UserProfileEditDto_base = Partial<
|
|
13
|
+
declare type UserProfileEditDto_base = Type<Partial<T>>;
|
|
14
14
|
export declare type UserProfileEditDto = UserProfileEditDto_base ;
|
|
15
|
-
declare const UserProfileEditDtoNest_base:
|
|
15
|
+
declare const UserProfileEditDtoNest_base: Type<Partial<T>>;
|
|
16
16
|
export declare class UserProfileEditDtoNest extends UserProfileEditDtoNest_base {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.149",
|
|
4
4
|
"description": "Shared types and utilities for XOXNO API.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -47,22 +47,22 @@
|
|
|
47
47
|
"@nestjs/swagger": ">=7.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@nestjs/swagger": "^
|
|
51
|
-
"@types/node": "^24.0.
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
53
|
-
"@typescript-eslint/parser": "^8.
|
|
54
|
-
"eslint": "^9.
|
|
55
|
-
"eslint-config-prettier": "^10.1.
|
|
56
|
-
"eslint-plugin-prettier": "^5.5.
|
|
50
|
+
"@nestjs/swagger": "^11.2.0",
|
|
51
|
+
"@types/node": "^24.0.15",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
53
|
+
"@typescript-eslint/parser": "^8.38.0",
|
|
54
|
+
"eslint": "^9.31.0",
|
|
55
|
+
"eslint-config-prettier": "^10.1.8",
|
|
56
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
57
57
|
"glob": "^11.0.3",
|
|
58
58
|
"prettier": "^3.6.2",
|
|
59
59
|
"rollup": "^4.45.1",
|
|
60
60
|
"rollup-plugin-dts": "^6.2.1",
|
|
61
61
|
"typescript": "^5.8.3",
|
|
62
|
-
"typescript-eslint": "^8.
|
|
62
|
+
"typescript-eslint": "^8.38.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@azure/cosmos": "^4.
|
|
65
|
+
"@azure/cosmos": "^4.5.0",
|
|
66
66
|
"@multiversx/sdk-nestjs-common": "^6.0.0",
|
|
67
67
|
"class-transformer": "^0.5.1",
|
|
68
68
|
"class-validator": "^0.14.2",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventQuestionValidator = void 0;
|
|
4
|
-
const common_1 = require("@nestjs/common");
|
|
5
|
-
const event_question_answer_type_enum_1 = require("../../../enums/event-question-answer-type.enum");
|
|
6
|
-
class EventQuestionValidator {
|
|
7
|
-
static validate(props) {
|
|
8
|
-
const multipleChoiceTypes = [
|
|
9
|
-
event_question_answer_type_enum_1.EventQuestionAnswerType.RADIO,
|
|
10
|
-
event_question_answer_type_enum_1.EventQuestionAnswerType.DROPDOWN,
|
|
11
|
-
event_question_answer_type_enum_1.EventQuestionAnswerType.CHECKBOX,
|
|
12
|
-
];
|
|
13
|
-
// Check for minimum answers for certain types
|
|
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`);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
// Ensure answers array is empty for non-multiple choice questions
|
|
20
|
-
else if (props?.answers && props.answers.length > 0) {
|
|
21
|
-
throw new common_1.BadRequestException(`[${props.answerType}] questions should not have predefined answers`);
|
|
22
|
-
}
|
|
23
|
-
// Check for duplicate answers
|
|
24
|
-
if (props?.answers) {
|
|
25
|
-
const uniqueAnswers = new Set(props.answers);
|
|
26
|
-
if (uniqueAnswers.size !== props.answers.length) {
|
|
27
|
-
throw new common_1.BadRequestException('Duplicate answers are not allowed');
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.EventQuestionValidator = EventQuestionValidator;
|